Convert CONFIG_NET_RETRY_COUNT to Kconfig
[platform/kernel/u-boot.git] / include / configs / omap3_logic.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2011 Logic Product Development <www.logicpd.com>
4  *      Peter Barada <peter.barada@logicpd.com>
5  *
6  * Configuration settings for the Logic OMAP35x/DM37x SOM LV/Torpedo
7  * reference boards.
8  */
9
10 #ifndef __CONFIG_H
11 #define __CONFIG_H
12
13 /* High Level Configuration Options */
14
15 #include <configs/ti_omap3_common.h>
16
17 /* Board NAND Info. */
18 #ifdef CONFIG_MTD_RAW_NAND
19 #define CONFIG_SYS_MAX_NAND_DEVICE      1         /* Max number of */
20                                                   /* NAND devices */
21 #define CONFIG_SYS_NAND_ECCPOS          {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, \
22                                          13, 14, 16, 17, 18, 19, 20, 21, 22, \
23                                          23, 24, 25, 26, 27, 28, 30, 31, 32, \
24                                          33, 34, 35, 36, 37, 38, 39, 40, 41, \
25                                          42, 44, 45, 46, 47, 48, 49, 50, 51, \
26                                          52, 53, 54, 55, 56}
27
28 #define CONFIG_SYS_NAND_ECCSIZE         512
29 #define CONFIG_SYS_NAND_ECCBYTES        13
30 #define CONFIG_SYS_NAND_MAX_OOBFREE     2
31 #define CONFIG_SYS_NAND_MAX_ECCPOS      56
32 #endif
33
34 /* Environment information */
35
36 #define CONFIG_EXTRA_ENV_SETTINGS \
37         DEFAULT_LINUX_BOOT_ENV \
38         "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"    \
39         "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
40         "mmcdev=0\0" \
41         "finduuid=part uuid mmc ${mmcdev}:2 uuid\0" \
42         "mmcrootfstype=ext4 rootwait\0" \
43         "nandroot=ubi0:rootfs rw ubi.mtd=fs noinitrd\0" \
44         "nandrootfstype=ubifs rootwait\0" \
45         "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
46                         "if run loadbootscript; then " \
47                                 "run bootscript; " \
48                         "else " \
49                                 "run defaultboot;" \
50                         "fi; " \
51                 "else run defaultboot; fi\0" \
52         "defaultboot=run mmcramboot\0" \
53         "consoledevice=ttyS0\0" \
54         "setconsole=setenv console ${consoledevice},${baudrate}n8\0" \
55         "dump_bootargs=echo 'Bootargs: '; echo $bootargs\0" \
56         "rotation=0\0" \
57         "vrfb_arg=if itest ${rotation} -ne 0; then " \
58                 "setenv bootargs ${bootargs} omapfb.vrfb=y " \
59                 "omapfb.rotate=${rotation}; " \
60                 "fi\0" \
61         "optargs=ignore_loglevel early_printk no_console_suspend\0" \
62         "common_bootargs=run setconsole; setenv bootargs " \
63                 "${bootargs} "\
64                 "console=${console} " \
65                 "${mtdparts} "\
66                 "${optargs}; " \
67                 "run vrfb_arg\0" \
68         "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
69         "bootscript=echo 'Running bootscript from mmc ...'; " \
70                 "source ${loadaddr}\0" \
71         "loadimage=mmc rescan; " \
72                 "load mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \
73         "ramdisksize=64000\0" \
74         "ramdiskimage=rootfs.ext2.gz.uboot\0" \
75         "loadramdisk=mmc rescan; " \
76                 "load mmc ${mmcdev} ${rdaddr} ${ramdiskimage}\0" \
77         "ramargs=setenv bootargs "\
78                 "root=/dev/ram rw ramdisk_size=${ramdisksize}\0" \
79         "mmcargs=setenv bootargs "\
80                 "root=PARTUUID=${uuid} " \
81                 "rootfstype=${mmcrootfstype} rw\0" \
82         "nandargs=setenv bootargs "\
83                 "root=${nandroot} " \
84                 "rootfstype=${nandrootfstype}\0" \
85         "nfsargs=setenv serverip ${tftpserver}; " \
86                 "setenv bootargs root=/dev/nfs " \
87                 "nfsroot=${nfsrootpath} " \
88                 "ip=${ipaddr}:${tftpserver}:${gatewayip}:${netmask}::eth0:off\0" \
89         "nfsrootpath=/opt/nfs-exports/omap\0" \
90         "autoload=no\0" \
91         "fdtimage=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
92         "loadfdt=mmc rescan; " \
93                 "load mmc ${mmcdev} ${fdtaddr} ${fdtimage}\0" \
94         "mmcbootcommon=echo Booting with DT from mmc${mmcdev} ...; " \
95                 "run finduuid; "\
96                 "run mmcargs; " \
97                 "run common_bootargs; " \
98                 "run dump_bootargs; " \
99                 "run loadimage; " \
100                 "run loadfdt;\0 " \
101         "mmcbootz=setenv bootfile zImage; " \
102                 "run mmcbootcommon; "\
103                 "bootz ${loadaddr} - ${fdtaddr}\0" \
104         "mmcboot=setenv bootfile uImage; "\
105                 "run mmcbootcommon; "\
106                 "bootm ${loadaddr} - ${fdtaddr}\0" \
107         "mmcrambootcommon=echo 'Booting kernel from MMC w/ramdisk...'; " \
108                 "run ramargs; " \
109                 "run common_bootargs; " \
110                 "run dump_bootargs; " \
111                 "run loadimage; " \
112                 "run loadfdt; " \
113                 "run loadramdisk\0" \
114         "mmcramboot=setenv bootfile uImage; " \
115                 "run mmcrambootcommon; " \
116                 "bootm ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
117         "mmcrambootz=setenv bootfile zImage; " \
118                 "run mmcrambootcommon; " \
119                 "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
120         "tftpboot=echo 'Booting kernel/ramdisk rootfs from tftp...'; " \
121                 "run ramargs; " \
122                 "run common_bootargs; " \
123                 "run dump_bootargs; " \
124                 "tftpboot ${loadaddr} ${zimage}; " \
125                 "tftpboot ${rdaddr} ${ramdiskimage}; " \
126                 "bootm ${loadaddr} ${rdaddr}\0" \
127         "tftpbootz=echo 'Booting kernel NFS rootfs...'; " \
128                 "dhcp;" \
129                 "run nfsargs;" \
130                 "run common_bootargs;" \
131                 "run dump_bootargs;" \
132                 "tftpboot $loadaddr zImage;" \
133                 "bootz $loadaddr\0" \
134         "nandbootcommon=echo 'Booting kernel from NAND...';" \
135                 "run nandargs;" \
136                 "run common_bootargs;" \
137                 "run dump_bootargs;" \
138                 "nand read ${loadaddr} kernel;" \
139                 "nand read ${fdtaddr} spl-os;\0" \
140         "nandbootz=run nandbootcommon; "\
141                 "bootz ${loadaddr} - ${fdtaddr}\0"\
142         "nandboot=run nandbootcommon; "\
143                 "bootm ${loadaddr} - ${fdtaddr}\0"\
144
145 /* Miscellaneous configurable options */
146
147 /* memtest works on */
148
149 /* FLASH and environment organization */
150
151 /* **** PISMO SUPPORT *** */
152 #if defined(CONFIG_CMD_NAND)
153 #define CONFIG_SYS_FLASH_BASE           0x10000000
154 #endif
155
156 #define CONFIG_SYS_MAX_FLASH_SECT       256
157 #define CONFIG_SYS_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
158 #define CONFIG_SYS_FLASH_SIZE           0x4000000
159
160 /* Monitor at start of flash */
161 #define CONFIG_SYS_MONITOR_BASE         CONFIG_SYS_FLASH_BASE
162
163 #define CONFIG_SYS_ENV_SECT_SIZE        (128 << 10)     /* 128 KiB */
164
165 /* Defines for SPL */
166
167 /* NAND: SPL falcon mode configs */
168 #ifdef CONFIG_SPL_OS_BOOT
169 #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000
170 #endif
171
172 #endif /* __CONFIG_H */