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 */ 218167af14SThomas Weber #define CONFIG_OMAP34XX /* which is a 34XX */ 22806d2792SLokesh Vutla #define CONFIG_OMAP_COMMON 238167af14SThomas Weber 248167af14SThomas Weber #define CONFIG_MACH_TYPE MACH_TYPE_TRICORDER 258167af14SThomas Weber /* 268167af14SThomas Weber * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM 278167af14SThomas Weber * 64 bytes before this address should be set aside for u-boot.img's 288167af14SThomas Weber * header. That is 0x800FFFC0--0x80100000 should not be used for any 298167af14SThomas Weber * other needs. 308167af14SThomas Weber */ 318167af14SThomas Weber #define CONFIG_SYS_TEXT_BASE 0x80100000 328167af14SThomas Weber 338167af14SThomas Weber #define CONFIG_SDRC /* The chip has SDRC controller */ 348167af14SThomas Weber 358167af14SThomas Weber #include <asm/arch/cpu.h> /* get chip and board defs */ 368167af14SThomas Weber #include <asm/arch/omap3.h> 378167af14SThomas Weber 388167af14SThomas Weber /* Display CPU and Board information */ 398167af14SThomas Weber #define CONFIG_DISPLAY_CPUINFO 408167af14SThomas Weber #define CONFIG_DISPLAY_BOARDINFO 418167af14SThomas Weber 428167af14SThomas Weber /* Clock Defines */ 438167af14SThomas Weber #define V_OSCK 26000000 /* Clock output from T2 */ 448167af14SThomas Weber #define V_SCLK (V_OSCK >> 1) 458167af14SThomas Weber 468167af14SThomas Weber #define CONFIG_MISC_INIT_R 478167af14SThomas Weber 488167af14SThomas Weber #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ 498167af14SThomas Weber #define CONFIG_SETUP_MEMORY_TAGS 508167af14SThomas Weber #define CONFIG_INITRD_TAG 518167af14SThomas Weber #define CONFIG_REVISION_TAG 528167af14SThomas Weber 538167af14SThomas Weber #define CONFIG_OF_LIBFDT 548167af14SThomas Weber 558167af14SThomas Weber /* Size of malloc() pool */ 5636f3aab2SBernhard Walle #define CONFIG_SYS_MALLOC_LEN (1024*1024) 578167af14SThomas Weber 588167af14SThomas Weber /* Hardware drivers */ 598167af14SThomas Weber 608167af14SThomas Weber /* NS16550 Configuration */ 618167af14SThomas Weber #define CONFIG_SYS_NS16550 628167af14SThomas Weber #define CONFIG_SYS_NS16550_SERIAL 638167af14SThomas Weber #define CONFIG_SYS_NS16550_REG_SIZE (-4) 648167af14SThomas Weber #define CONFIG_SYS_NS16550_CLK 48000000 /* 48MHz (APLL96/2) */ 658167af14SThomas Weber 668167af14SThomas Weber /* select serial console configuration */ 678167af14SThomas Weber #define CONFIG_CONS_INDEX 3 688167af14SThomas Weber #define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3 698167af14SThomas Weber #define CONFIG_SERIAL3 3 708167af14SThomas Weber #define CONFIG_BAUDRATE 115200 718167af14SThomas Weber #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\ 728167af14SThomas Weber 115200} 738167af14SThomas Weber 748167af14SThomas Weber /* MMC */ 758167af14SThomas Weber #define CONFIG_GENERIC_MMC 768167af14SThomas Weber #define CONFIG_MMC 778167af14SThomas Weber #define CONFIG_OMAP_HSMMC 788167af14SThomas Weber #define CONFIG_DOS_PARTITION 798167af14SThomas Weber 808167af14SThomas Weber /* I2C */ 818167af14SThomas Weber #define CONFIG_HARD_I2C 828167af14SThomas Weber #define CONFIG_SYS_I2C_SPEED 100000 838167af14SThomas Weber #define CONFIG_SYS_I2C_SLAVE 1 848167af14SThomas Weber #define CONFIG_DRIVER_OMAP34XX_I2C 1 858167af14SThomas Weber 868167af14SThomas Weber /* TWL4030 */ 878167af14SThomas Weber #define CONFIG_TWL4030_POWER 888167af14SThomas Weber #define CONFIG_TWL4030_LED 898167af14SThomas Weber 908167af14SThomas Weber /* Board NAND Info */ 918167af14SThomas Weber #define CONFIG_SYS_NO_FLASH /* no NOR flash */ 928167af14SThomas Weber #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ 935c68f123SAndreas Bießmann #define MTDIDS_DEFAULT "nand0=omap2-nand.0" 945c68f123SAndreas Bießmann #define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:" \ 955c68f123SAndreas Bießmann "128k(SPL)," \ 965c68f123SAndreas Bießmann "1m(u-boot)," \ 975c68f123SAndreas Bießmann "384k(u-boot-env1)," \ 985c68f123SAndreas Bießmann "1152k(mtdoops)," \ 995c68f123SAndreas Bießmann "384k(u-boot-env2)," \ 1005c68f123SAndreas Bießmann "5m(kernel)," \ 1015c68f123SAndreas Bießmann "2m(fdt)," \ 1025c68f123SAndreas Bießmann "-(ubi)" 1038167af14SThomas Weber 1048167af14SThomas Weber #define CONFIG_NAND_OMAP_GPMC 1058167af14SThomas Weber #define CONFIG_SYS_NAND_ADDR NAND_BASE /* physical address */ 1068167af14SThomas Weber /* to access nand */ 1078167af14SThomas Weber #define CONFIG_SYS_NAND_BASE NAND_BASE /* physical address */ 1088167af14SThomas Weber /* to access nand at */ 1098167af14SThomas Weber /* CS0 */ 1108167af14SThomas Weber #define GPMC_NAND_ECC_LP_x16_LAYOUT 1 1118167af14SThomas Weber 1128167af14SThomas Weber #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of NAND */ 1138167af14SThomas Weber /* devices */ 114616cf60eSAndreas Bießmann #define CONFIG_NAND_OMAP_BCH8 115616cf60eSAndreas Bießmann #define CONFIG_BCH 1168167af14SThomas Weber 1178167af14SThomas Weber /* commands to include */ 1188167af14SThomas Weber #include <config_cmd_default.h> 1198167af14SThomas Weber 1208167af14SThomas Weber #define CONFIG_CMD_EXT2 /* EXT2 Support */ 1218167af14SThomas Weber #define CONFIG_CMD_FAT /* FAT support */ 1228167af14SThomas Weber #define CONFIG_CMD_I2C /* I2C serial bus support */ 1238167af14SThomas Weber #define CONFIG_CMD_MMC /* MMC support */ 1248167af14SThomas Weber #define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands */ 1258167af14SThomas Weber #define CONFIG_CMD_NAND /* NAND support */ 1268167af14SThomas Weber #define CONFIG_CMD_NAND_LOCK_UNLOCK /* nand (un)lock commands */ 12736f3aab2SBernhard Walle #define CONFIG_CMD_UBI /* UBI commands */ 12836f3aab2SBernhard Walle #define CONFIG_CMD_UBIFS /* UBIFS commands */ 12936f3aab2SBernhard Walle #define CONFIG_LZO /* LZO is needed for UBIFS */ 1308167af14SThomas Weber 1318167af14SThomas Weber #undef CONFIG_CMD_NET 1328167af14SThomas Weber #undef CONFIG_CMD_NFS 1338167af14SThomas Weber #undef CONFIG_CMD_FPGA /* FPGA configuration Support */ 1348167af14SThomas Weber #undef CONFIG_CMD_IMI /* iminfo */ 1358167af14SThomas Weber #undef CONFIG_CMD_JFFS2 /* JFFS2 Support */ 1368167af14SThomas Weber 1378167af14SThomas Weber /* needed for ubi */ 1388167af14SThomas Weber #define CONFIG_RBTREE 1398167af14SThomas Weber #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ 1408167af14SThomas Weber #define CONFIG_MTD_PARTITIONS 1418167af14SThomas Weber 142*ec246452SAndreas Bießmann /* Environment information (this is the common part) */ 1438167af14SThomas Weber 1448167af14SThomas Weber #define CONFIG_BOOTDELAY 3 1458167af14SThomas Weber 146*ec246452SAndreas Bießmann /* environment placement (for NAND), is different for FLASHCARD but does not 147*ec246452SAndreas Bießmann * harm there */ 148*ec246452SAndreas Bießmann #define CONFIG_ENV_OFFSET 0x120000 /* env start */ 149*ec246452SAndreas Bießmann #define CONFIG_ENV_OFFSET_REDUND 0x2A0000 /* redundant env start */ 150*ec246452SAndreas Bießmann #define CONFIG_ENV_SIZE (16 << 10) /* use 16KiB for env */ 151*ec246452SAndreas Bießmann #define CONFIG_ENV_RANGE (384 << 10) /* allow badblocks in env */ 152*ec246452SAndreas Bießmann 1530dff13a9SAndreas Bießmann /* the loadaddr is the same as CONFIG_SYS_LOAD_ADDR, unfortunately the defiend 1540dff13a9SAndreas Bießmann * value can not be used here! */ 1550dff13a9SAndreas Bießmann #define CONFIG_LOADADDR 0x82000000 1560dff13a9SAndreas Bießmann 157*ec246452SAndreas Bießmann #define CONFIG_COMMON_ENV_SETTINGS \ 1588167af14SThomas Weber "console=ttyO2,115200n8\0" \ 1595605979aSThomas Weber "mmcdev=0\0" \ 16083976f1dSThomas Weber "vram=3M\0" \ 1618167af14SThomas Weber "defaultdisplay=lcd\0" \ 162*ec246452SAndreas Bießmann "kernelopts=mtdoops.mtddev=3\0" \ 1638167af14SThomas Weber "commonargs=" \ 1648167af14SThomas Weber "setenv bootargs console=${console} " \ 1655c68f123SAndreas Bießmann "${mtdparts} " \ 166*ec246452SAndreas Bießmann "${kernelopts} " \ 167*ec246452SAndreas Bießmann "vt.global_cursor_default=0 " \ 1688167af14SThomas Weber "vram=${vram} " \ 169*ec246452SAndreas Bießmann "omapdss.def_disp=${defaultdisplay}\0" 170*ec246452SAndreas Bießmann 171*ec246452SAndreas Bießmann #define CONFIG_BOOTCOMMAND "run autoboot" 172*ec246452SAndreas Bießmann 173*ec246452SAndreas Bießmann /* specific environment settings for different use cases 174*ec246452SAndreas Bießmann * FLASHCARD: used to run a rdimage from sdcard to program the device 175*ec246452SAndreas Bießmann * 'NORMAL': used to boot kernel from sdcard, nand, ... 176*ec246452SAndreas Bießmann * 177*ec246452SAndreas Bießmann * The main aim for the FLASHCARD skin is to have an embedded environment 178*ec246452SAndreas Bießmann * which will not be influenced by any data already on the device. 179*ec246452SAndreas Bießmann */ 180*ec246452SAndreas Bießmann #ifdef CONFIG_FLASHCARD 181*ec246452SAndreas Bießmann 182*ec246452SAndreas Bießmann #define CONFIG_ENV_IS_NOWHERE 183*ec246452SAndreas Bießmann 184*ec246452SAndreas Bießmann /* the rdaddr is 16 MiB before the loadaddr */ 185*ec246452SAndreas Bießmann #define CONFIG_ENV_RDADDR "rdaddr=0x81000000\0" 186*ec246452SAndreas Bießmann 187*ec246452SAndreas Bießmann #define CONFIG_EXTRA_ENV_SETTINGS \ 188*ec246452SAndreas Bießmann CONFIG_COMMON_ENV_SETTINGS \ 189*ec246452SAndreas Bießmann CONFIG_ENV_RDADDR \ 190*ec246452SAndreas Bießmann "autoboot=" \ 191*ec246452SAndreas Bießmann "mtdparts default; " \ 192*ec246452SAndreas Bießmann "run commonargs; " \ 193*ec246452SAndreas Bießmann "setenv bootargs ${bootargs} " \ 194*ec246452SAndreas Bießmann "flashy_updateimg=/dev/mmcblk0p1:corscience_update.img " \ 195*ec246452SAndreas Bießmann "rdinit=/sbin/init; " \ 196*ec246452SAndreas Bießmann "mmc dev ${mmcdev}; mmc rescan; " \ 197*ec246452SAndreas Bießmann "fatload mmc ${mmcdev} ${loadaddr} uImage; " \ 198*ec246452SAndreas Bießmann "fatload mmc ${mmcdev} ${rdaddr} uRamdisk; " \ 199*ec246452SAndreas Bießmann "bootm ${loadaddr} ${rdaddr}\0" 200*ec246452SAndreas Bießmann 201*ec246452SAndreas Bießmann #else /* CONFIG_FLASHCARD */ 202*ec246452SAndreas Bießmann 203*ec246452SAndreas Bießmann #define CONFIG_ENV_OVERWRITE /* allow to overwrite serial and ethaddr */ 204*ec246452SAndreas Bießmann 205*ec246452SAndreas Bießmann #define CONFIG_ENV_IS_IN_NAND 206*ec246452SAndreas Bießmann 207*ec246452SAndreas Bießmann #define CONFIG_EXTRA_ENV_SETTINGS \ 208*ec246452SAndreas Bießmann CONFIG_COMMON_ENV_SETTINGS \ 2098167af14SThomas Weber "mmcargs=" \ 2108167af14SThomas Weber "run commonargs; " \ 2118167af14SThomas Weber "setenv bootargs ${bootargs} " \ 2128167af14SThomas Weber "root=/dev/mmcblk0p2 " \ 213*ec246452SAndreas Bießmann "rootwait " \ 214*ec246452SAndreas Bießmann "rw\0" \ 2158167af14SThomas Weber "nandargs=" \ 2168167af14SThomas Weber "run commonargs; " \ 2178167af14SThomas Weber "setenv bootargs ${bootargs} " \ 218008ec950SBernhard Walle "root=ubi0:root " \ 2195c68f123SAndreas Bießmann "ubi.mtd=7 " \ 2208167af14SThomas Weber "rootfstype=ubifs " \ 221*ec246452SAndreas Bießmann "ro\0" \ 2225605979aSThomas Weber "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ 2238167af14SThomas Weber "bootscript=echo Running bootscript from mmc ...; " \ 2248167af14SThomas Weber "source ${loadaddr}\0" \ 2255605979aSThomas Weber "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ 2268167af14SThomas Weber "mmcboot=echo Booting from mmc ...; " \ 2278167af14SThomas Weber "run mmcargs; " \ 2288167af14SThomas Weber "bootm ${loadaddr}\0" \ 229008ec950SBernhard Walle "loaduimage_ubi=mtd default; " \ 2305c68f123SAndreas Bießmann "ubi part ubi; " \ 231949a7710SJoe Hershberger "ubifsmount ubi:root; " \ 232008ec950SBernhard Walle "ubifsload ${loadaddr} /boot/uImage\0" \ 2338167af14SThomas Weber "nandboot=echo Booting from nand ...; " \ 2348167af14SThomas Weber "run nandargs; " \ 235008ec950SBernhard Walle "run loaduimage_ubi; " \ 2368167af14SThomas Weber "bootm ${loadaddr}\0" \ 2375c68f123SAndreas Bießmann "autoboot=mtdparts default;" \ 2385c68f123SAndreas Bießmann "mmc dev ${mmcdev}; if mmc rescan; then " \ 2398167af14SThomas Weber "if run loadbootscript; then " \ 2408167af14SThomas Weber "run bootscript; " \ 2418167af14SThomas Weber "else " \ 2428167af14SThomas Weber "if run loaduimage; then " \ 2438167af14SThomas Weber "run mmcboot; " \ 2448167af14SThomas Weber "else run nandboot; " \ 2458167af14SThomas Weber "fi; " \ 2468167af14SThomas Weber "fi; " \ 2478167af14SThomas Weber "else run nandboot; fi\0" 2488167af14SThomas Weber 249*ec246452SAndreas Bießmann #endif /* CONFIG_FLASHCARD */ 2508167af14SThomas Weber 2518167af14SThomas Weber /* Miscellaneous configurable options */ 2528167af14SThomas Weber #define CONFIG_SYS_LONGHELP /* undef to save memory */ 2538167af14SThomas Weber #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ 254*ec246452SAndreas Bießmann #define CONFIG_CMDLINE_EDITING /* enable cmdline history */ 2558167af14SThomas Weber #define CONFIG_AUTO_COMPLETE 2568167af14SThomas Weber #define CONFIG_SYS_PROMPT "OMAP3 Tricorder # " 2578167af14SThomas Weber #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ 2588167af14SThomas Weber /* Print Buffer Size */ 2598167af14SThomas Weber #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 2608167af14SThomas Weber sizeof(CONFIG_SYS_PROMPT) + 16) 2618167af14SThomas Weber #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 2628167af14SThomas Weber 2638167af14SThomas Weber /* Boot Argument Buffer Size */ 2648167af14SThomas Weber #define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE) 2658167af14SThomas Weber 2668167af14SThomas Weber #define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0 + 0x07000000) 2678167af14SThomas Weber #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ 2688167af14SThomas Weber 0x01000000) /* 16MB */ 2698167af14SThomas Weber 2708167af14SThomas Weber #define CONFIG_SYS_LOAD_ADDR (OMAP34XX_SDRC_CS0 + 0x02000000) 2718167af14SThomas Weber 2728167af14SThomas Weber /* 2738167af14SThomas Weber * OMAP3 has 12 GP timers, they can be driven by the system clock 2748167af14SThomas Weber * (12/13/16.8/19.2/38.4MHz) or by 32KHz clock. We use 13MHz (V_SCLK). 2758167af14SThomas Weber * This rate is divided by a local divisor. 2768167af14SThomas Weber */ 2778167af14SThomas Weber #define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) 2788167af14SThomas Weber #define CONFIG_SYS_PTV 2 /* Divisor: 2^(PTV+1) => 8 */ 2798167af14SThomas Weber #define CONFIG_SYS_HZ 1000 2808167af14SThomas Weber 2818167af14SThomas Weber /* Physical Memory Map */ 2828167af14SThomas Weber #define CONFIG_NR_DRAM_BANKS 2 /* CS1 may or may not be populated */ 2838167af14SThomas Weber #define PHYS_SDRAM_1 OMAP34XX_SDRC_CS0 2848167af14SThomas Weber #define PHYS_SDRAM_2 OMAP34XX_SDRC_CS1 2858167af14SThomas Weber 2868167af14SThomas Weber /* NAND and environment organization */ 2878167af14SThomas Weber #define PISMO1_NAND_SIZE GPMC_SIZE_128M 2888167af14SThomas Weber 2898167af14SThomas Weber #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 2 sectors */ 2908167af14SThomas Weber 2918167af14SThomas Weber #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 2928167af14SThomas Weber #define CONFIG_SYS_INIT_RAM_ADDR 0x4020f800 2938167af14SThomas Weber #define CONFIG_SYS_INIT_RAM_SIZE 0x800 2948167af14SThomas Weber #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ 2958167af14SThomas Weber CONFIG_SYS_INIT_RAM_SIZE - \ 2968167af14SThomas Weber GENERATED_GBL_DATA_SIZE) 2978167af14SThomas Weber 2988167af14SThomas Weber /* SRAM config */ 2998167af14SThomas Weber #define CONFIG_SYS_SRAM_START 0x40200000 3008167af14SThomas Weber #define CONFIG_SYS_SRAM_SIZE 0x10000 3018167af14SThomas Weber 3028167af14SThomas Weber /* Defines for SPL */ 3038167af14SThomas Weber #define CONFIG_SPL 30447f7bcaeSTom Rini #define CONFIG_SPL_FRAMEWORK 3058167af14SThomas Weber #define CONFIG_SPL_NAND_SIMPLE 3068167af14SThomas Weber 30749175c49STom Rini #define CONFIG_SPL_BOARD_INIT 3088167af14SThomas Weber #define CONFIG_SPL_LIBCOMMON_SUPPORT 3098167af14SThomas Weber #define CONFIG_SPL_LIBDISK_SUPPORT 3108167af14SThomas Weber #define CONFIG_SPL_I2C_SUPPORT 3118167af14SThomas Weber #define CONFIG_SPL_LIBGENERIC_SUPPORT 3128167af14SThomas Weber #define CONFIG_SPL_SERIAL_SUPPORT 3138167af14SThomas Weber #define CONFIG_SPL_POWER_SUPPORT 3148167af14SThomas Weber #define CONFIG_SPL_NAND_SUPPORT 3156f2f01b9SScott Wood #define CONFIG_SPL_NAND_BASE 3166f2f01b9SScott Wood #define CONFIG_SPL_NAND_DRIVERS 3176f2f01b9SScott Wood #define CONFIG_SPL_NAND_ECC 3188167af14SThomas Weber #define CONFIG_SPL_MMC_SUPPORT 3198167af14SThomas Weber #define CONFIG_SPL_FAT_SUPPORT 3208167af14SThomas Weber #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds" 3218167af14SThomas Weber #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img" 3228167af14SThomas Weber #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1 3238167af14SThomas Weber #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ 3248167af14SThomas Weber 3258167af14SThomas Weber #define CONFIG_SPL_TEXT_BASE 0x40200000 /*CONFIG_SYS_SRAM_START*/ 326616cf60eSAndreas Bießmann #define CONFIG_SPL_MAX_SIZE (55 * 1024) /* 7 KB for stack */ 3278167af14SThomas Weber #define CONFIG_SPL_STACK LOW_LEVEL_SRAM_STACK 3288167af14SThomas Weber 3298167af14SThomas Weber #define CONFIG_SPL_BSS_START_ADDR 0x80000000 /*CONFIG_SYS_SDRAM_BASE*/ 3308167af14SThomas Weber #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 3318167af14SThomas Weber 3328167af14SThomas Weber /* NAND boot config */ 3338167af14SThomas Weber #define CONFIG_SYS_NAND_5_ADDR_CYCLE 3348167af14SThomas Weber #define CONFIG_SYS_NAND_PAGE_COUNT 64 3358167af14SThomas Weber #define CONFIG_SYS_NAND_PAGE_SIZE 2048 3368167af14SThomas Weber #define CONFIG_SYS_NAND_OOBSIZE 64 3378167af14SThomas Weber #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) 3388167af14SThomas Weber #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS 339616cf60eSAndreas Bießmann #define CONFIG_SYS_NAND_ECCPOS {12, 13, 14, 15, 16, 17, 18, 19, 20,\ 340616cf60eSAndreas Bießmann 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,\ 341616cf60eSAndreas Bießmann 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,\ 342616cf60eSAndreas Bießmann 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,\ 343616cf60eSAndreas Bießmann 60, 61, 62, 63} 3448167af14SThomas Weber 3458167af14SThomas Weber #define CONFIG_SYS_NAND_ECCSIZE 512 346616cf60eSAndreas Bießmann #define CONFIG_SYS_NAND_ECCBYTES 13 3478167af14SThomas Weber 3488167af14SThomas Weber #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE 3498167af14SThomas Weber 3505c68f123SAndreas Bießmann #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x20000 3515c68f123SAndreas Bießmann #define CONFIG_SYS_NAND_U_BOOT_SIZE 0x100000 3528167af14SThomas Weber 3538167af14SThomas Weber #define CONFIG_SYS_SPL_MALLOC_START 0x80208000 3548167af14SThomas Weber #define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 /* 1 MB */ 3558167af14SThomas Weber 3568167af14SThomas Weber #endif /* __CONFIG_H */ 357