18167af14SThomas Weber /* 28167af14SThomas Weber * (C) Copyright 2006-2008 38167af14SThomas Weber * Texas Instruments. 48167af14SThomas Weber * Richard Woodruff <r-woodruff2@ti.com> 58167af14SThomas Weber * Syed Mohammed Khasim <x0khasim@ti.com> 68167af14SThomas Weber * 78167af14SThomas Weber * (C) Copyright 2012 88167af14SThomas Weber * Corscience GmbH & Co. KG 98167af14SThomas Weber * Thomas Weber <weber@corscience.de> 108167af14SThomas Weber * 118167af14SThomas Weber * Configuration settings for the Tricorder board. 128167af14SThomas Weber * 131a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 148167af14SThomas Weber */ 158167af14SThomas Weber 168167af14SThomas Weber #ifndef __CONFIG_H 178167af14SThomas Weber #define __CONFIG_H 188167af14SThomas Weber 198167af14SThomas Weber /* High Level Configuration Options */ 208167af14SThomas Weber #define CONFIG_OMAP /* in a TI OMAP core */ 21806d2792SLokesh Vutla #define CONFIG_OMAP_COMMON 22*c6f90e14SNishanth Menon /* Common ARM Erratas */ 23*c6f90e14SNishanth Menon #define CONFIG_ARM_ERRATA_454179 24*c6f90e14SNishanth Menon #define CONFIG_ARM_ERRATA_430973 25*c6f90e14SNishanth Menon #define CONFIG_ARM_ERRATA_621766 268167af14SThomas Weber 278167af14SThomas Weber #define CONFIG_MACH_TYPE MACH_TYPE_TRICORDER 288167af14SThomas Weber /* 298167af14SThomas Weber * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM 308167af14SThomas Weber * 64 bytes before this address should be set aside for u-boot.img's 318167af14SThomas Weber * header. That is 0x800FFFC0--0x80100000 should not be used for any 328167af14SThomas Weber * other needs. 338167af14SThomas Weber */ 348167af14SThomas Weber #define CONFIG_SYS_TEXT_BASE 0x80100000 358167af14SThomas Weber 368167af14SThomas Weber #define CONFIG_SDRC /* The chip has SDRC controller */ 378167af14SThomas Weber 388167af14SThomas Weber #include <asm/arch/cpu.h> /* get chip and board defs */ 39987ec585SNishanth Menon #include <asm/arch/omap.h> 408167af14SThomas Weber 41e6f9d419SAndreas Bießmann #define CONFIG_SYS_GENERIC_BOARD 42e6f9d419SAndreas Bießmann 438167af14SThomas Weber /* Display CPU and Board information */ 448167af14SThomas Weber #define CONFIG_DISPLAY_CPUINFO 458167af14SThomas Weber #define CONFIG_DISPLAY_BOARDINFO 468167af14SThomas Weber 478ce1b82eSThomas Weber #define CONFIG_SILENT_CONSOLE 488ce1b82eSThomas Weber #define CONFIG_ZERO_BOOTDELAY_CHECK 498ce1b82eSThomas Weber 508167af14SThomas Weber /* Clock Defines */ 518167af14SThomas Weber #define V_OSCK 26000000 /* Clock output from T2 */ 528167af14SThomas Weber #define V_SCLK (V_OSCK >> 1) 538167af14SThomas Weber 548167af14SThomas Weber #define CONFIG_MISC_INIT_R 558167af14SThomas Weber 568167af14SThomas Weber #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ 578167af14SThomas Weber #define CONFIG_SETUP_MEMORY_TAGS 588167af14SThomas Weber #define CONFIG_INITRD_TAG 598167af14SThomas Weber #define CONFIG_REVISION_TAG 608167af14SThomas Weber 618167af14SThomas Weber #define CONFIG_OF_LIBFDT 628167af14SThomas Weber 638167af14SThomas Weber /* Size of malloc() pool */ 6436f3aab2SBernhard Walle #define CONFIG_SYS_MALLOC_LEN (1024*1024) 658167af14SThomas Weber 668167af14SThomas Weber /* Hardware drivers */ 678167af14SThomas Weber 6889088058SAndreas Bießmann /* GPIO support */ 6989088058SAndreas Bießmann #define CONFIG_OMAP_GPIO 7089088058SAndreas Bießmann 7123475344SAndreas Bießmann /* GPIO banks */ 7223475344SAndreas Bießmann #define CONFIG_OMAP3_GPIO_2 /* GPIO32..63 are in GPIO bank 2 */ 7323475344SAndreas Bießmann 74ad9f072cSAndreas Bießmann /* LED support */ 75ad9f072cSAndreas Bießmann #define CONFIG_STATUS_LED 76ad9f072cSAndreas Bießmann #define CONFIG_BOARD_SPECIFIC_LED 77ad9f072cSAndreas Bießmann #define CONFIG_CMD_LED /* LED command */ 78ad9f072cSAndreas Bießmann #define STATUS_LED_BIT (1 << 0) 79ad9f072cSAndreas Bießmann #define STATUS_LED_STATE STATUS_LED_ON 80ad9f072cSAndreas Bießmann #define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) 81ad9f072cSAndreas Bießmann #define STATUS_LED_BIT1 (1 << 1) 82ad9f072cSAndreas Bießmann #define STATUS_LED_STATE1 STATUS_LED_ON 83ad9f072cSAndreas Bießmann #define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2) 84ad9f072cSAndreas Bießmann #define STATUS_LED_BIT2 (1 << 2) 85ad9f072cSAndreas Bießmann #define STATUS_LED_STATE2 STATUS_LED_ON 86ad9f072cSAndreas Bießmann #define STATUS_LED_PERIOD2 (CONFIG_SYS_HZ / 2) 87ad9f072cSAndreas Bießmann 888167af14SThomas Weber /* NS16550 Configuration */ 898167af14SThomas Weber #define CONFIG_SYS_NS16550 908167af14SThomas Weber #define CONFIG_SYS_NS16550_SERIAL 918167af14SThomas Weber #define CONFIG_SYS_NS16550_REG_SIZE (-4) 928167af14SThomas Weber #define CONFIG_SYS_NS16550_CLK 48000000 /* 48MHz (APLL96/2) */ 938167af14SThomas Weber 948167af14SThomas Weber /* select serial console configuration */ 958167af14SThomas Weber #define CONFIG_CONS_INDEX 3 968167af14SThomas Weber #define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3 978167af14SThomas Weber #define CONFIG_SERIAL3 3 988167af14SThomas Weber #define CONFIG_BAUDRATE 115200 998167af14SThomas Weber #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\ 1008167af14SThomas Weber 115200} 1018167af14SThomas Weber 1028167af14SThomas Weber /* MMC */ 1038167af14SThomas Weber #define CONFIG_GENERIC_MMC 1048167af14SThomas Weber #define CONFIG_MMC 1058167af14SThomas Weber #define CONFIG_OMAP_HSMMC 1068167af14SThomas Weber #define CONFIG_DOS_PARTITION 1078167af14SThomas Weber 1088167af14SThomas Weber /* I2C */ 1096789e84eSHeiko Schocher #define CONFIG_SYS_I2C 1106789e84eSHeiko Schocher #define CONFIG_SYS_OMAP24_I2C_SPEED 100000 1116789e84eSHeiko Schocher #define CONFIG_SYS_OMAP24_I2C_SLAVE 1 1126789e84eSHeiko Schocher #define CONFIG_SYS_I2C_OMAP34XX 1136789e84eSHeiko Schocher 114459f1da8SAndreas Bießmann 115459f1da8SAndreas Bießmann /* EEPROM */ 116459f1da8SAndreas Bießmann #define CONFIG_SYS_I2C_MULTI_EEPROMS 117459f1da8SAndreas Bießmann #define CONFIG_CMD_EEPROM 118459f1da8SAndreas Bießmann #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 119459f1da8SAndreas Bießmann #define CONFIG_SYS_EEPROM_BUS_NUM 1 1208167af14SThomas Weber 1218167af14SThomas Weber /* TWL4030 */ 1228167af14SThomas Weber #define CONFIG_TWL4030_POWER 1238167af14SThomas Weber #define CONFIG_TWL4030_LED 1248167af14SThomas Weber 1258167af14SThomas Weber /* Board NAND Info */ 1268167af14SThomas Weber #define CONFIG_SYS_NO_FLASH /* no NOR flash */ 1278167af14SThomas Weber #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ 1285c68f123SAndreas Bießmann #define MTDIDS_DEFAULT "nand0=omap2-nand.0" 1295c68f123SAndreas Bießmann #define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:" \ 1305c68f123SAndreas Bießmann "128k(SPL)," \ 1315c68f123SAndreas Bießmann "1m(u-boot)," \ 1325c68f123SAndreas Bießmann "384k(u-boot-env1)," \ 1335c68f123SAndreas Bießmann "1152k(mtdoops)," \ 1345c68f123SAndreas Bießmann "384k(u-boot-env2)," \ 1355c68f123SAndreas Bießmann "5m(kernel)," \ 1365c68f123SAndreas Bießmann "2m(fdt)," \ 1375c68f123SAndreas Bießmann "-(ubi)" 1388167af14SThomas Weber 1398167af14SThomas Weber #define CONFIG_NAND_OMAP_GPMC 1408167af14SThomas Weber #define CONFIG_SYS_NAND_ADDR NAND_BASE /* physical address */ 1418167af14SThomas Weber /* to access nand */ 1428167af14SThomas Weber #define CONFIG_SYS_NAND_BASE NAND_BASE /* physical address */ 1438167af14SThomas Weber /* to access nand at */ 1448167af14SThomas Weber /* CS0 */ 1458167af14SThomas Weber #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of NAND */ 1468167af14SThomas Weber /* devices */ 147616cf60eSAndreas Bießmann #define CONFIG_BCH 14868ec9c85SPrabhakar Kushwaha #define CONFIG_SYS_NAND_MAX_OOBFREE 2 14968ec9c85SPrabhakar Kushwaha #define CONFIG_SYS_NAND_MAX_ECCPOS 56 1508167af14SThomas Weber 1518167af14SThomas Weber /* commands to include */ 1528167af14SThomas Weber #include <config_cmd_default.h> 1538167af14SThomas Weber 1548167af14SThomas Weber #define CONFIG_CMD_EXT2 /* EXT2 Support */ 1558167af14SThomas Weber #define CONFIG_CMD_FAT /* FAT support */ 1568167af14SThomas Weber #define CONFIG_CMD_I2C /* I2C serial bus support */ 1578167af14SThomas Weber #define CONFIG_CMD_MMC /* MMC support */ 1588167af14SThomas Weber #define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands */ 1598167af14SThomas Weber #define CONFIG_CMD_NAND /* NAND support */ 1608167af14SThomas Weber #define CONFIG_CMD_NAND_LOCK_UNLOCK /* nand (un)lock commands */ 16136f3aab2SBernhard Walle #define CONFIG_CMD_UBI /* UBI commands */ 16236f3aab2SBernhard Walle #define CONFIG_CMD_UBIFS /* UBIFS commands */ 16336f3aab2SBernhard Walle #define CONFIG_LZO /* LZO is needed for UBIFS */ 1648167af14SThomas Weber 1658167af14SThomas Weber #undef CONFIG_CMD_NET 1668167af14SThomas Weber #undef CONFIG_CMD_NFS 1678167af14SThomas Weber #undef CONFIG_CMD_FPGA /* FPGA configuration Support */ 1688167af14SThomas Weber #undef CONFIG_CMD_IMI /* iminfo */ 1698167af14SThomas Weber #undef CONFIG_CMD_JFFS2 /* JFFS2 Support */ 1708167af14SThomas Weber 1718167af14SThomas Weber /* needed for ubi */ 1728167af14SThomas Weber #define CONFIG_RBTREE 1738167af14SThomas Weber #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ 1748167af14SThomas Weber #define CONFIG_MTD_PARTITIONS 1758167af14SThomas Weber 176ec246452SAndreas Bießmann /* Environment information (this is the common part) */ 1778167af14SThomas Weber 1788ce1b82eSThomas Weber #define CONFIG_BOOTDELAY 0 1798167af14SThomas Weber 18089088058SAndreas Bießmann /* hang() the board on panic() */ 18189088058SAndreas Bießmann #define CONFIG_PANIC_HANG 18289088058SAndreas Bießmann 183ec246452SAndreas Bießmann /* environment placement (for NAND), is different for FLASHCARD but does not 184ec246452SAndreas Bießmann * harm there */ 185ec246452SAndreas Bießmann #define CONFIG_ENV_OFFSET 0x120000 /* env start */ 186ec246452SAndreas Bießmann #define CONFIG_ENV_OFFSET_REDUND 0x2A0000 /* redundant env start */ 187ec246452SAndreas Bießmann #define CONFIG_ENV_SIZE (16 << 10) /* use 16KiB for env */ 188ec246452SAndreas Bießmann #define CONFIG_ENV_RANGE (384 << 10) /* allow badblocks in env */ 189ec246452SAndreas Bießmann 1900dff13a9SAndreas Bießmann /* the loadaddr is the same as CONFIG_SYS_LOAD_ADDR, unfortunately the defiend 1910dff13a9SAndreas Bießmann * value can not be used here! */ 1920dff13a9SAndreas Bießmann #define CONFIG_LOADADDR 0x82000000 1930dff13a9SAndreas Bießmann 194ec246452SAndreas Bießmann #define CONFIG_COMMON_ENV_SETTINGS \ 1958167af14SThomas Weber "console=ttyO2,115200n8\0" \ 1965605979aSThomas Weber "mmcdev=0\0" \ 19783976f1dSThomas Weber "vram=3M\0" \ 1988167af14SThomas Weber "defaultdisplay=lcd\0" \ 199ec246452SAndreas Bießmann "kernelopts=mtdoops.mtddev=3\0" \ 200deac6d66SAndreas Bießmann "mtdparts=" MTDPARTS_DEFAULT "\0" \ 201deac6d66SAndreas Bießmann "mtdids=" MTDIDS_DEFAULT "\0" \ 2028167af14SThomas Weber "commonargs=" \ 2038167af14SThomas Weber "setenv bootargs console=${console} " \ 2045c68f123SAndreas Bießmann "${mtdparts} " \ 205ec246452SAndreas Bießmann "${kernelopts} " \ 206ec246452SAndreas Bießmann "vt.global_cursor_default=0 " \ 2078167af14SThomas Weber "vram=${vram} " \ 208ec246452SAndreas Bießmann "omapdss.def_disp=${defaultdisplay}\0" 209ec246452SAndreas Bießmann 210ec246452SAndreas Bießmann #define CONFIG_BOOTCOMMAND "run autoboot" 211ec246452SAndreas Bießmann 212ec246452SAndreas Bießmann /* specific environment settings for different use cases 213ec246452SAndreas Bießmann * FLASHCARD: used to run a rdimage from sdcard to program the device 214ec246452SAndreas Bießmann * 'NORMAL': used to boot kernel from sdcard, nand, ... 215ec246452SAndreas Bießmann * 216ec246452SAndreas Bießmann * The main aim for the FLASHCARD skin is to have an embedded environment 217ec246452SAndreas Bießmann * which will not be influenced by any data already on the device. 218ec246452SAndreas Bießmann */ 219ec246452SAndreas Bießmann #ifdef CONFIG_FLASHCARD 220ec246452SAndreas Bießmann 221ec246452SAndreas Bießmann #define CONFIG_ENV_IS_NOWHERE 222ec246452SAndreas Bießmann 223ec246452SAndreas Bießmann /* the rdaddr is 16 MiB before the loadaddr */ 224ec246452SAndreas Bießmann #define CONFIG_ENV_RDADDR "rdaddr=0x81000000\0" 225ec246452SAndreas Bießmann 226ec246452SAndreas Bießmann #define CONFIG_EXTRA_ENV_SETTINGS \ 227ec246452SAndreas Bießmann CONFIG_COMMON_ENV_SETTINGS \ 228ec246452SAndreas Bießmann CONFIG_ENV_RDADDR \ 229ec246452SAndreas Bießmann "autoboot=" \ 230ec246452SAndreas Bießmann "run commonargs; " \ 231ec246452SAndreas Bießmann "setenv bootargs ${bootargs} " \ 232ec246452SAndreas Bießmann "flashy_updateimg=/dev/mmcblk0p1:corscience_update.img " \ 233ec246452SAndreas Bießmann "rdinit=/sbin/init; " \ 234ec246452SAndreas Bießmann "mmc dev ${mmcdev}; mmc rescan; " \ 235ec246452SAndreas Bießmann "fatload mmc ${mmcdev} ${loadaddr} uImage; " \ 236ec246452SAndreas Bießmann "fatload mmc ${mmcdev} ${rdaddr} uRamdisk; " \ 237ec246452SAndreas Bießmann "bootm ${loadaddr} ${rdaddr}\0" 238ec246452SAndreas Bießmann 239ec246452SAndreas Bießmann #else /* CONFIG_FLASHCARD */ 240ec246452SAndreas Bießmann 241ec246452SAndreas Bießmann #define CONFIG_ENV_OVERWRITE /* allow to overwrite serial and ethaddr */ 242ec246452SAndreas Bießmann 243ec246452SAndreas Bießmann #define CONFIG_ENV_IS_IN_NAND 244ec246452SAndreas Bießmann 245ec246452SAndreas Bießmann #define CONFIG_EXTRA_ENV_SETTINGS \ 246ec246452SAndreas Bießmann CONFIG_COMMON_ENV_SETTINGS \ 2478167af14SThomas Weber "mmcargs=" \ 2488167af14SThomas Weber "run commonargs; " \ 2498167af14SThomas Weber "setenv bootargs ${bootargs} " \ 2508167af14SThomas Weber "root=/dev/mmcblk0p2 " \ 251ec246452SAndreas Bießmann "rootwait " \ 252ec246452SAndreas Bießmann "rw\0" \ 2538167af14SThomas Weber "nandargs=" \ 2548167af14SThomas Weber "run commonargs; " \ 2558167af14SThomas Weber "setenv bootargs ${bootargs} " \ 256008ec950SBernhard Walle "root=ubi0:root " \ 2575c68f123SAndreas Bießmann "ubi.mtd=7 " \ 2588167af14SThomas Weber "rootfstype=ubifs " \ 259ec246452SAndreas Bießmann "ro\0" \ 2605605979aSThomas Weber "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ 2618167af14SThomas Weber "bootscript=echo Running bootscript from mmc ...; " \ 2628167af14SThomas Weber "source ${loadaddr}\0" \ 2635605979aSThomas Weber "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ 2648167af14SThomas Weber "mmcboot=echo Booting from mmc ...; " \ 2658167af14SThomas Weber "run mmcargs; " \ 2668167af14SThomas Weber "bootm ${loadaddr}\0" \ 267deac6d66SAndreas Bießmann "loaduimage_ubi=ubi part ubi; " \ 268949a7710SJoe Hershberger "ubifsmount ubi:root; " \ 269008ec950SBernhard Walle "ubifsload ${loadaddr} /boot/uImage\0" \ 270eadbdf9eSAndreas Bießmann "loaduimage_nand=nand read ${loadaddr} kernel 0x500000\0" \ 2718167af14SThomas Weber "nandboot=echo Booting from nand ...; " \ 2728167af14SThomas Weber "run nandargs; " \ 273eadbdf9eSAndreas Bießmann "run loaduimage_nand; " \ 2748167af14SThomas Weber "bootm ${loadaddr}\0" \ 27566968110SAndrew Bradford "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \ 2768167af14SThomas Weber "if run loadbootscript; then " \ 2778167af14SThomas Weber "run bootscript; " \ 2788167af14SThomas Weber "else " \ 2798167af14SThomas Weber "if run loaduimage; then " \ 2808167af14SThomas Weber "run mmcboot; " \ 2818167af14SThomas Weber "else run nandboot; " \ 2828167af14SThomas Weber "fi; " \ 2838167af14SThomas Weber "fi; " \ 2848167af14SThomas Weber "else run nandboot; fi\0" 2858167af14SThomas Weber 286ec246452SAndreas Bießmann #endif /* CONFIG_FLASHCARD */ 2878167af14SThomas Weber 2888167af14SThomas Weber /* Miscellaneous configurable options */ 2898167af14SThomas Weber #define CONFIG_SYS_LONGHELP /* undef to save memory */ 2908167af14SThomas Weber #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ 291ec246452SAndreas Bießmann #define CONFIG_CMDLINE_EDITING /* enable cmdline history */ 2928167af14SThomas Weber #define CONFIG_AUTO_COMPLETE 2938167af14SThomas Weber #define CONFIG_SYS_PROMPT "OMAP3 Tricorder # " 2948167af14SThomas Weber #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ 2958167af14SThomas Weber /* Print Buffer Size */ 2968167af14SThomas Weber #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 2978167af14SThomas Weber sizeof(CONFIG_SYS_PROMPT) + 16) 2988167af14SThomas Weber #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 2998167af14SThomas Weber 3008167af14SThomas Weber /* Boot Argument Buffer Size */ 3018167af14SThomas Weber #define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE) 3028167af14SThomas Weber 30369df69d1SThomas Weber #define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0 + 0x00000000) 3048167af14SThomas Weber #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ 30569df69d1SThomas Weber 0x07000000) /* 112 MB */ 3068167af14SThomas Weber 3078167af14SThomas Weber #define CONFIG_SYS_LOAD_ADDR (OMAP34XX_SDRC_CS0 + 0x02000000) 3088167af14SThomas Weber 3098167af14SThomas Weber /* 3108167af14SThomas Weber * OMAP3 has 12 GP timers, they can be driven by the system clock 3118167af14SThomas Weber * (12/13/16.8/19.2/38.4MHz) or by 32KHz clock. We use 13MHz (V_SCLK). 3128167af14SThomas Weber * This rate is divided by a local divisor. 3138167af14SThomas Weber */ 3148167af14SThomas Weber #define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) 3158167af14SThomas Weber #define CONFIG_SYS_PTV 2 /* Divisor: 2^(PTV+1) => 8 */ 3168167af14SThomas Weber 3178167af14SThomas Weber /* Physical Memory Map */ 3188167af14SThomas Weber #define CONFIG_NR_DRAM_BANKS 2 /* CS1 may or may not be populated */ 3198167af14SThomas Weber #define PHYS_SDRAM_1 OMAP34XX_SDRC_CS0 3208167af14SThomas Weber #define PHYS_SDRAM_2 OMAP34XX_SDRC_CS1 3218167af14SThomas Weber 3228167af14SThomas Weber /* NAND and environment organization */ 3238167af14SThomas Weber #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */ 3248167af14SThomas Weber 3258167af14SThomas Weber #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 3268167af14SThomas Weber #define CONFIG_SYS_INIT_RAM_ADDR 0x4020f800 3278167af14SThomas Weber #define CONFIG_SYS_INIT_RAM_SIZE 0x800 3288167af14SThomas Weber #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ 3298167af14SThomas Weber CONFIG_SYS_INIT_RAM_SIZE - \ 3308167af14SThomas Weber GENERATED_GBL_DATA_SIZE) 3318167af14SThomas Weber 3328167af14SThomas Weber /* SRAM config */ 3338167af14SThomas Weber #define CONFIG_SYS_SRAM_START 0x40200000 3348167af14SThomas Weber #define CONFIG_SYS_SRAM_SIZE 0x10000 3358167af14SThomas Weber 3368167af14SThomas Weber /* Defines for SPL */ 33747f7bcaeSTom Rini #define CONFIG_SPL_FRAMEWORK 3388167af14SThomas Weber #define CONFIG_SPL_NAND_SIMPLE 3398167af14SThomas Weber 34049175c49STom Rini #define CONFIG_SPL_BOARD_INIT 34189088058SAndreas Bießmann #define CONFIG_SPL_GPIO_SUPPORT 3428167af14SThomas Weber #define CONFIG_SPL_LIBCOMMON_SUPPORT 3438167af14SThomas Weber #define CONFIG_SPL_LIBDISK_SUPPORT 3448167af14SThomas Weber #define CONFIG_SPL_I2C_SUPPORT 3458167af14SThomas Weber #define CONFIG_SPL_LIBGENERIC_SUPPORT 3468167af14SThomas Weber #define CONFIG_SPL_SERIAL_SUPPORT 3478167af14SThomas Weber #define CONFIG_SPL_POWER_SUPPORT 3488167af14SThomas Weber #define CONFIG_SPL_NAND_SUPPORT 3496f2f01b9SScott Wood #define CONFIG_SPL_NAND_BASE 3506f2f01b9SScott Wood #define CONFIG_SPL_NAND_DRIVERS 3516f2f01b9SScott Wood #define CONFIG_SPL_NAND_ECC 3528167af14SThomas Weber #define CONFIG_SPL_MMC_SUPPORT 3538167af14SThomas Weber #define CONFIG_SPL_FAT_SUPPORT 3548167af14SThomas Weber #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds" 355205b4f33SGuillaume GARDET #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" 356e2ccdf89SPaul Kocialkowski #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 3578167af14SThomas Weber #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ 3588167af14SThomas Weber 3598167af14SThomas Weber #define CONFIG_SPL_TEXT_BASE 0x40200000 /*CONFIG_SYS_SRAM_START*/ 36001782965SAndreas Bießmann #define CONFIG_SPL_MAX_SIZE (57 * 1024) /* 7 KB for stack */ 3618167af14SThomas Weber 3628167af14SThomas Weber #define CONFIG_SPL_BSS_START_ADDR 0x80000000 /*CONFIG_SYS_SDRAM_BASE*/ 3638167af14SThomas Weber #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 3648167af14SThomas Weber 3658167af14SThomas Weber /* NAND boot config */ 3668167af14SThomas Weber #define CONFIG_SYS_NAND_5_ADDR_CYCLE 3678167af14SThomas Weber #define CONFIG_SYS_NAND_PAGE_COUNT 64 3688167af14SThomas Weber #define CONFIG_SYS_NAND_PAGE_SIZE 2048 3698167af14SThomas Weber #define CONFIG_SYS_NAND_OOBSIZE 64 3708167af14SThomas Weber #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) 3718167af14SThomas Weber #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS 3721b82491eSAndreas Bießmann #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, \ 3731b82491eSAndreas Bießmann 13, 14, 16, 17, 18, 19, 20, 21, 22, \ 3741b82491eSAndreas Bießmann 23, 24, 25, 26, 27, 28, 30, 31, 32, \ 3751b82491eSAndreas Bießmann 33, 34, 35, 36, 37, 38, 39, 40, 41, \ 3761b82491eSAndreas Bießmann 42, 44, 45, 46, 47, 48, 49, 50, 51, \ 3771b82491eSAndreas Bießmann 52, 53, 54, 55, 56} 3788167af14SThomas Weber 3798167af14SThomas Weber #define CONFIG_SYS_NAND_ECCSIZE 512 380616cf60eSAndreas Bießmann #define CONFIG_SYS_NAND_ECCBYTES 13 3813f719069Spekon gupta #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW_DETECTION_SW 3828167af14SThomas Weber 3838167af14SThomas Weber #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE 3848167af14SThomas Weber 3855c68f123SAndreas Bießmann #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x20000 3865c68f123SAndreas Bießmann #define CONFIG_SYS_NAND_U_BOOT_SIZE 0x100000 3878167af14SThomas Weber 3888167af14SThomas Weber #define CONFIG_SYS_SPL_MALLOC_START 0x80208000 3898167af14SThomas Weber #define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 /* 1 MB */ 3908167af14SThomas Weber 39169df69d1SThomas Weber #define CONFIG_SYS_ALT_MEMTEST 39269df69d1SThomas Weber #define CONFIG_SYS_MEMTEST_SCRATCH 0x81000000 3938167af14SThomas Weber #endif /* __CONFIG_H */ 394