1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2011 Logic Product Development <www.logicpd.com>
4 * Peter Barada <peter.barada@logicpd.com>
6 * Configuration settings for the Logic OMAP35x/DM37x SOM LV/Torpedo
13 /* High Level Configuration Options */
15 #include <configs/ti_omap3_common.h>
17 /* Board NAND Info. */
18 #ifdef CONFIG_MTD_RAW_NAND
20 #define CFG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, \
21 13, 14, 16, 17, 18, 19, 20, 21, 22, \
22 23, 24, 25, 26, 27, 28, 30, 31, 32, \
23 33, 34, 35, 36, 37, 38, 39, 40, 41, \
24 42, 44, 45, 46, 47, 48, 49, 50, 51, \
27 #define CFG_SYS_NAND_ECCSIZE 512
28 #define CFG_SYS_NAND_ECCBYTES 13
31 /* Environment information */
33 #define CONFIG_EXTRA_ENV_SETTINGS \
34 DEFAULT_LINUX_BOOT_ENV \
36 "finduuid=part uuid mmc ${mmcdev}:2 uuid\0" \
37 "mmcrootfstype=ext4 rootwait\0" \
38 "nandroot=ubi0:rootfs rw ubi.mtd=fs noinitrd\0" \
39 "nandrootfstype=ubifs rootwait\0" \
40 "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
41 "if run loadbootscript; then " \
46 "else run defaultboot; fi\0" \
47 "defaultboot=run mmcramboot\0" \
48 "consoledevice=ttyS0\0" \
49 "setconsole=setenv console ${consoledevice},${baudrate}n8\0" \
50 "dump_bootargs=echo 'Bootargs: '; echo $bootargs\0" \
52 "vrfb_arg=if itest ${rotation} -ne 0; then " \
53 "setenv bootargs ${bootargs} omapfb.vrfb=y " \
54 "omapfb.rotate=${rotation}; " \
56 "optargs=ignore_loglevel early_printk no_console_suspend\0" \
57 "common_bootargs=run setconsole; setenv bootargs " \
59 "console=${console} " \
63 "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
64 "bootscript=echo 'Running bootscript from mmc ...'; " \
65 "source ${loadaddr}\0" \
66 "loadimage=mmc rescan; " \
67 "load mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \
68 "ramdisksize=64000\0" \
69 "ramdiskimage=rootfs.ext2.gz.uboot\0" \
70 "loadramdisk=mmc rescan; " \
71 "load mmc ${mmcdev} ${rdaddr} ${ramdiskimage}\0" \
72 "ramargs=setenv bootargs "\
73 "root=/dev/ram rw ramdisk_size=${ramdisksize}\0" \
74 "mmcargs=setenv bootargs "\
75 "root=PARTUUID=${uuid} " \
76 "rootfstype=${mmcrootfstype} rw\0" \
77 "nandargs=setenv bootargs "\
79 "rootfstype=${nandrootfstype}\0" \
80 "nfsargs=setenv serverip ${tftpserver}; " \
81 "setenv bootargs root=/dev/nfs " \
82 "nfsroot=${nfsrootpath} " \
83 "ip=${ipaddr}:${tftpserver}:${gatewayip}:${netmask}::eth0:off\0" \
84 "nfsrootpath=/opt/nfs-exports/omap\0" \
85 "fdtimage=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
86 "loadfdt=mmc rescan; " \
87 "load mmc ${mmcdev} ${fdtaddr} ${fdtimage}\0" \
88 "mmcbootcommon=echo Booting with DT from mmc${mmcdev} ...; " \
91 "run common_bootargs; " \
92 "run dump_bootargs; " \
95 "mmcbootz=setenv bootfile zImage; " \
96 "run mmcbootcommon; "\
97 "bootz ${loadaddr} - ${fdtaddr}\0" \
98 "mmcboot=setenv bootfile uImage; "\
99 "run mmcbootcommon; "\
100 "bootm ${loadaddr} - ${fdtaddr}\0" \
101 "mmcrambootcommon=echo 'Booting kernel from MMC w/ramdisk...'; " \
103 "run common_bootargs; " \
104 "run dump_bootargs; " \
107 "run loadramdisk\0" \
108 "mmcramboot=setenv bootfile uImage; " \
109 "run mmcrambootcommon; " \
110 "bootm ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
111 "mmcrambootz=setenv bootfile zImage; " \
112 "run mmcrambootcommon; " \
113 "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
114 "tftpboot=echo 'Booting kernel/ramdisk rootfs from tftp...'; " \
116 "run common_bootargs; " \
117 "run dump_bootargs; " \
118 "tftpboot ${loadaddr} ${zimage}; " \
119 "tftpboot ${rdaddr} ${ramdiskimage}; " \
120 "bootm ${loadaddr} ${rdaddr}\0" \
121 "tftpbootz=echo 'Booting kernel NFS rootfs...'; " \
124 "run common_bootargs;" \
125 "run dump_bootargs;" \
126 "tftpboot $loadaddr zImage;" \
127 "bootz $loadaddr\0" \
128 "nandbootcommon=echo 'Booting kernel from NAND...';" \
130 "run common_bootargs;" \
131 "run dump_bootargs;" \
132 "nand read ${loadaddr} kernel;" \
133 "nand read ${fdtaddr} spl-os;\0" \
134 "nandbootz=run nandbootcommon; "\
135 "bootz ${loadaddr} - ${fdtaddr}\0"\
136 "nandboot=run nandbootcommon; "\
137 "bootm ${loadaddr} - ${fdtaddr}\0"\
139 /* Miscellaneous configurable options */
141 /* memtest works on */
143 /* FLASH and environment organization */
145 /* **** PISMO SUPPORT *** */
146 #if defined(CONFIG_CMD_NAND)
147 #define CFG_SYS_FLASH_BASE 0x10000000
150 #define CFG_SYS_FLASH_SIZE 0x4000000
152 #endif /* __CONFIG_H */