Mike Frysinger | 7577aab | 2010-12-17 15:28:43 -0500 | [diff] [blame] | 1 | /* |
| 2 | * U-boot - Configuration file for BF506F EZ-Kit board |
| 3 | */ |
| 4 | |
| 5 | #ifndef __CONFIG_BF506F_EZKIT_H__ |
| 6 | #define __CONFIG_BF506F_EZKIT_H__ |
| 7 | |
| 8 | #include <asm/config-pre.h> |
| 9 | |
| 10 | |
| 11 | /* |
| 12 | * Processor Settings |
| 13 | */ |
| 14 | #define CONFIG_BFIN_CPU bf506-0.0 |
| 15 | #define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA |
| 16 | |
| 17 | |
| 18 | /* |
| 19 | * Clock Settings |
| 20 | * CCLK = (CLKIN * VCO_MULT) / CCLK_DIV |
| 21 | * SCLK = (CLKIN * VCO_MULT) / SCLK_DIV |
| 22 | */ |
| 23 | /* CONFIG_CLKIN_HZ is any value in Hz */ |
| 24 | #define CONFIG_CLKIN_HZ 25000000 |
| 25 | /* CLKIN_HALF controls the DF bit in PLL_CTL 0 = CLKIN */ |
| 26 | /* 1 = CLKIN / 2 */ |
| 27 | #define CONFIG_CLKIN_HALF 0 |
| 28 | /* PLL_BYPASS controls the BYPASS bit in PLL_CTL 0 = do not bypass */ |
| 29 | /* 1 = bypass PLL */ |
| 30 | #define CONFIG_PLL_BYPASS 0 |
| 31 | /* VCO_MULT controls the MSEL (multiplier) bits in PLL_CTL */ |
| 32 | /* Values can range from 0-63 (where 0 means 64) */ |
| 33 | #define CONFIG_VCO_MULT 16 |
| 34 | /* CCLK_DIV controls the core clock divider */ |
| 35 | /* Values can be 1, 2, 4, or 8 ONLY */ |
| 36 | #define CONFIG_CCLK_DIV 1 |
| 37 | /* SCLK_DIV controls the system clock divider */ |
| 38 | /* Values can range from 1-15 */ |
| 39 | #define CONFIG_SCLK_DIV 5 |
| 40 | |
| 41 | |
| 42 | /* |
| 43 | * Memory Settings |
| 44 | */ |
| 45 | #define CONFIG_MEM_SIZE 0 |
| 46 | |
| 47 | #define CONFIG_EBIU_AMGCTL_VAL (AMCKEN | AMBEN_ALL) |
| 48 | #define CONFIG_EBIU_AMBCTL0_VAL 0xffc2ffc2 |
| 49 | #define CONFIG_EBIU_AMBCTL1_VAL 0xffc2ffc2 |
| 50 | |
| 51 | #define CONFIG_SYS_MONITOR_BASE (L1_DATA_A_SRAM_END) |
| 52 | #define CONFIG_SYS_MONITOR_LEN (4 * 1024) |
| 53 | #define CONFIG_SYS_MALLOC_LEN (4 * 1024) |
| 54 | |
| 55 | |
| 56 | /* |
| 57 | * Flash Settings |
| 58 | */ |
Sonic Zhang | c49eabe | 2014-07-17 19:00:29 +0800 | [diff] [blame^] | 59 | /* |
Mike Frysinger | 7577aab | 2010-12-17 15:28:43 -0500 | [diff] [blame] | 60 | #define CONFIG_FLASH_CFI_DRIVER |
| 61 | #define CONFIG_SYS_FLASH_BASE 0x20000000 |
| 62 | #define CONFIG_SYS_FLASH_CFI |
| 63 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 |
| 64 | #define CONFIG_SYS_MAX_FLASH_SECT 71 |
| 65 | #define CONFIG_CMD_FLASH |
Mike Frysinger | a91eb2c | 2011-01-10 00:19:47 -0500 | [diff] [blame] | 66 | #define CONFIG_MONITOR_IS_IN_RAM |
Sonic Zhang | a2d1690 | 2013-12-09 12:38:56 +0800 | [diff] [blame] | 67 | */ |
Sonic Zhang | c49eabe | 2014-07-17 19:00:29 +0800 | [diff] [blame^] | 68 | #define CONFIG_SYS_NO_FLASH |
Mike Frysinger | 7577aab | 2010-12-17 15:28:43 -0500 | [diff] [blame] | 69 | |
| 70 | /* |
| 71 | * SPI Settings |
| 72 | */ |
| 73 | #define CONFIG_BFIN_SPI |
| 74 | #define CONFIG_ENV_SPI_MAX_HZ 30000000 |
| 75 | #define CONFIG_SF_DEFAULT_SPEED 30000000 |
Sonic Zhang | a2d1690 | 2013-12-09 12:38:56 +0800 | [diff] [blame] | 76 | /* |
Mike Frysinger | 7577aab | 2010-12-17 15:28:43 -0500 | [diff] [blame] | 77 | #define CONFIG_SPI_FLASH |
| 78 | #define CONFIG_SPI_FLASH_STMICRO |
| 79 | #define CONFIG_CMD_SF |
| 80 | #define CONFIG_CMD_SPI |
Sonic Zhang | a2d1690 | 2013-12-09 12:38:56 +0800 | [diff] [blame] | 81 | */ |
Mike Frysinger | 7577aab | 2010-12-17 15:28:43 -0500 | [diff] [blame] | 82 | |
| 83 | /* |
| 84 | * Env Storage Settings |
| 85 | */ |
| 86 | #define CONFIG_ENV_IS_NOWHERE |
| 87 | #define CONFIG_ENV_SIZE 0x400 |
Mike Frysinger | 945201a | 2011-01-10 00:48:53 -0500 | [diff] [blame] | 88 | #undef CONFIG_CMD_EXPORTENV |
| 89 | #undef CONFIG_CMD_IMPORTENV |
Mike Frysinger | 7577aab | 2010-12-17 15:28:43 -0500 | [diff] [blame] | 90 | |
| 91 | |
| 92 | /* |
| 93 | * Misc Settings |
| 94 | */ |
| 95 | #define CONFIG_BOARD_EARLY_INIT_F |
| 96 | #define CONFIG_ICACHE_OFF |
| 97 | #define CONFIG_DCACHE_OFF |
| 98 | #define CONFIG_UART_CONSOLE 0 |
| 99 | #define CONFIG_BAUDRATE 115200 |
Sonic Zhang | 7a58eb9 | 2013-11-18 14:50:19 +0800 | [diff] [blame] | 100 | #define CONFIG_BFIN_SERIAL |
Mike Frysinger | 7577aab | 2010-12-17 15:28:43 -0500 | [diff] [blame] | 101 | |
| 102 | #define CONFIG_CMD_MEMORY |
| 103 | #undef CONFIG_GZIP |
| 104 | #undef CONFIG_ZLIB |
| 105 | #undef CONFIG_CMD_BOOTM |
| 106 | #undef CONFIG_BOOTM_RTEMS |
| 107 | #undef CONFIG_BOOTM_LINUX |
| 108 | |
| 109 | #endif |