1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2006-2008
5 * Richard Woodruff <r-woodruff2@ti.com>
6 * Syed Mohammed Khasim <x0khasim@ti.com>
9 * Frederik Kriewitz <frederik@kriewitz.eu>
11 * Configuration settings for the DevKit8000 board.
17 /* High Level Configuration Options */
20 * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM
21 * 64 bytes before this address should be set aside for u-boot.img's
22 * header. That is 0x800FFFC0--0x80100000 should not be used for any
26 #define CONFIG_SPL_BSS_START_ADDR 0x80000500 /* leave space for bootargs*/
28 #define CONFIG_SYS_SPL_MALLOC_START 0x80208000
29 #define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 /* 1 MB */
31 /* Physical Memory Map */
33 #include <configs/ti_omap3_common.h>
35 /* Hardware drivers */
37 #define CONFIG_DM9000_BASE 0x2c000000
38 #define DM9000_IO CONFIG_DM9000_BASE
39 #define DM9000_DATA (CONFIG_DM9000_BASE + 0x400)
40 #define CONFIG_DM9000_USE_16BIT 1
41 #define CONFIG_DM9000_NO_SROM 1
42 #undef CONFIG_DM9000_DEBUG
46 /* BOOTP/DHCP options */
48 /* Environment information */
49 #define CONFIG_EXTRA_ENV_SETTINGS \
50 "loadaddr=0x82000000\0" \
51 "console=ttyO2,115200n8\0" \
54 "dvimode=1024x768MR-16@60\0" \
55 "defaultdisplay=dvi\0" \
56 "nfsopts=hard,tcp,rsize=65536,wsize=65536\0" \
59 "setenv bootargs console=${console} " \
61 "omapfb.mode=dvi:${dvimode} " \
62 "omapdss.def_disp=${defaultdisplay}\0" \
65 "setenv bootargs ${bootargs} " \
66 "root=/dev/mmcblk0p2 " \
71 "setenv bootargs ${bootargs} " \
72 "omapfb.mode=dvi:${dvimode} " \
73 "omapdss.def_disp=${defaultdisplay} " \
74 "root=/dev/mtdblock4 " \
79 "setenv bootargs ${bootargs} " \
81 "nfsroot=${serverip}:${rootpath},${nfsopts} " \
82 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off " \
85 "dnsip2=${dnsip2}\0" \
86 "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
87 "bootscript=echo Running bootscript from mmc ...; " \
88 "source ${loadaddr}\0" \
89 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
90 "eraseenv=nand unlock 0x260000 0x20000; nand erase 0x260000 0x20000\0" \
91 "mmcboot=echo Booting from mmc ...; " \
93 "bootm ${loadaddr}\0" \
94 "nandboot=echo Booting from nand ...; " \
96 "nand read ${loadaddr} 280000 400000; " \
97 "bootm ${loadaddr}\0" \
98 "netboot=echo Booting from network ...; " \
99 "dhcp ${loadaddr}; " \
101 "bootm ${loadaddr}\0" \
102 "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
103 "if run loadbootscript; then " \
106 "if run loaduimage; then " \
108 "else run nandboot; " \
111 "else run nandboot; fi\0"
113 /* Defines for SPL */
115 /* NAND boot config */
116 #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
119 #define CONFIG_SYS_NAND_ECCSIZE 512
120 #define CONFIG_SYS_NAND_ECCBYTES 3
122 #define CONFIG_SYS_NAND_U_BOOT_SIZE 0x200000
124 /* SPL OS boot options */
125 #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
127 #undef CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR
128 #undef CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS
129 #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x8 /* address 0x1000 */
130 #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS 8 /* 4KB */
132 #undef CONFIG_SYS_SPL_ARGS_ADDR
133 #define CONFIG_SYS_SPL_ARGS_ADDR (PHYS_SDRAM_1 + 0x100)
135 #endif /* __CONFIG_H */