4 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation version 2.
10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 * kind, whether express or implied; without even the implied warranty
12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef __CONFIG_BALTOS_H
17 #define __CONFIG_BALTOS_H
19 #include <linux/sizes.h>
20 #include <configs/ti_am335x_common.h>
23 #define V_OSCK 24000000 /* Clock output from T2 */
24 #define V_SCLK (V_OSCK)
27 #define CONFIG_SYS_BOOTM_LEN SZ_64M
29 #ifdef CONFIG_MTD_RAW_NAND
32 "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
33 "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
34 "nandargs=setenv bootargs console=${console} " \
38 "rootfstype=${nandrootfstype}\0" \
39 "nandroot=ubi0:rootfs rw ubi.mtd=5\0" \
40 "nandrootfstype=ubifs rootwait=1\0" \
41 "nandboot=echo Booting from nand ...; " \
43 "setenv loadaddr 0x84000000; " \
45 "ubifsmount ubi0:kernel; " \
46 "ubifsload $loadaddr kernel-fit.itb;" \
48 "bootm ${loadaddr}#conf${board_name}; " \
49 "if test $? -ne 0; then echo Using default FIT config; " \
50 "bootm ${loadaddr}; fi;\0"
55 #ifndef CONFIG_SPL_BUILD
56 #define CONFIG_EXTRA_ENV_SETTINGS \
57 DEFAULT_LINUX_BOOT_ENV \
62 "fdtfile=undefined\0" \
63 "console=ttyO0,115200n8\0" \
65 "uuid_disk=${uuid_gpt_disk};" \
66 "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \
69 "mmcroot=/dev/mmcblk0p2 ro\0" \
70 "usbroot=/dev/sda2 ro\0" \
71 "mmcrootfstype=ext4 rootwait\0" \
72 "usbrootfstype=ext4 rootwait\0" \
73 "rootpath=/export/rootfs\0" \
75 "static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \
77 "ramroot=/dev/ram0 rw\0" \
78 "ramrootfstype=ext2\0" \
79 "mmcargs=setenv bootargs console=${console} " \
83 "rootfstype=${mmcrootfstype}\0" \
84 "usbargs=setenv bootargs console=${console} " \
88 "rootfstype=${usbrootfstype}\0" \
89 "spiroot=/dev/mtdblock4 rw\0" \
90 "spirootfstype=jffs2\0" \
91 "spisrcaddr=0xe0000\0" \
92 "spiimgsize=0x362000\0" \
94 "spiargs=setenv bootargs console=${console} " \
97 "rootfstype=${spirootfstype}\0" \
98 "netargs=setenv bootargs console=${console} " \
101 "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
103 "bootenv=uEnv.txt\0" \
104 "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
105 "usbloadbootenv=load usb 0:1 ${loadaddr} ${bootenv}\0" \
106 "importbootenv=echo Importing environment from mmc ...; " \
107 "env import -t $loadaddr $filesize\0" \
108 "usbimportbootenv=echo Importing environment from USB ...; " \
109 "env import -t $loadaddr $filesize\0" \
110 "ramargs=setenv bootargs console=${console} " \
113 "rootfstype=${ramrootfstype}\0" \
114 "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
115 "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
116 "usbloadimage=load usb 0:1 ${loadaddr} kernel-fit.itb\0" \
117 "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
118 "usbloados=run usbargs; " \
119 "bootm ${loadaddr}#conf${board_name}; " \
120 "if test $? -ne 0; then " \
121 "echo Using default FIT configuration; " \
122 "bootm ${loadaddr}; " \
124 "mmcloados=run mmcargs; " \
125 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
126 "if run loadfdt; then " \
127 "bootz ${loadaddr} - ${fdtaddr}; " \
129 "if test ${boot_fdt} = try; then " \
132 "echo WARN: Cannot load the DT; " \
138 "usbboot=usb reset; " \
139 "if usb storage; then " \
140 "echo USB drive found;" \
141 "if run usbloadbootenv; then " \
142 "echo Loaded environment from ${bootenv};" \
143 "run usbimportbootenv;" \
145 "if test -n $uenvcmd; then " \
146 "echo Running uenvcmd ...;" \
149 "if run usbloadimage; then " \
153 "mmcboot=mmc dev ${mmcdev}; " \
154 "if mmc rescan; then " \
155 "echo SD/MMC found on device ${mmcdev};" \
156 "if run loadbootenv; then " \
157 "echo Loaded environment from ${bootenv};" \
158 "run importbootenv;" \
160 "if test -n $uenvcmd; then " \
161 "echo Running uenvcmd ...;" \
164 "if run loadimage; then " \
168 "spiboot=echo Booting from spi ...; " \
170 "sf probe ${spibusno}:0; " \
171 "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \
172 "bootz ${loadaddr}\0" \
173 "netboot=echo Booting from network ...; " \
174 "setenv autoload no; " \
176 "tftp ${loadaddr} ${bootfile}; " \
177 "tftp ${fdtaddr} ${fdtfile}; " \
179 "bootz ${loadaddr} - ${fdtaddr}\0" \
180 "ramboot=echo Booting from ramdisk ...; " \
182 "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
183 "findfdt=setenv fdtfile am335x-baltos.dtb\0" \
188 /* NS16550 Configuration */
189 #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has UART0 */
190 #define CONFIG_SYS_NS16550_COM2 0x48022000 /* UART1 */
191 #define CONFIG_SYS_NS16550_COM3 0x48024000 /* UART2 */
192 #define CONFIG_SYS_NS16550_COM4 0x481a6000 /* UART3 */
193 #define CONFIG_SYS_NS16550_COM5 0x481a8000 /* UART4 */
194 #define CONFIG_SYS_NS16550_COM6 0x481aa000 /* UART5 */
197 #define CONFIG_POWER_TPS65910
200 #ifndef CONFIG_NOR_BOOT
202 #ifdef CONFIG_MTD_RAW_NAND
203 #define CONFIG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \
204 10, 11, 12, 13, 14, 15, 16, 17, \
205 18, 19, 20, 21, 22, 23, 24, 25, \
206 26, 27, 28, 29, 30, 31, 32, 33, \
207 34, 35, 36, 37, 38, 39, 40, 41, \
208 42, 43, 44, 45, 46, 47, 48, 49, \
209 50, 51, 52, 53, 54, 55, 56, 57, }
211 #define CONFIG_SYS_NAND_ECCSIZE 512
212 #define CONFIG_SYS_NAND_ECCBYTES 14
213 #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
218 #ifdef CONFIG_MTD_RAW_NAND
219 #define GPMC_NAND_ECC_LP_x8_LAYOUT 1
222 #endif /* ! __CONFIG_BALTOS_H */