Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2011 Logic Product Development <www.logicpd.com> |
| 3 | * Peter Barada <peter.barada@logicpd.com> |
| 4 | * |
| 5 | * Configuration settings for the Logic OMAP35x/DM37x SOM LV/Torpedo |
| 6 | * reference boards. |
| 7 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef __CONFIG_H |
| 12 | #define __CONFIG_H |
| 13 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 14 | /* High Level Configuration Options */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 15 | |
Adam Ford | 04c848a | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 16 | #define CONFIG_NR_DRAM_BANKS 2 /* CS1 may or may not be populated */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 17 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 18 | /* |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 19 | * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM |
| 20 | * 64 bytes before this address should be set aside for u-boot.img's |
| 21 | * header. That is 0x800FFFC0--0x80100000 should not be used for any |
| 22 | * other needs. We use this rather than the inherited defines from |
| 23 | * ti_armv7_common.h for backwards compatibility. |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 24 | */ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 25 | #define CONFIG_SYS_TEXT_BASE 0x80100000 |
| 26 | #define CONFIG_SPL_BSS_START_ADDR 0x80000000 |
| 27 | #define CONFIG_SPL_BSS_MAX_SIZE (512 << 10) /* 512 KB */ |
| 28 | #define CONFIG_SYS_SPL_MALLOC_START 0x80208000 |
| 29 | #define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 |
| 30 | |
| 31 | #include <configs/ti_omap3_common.h> |
| 32 | |
Adam Ford | d92313a | 2016-02-08 19:06:08 -0600 | [diff] [blame] | 33 | /* Override default SPL info to minimize empty space and allow BCH8 in SPL */ |
| 34 | #undef CONFIG_SPL_TEXT_BASE |
| 35 | #undef CONFIG_SPL_MAX_SIZE |
| 36 | #define CONFIG_SPL_TEXT_BASE 0x40200000 |
| 37 | #define CONFIG_SPL_MAX_SIZE (64 * 1024) |
| 38 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 39 | /* Display CPU and Board information */ |
Adam Ford | 04c848a | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 40 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 41 | #define CONFIG_DISPLAY_CPUINFO |
| 42 | #define CONFIG_DISPLAY_BOARDINFO |
| 43 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 44 | #define CONFIG_MISC_INIT_R /* misc_init_r dumps the die id */ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 45 | #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 46 | #define CONFIG_SETUP_MEMORY_TAGS |
| 47 | #define CONFIG_INITRD_TAG |
| 48 | #define CONFIG_REVISION_TAG |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 49 | #define CONFIG_CMDLINE_EDITING /* cmd line edit/history */ |
| 50 | #define CONFIG_ZERO_BOOTDELAY_CHECK /* check keypress w/no delay */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 51 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 52 | /* Hardware drivers */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 53 | |
Adam Ford | cc276de | 2016-01-22 04:40:58 -0600 | [diff] [blame] | 54 | /* GPIO banks */ |
| 55 | #define CONFIG_OMAP3_GPIO_6 /* GPIO160..191 is in GPIO bank 6 */ |
| 56 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 57 | #define CONFIG_USB_OMAP3 |
| 58 | |
| 59 | /* select serial console configuration */ |
Adam Ford | 04c848a | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 60 | #undef CONFIG_CONS_INDEX |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 61 | #define CONFIG_CONS_INDEX 1 |
| 62 | #define CONFIG_SYS_NS16550_COM1 OMAP34XX_UART1 |
| 63 | #define CONFIG_SERIAL1 1 /* UART1 on OMAP Logic boards */ |
| 64 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 65 | /* commands to include */ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 66 | #define CONFIG_CMD_NAND |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 67 | #define CONFIG_CMD_CACHE |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 68 | #define CONFIG_CMD_EXT2 |
| 69 | #define CONFIG_CMD_FAT |
| 70 | #define CONFIG_CMD_MTDPARTS |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 71 | #define CONFIG_CMD_NAND_LOCK_UNLOCK /* nand (un)lock commands */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 72 | #define CONFIG_CMD_PING |
| 73 | #define CONFIG_CMD_DHCP |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 74 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 75 | /* I2C */ |
Heiko Schocher | f53f2b8 | 2013-10-22 11:03:18 +0200 | [diff] [blame] | 76 | #define CONFIG_SYS_I2C_OMAP34XX |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 77 | #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* EEPROM AT24C64 */ |
| 78 | #define EXPANSION_EEPROM_I2C_BUS 2 /* I2C Bus for AT24C64 */ |
| 79 | #define CONFIG_OMAP3_LOGIC_USE_NEW_PRODUCT_ID |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 80 | |
Adam Ford | d76b69c | 2016-01-31 13:34:39 -0600 | [diff] [blame] | 81 | /* USB */ |
| 82 | #define CONFIG_USB_MUSB_GADGET |
| 83 | #define CONFIG_USB_MUSB_OMAP2PLUS |
| 84 | #define CONFIG_USB_MUSB_PIO_ONLY |
| 85 | #define CONFIG_USB_GADGET_DUALSPEED |
| 86 | #define CONFIG_USB_ETHER |
| 87 | #define CONFIG_USB_ETHER_RNDIS |
| 88 | #define CONFIG_USB_GADGET |
| 89 | #define CONFIG_USB_GADGET_VBUS_DRAW 0 |
| 90 | #define CONFIG_USB_GADGET_DOWNLOAD |
| 91 | #define CONFIG_G_DNL_VENDOR_NUM 0x0451 |
| 92 | #define CONFIG_G_DNL_PRODUCT_NUM 0xd022 |
| 93 | #define CONFIG_G_DNL_MANUFACTURER "TI" |
| 94 | #define CONFIG_USB_FUNCTION_FASTBOOT |
| 95 | #define CONFIG_CMD_FASTBOOT |
| 96 | #define CONFIG_ANDROID_BOOT_IMAGE |
| 97 | #define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR |
| 98 | #define CONFIG_FASTBOOT_BUF_SIZE 0x07000000 |
| 99 | #define CONFIG_SYS_CACHELINE_SIZE 64 |
| 100 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 101 | /* TWL4030 */ |
| 102 | #define CONFIG_TWL4030_PWM |
Adam Ford | d76b69c | 2016-01-31 13:34:39 -0600 | [diff] [blame] | 103 | #define CONFIG_TWL4030_USB |
Adam Ford | 04c848a | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 104 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 105 | /* Board NAND Info. */ |
| 106 | #ifdef CONFIG_NAND |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 107 | #define CONFIG_NAND_OMAP_GPMC |
Adam Ford | 04c848a | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 108 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 109 | #define CONFIG_CMD_UBI /* UBI-formated MTD partition support */ |
| 110 | #define CONFIG_CMD_UBIFS /* Read-only UBI volume operations */ |
| 111 | #define CONFIG_RBTREE /* required by CONFIG_CMD_UBI */ |
| 112 | #define CONFIG_LZO /* required by CONFIG_CMD_UBIFS */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 113 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 114 | #define CONFIG_SYS_NAND_ADDR NAND_BASE /* physical address */ |
| 115 | /* to access nand */ |
| 116 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of */ |
| 117 | /* NAND devices */ |
Stefano Babic | 0cd4118 | 2015-07-26 15:18:15 +0200 | [diff] [blame] | 118 | #define CONFIG_SYS_NAND_BUSWIDTH_16BIT |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 119 | #define CONFIG_SYS_NAND_5_ADDR_CYCLE |
| 120 | #define CONFIG_SYS_NAND_PAGE_COUNT 64 |
| 121 | #define CONFIG_SYS_NAND_PAGE_SIZE 2048 |
| 122 | #define CONFIG_SYS_NAND_OOBSIZE 64 |
| 123 | #define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) |
| 124 | #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS |
| 125 | #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, \ |
| 126 | 13, 14, 16, 17, 18, 19, 20, 21, 22, \ |
| 127 | 23, 24, 25, 26, 27, 28, 30, 31, 32, \ |
| 128 | 33, 34, 35, 36, 37, 38, 39, 40, 41, \ |
| 129 | 42, 44, 45, 46, 47, 48, 49, 50, 51, \ |
| 130 | 52, 53, 54, 55, 56} |
Adam Ford | 04c848a | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 131 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 132 | #define CONFIG_SYS_NAND_ECCSIZE 512 |
| 133 | #define CONFIG_SYS_NAND_ECCBYTES 13 |
| 134 | #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW_DETECTION_SW |
| 135 | #define CONFIG_BCH |
| 136 | #define CONFIG_SYS_NAND_MAX_OOBFREE 2 |
| 137 | #define CONFIG_SYS_NAND_MAX_ECCPOS 56 |
| 138 | #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 |
| 139 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ |
| 140 | #define CONFIG_MTD_PARTITIONS /* required for UBI partition support */ |
| 141 | #define MTDIDS_DEFAULT "nand0=omap2-nand.0" |
| 142 | #define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:512k(MLO),"\ |
| 143 | "1920k(u-boot),128k(u-boot-env),"\ |
| 144 | "4m(kernel),-(fs)" |
| 145 | #endif |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 146 | |
| 147 | /* Environment information */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 148 | |
| 149 | /* |
| 150 | * PREBOOT assumes the 4.3" display is attached. User can interrupt |
| 151 | * and modify display variable to suit their needs. |
| 152 | */ |
| 153 | #define CONFIG_PREBOOT \ |
| 154 | "echo ======================NOTICE============================;"\ |
| 155 | "echo \"The u-boot environment is not set.\";" \ |
| 156 | "echo \"If using a display a valid display varible for your panel\";" \ |
| 157 | "echo \"needs to be set.\";" \ |
| 158 | "echo \"Valid display options are:\";" \ |
| 159 | "echo \" 2 == LQ121S1DG31 TFT SVGA (12.1) Sharp\";" \ |
| 160 | "echo \" 3 == LQ036Q1DA01 TFT QVGA (3.6) Sharp w/ASIC\";" \ |
| 161 | "echo \" 5 == LQ064D343 TFT VGA (6.4) Sharp\";" \ |
| 162 | "echo \" 7 == LQ10D368 TFT VGA (10.4) Sharp\";" \ |
| 163 | "echo \" 15 == LQ043T1DG01 TFT WQVGA (4.3) Sharp (DEFAULT)\";" \ |
| 164 | "echo \" vga[-dvi or -hdmi] LCD VGA 640x480\";" \ |
| 165 | "echo \" svga[-dvi or -hdmi] LCD SVGA 800x600\";" \ |
| 166 | "echo \" xga[-dvi or -hdmi] LCD XGA 1024x768\";" \ |
| 167 | "echo \" 720p[-dvi or -hdmi] LCD 720P 1280x720\";" \ |
| 168 | "echo \"Defaulting to 4.3 LCD panel (display=15).\";" \ |
| 169 | "setenv display 15;" \ |
| 170 | "setenv preboot;" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 171 | "nand unlock;" \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 172 | "saveenv;" |
| 173 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 174 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 175 | "loadaddr=0x81000000\0" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 176 | "uimage=uImage\0" \ |
| 177 | "zimage=zImage\0" \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 178 | "mtdids=" MTDIDS_DEFAULT "\0" \ |
| 179 | "mtdparts=" MTDPARTS_DEFAULT "\0" \ |
| 180 | "mmcdev=0\0" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 181 | "mmcroot=/dev/mmcblk0p2 rw\0" \ |
| 182 | "mmcrootfstype=ext4 rootwait\0" \ |
Adam Ford | 193e9a1 | 2016-02-10 01:41:10 -0600 | [diff] [blame] | 183 | "nandroot=ubi0:rootfs rw ubi.mtd=fs noinitrd\0" \ |
| 184 | "nandrootfstype=ubifs rootwait\0" \ |
Andrew Bradford | e1c7c8a | 2012-10-01 05:06:52 +0000 | [diff] [blame] | 185 | "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 186 | "if run loadbootscript; then " \ |
| 187 | "run bootscript; " \ |
| 188 | "else " \ |
| 189 | "run defaultboot;" \ |
| 190 | "fi; " \ |
| 191 | "else run defaultboot; fi\0" \ |
| 192 | "defaultboot=run mmcramboot\0" \ |
| 193 | "consoledevice=ttyO0\0" \ |
| 194 | "display=15\0" \ |
| 195 | "setconsole=setenv console ${consoledevice},${baudrate}n8\0" \ |
| 196 | "dump_bootargs=echo 'Bootargs: '; echo $bootargs\0" \ |
| 197 | "rotation=0\0" \ |
| 198 | "vrfb_arg=if itest ${rotation} -ne 0; then " \ |
| 199 | "setenv bootargs ${bootargs} omapfb.vrfb=y " \ |
| 200 | "omapfb.rotate=${rotation}; " \ |
| 201 | "fi\0" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 202 | "optargs=ignore_loglevel early_printk no_console_suspend\0" \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 203 | "addmtdparts=setenv bootargs ${bootargs} ${mtdparts}\0" \ |
| 204 | "common_bootargs=setenv bootargs ${bootargs} display=${display} " \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 205 | "${optargs};" \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 206 | "run addmtdparts; " \ |
| 207 | "run vrfb_arg\0" \ |
| 208 | "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ |
| 209 | "bootscript=echo 'Running bootscript from mmc ...'; " \ |
| 210 | "source ${loadaddr}\0" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 211 | "loaduimage=mmc rescan; " \ |
| 212 | "fatload mmc ${mmcdev} ${loadaddr} ${uimage}\0" \ |
| 213 | "loadzimage=mmc rescan; " \ |
| 214 | "fatload mmc ${mmcdev} ${loadaddr} ${zimage}\0" \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 215 | "ramdisksize=64000\0" \ |
| 216 | "ramdiskaddr=0x82000000\0" \ |
| 217 | "ramdiskimage=rootfs.ext2.gz.uboot\0" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 218 | "loadramdisk=mmc rescan; " \ |
| 219 | "fatload mmc ${mmcdev} ${ramdiskaddr} ${ramdiskimage}\0" \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 220 | "ramargs=run setconsole; setenv bootargs console=${console} " \ |
| 221 | "root=/dev/ram rw ramdisk_size=${ramdisksize}\0" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 222 | "mmcargs=run setconsole; setenv bootargs console=${console} " \ |
| 223 | "${optargs} " \ |
| 224 | "root=${mmcroot} " \ |
| 225 | "rootfstype=${mmcrootfstype}\0" \ |
Adam Ford | 193e9a1 | 2016-02-10 01:41:10 -0600 | [diff] [blame] | 226 | "nandargs=run setconsole; setenv bootargs console=${console} " \ |
| 227 | "${optargs} " \ |
| 228 | "root=${nandroot} " \ |
| 229 | "rootfstype=${nandrootfstype}\0" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 230 | "fdtaddr=0x86000000\0" \ |
| 231 | "loadfdtimage=mmc rescan; " \ |
| 232 | "fatload mmc ${mmcdev} ${fdtaddr} ${fdtimage}\0" \ |
| 233 | "mmcbootz=echo Booting with DT from mmc${mmcdev} ...; " \ |
| 234 | "run mmcargs; " \ |
| 235 | "run common_bootargs; " \ |
| 236 | "run dump_bootargs; " \ |
| 237 | "run loadzimage; " \ |
| 238 | "run loadfdtimage; " \ |
| 239 | "bootz ${loadaddr} - ${fdtaddr}\0" \ |
| 240 | "mmcramboot=echo 'Booting uImage kernel from mmc w/ramdisk...'; " \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 241 | "run ramargs; " \ |
| 242 | "run common_bootargs; " \ |
| 243 | "run dump_bootargs; " \ |
| 244 | "run loaduimage; " \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 245 | "run loadramdisk; " \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 246 | "bootm ${loadaddr} ${ramdiskaddr}\0" \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 247 | "mmcrambootz=echo 'Booting zImage kernel from mmc w/ramdisk...'; " \ |
| 248 | "run ramargs; " \ |
| 249 | "run common_bootargs; " \ |
| 250 | "run dump_bootargs; " \ |
| 251 | "run loadzimage; " \ |
| 252 | "run loadramdisk; " \ |
| 253 | "run loadfdtimage; " \ |
| 254 | "bootz ${loadaddr} ${ramdiskaddr} ${fdtaddr}\0; " \ |
| 255 | "tftpboot=echo 'Booting kernel/ramdisk rootfs from tftp...'; " \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 256 | "run ramargs; " \ |
| 257 | "run common_bootargs; " \ |
| 258 | "run dump_bootargs; " \ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 259 | "tftpboot ${loadaddr} ${uimage}; " \ |
| 260 | "tftpboot ${ramdiskaddr} ${ramdiskimage}; " \ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 261 | "bootm ${loadaddr} ${ramdiskaddr}\0" |
| 262 | |
| 263 | #define CONFIG_BOOTCOMMAND \ |
| 264 | "run autoboot" |
| 265 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 266 | /* Miscellaneous configurable options */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 267 | #define CONFIG_AUTO_COMPLETE |
Adam Ford | 04c848a | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 268 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 269 | /* memtest works on */ |
| 270 | #define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0) |
| 271 | #define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \ |
| 272 | 0x01F00000) /* 31MB */ |
| 273 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 274 | /* FLASH and environment organization */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 275 | |
| 276 | /* **** PISMO SUPPORT *** */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 277 | #if defined(CONFIG_CMD_NAND) |
pekon gupta | 0a9ec45 | 2014-07-18 17:59:41 +0530 | [diff] [blame] | 278 | #define CONFIG_SYS_FLASH_BASE NAND_BASE |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 279 | #elif defined(CONFIG_CMD_ONENAND) |
pekon gupta | 0a9ec45 | 2014-07-18 17:59:41 +0530 | [diff] [blame] | 280 | #define CONFIG_SYS_FLASH_BASE ONENAND_MAP |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 281 | #endif |
| 282 | |
| 283 | /* Monitor at start of flash */ |
| 284 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE |
| 285 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 286 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 287 | #define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */ |
| 288 | #define ONENAND_ENV_OFFSET 0x260000 /* environment starts here */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 289 | #define SMNAND_ENV_OFFSET 0x260000 /* environment starts here */ |
| 290 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 291 | #define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */ |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 292 | #define CONFIG_ENV_OFFSET SMNAND_ENV_OFFSET |
| 293 | #define CONFIG_ENV_ADDR SMNAND_ENV_OFFSET |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 294 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 295 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 296 | /* SMSC922x Ethernet */ |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 297 | #if defined(CONFIG_CMD_NET) |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 298 | #define CONFIG_SMC911X |
Adam Ford | 5a175cc | 2016-01-31 17:13:33 -0600 | [diff] [blame] | 299 | #define CONFIG_SMC911X_32_BIT |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 300 | #define CONFIG_SMC911X_BASE 0x08000000 |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 301 | #endif /* (CONFIG_CMD_NET) */ |
| 302 | |
Adam Ford | 5326c29 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 303 | /* Defines for SPL */ |
| 304 | |
| 305 | #define CONFIG_SPL_OMAP3_ID_NAND |
| 306 | |
| 307 | /* NAND: SPL falcon mode configs */ |
| 308 | #ifdef CONFIG_SPL_OS_BOOT |
| 309 | #define CONFIG_CMD_SPL_NAND_OFS 0x240000 |
| 310 | #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000 |
| 311 | #define CONFIG_CMD_SPL_WRITE_SIZE 0x2000 |
| 312 | #endif |
| 313 | |
Peter Barada | e5b77e6 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 314 | #endif /* __CONFIG_H */ |