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