Peter Barada | 86887f8 | 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 | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef __CONFIG_H |
| 12 | #define __CONFIG_H |
| 13 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 14 | /* High Level Configuration Options */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 15 | |
Adam Ford | 7b77b1f | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 16 | #define CONFIG_NR_DRAM_BANKS 2 /* CS1 may or may not be populated */ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 17 | |
| 18 | /* |
| 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. |
| 24 | */ |
| 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 |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 30 | |
Adam Ford | 7b77b1f | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 31 | #include <configs/ti_omap3_common.h> |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 32 | |
Tom Rini | fa2f81b | 2016-08-26 13:30:43 -0400 | [diff] [blame] | 33 | /* |
| 34 | * We are only ever GP parts and will utilize all of the "downloaded image" |
| 35 | * area in SRAM which starts at 0x40200000 and ends at 0x4020FFFF (64KB) in |
| 36 | * order to allow for BCH8 to fit in. |
| 37 | */ |
Adam Ford | f92dfc8 | 2016-02-08 19:06:08 -0600 | [diff] [blame] | 38 | #undef CONFIG_SPL_TEXT_BASE |
Tom Rini | fa2f81b | 2016-08-26 13:30:43 -0400 | [diff] [blame] | 39 | #define CONFIG_SPL_TEXT_BASE 0x40200000 |
Adam Ford | f92dfc8 | 2016-02-08 19:06:08 -0600 | [diff] [blame] | 40 | |
Adam Ford | 26ef7a2 | 2016-02-17 21:49:49 -0600 | [diff] [blame] | 41 | #define CONFIG_BOARD_LATE_INIT |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 42 | #define CONFIG_MISC_INIT_R /* misc_init_r dumps the die id */ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 43 | #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 44 | #define CONFIG_SETUP_MEMORY_TAGS |
| 45 | #define CONFIG_INITRD_TAG |
| 46 | #define CONFIG_REVISION_TAG |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 47 | #define CONFIG_CMDLINE_EDITING /* cmd line edit/history */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 48 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 49 | /* Hardware drivers */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 50 | |
Adam Ford | b99353b | 2016-01-22 04:40:58 -0600 | [diff] [blame] | 51 | /* GPIO banks */ |
| 52 | #define CONFIG_OMAP3_GPIO_6 /* GPIO160..191 is in GPIO bank 6 */ |
| 53 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 54 | #define CONFIG_USB_OMAP3 |
| 55 | |
| 56 | /* select serial console configuration */ |
Adam Ford | 7b77b1f | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 57 | #undef CONFIG_CONS_INDEX |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 58 | #define CONFIG_CONS_INDEX 1 |
| 59 | #define CONFIG_SYS_NS16550_COM1 OMAP34XX_UART1 |
| 60 | #define CONFIG_SERIAL1 1 /* UART1 on OMAP Logic boards */ |
| 61 | |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 62 | /* commands to include */ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 63 | #define CONFIG_CMD_NAND |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 64 | #define CONFIG_CMD_MTDPARTS |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 65 | #define CONFIG_CMD_NAND_LOCK_UNLOCK /* nand (un)lock commands */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 66 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 67 | /* I2C */ |
Heiko Schocher | 6789e84 | 2013-10-22 11:03:18 +0200 | [diff] [blame] | 68 | #define CONFIG_SYS_I2C_OMAP34XX |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 69 | #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* EEPROM AT24C64 */ |
| 70 | #define EXPANSION_EEPROM_I2C_BUS 2 /* I2C Bus for AT24C64 */ |
| 71 | #define CONFIG_OMAP3_LOGIC_USE_NEW_PRODUCT_ID |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 72 | |
Adam Ford | 588e41d | 2016-01-31 13:34:39 -0600 | [diff] [blame] | 73 | /* USB */ |
Adam Ford | 588e41d | 2016-01-31 13:34:39 -0600 | [diff] [blame] | 74 | #define CONFIG_USB_MUSB_OMAP2PLUS |
| 75 | #define CONFIG_USB_MUSB_PIO_ONLY |
Adam Ford | 588e41d | 2016-01-31 13:34:39 -0600 | [diff] [blame] | 76 | #define CONFIG_USB_ETHER |
| 77 | #define CONFIG_USB_ETHER_RNDIS |
Adam Ford | 588e41d | 2016-01-31 13:34:39 -0600 | [diff] [blame] | 78 | #define CONFIG_USB_FUNCTION_FASTBOOT |
| 79 | #define CONFIG_CMD_FASTBOOT |
| 80 | #define CONFIG_ANDROID_BOOT_IMAGE |
| 81 | #define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR |
| 82 | #define CONFIG_FASTBOOT_BUF_SIZE 0x07000000 |
Adam Ford | 588e41d | 2016-01-31 13:34:39 -0600 | [diff] [blame] | 83 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 84 | /* TWL4030 */ |
| 85 | #define CONFIG_TWL4030_PWM |
Adam Ford | 588e41d | 2016-01-31 13:34:39 -0600 | [diff] [blame] | 86 | #define CONFIG_TWL4030_USB |
Adam Ford | 7b77b1f | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 87 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 88 | /* Board NAND Info. */ |
| 89 | #ifdef CONFIG_NAND |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 90 | #define CONFIG_NAND_OMAP_GPMC |
Adam Ford | 7b77b1f | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 91 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 92 | #define CONFIG_CMD_UBIFS /* Read-only UBI volume operations */ |
| 93 | #define CONFIG_RBTREE /* required by CONFIG_CMD_UBI */ |
| 94 | #define CONFIG_LZO /* required by CONFIG_CMD_UBIFS */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 95 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 96 | #define CONFIG_SYS_NAND_ADDR NAND_BASE /* physical address */ |
| 97 | /* to access nand */ |
| 98 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of */ |
| 99 | /* NAND devices */ |
Stefano Babic | 55f1b39 | 2015-07-26 15:18:15 +0200 | [diff] [blame] | 100 | #define CONFIG_SYS_NAND_BUSWIDTH_16BIT |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 101 | #define CONFIG_SYS_NAND_5_ADDR_CYCLE |
| 102 | #define CONFIG_SYS_NAND_PAGE_COUNT 64 |
| 103 | #define CONFIG_SYS_NAND_PAGE_SIZE 2048 |
| 104 | #define CONFIG_SYS_NAND_OOBSIZE 64 |
| 105 | #define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) |
| 106 | #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS |
| 107 | #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, \ |
| 108 | 13, 14, 16, 17, 18, 19, 20, 21, 22, \ |
| 109 | 23, 24, 25, 26, 27, 28, 30, 31, 32, \ |
| 110 | 33, 34, 35, 36, 37, 38, 39, 40, 41, \ |
| 111 | 42, 44, 45, 46, 47, 48, 49, 50, 51, \ |
| 112 | 52, 53, 54, 55, 56} |
Adam Ford | 7b77b1f | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 113 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 114 | #define CONFIG_SYS_NAND_ECCSIZE 512 |
| 115 | #define CONFIG_SYS_NAND_ECCBYTES 13 |
| 116 | #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW_DETECTION_SW |
| 117 | #define CONFIG_BCH |
| 118 | #define CONFIG_SYS_NAND_MAX_OOBFREE 2 |
| 119 | #define CONFIG_SYS_NAND_MAX_ECCPOS 56 |
| 120 | #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 |
| 121 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ |
| 122 | #define CONFIG_MTD_PARTITIONS /* required for UBI partition support */ |
| 123 | #define MTDIDS_DEFAULT "nand0=omap2-nand.0" |
| 124 | #define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:512k(MLO),"\ |
| 125 | "1920k(u-boot),128k(u-boot-env),"\ |
| 126 | "4m(kernel),-(fs)" |
| 127 | #endif |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 128 | |
| 129 | /* Environment information */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 130 | |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 131 | #define CONFIG_PREBOOT \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 132 | "setenv preboot;" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 133 | "nand unlock;" \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 134 | "saveenv;" |
| 135 | |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 136 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 137 | "loadaddr=0x81000000\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 138 | "uimage=uImage\0" \ |
| 139 | "zimage=zImage\0" \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 140 | "mtdids=" MTDIDS_DEFAULT "\0" \ |
| 141 | "mtdparts=" MTDPARTS_DEFAULT "\0" \ |
| 142 | "mmcdev=0\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 143 | "mmcroot=/dev/mmcblk0p2 rw\0" \ |
| 144 | "mmcrootfstype=ext4 rootwait\0" \ |
Adam Ford | a094c92 | 2016-02-10 01:41:10 -0600 | [diff] [blame] | 145 | "nandroot=ubi0:rootfs rw ubi.mtd=fs noinitrd\0" \ |
| 146 | "nandrootfstype=ubifs rootwait\0" \ |
Andrew Bradford | 6696811 | 2012-10-01 05:06:52 +0000 | [diff] [blame] | 147 | "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 148 | "if run loadbootscript; then " \ |
| 149 | "run bootscript; " \ |
| 150 | "else " \ |
| 151 | "run defaultboot;" \ |
| 152 | "fi; " \ |
| 153 | "else run defaultboot; fi\0" \ |
| 154 | "defaultboot=run mmcramboot\0" \ |
| 155 | "consoledevice=ttyO0\0" \ |
| 156 | "display=15\0" \ |
| 157 | "setconsole=setenv console ${consoledevice},${baudrate}n8\0" \ |
| 158 | "dump_bootargs=echo 'Bootargs: '; echo $bootargs\0" \ |
| 159 | "rotation=0\0" \ |
| 160 | "vrfb_arg=if itest ${rotation} -ne 0; then " \ |
| 161 | "setenv bootargs ${bootargs} omapfb.vrfb=y " \ |
| 162 | "omapfb.rotate=${rotation}; " \ |
| 163 | "fi\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 164 | "optargs=ignore_loglevel early_printk no_console_suspend\0" \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 165 | "addmtdparts=setenv bootargs ${bootargs} ${mtdparts}\0" \ |
| 166 | "common_bootargs=setenv bootargs ${bootargs} display=${display} " \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 167 | "${optargs};" \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 168 | "run addmtdparts; " \ |
| 169 | "run vrfb_arg\0" \ |
| 170 | "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ |
| 171 | "bootscript=echo 'Running bootscript from mmc ...'; " \ |
| 172 | "source ${loadaddr}\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 173 | "loaduimage=mmc rescan; " \ |
| 174 | "fatload mmc ${mmcdev} ${loadaddr} ${uimage}\0" \ |
| 175 | "loadzimage=mmc rescan; " \ |
| 176 | "fatload mmc ${mmcdev} ${loadaddr} ${zimage}\0" \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 177 | "ramdisksize=64000\0" \ |
| 178 | "ramdiskaddr=0x82000000\0" \ |
| 179 | "ramdiskimage=rootfs.ext2.gz.uboot\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 180 | "loadramdisk=mmc rescan; " \ |
| 181 | "fatload mmc ${mmcdev} ${ramdiskaddr} ${ramdiskimage}\0" \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 182 | "ramargs=run setconsole; setenv bootargs console=${console} " \ |
| 183 | "root=/dev/ram rw ramdisk_size=${ramdisksize}\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 184 | "mmcargs=run setconsole; setenv bootargs console=${console} " \ |
| 185 | "${optargs} " \ |
| 186 | "root=${mmcroot} " \ |
| 187 | "rootfstype=${mmcrootfstype}\0" \ |
Adam Ford | a094c92 | 2016-02-10 01:41:10 -0600 | [diff] [blame] | 188 | "nandargs=run setconsole; setenv bootargs console=${console} " \ |
| 189 | "${optargs} " \ |
| 190 | "root=${nandroot} " \ |
| 191 | "rootfstype=${nandrootfstype}\0" \ |
Adam Ford | 760d1af | 2016-10-15 08:16:27 -0500 | [diff] [blame] | 192 | "nfsargs=run setconsole; setenv serverip ${tftpserver}; " \ |
| 193 | "setenv bootargs console=${console} root=/dev/nfs " \ |
| 194 | "nfsroot=${nfsrootpath} " \ |
| 195 | "ip=${ipaddr}:${tftpserver}:${gatewayip}:${netmask}::eth0:off\0" \ |
| 196 | "nfsrootpath=/opt/nfs-exports/omap\0" \ |
| 197 | "autoload=no\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 198 | "fdtaddr=0x86000000\0" \ |
| 199 | "loadfdtimage=mmc rescan; " \ |
| 200 | "fatload mmc ${mmcdev} ${fdtaddr} ${fdtimage}\0" \ |
| 201 | "mmcbootz=echo Booting with DT from mmc${mmcdev} ...; " \ |
| 202 | "run mmcargs; " \ |
| 203 | "run common_bootargs; " \ |
| 204 | "run dump_bootargs; " \ |
| 205 | "run loadzimage; " \ |
| 206 | "run loadfdtimage; " \ |
| 207 | "bootz ${loadaddr} - ${fdtaddr}\0" \ |
| 208 | "mmcramboot=echo 'Booting uImage kernel from mmc w/ramdisk...'; " \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 209 | "run ramargs; " \ |
| 210 | "run common_bootargs; " \ |
| 211 | "run dump_bootargs; " \ |
| 212 | "run loaduimage; " \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 213 | "run loadramdisk; " \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 214 | "bootm ${loadaddr} ${ramdiskaddr}\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 215 | "mmcrambootz=echo 'Booting zImage kernel from mmc w/ramdisk...'; " \ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 216 | "run ramargs; " \ |
| 217 | "run common_bootargs; " \ |
| 218 | "run dump_bootargs; " \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 219 | "run loadzimage; " \ |
| 220 | "run loadramdisk; " \ |
| 221 | "run loadfdtimage; " \ |
Adam Ford | 760d1af | 2016-10-15 08:16:27 -0500 | [diff] [blame] | 222 | "bootz ${loadaddr} ${ramdiskaddr} ${fdtaddr};\0" \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 223 | "tftpboot=echo 'Booting kernel/ramdisk rootfs from tftp...'; " \ |
| 224 | "run ramargs; " \ |
| 225 | "run common_bootargs; " \ |
| 226 | "run dump_bootargs; " \ |
Adam Ford | 760d1af | 2016-10-15 08:16:27 -0500 | [diff] [blame] | 227 | "tftpboot ${loadaddr} ${zimage}; " \ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 228 | "tftpboot ${ramdiskaddr} ${ramdiskimage}; " \ |
Adam Ford | 760d1af | 2016-10-15 08:16:27 -0500 | [diff] [blame] | 229 | "bootm ${loadaddr} ${ramdiskaddr}\0" \ |
| 230 | "tftpbootz=echo 'Booting kernel NFS rootfs...'; " \ |
| 231 | "dhcp;" \ |
| 232 | "run nfsargs;" \ |
| 233 | "run common_bootargs;" \ |
| 234 | "run dump_bootargs;" \ |
| 235 | "tftpboot $loadaddr zImage;" \ |
| 236 | "bootz $loadaddr\0" |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 237 | |
| 238 | #define CONFIG_BOOTCOMMAND \ |
| 239 | "run autoboot" |
| 240 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 241 | /* Miscellaneous configurable options */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 242 | #define CONFIG_AUTO_COMPLETE |
Adam Ford | 7b77b1f | 2015-09-02 09:18:20 -0500 | [diff] [blame] | 243 | |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 244 | /* memtest works on */ |
| 245 | #define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0) |
| 246 | #define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \ |
| 247 | 0x01F00000) /* 31MB */ |
| 248 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 249 | /* FLASH and environment organization */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 250 | |
| 251 | /* **** PISMO SUPPORT *** */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 252 | #if defined(CONFIG_CMD_NAND) |
pekon gupta | 222a311 | 2014-07-18 17:59:41 +0530 | [diff] [blame] | 253 | #define CONFIG_SYS_FLASH_BASE NAND_BASE |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 254 | #elif defined(CONFIG_CMD_ONENAND) |
pekon gupta | 222a311 | 2014-07-18 17:59:41 +0530 | [diff] [blame] | 255 | #define CONFIG_SYS_FLASH_BASE ONENAND_MAP |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 256 | #endif |
| 257 | |
| 258 | /* Monitor at start of flash */ |
| 259 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE |
| 260 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 261 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 262 | #define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */ |
| 263 | #define ONENAND_ENV_OFFSET 0x260000 /* environment starts here */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 264 | #define SMNAND_ENV_OFFSET 0x260000 /* environment starts here */ |
| 265 | |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 266 | #define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */ |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 267 | #define CONFIG_ENV_OFFSET SMNAND_ENV_OFFSET |
| 268 | #define CONFIG_ENV_ADDR SMNAND_ENV_OFFSET |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 269 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 270 | /* SMSC922x Ethernet */ |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 271 | #if defined(CONFIG_CMD_NET) |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 272 | #define CONFIG_SMC911X |
Adam Ford | 1e1acc7 | 2016-01-31 17:13:33 -0600 | [diff] [blame] | 273 | #define CONFIG_SMC911X_32_BIT |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 274 | #define CONFIG_SMC911X_BASE 0x08000000 |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 275 | #endif /* (CONFIG_CMD_NET) */ |
| 276 | |
Adam Ford | 49c7303 | 2016-01-29 20:12:34 -0600 | [diff] [blame] | 277 | /* Defines for SPL */ |
| 278 | |
| 279 | #define CONFIG_SPL_OMAP3_ID_NAND |
| 280 | |
| 281 | /* NAND: SPL falcon mode configs */ |
| 282 | #ifdef CONFIG_SPL_OS_BOOT |
| 283 | #define CONFIG_CMD_SPL_NAND_OFS 0x240000 |
| 284 | #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x280000 |
| 285 | #define CONFIG_CMD_SPL_WRITE_SIZE 0x2000 |
| 286 | #endif |
| 287 | |
Peter Barada | 86887f8 | 2011-12-19 19:54:51 +0000 | [diff] [blame] | 288 | #endif /* __CONFIG_H */ |