3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
5 * Gary Jennejohn <garyj@denx.de>
6 * David Mueller <d.mueller@elsoft.ch>
9 * Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de>
11 * Configuation settings for the SAMSUNG SMDK6400(mDirac-III) board.
13 * See file CREDITS for list of people who contributed to this
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License as
18 * published by the Free Software Foundation; either version 2 of
19 * the License, or (at your option) any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
36 * High Level Configuration Options
39 #define CONFIG_S3C6400 1 /* in a SAMSUNG S3C6400 SoC */
40 #define CONFIG_S3C64XX 1 /* in a SAMSUNG S3C64XX Family */
41 #define CONFIG_SMDK6400 1 /* on a SAMSUNG SMDK6400 Board */
43 #define CONFIG_SYS_SDRAM_BASE 0x50000000
45 /* input clock of PLL: SMDK6400 has 12MHz input clock */
46 #define CONFIG_SYS_CLK_FREQ 12000000
48 #if !defined(CONFIG_NAND_SPL) && (TEXT_BASE >= 0xc0000000)
49 #define CONFIG_ENABLE_MMU
52 #define CONFIG_MEMORY_UPPER_CODE
54 #define CONFIG_SETUP_MEMORY_TAGS
55 #define CONFIG_CMDLINE_TAG
56 #define CONFIG_INITRD_TAG
59 * Architecture magic and machine type
61 #define MACH_TYPE 1270
63 #define CONFIG_DISPLAY_CPUINFO
64 #define CONFIG_DISPLAY_BOARDINFO
66 #undef CONFIG_SKIP_RELOCATE_UBOOT
69 * Size of malloc() pool
71 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024)
72 #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes for initial data */
77 #define CONFIG_NET_MULTI
78 #define CONFIG_CS8900 /* we have a CS8900 on-board */
79 #define CONFIG_CS8900_BASE 0x18800300
80 #define CONFIG_CS8900_BUS16 /* follow the Linux driver */
83 * select serial console configuration
85 #define CONFIG_SERIAL1 1 /* we use SERIAL 1 on SMDK6400 */
87 #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
88 #ifdef CONFIG_SYS_HUSH_PARSER
89 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
92 #define CONFIG_CMDLINE_EDITING
94 /* allow to overwrite serial and ethaddr */
95 #define CONFIG_ENV_OVERWRITE
97 #define CONFIG_BAUDRATE 115200
99 /***********************************************************
101 ***********************************************************/
102 #include <config_cmd_default.h>
104 #define CONFIG_CMD_CACHE
105 #define CONFIG_CMD_REGINFO
106 #define CONFIG_CMD_LOADS
107 #define CONFIG_CMD_LOADB
108 #define CONFIG_CMD_SAVEENV
109 #define CONFIG_CMD_NAND
110 #if defined(CONFIG_BOOT_ONENAND)
111 #define CONFIG_CMD_ONENAND
113 #define CONFIG_CMD_PING
114 #define CONFIG_CMD_ELF
115 #define CONFIG_CMD_FAT
116 #define CONFIG_CMD_EXT2
118 #define CONFIG_BOOTDELAY 3
120 #define CONFIG_ZERO_BOOTDELAY_CHECK
122 #if (CONFIG_COMMANDS & CONFIG_CMD_KGDB)
123 #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */
124 #define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */
128 * Miscellaneous configurable options
130 #define CONFIG_SYS_LONGHELP /* undef to save memory */
131 #define CONFIG_SYS_PROMPT "SMDK6400 # " /* Monitor Command Prompt */
132 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
133 #define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */
134 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
135 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
137 #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE /* memtest works on */
138 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x7e00000) /* 126MB in DRAM */
140 #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE /* default load address */
142 #define CONFIG_SYS_HZ 1000
144 /* valid baudrates */
145 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
147 /*-----------------------------------------------------------------------
150 * The stack sizes are set up in start.S using the settings below
152 #define CONFIG_STACKSIZE 0x40000 /* regular stack 256KB */
154 /**********************************
155 Support Clock Settings
156 **********************************
158 ----------------------------------
163 **********************************/
165 /*#define CONFIG_CLK_667_133_66*/
166 #define CONFIG_CLK_533_133_66
168 #define CONFIG_CLK_400_100_50
169 #define CONFIG_CLK_400_133_66
170 #define CONFIG_SYNC_MODE
173 /* SMDK6400 has 2 banks of DRAM, but we use only one in U-Boot */
174 #define CONFIG_NR_DRAM_BANKS 1
175 #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE /* SDRAM Bank #1 */
176 #define PHYS_SDRAM_1_SIZE 0x08000000 /* 128 MB in Bank #1 */
178 #define CONFIG_SYS_FLASH_BASE 0x10000000
179 #define CONFIG_SYS_MONITOR_BASE 0x00000000
181 /*-----------------------------------------------------------------------
182 * FLASH and environment organization
184 #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
185 /* AM29LV160B has 35 sectors, AM29LV800B - 19 */
186 #define CONFIG_SYS_MAX_FLASH_SECT 40
188 #define CONFIG_AMD_LV800
189 #define CONFIG_SYS_FLASH_CFI 1 /* Use CFI parameters (needed?) */
190 /* Use drivers/cfi_flash.c, even though the flash is not CFI-compliant */
191 #define CONFIG_FLASH_CFI_DRIVER 1
192 #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
193 #define CONFIG_FLASH_CFI_LEGACY
194 #define CONFIG_SYS_FLASH_LEGACY_512Kx16
196 /* timeout values are in ticks */
197 #define CONFIG_SYS_FLASH_ERASE_TOUT (5 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
198 #define CONFIG_SYS_FLASH_WRITE_TOUT (5 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
200 #define CONFIG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */
203 * SMDK6400 board specific data
206 #define CONFIG_IDENT_STRING " for SMDK6400"
208 /* base address for uboot */
209 #define CONFIG_SYS_PHY_UBOOT_BASE (CONFIG_SYS_SDRAM_BASE + 0x07e00000)
210 /* total memory available to uboot */
211 #define CONFIG_SYS_UBOOT_SIZE (1024 * 1024)
213 /* Put environment copies after the end of U-Boot owned RAM */
214 #define CONFIG_NAND_ENV_DST (CONFIG_SYS_UBOOT_BASE + CONFIG_SYS_UBOOT_SIZE)
216 #ifdef CONFIG_ENABLE_MMU
217 #define CONFIG_SYS_MAPPED_RAM_BASE 0xc0000000
218 #define CONFIG_BOOTCOMMAND "nand read 0xc0018000 0x60000 0x1c0000;" \
221 #define CONFIG_SYS_MAPPED_RAM_BASE CONFIG_SYS_SDRAM_BASE
222 #define CONFIG_BOOTCOMMAND "nand read 0x50018000 0x60000 0x1c0000;" \
226 /* NAND U-Boot load and start address */
227 #define CONFIG_SYS_UBOOT_BASE (CONFIG_SYS_MAPPED_RAM_BASE + 0x07e00000)
229 #define CONFIG_ENV_OFFSET 0x0040000
231 /* NAND configuration */
232 #define CONFIG_SYS_MAX_NAND_DEVICE 1
233 #define CONFIG_SYS_NAND_BASE 0x70200010
234 #define CONFIG_SYS_S3C_NAND_HWECC
236 #define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
237 #define CONFIG_SYS_NAND_WP 1
238 #define CONFIG_SYS_NAND_YAFFS_WRITE 1 /* support yaffs write */
239 #define CONFIG_SYS_NAND_BBT_2NDPAGE 1 /* bad-block markers in 1st and 2nd pages */
241 #define CONFIG_SYS_NAND_U_BOOT_DST CONFIG_SYS_PHY_UBOOT_BASE /* NUB load-addr */
242 #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_NAND_U_BOOT_DST /* NUB start-addr */
244 #define CONFIG_SYS_NAND_U_BOOT_OFFS (4 * 1024) /* Offset to RAM U-Boot image */
245 #define CONFIG_SYS_NAND_U_BOOT_SIZE (252 * 1024) /* Size of RAM U-Boot image */
247 /* NAND chip page size */
248 #define CONFIG_SYS_NAND_PAGE_SIZE 2048
249 /* NAND chip block size */
250 #define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024)
251 /* NAND chip page per block count */
252 #define CONFIG_SYS_NAND_PAGE_COUNT 64
253 /* Location of the bad-block label */
254 #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
255 /* Extra address cycle for > 128MiB */
256 #define CONFIG_SYS_NAND_5_ADDR_CYCLE
258 /* Size of the block protected by one OOB (Spare Area in Samsung terminology) */
259 #define CONFIG_SYS_NAND_ECCSIZE CONFIG_SYS_NAND_PAGE_SIZE
260 /* Number of ECC bytes per OOB - S3C6400 calculates 4 bytes ECC in 1-bit mode */
261 #define CONFIG_SYS_NAND_ECCBYTES 4
262 /* Number of ECC-blocks per NAND page */
263 #define CONFIG_SYS_NAND_ECCSTEPS (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
264 /* Size of a single OOB region */
265 #define CONFIG_SYS_NAND_OOBSIZE 64
266 /* Number of ECC bytes per page */
267 #define CONFIG_SYS_NAND_ECCTOTAL (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
268 /* ECC byte positions */
269 #define CONFIG_SYS_NAND_ECCPOS {40, 41, 42, 43, 44, 45, 46, 47, \
270 48, 49, 50, 51, 52, 53, 54, 55, \
271 56, 57, 58, 59, 60, 61, 62, 63}
273 #define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */
275 /* Boot configuration (define only one of next 3) */
276 #define CONFIG_BOOT_NAND
277 /* None of these are currently implemented. Left from the original Samsung
278 * version for reference
279 #define CONFIG_BOOT_NOR
280 #define CONFIG_BOOT_MOVINAND
281 #define CONFIG_BOOT_ONENAND
285 #define CONFIG_NAND_S3C64XX
286 /* Unimplemented or unsupported. See comment above.
287 #define CONFIG_ONENAND
288 #define CONFIG_MOVINAND
291 /* Settings as above boot configuration */
292 #define CONFIG_ENV_IS_IN_NAND
293 #define CONFIG_BOOTARGS "console=ttySAC,115200"
295 #if !defined(CONFIG_ENABLE_MMU)
296 #define CONFIG_CMD_USB 1
297 #define CONFIG_USB_S3C64XX
298 #define CONFIG_USB_OHCI_NEW 1
299 #define CONFIG_SYS_USB_OHCI_REGS_BASE 0x74300000
300 #define CONFIG_SYS_USB_OHCI_SLOT_NAME "s3c6400"
301 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 3
302 #define CONFIG_SYS_USB_OHCI_CPU_INIT 1
304 #define CONFIG_USB_STORAGE 1
306 #define CONFIG_DOS_PARTITION 1
308 #if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_ENABLE_MMU)
309 # error "usb_ohci.c is currently broken with MMU enabled."
312 #endif /* __CONFIG_H */