Andreas Schallenberg | 2fc32de | 2010-11-17 13:51:33 -0500 | [diff] [blame] | 1 | /* |
| 2 | * U-boot - Configuration file for SSV DNP5370 board |
| 3 | */ |
| 4 | |
| 5 | #ifndef __CONFIG_DNP5370_H__ |
| 6 | #define __CONFIG_DNP5370_H__ |
| 7 | |
| 8 | /* this must come first */ |
| 9 | #include <asm/config-pre.h> |
| 10 | |
| 11 | /* |
| 12 | * Processor Settings |
| 13 | */ |
| 14 | #define CONFIG_BFIN_CPU bf537-0.3 |
| 15 | #define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS |
| 16 | |
| 17 | /* |
| 18 | * Clock Settings |
| 19 | * CCLK = (CLKIN * VCO_MULT) / CCLK_DIV |
| 20 | * SCLK = (CLKIN * VCO_MULT) / SCLK_DIV |
| 21 | */ |
| 22 | #define CONFIG_CLKIN_HZ 25000000 |
| 23 | #define CONFIG_CLKIN_HALF 0 |
| 24 | #define CONFIG_PLL_BYPASS 0 |
| 25 | #define CONFIG_VCO_MULT 24 |
| 26 | #define CONFIG_CCLK_DIV 1 |
| 27 | #define CONFIG_SCLK_DIV 5 |
| 28 | |
| 29 | /* |
| 30 | * Memory Settings |
| 31 | */ |
| 32 | #define CONFIG_MEM_ADD_WDTH 9 |
| 33 | #define CONFIG_MEM_SIZE 32 |
| 34 | |
| 35 | #define CONFIG_EBIU_SDRRC_VAL 0x03a0 |
| 36 | #define CONFIG_EBIU_SDBCTL_VAL 0x0013 |
| 37 | #define CONFIG_EBIU_SDGCTL_VAL 0x8091998d |
| 38 | |
| 39 | #define CONFIG_EBIU_AMGCTL_VAL 0xF7 |
| 40 | #define CONFIG_EBIU_AMBCTL0_VAL 0x7BB07BB0 |
| 41 | #define CONFIG_EBIU_AMBCTL1_VAL 0xFFC27BB0 |
| 42 | |
| 43 | #define CONFIG_SYS_MONITOR_LEN (256 * 1024) |
| 44 | #define CONFIG_SYS_MALLOC_LEN (128 * 1024) |
| 45 | |
| 46 | /* |
| 47 | * Network Settings |
| 48 | */ |
| 49 | #ifndef __ADSPBF534__ |
Joe Hershberger | 8b3637c | 2011-10-13 13:03:47 +0000 | [diff] [blame] | 50 | #define CONFIG_ROOTPATH "/romfs" |
Andreas Schallenberg | 2fc32de | 2010-11-17 13:51:33 -0500 | [diff] [blame] | 51 | |
Andreas Schallenberg | 2fc32de | 2010-11-17 13:51:33 -0500 | [diff] [blame] | 52 | #define CONFIG_BFIN_MAC 1 |
| 53 | #define CONFIG_PHY_ADDR 0 |
| 54 | #define CONFIG_RMII 1 |
| 55 | |
| 56 | #define CONFIG_CMD_MII |
| 57 | #define CONFIG_CMD_PING |
Masahiro Yamada | c42f56d | 2014-04-18 19:09:49 +0900 | [diff] [blame] | 58 | |
| 59 | #define CONFIG_LIB_RAND |
Andreas Schallenberg | 2fc32de | 2010-11-17 13:51:33 -0500 | [diff] [blame] | 60 | #endif |
| 61 | |
| 62 | /* |
| 63 | * Flash Settings |
| 64 | * |
| 65 | * Only 3 MB of the 4 MB NOR flash are addressable. |
| 66 | * But limiting the flash size does not seem to work. |
| 67 | * It seems the CFI detection has precedence. |
| 68 | */ |
| 69 | #define CONFIG_FLASH_CFI_DRIVER |
| 70 | #define CONFIG_SYS_FLASH_BASE 0x20000000 |
| 71 | #define CONFIG_SYS_FLASH_CFI |
| 72 | #define CONFIG_SYS_FLASH_PROTECTION |
| 73 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 |
| 74 | #define CONFIG_SYS_MAX_FLASH_SECT 71 /* (M29W320EB) */ |
| 75 | |
| 76 | /* 512k reserved for u-boot */ |
| 77 | #define CONFIG_SYS_JFFS2_FIRST_SECTOR 15 |
| 78 | |
| 79 | /* |
| 80 | * Env Storage Settings |
| 81 | */ |
| 82 | #define CONFIG_ENV_IS_IN_FLASH 1 |
| 83 | #define CONFIG_ENV_ADDR 0x20004000 |
| 84 | #define CONFIG_ENV_SIZE 0x00002000 |
| 85 | #define CONFIG_ENV_SECT_SIZE 0x00002000 /* Total Size of Environment Sector */ |
| 86 | #define CONFIG_ENV_OFFSET 0x00004000 /* (CONFIG_ENV_ADDR - CONFIG_FLASH_BASE) */ |
| 87 | |
| 88 | #define ENV_IS_EMBEDDED |
| 89 | #define LDS_BOARD_TEXT \ |
Masahiro Yamada | e2906a5 | 2013-11-11 14:36:00 +0900 | [diff] [blame] | 90 | arch/blackfin/lib/built-in.o (.text*); \ |
| 91 | arch/blackfin/cpu/built-in.o (.text*); \ |
Andreas Schallenberg | 2fc32de | 2010-11-17 13:51:33 -0500 | [diff] [blame] | 92 | . = DEFINED(env_offset) ? env_offset : .; \ |
| 93 | common/env_embedded.o (.text*); |
| 94 | |
| 95 | /* |
| 96 | * Misc Settings |
| 97 | */ |
| 98 | #define CONFIG_CMD_GPIO |
| 99 | #define CONFIG_CMD_STRINGS |
| 100 | #define CONFIG_MISC_INIT_R |
| 101 | #define CONFIG_RTC_BFIN |
| 102 | #define CONFIG_SYS_LONGHELP |
| 103 | |
| 104 | /* This disables the hardware watchdog (not inside the bfin) */ |
| 105 | #define CONFIG_DNP5370_EXT_WD_DISABLE 1 |
| 106 | |
| 107 | #define CONFIG_UART_CONSOLE 0 |
Sonic Zhang | 7a58eb9 | 2013-11-18 14:50:19 +0800 | [diff] [blame] | 108 | #define CONFIG_BFIN_SERIAL |
Andreas Schallenberg | 2fc32de | 2010-11-17 13:51:33 -0500 | [diff] [blame] | 109 | #define CONFIG_BAUDRATE 115200 |
| 110 | #define CONFIG_BOOTCOMMAND "bootm 0x20030000" |
| 111 | #define CONFIG_BOOTARGS "console=ttyBF0,115200 root=/dev/mtdblock3 rootfstype=ext2" |
| 112 | |
| 113 | /* Convenience commands to update Linux in NOR flash */ |
| 114 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 115 | "fetchme=tftpboot 0x01000000 uImage;" \ |
| 116 | "iminfo\0" \ |
| 117 | "flashme=protect off 0x20030000 0x2003ffff;" \ |
| 118 | "erase 0x20030000 0x202effff;" \ |
| 119 | "cp.b 0x01000000 0x20030000 0x2c0000\0" \ |
| 120 | "runme=bootm 0x01000000\0" |
| 121 | |
| 122 | /* this sets up the default list of enabled commands */ |
| 123 | #include <config_cmd_default.h> |
| 124 | |
| 125 | #ifndef CONFIG_BFIN_MAC |
| 126 | # undef CONFIG_CMD_NET |
| 127 | # undef CONFIG_CMD_NFS |
| 128 | #endif |
| 129 | |
| 130 | #endif |