149249e13SPoonam Aggrwal /* 249249e13SPoonam Aggrwal * Copyright 2010-2011 Freescale Semiconductor, Inc. 349249e13SPoonam Aggrwal * 41a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 549249e13SPoonam Aggrwal */ 649249e13SPoonam Aggrwal 749249e13SPoonam Aggrwal /* 849249e13SPoonam Aggrwal * P010 RDB board configuration file 949249e13SPoonam Aggrwal */ 1049249e13SPoonam Aggrwal 1149249e13SPoonam Aggrwal #ifndef __CONFIG_H 1249249e13SPoonam Aggrwal #define __CONFIG_H 1349249e13SPoonam Aggrwal 1474fa22edSPrabhakar Kushwaha #include <asm/config_mpc85xx.h> 15d793e5a8SDipen Dudhat #define CONFIG_NAND_FSL_IFC 1649249e13SPoonam Aggrwal 1749249e13SPoonam Aggrwal #ifdef CONFIG_SDCARD 18c9e1f588SYing Zhang #define CONFIG_SPL_MMC_MINIMAL 19c9e1f588SYing Zhang #define CONFIG_SPL_FLUSH_IMAGE 20c9e1f588SYing Zhang #define CONFIG_SPL_TARGET "u-boot-with-spl.bin" 21c9e1f588SYing Zhang #define CONFIG_SYS_TEXT_BASE 0x11001000 22c9e1f588SYing Zhang #define CONFIG_SPL_TEXT_BASE 0xD0001000 23c9e1f588SYing Zhang #define CONFIG_SPL_PAD_TO 0x18000 24c9e1f588SYing Zhang #define CONFIG_SPL_MAX_SIZE (96 * 1024) 25c9e1f588SYing Zhang #define CONFIG_SYS_MMC_U_BOOT_SIZE (512 << 10) 26c9e1f588SYing Zhang #define CONFIG_SYS_MMC_U_BOOT_DST (0x11000000) 27c9e1f588SYing Zhang #define CONFIG_SYS_MMC_U_BOOT_START (0x11000000) 28c9e1f588SYing Zhang #define CONFIG_SYS_MMC_U_BOOT_OFFS (96 << 10) 29c9e1f588SYing Zhang #define CONFIG_SYS_MPC85XX_NO_RESETVEC 30c9e1f588SYing Zhang #define CONFIG_SYS_LDSCRIPT "arch/powerpc/cpu/mpc85xx/u-boot.lds" 31c9e1f588SYing Zhang #define CONFIG_SPL_MMC_BOOT 32c9e1f588SYing Zhang #ifdef CONFIG_SPL_BUILD 33c9e1f588SYing Zhang #define CONFIG_SPL_COMMON_INIT_DDR 34c9e1f588SYing Zhang #endif 3549249e13SPoonam Aggrwal #endif 3649249e13SPoonam Aggrwal 3749249e13SPoonam Aggrwal #ifdef CONFIG_SPIFLASH 38c9e1f588SYing Zhang #ifdef CONFIG_SECURE_BOOT 3949249e13SPoonam Aggrwal #define CONFIG_RAMBOOT_SPIFLASH 4049249e13SPoonam Aggrwal #define CONFIG_SYS_TEXT_BASE 0x11000000 4184e0fb40SRuchika Gupta #define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc 42c9e1f588SYing Zhang #else 43c9e1f588SYing Zhang #define CONFIG_SPL_SPI_FLASH_MINIMAL 44c9e1f588SYing Zhang #define CONFIG_SPL_FLUSH_IMAGE 45c9e1f588SYing Zhang #define CONFIG_SPL_TARGET "u-boot-with-spl.bin" 46c9e1f588SYing Zhang #define CONFIG_SYS_TEXT_BASE 0x11001000 47c9e1f588SYing Zhang #define CONFIG_SPL_TEXT_BASE 0xD0001000 48c9e1f588SYing Zhang #define CONFIG_SPL_PAD_TO 0x18000 49c9e1f588SYing Zhang #define CONFIG_SPL_MAX_SIZE (96 * 1024) 50c9e1f588SYing Zhang #define CONFIG_SYS_SPI_FLASH_U_BOOT_SIZE (512 << 10) 51c9e1f588SYing Zhang #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST (0x11000000) 52c9e1f588SYing Zhang #define CONFIG_SYS_SPI_FLASH_U_BOOT_START (0x11000000) 53c9e1f588SYing Zhang #define CONFIG_SYS_SPI_FLASH_U_BOOT_OFFS (96 << 10) 54c9e1f588SYing Zhang #define CONFIG_SYS_MPC85XX_NO_RESETVEC 55c9e1f588SYing Zhang #define CONFIG_SYS_LDSCRIPT "arch/powerpc/cpu/mpc85xx/u-boot.lds" 56c9e1f588SYing Zhang #define CONFIG_SPL_SPI_BOOT 57c9e1f588SYing Zhang #ifdef CONFIG_SPL_BUILD 58c9e1f588SYing Zhang #define CONFIG_SPL_COMMON_INIT_DDR 59c9e1f588SYing Zhang #endif 60c9e1f588SYing Zhang #endif 6149249e13SPoonam Aggrwal #endif 6249249e13SPoonam Aggrwal 630fa934d2SPrabhakar Kushwaha #ifdef CONFIG_NAND 64c9e1f588SYing Zhang #ifdef CONFIG_SECURE_BOOT 650fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_INIT_MINIMAL 66fbe76ae4SPrabhakar Kushwaha #define CONFIG_SPL_NAND_BOOT 670fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_FLUSH_IMAGE 680fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_TARGET "u-boot-with-spl.bin" 690fa934d2SPrabhakar Kushwaha 700fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_TEXT_BASE 0x00201000 710fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_TEXT_BASE 0xFFFFE000 720fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_MAX_SIZE 8192 730fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_RELOC_TEXT_BASE 0x00100000 740fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_RELOC_STACK 0x00100000 75e222b1f3SPrabhakar Kushwaha #define CONFIG_SYS_NAND_U_BOOT_SIZE ((768 << 10) - 0x2000) 760fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_NAND_U_BOOT_DST (0x00200000 - CONFIG_SPL_MAX_SIZE) 770fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_NAND_U_BOOT_START 0x00200000 780fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_NAND_U_BOOT_OFFS 0 790fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_LDSCRIPT "arch/powerpc/cpu/mpc85xx/u-boot-nand.lds" 80c9e1f588SYing Zhang #else 81c9e1f588SYing Zhang #ifdef CONFIG_TPL_BUILD 82c9e1f588SYing Zhang #define CONFIG_SPL_NAND_BOOT 83c9e1f588SYing Zhang #define CONFIG_SPL_FLUSH_IMAGE 84c9e1f588SYing Zhang #define CONFIG_SPL_NAND_INIT 85c9e1f588SYing Zhang #define CONFIG_SPL_COMMON_INIT_DDR 86c9e1f588SYing Zhang #define CONFIG_SPL_MAX_SIZE (128 << 10) 87c9e1f588SYing Zhang #define CONFIG_SPL_TEXT_BASE 0xD0001000 88c9e1f588SYing Zhang #define CONFIG_SYS_MPC85XX_NO_RESETVEC 89c9e1f588SYing Zhang #define CONFIG_SYS_NAND_U_BOOT_SIZE (576 << 10) 90c9e1f588SYing Zhang #define CONFIG_SYS_NAND_U_BOOT_DST (0x11000000) 91c9e1f588SYing Zhang #define CONFIG_SYS_NAND_U_BOOT_START (0x11000000) 92c9e1f588SYing Zhang #define CONFIG_SYS_NAND_U_BOOT_OFFS ((128 + 128) << 10) 93c9e1f588SYing Zhang #elif defined(CONFIG_SPL_BUILD) 94c9e1f588SYing Zhang #define CONFIG_SPL_INIT_MINIMAL 95c9e1f588SYing Zhang #define CONFIG_SPL_NAND_MINIMAL 96c9e1f588SYing Zhang #define CONFIG_SPL_FLUSH_IMAGE 97c9e1f588SYing Zhang #define CONFIG_SPL_TEXT_BASE 0xff800000 98c9e1f588SYing Zhang #define CONFIG_SPL_MAX_SIZE 8192 99c9e1f588SYing Zhang #define CONFIG_SYS_NAND_U_BOOT_SIZE (128 << 10) 100c9e1f588SYing Zhang #define CONFIG_SYS_NAND_U_BOOT_DST 0xD0000000 101c9e1f588SYing Zhang #define CONFIG_SYS_NAND_U_BOOT_START 0xD0000000 102c9e1f588SYing Zhang #define CONFIG_SYS_NAND_U_BOOT_OFFS (128 << 10) 103d793e5a8SDipen Dudhat #endif 104c9e1f588SYing Zhang #define CONFIG_SPL_PAD_TO 0x20000 105c9e1f588SYing Zhang #define CONFIG_TPL_PAD_TO 0x20000 106c9e1f588SYing Zhang #define CONFIG_SPL_TARGET "u-boot-with-spl.bin" 107c9e1f588SYing Zhang #define CONFIG_SYS_TEXT_BASE 0x11001000 108c9e1f588SYing Zhang #define CONFIG_SYS_LDSCRIPT "arch/powerpc/cpu/mpc85xx/u-boot-nand.lds" 109c9e1f588SYing Zhang #endif 110c9e1f588SYing Zhang #endif 1112f439e80SRuchika Gupta 1122f439e80SRuchika Gupta #ifdef CONFIG_NAND_SECBOOT /* NAND Boot */ 1132f439e80SRuchika Gupta #define CONFIG_RAMBOOT_NAND 1142f439e80SRuchika Gupta #define CONFIG_SYS_TEXT_BASE 0x11000000 115e222b1f3SPrabhakar Kushwaha #define CONFIG_RESET_VECTOR_ADDRESS 0x110bfffc 1162f439e80SRuchika Gupta #endif 1172f439e80SRuchika Gupta 11849249e13SPoonam Aggrwal #ifndef CONFIG_SYS_TEXT_BASE 119e222b1f3SPrabhakar Kushwaha #define CONFIG_SYS_TEXT_BASE 0xeff40000 12049249e13SPoonam Aggrwal #endif 12149249e13SPoonam Aggrwal 12249249e13SPoonam Aggrwal #ifndef CONFIG_RESET_VECTOR_ADDRESS 12349249e13SPoonam Aggrwal #define CONFIG_RESET_VECTOR_ADDRESS 0xeffffffc 12449249e13SPoonam Aggrwal #endif 12549249e13SPoonam Aggrwal 1260fa934d2SPrabhakar Kushwaha #ifdef CONFIG_SPL_BUILD 1270fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_MONITOR_BASE CONFIG_SPL_TEXT_BASE 1280fa934d2SPrabhakar Kushwaha #else 12949249e13SPoonam Aggrwal #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ 13049249e13SPoonam Aggrwal #endif 13149249e13SPoonam Aggrwal 13249249e13SPoonam Aggrwal /* High Level Configuration Options */ 13349249e13SPoonam Aggrwal #define CONFIG_SYS_HAS_SERDES /* common SERDES init code */ 13449249e13SPoonam Aggrwal 13549249e13SPoonam Aggrwal #if defined(CONFIG_PCI) 136b38eaec5SRobert P. J. Day #define CONFIG_PCIE1 /* PCIE controller 1 (slot 1) */ 137b38eaec5SRobert P. J. Day #define CONFIG_PCIE2 /* PCIE controller 2 (slot 2) */ 13849249e13SPoonam Aggrwal #define CONFIG_FSL_PCI_INIT /* Use common FSL init code */ 139842033e6SGabor Juhos #define CONFIG_PCI_INDIRECT_BRIDGE /* indirect PCI bridge support */ 14049249e13SPoonam Aggrwal #define CONFIG_FSL_PCIE_RESET /* need PCIe reset errata */ 14149249e13SPoonam Aggrwal #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */ 14249249e13SPoonam Aggrwal 14349249e13SPoonam Aggrwal #define CONFIG_CMD_PCI 14449249e13SPoonam Aggrwal 14549249e13SPoonam Aggrwal /* 14649249e13SPoonam Aggrwal * PCI Windows 14749249e13SPoonam Aggrwal * Memory space is mapped 1-1, but I/O space must start from 0. 14849249e13SPoonam Aggrwal */ 14949249e13SPoonam Aggrwal /* controller 1, Slot 1, tgtid 1, Base address a000 */ 15049249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_NAME "mini PCIe Slot" 15149249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_VIRT 0x80000000 15249249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT 15349249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_BUS 0x80000000 15449249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc00000000ull 15549249e13SPoonam Aggrwal #else 15649249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_BUS 0x80000000 15749249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_PHYS 0x80000000 15849249e13SPoonam Aggrwal #endif 15949249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 16049249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_VIRT 0xffc00000 16149249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 16249249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 16349249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT 16449249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_PHYS 0xfffc00000ull 16549249e13SPoonam Aggrwal #else 16649249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_PHYS 0xffc00000 16749249e13SPoonam Aggrwal #endif 16849249e13SPoonam Aggrwal 16949249e13SPoonam Aggrwal /* controller 2, Slot 2, tgtid 2, Base address 9000 */ 1707601686cSYork Sun #if defined(CONFIG_TARGET_P1010RDB_PA) 17149249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_NAME "PCIe Slot" 1727601686cSYork Sun #elif defined(CONFIG_TARGET_P1010RDB_PB) 173e512c50bSShengzhou Liu #define CONFIG_SYS_PCIE2_NAME "mini PCIe Slot" 174e512c50bSShengzhou Liu #endif 17549249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_VIRT 0xa0000000 17649249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT 17749249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_BUS 0xc0000000 17849249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_PHYS 0xc20000000ull 17949249e13SPoonam Aggrwal #else 18049249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_BUS 0xa0000000 18149249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_PHYS 0xa0000000 18249249e13SPoonam Aggrwal #endif 18349249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_SIZE 0x20000000 /* 512M */ 18449249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_VIRT 0xffc10000 18549249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000 18649249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 18749249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT 18849249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_PHYS 0xfffc10000ull 18949249e13SPoonam Aggrwal #else 19049249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_PHYS 0xffc10000 19149249e13SPoonam Aggrwal #endif 19249249e13SPoonam Aggrwal 19349249e13SPoonam Aggrwal #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 19449249e13SPoonam Aggrwal #endif 19549249e13SPoonam Aggrwal 19649249e13SPoonam Aggrwal #define CONFIG_TSEC_ENET 19749249e13SPoonam Aggrwal #define CONFIG_ENV_OVERWRITE 19849249e13SPoonam Aggrwal 19949249e13SPoonam Aggrwal #define CONFIG_DDR_CLK_FREQ 66666666 /* DDRCLK on P1010 RDB */ 20049249e13SPoonam Aggrwal #define CONFIG_SYS_CLK_FREQ 66666666 /* SYSCLK for P1010 RDB */ 20149249e13SPoonam Aggrwal 20249249e13SPoonam Aggrwal #define CONFIG_MISC_INIT_R 20349249e13SPoonam Aggrwal #define CONFIG_HWCONFIG 20449249e13SPoonam Aggrwal /* 20549249e13SPoonam Aggrwal * These can be toggled for performance analysis, otherwise use default. 20649249e13SPoonam Aggrwal */ 20749249e13SPoonam Aggrwal #define CONFIG_L2_CACHE /* toggle L2 cache */ 20849249e13SPoonam Aggrwal #define CONFIG_BTB /* toggle branch predition */ 20949249e13SPoonam Aggrwal 21049249e13SPoonam Aggrwal #define CONFIG_ADDR_STREAMING /* toggle addr streaming */ 21149249e13SPoonam Aggrwal 21249249e13SPoonam Aggrwal #define CONFIG_ENABLE_36BIT_PHYS 21349249e13SPoonam Aggrwal 21449249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT 21549249e13SPoonam Aggrwal #define CONFIG_ADDR_MAP 1 21649249e13SPoonam Aggrwal #define CONFIG_SYS_NUM_ADDR_MAP 16 /* number of TLB1 entries */ 21749249e13SPoonam Aggrwal #endif 21849249e13SPoonam Aggrwal 219c3cc02afSZhao Qiang #define CONFIG_SYS_MEMTEST_START 0x00200000 /* memtest works on */ 22049249e13SPoonam Aggrwal #define CONFIG_SYS_MEMTEST_END 0x1fffffff 22149249e13SPoonam Aggrwal #define CONFIG_PANIC_HANG /* do not reset board on panic */ 22249249e13SPoonam Aggrwal 22349249e13SPoonam Aggrwal /* DDR Setup */ 2241ba62f10SYork Sun #define CONFIG_SYS_DDR_RAW_TIMING 22549249e13SPoonam Aggrwal #define CONFIG_DDR_SPD 22649249e13SPoonam Aggrwal #define CONFIG_SYS_SPD_BUS_NUM 1 22749249e13SPoonam Aggrwal #define SPD_EEPROM_ADDRESS 0x52 22849249e13SPoonam Aggrwal 22949249e13SPoonam Aggrwal #define CONFIG_MEM_INIT_VALUE 0xDeadBeef 23049249e13SPoonam Aggrwal 23149249e13SPoonam Aggrwal #ifndef __ASSEMBLY__ 23249249e13SPoonam Aggrwal extern unsigned long get_sdram_size(void); 23349249e13SPoonam Aggrwal #endif 23449249e13SPoonam Aggrwal #define CONFIG_SYS_SDRAM_SIZE get_sdram_size() /* DDR size */ 23549249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 23649249e13SPoonam Aggrwal #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 23749249e13SPoonam Aggrwal 23849249e13SPoonam Aggrwal #define CONFIG_DIMM_SLOTS_PER_CTLR 1 23949249e13SPoonam Aggrwal #define CONFIG_CHIP_SELECTS_PER_CTRL 1 24049249e13SPoonam Aggrwal 24149249e13SPoonam Aggrwal /* DDR3 Controller Settings */ 24249249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CS0_BNDS 0x0000003f 24349249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CS0_CONFIG 0x80014302 24449249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CS0_CONFIG_2 0x00000000 24549249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_DATA_INIT 0xdeadbeef 24649249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_INIT_ADDR 0x00000000 24749249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_INIT_EXT_ADDR 0x00000000 24849249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_MODE_CONTROL 0x00000000 24949249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_ZQ_CONTROL 0x89080600 25049249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_SR_CNTR 0x00000000 25149249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_RCW_1 0x00000000 25249249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_RCW_2 0x00000000 253e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_CONTROL 0xc70c0008 /* Type = DDR3 */ 254e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_CONTROL_2 0x24401000 25549249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_4 0x00000001 25649249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_5 0x03402400 25749249e13SPoonam Aggrwal 258e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_TIMING_3_800 0x00030000 259e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_TIMING_0_800 0x00110104 260e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_TIMING_1_800 0x6f6b8644 26149249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_2_800 0x0FA888CF 26249249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CLK_CTRL_800 0x03000000 263e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_MODE_1_800 0x00441420 264e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_MODE_2_800 0x00000000 26549249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_INTERVAL_800 0x0C300100 266e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_WRLVL_CONTROL_800 0x8675f608 26749249e13SPoonam Aggrwal 26849249e13SPoonam Aggrwal /* settings for DDR3 at 667MT/s */ 26949249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_3_667 0x00010000 27049249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_0_667 0x00110004 27149249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_1_667 0x5d59e544 27249249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_2_667 0x0FA890CD 27349249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CLK_CTRL_667 0x03000000 27449249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_MODE_1_667 0x00441210 27549249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_MODE_2_667 0x00000000 27649249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_INTERVAL_667 0x0a280000 27749249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_WRLVL_CONTROL_667 0x8675F608 27849249e13SPoonam Aggrwal 27949249e13SPoonam Aggrwal #define CONFIG_SYS_CCSRBAR 0xffe00000 28049249e13SPoonam Aggrwal #define CONFIG_SYS_CCSRBAR_PHYS_LOW CONFIG_SYS_CCSRBAR 28149249e13SPoonam Aggrwal 282d793e5a8SDipen Dudhat /* Don't relocate CCSRBAR while in NAND_SPL */ 2830fa934d2SPrabhakar Kushwaha #ifdef CONFIG_SPL_BUILD 284d793e5a8SDipen Dudhat #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE 285d793e5a8SDipen Dudhat #endif 286d793e5a8SDipen Dudhat 28749249e13SPoonam Aggrwal /* 28849249e13SPoonam Aggrwal * Memory map 28949249e13SPoonam Aggrwal * 29049249e13SPoonam Aggrwal * 0x0000_0000 0x3fff_ffff DDR 1G cacheable 29149249e13SPoonam Aggrwal * 0x8000_0000 0xbfff_ffff PCI Express Mem 1.5G non-cacheable 29249249e13SPoonam Aggrwal * 0xffc0_0000 0xffc3_ffff PCI IO range 256k non-cacheable 29349249e13SPoonam Aggrwal * 29449249e13SPoonam Aggrwal * Localbus non-cacheable 29549249e13SPoonam Aggrwal * 0xff80_0000 0xff8f_ffff NAND Flash 1M non-cacheable 29649249e13SPoonam Aggrwal * 0xffb0_0000 0xffbf_ffff Board CPLD 1M non-cacheable 29749249e13SPoonam Aggrwal * 0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0 29849249e13SPoonam Aggrwal * 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable 29949249e13SPoonam Aggrwal */ 30049249e13SPoonam Aggrwal 30149249e13SPoonam Aggrwal /* 30249249e13SPoonam Aggrwal * IFC Definitions 30349249e13SPoonam Aggrwal */ 30449249e13SPoonam Aggrwal /* NOR Flash on IFC */ 3050fa934d2SPrabhakar Kushwaha 30649249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_BASE 0xee000000 30749249e13SPoonam Aggrwal #define CONFIG_SYS_MAX_FLASH_SECT 256 /* 32M */ 30849249e13SPoonam Aggrwal 30949249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT 31049249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_BASE_PHYS (0xf00000000ull | CONFIG_SYS_FLASH_BASE) 31149249e13SPoonam Aggrwal #else 31249249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE 31349249e13SPoonam Aggrwal #endif 31449249e13SPoonam Aggrwal 31549249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \ 31649249e13SPoonam Aggrwal CSPR_PORT_SIZE_16 | \ 31749249e13SPoonam Aggrwal CSPR_MSEL_NOR | \ 31849249e13SPoonam Aggrwal CSPR_V) 31949249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_AMASK IFC_AMASK(32*1024*1024) 32049249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_CSOR CSOR_NOR_ADM_SHIFT(7) 32149249e13SPoonam Aggrwal /* NOR Flash Timing Params */ 32249249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_FTIM0 FTIM0_NOR_TACSE(0x4) | \ 32349249e13SPoonam Aggrwal FTIM0_NOR_TEADC(0x5) | \ 32449249e13SPoonam Aggrwal FTIM0_NOR_TEAHC(0x5) 32549249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_FTIM1 FTIM1_NOR_TACO(0x1e) | \ 32649249e13SPoonam Aggrwal FTIM1_NOR_TRAD_NOR(0x0f) 32749249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_FTIM2 FTIM2_NOR_TCS(0x4) | \ 32849249e13SPoonam Aggrwal FTIM2_NOR_TCH(0x4) | \ 32949249e13SPoonam Aggrwal FTIM2_NOR_TWP(0x1c) 33049249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_FTIM3 0x0 33149249e13SPoonam Aggrwal 33249249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE_PHYS} 33349249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_QUIET_TEST 33449249e13SPoonam Aggrwal #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 33549249e13SPoonam Aggrwal #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ 33649249e13SPoonam Aggrwal 33749249e13SPoonam Aggrwal #undef CONFIG_SYS_FLASH_CHECKSUM 33849249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 33949249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 34049249e13SPoonam Aggrwal 34149249e13SPoonam Aggrwal /* CFI for NOR Flash */ 34249249e13SPoonam Aggrwal #define CONFIG_FLASH_CFI_DRIVER 34349249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_CFI 34449249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_EMPTY_INFO 34549249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 34649249e13SPoonam Aggrwal 34749249e13SPoonam Aggrwal /* NAND Flash on IFC */ 34849249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_BASE 0xff800000 34949249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT 35049249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_BASE_PHYS 0xfff800000ull 35149249e13SPoonam Aggrwal #else 35249249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE 35349249e13SPoonam Aggrwal #endif 35449249e13SPoonam Aggrwal 355ac688078SZhao Qiang #define CONFIG_MTD_DEVICE 356ac688078SZhao Qiang #define CONFIG_MTD_PARTITION 357ac688078SZhao Qiang #define CONFIG_CMD_MTDPARTS 358ac688078SZhao Qiang #define MTDIDS_DEFAULT "nand0=ff800000.flash" 359ac688078SZhao Qiang #define MTDPARTS_DEFAULT \ 360ac688078SZhao Qiang "mtdparts=ff800000.flash:2m(uboot-env),1m(dtb),5m(kernel),56m(fs),-(usr)" 361ac688078SZhao Qiang 36249249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \ 36349249e13SPoonam Aggrwal | CSPR_PORT_SIZE_8 \ 36449249e13SPoonam Aggrwal | CSPR_MSEL_NAND \ 36549249e13SPoonam Aggrwal | CSPR_V) 36649249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_AMASK IFC_AMASK(64*1024) 367e512c50bSShengzhou Liu 3687601686cSYork Sun #if defined(CONFIG_TARGET_P1010RDB_PA) 36949249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_CSOR (CSOR_NAND_ECC_ENC_EN /* ECC on encode */ \ 37049249e13SPoonam Aggrwal | CSOR_NAND_ECC_DEC_EN /* ECC on decode */ \ 37149249e13SPoonam Aggrwal | CSOR_NAND_ECC_MODE_4 /* 4-bit ECC */ \ 37249249e13SPoonam Aggrwal | CSOR_NAND_RAL_2 /* RAL = 2 Bytes */ \ 37349249e13SPoonam Aggrwal | CSOR_NAND_PGS_512 /* Page Size = 512b */ \ 37449249e13SPoonam Aggrwal | CSOR_NAND_SPRZ_16 /* Spare size = 16 */ \ 37549249e13SPoonam Aggrwal | CSOR_NAND_PB(32)) /* 32 Pages Per Block */ 376e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_BLOCK_SIZE (16 * 1024) 377e512c50bSShengzhou Liu 3787601686cSYork Sun #elif defined(CONFIG_TARGET_P1010RDB_PB) 379e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_ONFI_DETECTION 380e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_CSOR (CSOR_NAND_ECC_ENC_EN /* ECC on encode */ \ 381e512c50bSShengzhou Liu | CSOR_NAND_ECC_DEC_EN /* ECC on decode */ \ 382e512c50bSShengzhou Liu | CSOR_NAND_ECC_MODE_4 /* 4-bit ECC */ \ 383e512c50bSShengzhou Liu | CSOR_NAND_RAL_3 /* RAL = 3Byes */ \ 384e512c50bSShengzhou Liu | CSOR_NAND_PGS_4K /* Page Size = 4K */ \ 385e512c50bSShengzhou Liu | CSOR_NAND_SPRZ_224 /* Spare size = 224 */ \ 386e512c50bSShengzhou Liu | CSOR_NAND_PB(128)) /*Pages Per Block = 128 */ 387e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_BLOCK_SIZE (512 * 1024) 388e512c50bSShengzhou Liu #endif 38949249e13SPoonam Aggrwal 390d793e5a8SDipen Dudhat #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE } 391d793e5a8SDipen Dudhat #define CONFIG_SYS_MAX_NAND_DEVICE 1 392d793e5a8SDipen Dudhat #define CONFIG_CMD_NAND 393d793e5a8SDipen Dudhat 3947601686cSYork Sun #if defined(CONFIG_TARGET_P1010RDB_PA) 39549249e13SPoonam Aggrwal /* NAND Flash Timing Params */ 39649249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_FTIM0 FTIM0_NAND_TCCST(0x01) | \ 39749249e13SPoonam Aggrwal FTIM0_NAND_TWP(0x0C) | \ 39849249e13SPoonam Aggrwal FTIM0_NAND_TWCHT(0x04) | \ 39949249e13SPoonam Aggrwal FTIM0_NAND_TWH(0x05) 40049249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_FTIM1 FTIM1_NAND_TADLE(0x1d) | \ 40149249e13SPoonam Aggrwal FTIM1_NAND_TWBE(0x1d) | \ 40249249e13SPoonam Aggrwal FTIM1_NAND_TRR(0x07) | \ 40349249e13SPoonam Aggrwal FTIM1_NAND_TRP(0x0c) 40449249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_FTIM2 FTIM2_NAND_TRAD(0x0c) | \ 40549249e13SPoonam Aggrwal FTIM2_NAND_TREH(0x05) | \ 40649249e13SPoonam Aggrwal FTIM2_NAND_TWHRE(0x0f) 40749249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_FTIM3 FTIM3_NAND_TWW(0x04) 40849249e13SPoonam Aggrwal 4097601686cSYork Sun #elif defined(CONFIG_TARGET_P1010RDB_PB) 410e512c50bSShengzhou Liu /* support MT29F16G08ABABAWP 4k-pagesize 2G-bytes NAND */ 411e512c50bSShengzhou Liu /* ONFI NAND Flash mode0 Timing Params */ 412e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_FTIM0 (FTIM0_NAND_TCCST(0x07)| \ 413e512c50bSShengzhou Liu FTIM0_NAND_TWP(0x18) | \ 414e512c50bSShengzhou Liu FTIM0_NAND_TWCHT(0x07) | \ 415e512c50bSShengzhou Liu FTIM0_NAND_TWH(0x0a)) 416e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_FTIM1 (FTIM1_NAND_TADLE(0x32)| \ 417e512c50bSShengzhou Liu FTIM1_NAND_TWBE(0x39) | \ 418e512c50bSShengzhou Liu FTIM1_NAND_TRR(0x0e) | \ 419e512c50bSShengzhou Liu FTIM1_NAND_TRP(0x18)) 420e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_FTIM2 (FTIM2_NAND_TRAD(0x0f) | \ 421e512c50bSShengzhou Liu FTIM2_NAND_TREH(0x0a) | \ 422e512c50bSShengzhou Liu FTIM2_NAND_TWHRE(0x1e)) 423e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_FTIM3 0x0 424e512c50bSShengzhou Liu #endif 425e512c50bSShengzhou Liu 42649249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_DDR_LAW 11 42749249e13SPoonam Aggrwal 42849249e13SPoonam Aggrwal /* Set up IFC registers for boot location NOR/NAND */ 4290fa934d2SPrabhakar Kushwaha #if defined(CONFIG_NAND) || defined(CONFIG_NAND_SECBOOT) 430d793e5a8SDipen Dudhat #define CONFIG_SYS_CSPR0 CONFIG_SYS_NAND_CSPR 431d793e5a8SDipen Dudhat #define CONFIG_SYS_AMASK0 CONFIG_SYS_NAND_AMASK 432d793e5a8SDipen Dudhat #define CONFIG_SYS_CSOR0 CONFIG_SYS_NAND_CSOR 433d793e5a8SDipen Dudhat #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NAND_FTIM0 434d793e5a8SDipen Dudhat #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NAND_FTIM1 435d793e5a8SDipen Dudhat #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NAND_FTIM2 436d793e5a8SDipen Dudhat #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NAND_FTIM3 437d793e5a8SDipen Dudhat #define CONFIG_SYS_CSPR1 CONFIG_SYS_NOR_CSPR 438d793e5a8SDipen Dudhat #define CONFIG_SYS_AMASK1 CONFIG_SYS_NOR_AMASK 439d793e5a8SDipen Dudhat #define CONFIG_SYS_CSOR1 CONFIG_SYS_NOR_CSOR 440d793e5a8SDipen Dudhat #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_NOR_FTIM0 441d793e5a8SDipen Dudhat #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_NOR_FTIM1 442d793e5a8SDipen Dudhat #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_NOR_FTIM2 443d793e5a8SDipen Dudhat #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_NOR_FTIM3 444d793e5a8SDipen Dudhat #else 44549249e13SPoonam Aggrwal #define CONFIG_SYS_CSPR0 CONFIG_SYS_NOR_CSPR 44649249e13SPoonam Aggrwal #define CONFIG_SYS_AMASK0 CONFIG_SYS_NOR_AMASK 44749249e13SPoonam Aggrwal #define CONFIG_SYS_CSOR0 CONFIG_SYS_NOR_CSOR 44849249e13SPoonam Aggrwal #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NOR_FTIM0 44949249e13SPoonam Aggrwal #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NOR_FTIM1 45049249e13SPoonam Aggrwal #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NOR_FTIM2 45149249e13SPoonam Aggrwal #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NOR_FTIM3 45249249e13SPoonam Aggrwal #define CONFIG_SYS_CSPR1 CONFIG_SYS_NAND_CSPR 45349249e13SPoonam Aggrwal #define CONFIG_SYS_AMASK1 CONFIG_SYS_NAND_AMASK 45449249e13SPoonam Aggrwal #define CONFIG_SYS_CSOR1 CONFIG_SYS_NAND_CSOR 45549249e13SPoonam Aggrwal #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_NAND_FTIM0 45649249e13SPoonam Aggrwal #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_NAND_FTIM1 45749249e13SPoonam Aggrwal #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_NAND_FTIM2 45849249e13SPoonam Aggrwal #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_NAND_FTIM3 459d793e5a8SDipen Dudhat #endif 460d793e5a8SDipen Dudhat 46149249e13SPoonam Aggrwal /* CPLD on IFC */ 46249249e13SPoonam Aggrwal #define CONFIG_SYS_CPLD_BASE 0xffb00000 46349249e13SPoonam Aggrwal 46449249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT 46549249e13SPoonam Aggrwal #define CONFIG_SYS_CPLD_BASE_PHYS 0xfffb00000ull 46649249e13SPoonam Aggrwal #else 46749249e13SPoonam Aggrwal #define CONFIG_SYS_CPLD_BASE_PHYS CONFIG_SYS_CPLD_BASE 46849249e13SPoonam Aggrwal #endif 46949249e13SPoonam Aggrwal 47049249e13SPoonam Aggrwal #define CONFIG_SYS_CSPR3 (CSPR_PHYS_ADDR(CONFIG_SYS_CPLD_BASE_PHYS) \ 47149249e13SPoonam Aggrwal | CSPR_PORT_SIZE_8 \ 47249249e13SPoonam Aggrwal | CSPR_MSEL_GPCM \ 47349249e13SPoonam Aggrwal | CSPR_V) 47449249e13SPoonam Aggrwal #define CONFIG_SYS_AMASK3 IFC_AMASK(64*1024) 47549249e13SPoonam Aggrwal #define CONFIG_SYS_CSOR3 0x0 47649249e13SPoonam Aggrwal /* CPLD Timing parameters for IFC CS3 */ 47749249e13SPoonam Aggrwal #define CONFIG_SYS_CS3_FTIM0 (FTIM0_GPCM_TACSE(0x0e) | \ 47849249e13SPoonam Aggrwal FTIM0_GPCM_TEADC(0x0e) | \ 47949249e13SPoonam Aggrwal FTIM0_GPCM_TEAHC(0x0e)) 48049249e13SPoonam Aggrwal #define CONFIG_SYS_CS3_FTIM1 (FTIM1_GPCM_TACO(0x0e) | \ 48149249e13SPoonam Aggrwal FTIM1_GPCM_TRAD(0x1f)) 48249249e13SPoonam Aggrwal #define CONFIG_SYS_CS3_FTIM2 (FTIM2_GPCM_TCS(0x0e) | \ 483de519163SShaohui Xie FTIM2_GPCM_TCH(0x8) | \ 48449249e13SPoonam Aggrwal FTIM2_GPCM_TWP(0x1f)) 48549249e13SPoonam Aggrwal #define CONFIG_SYS_CS3_FTIM3 0x0 48649249e13SPoonam Aggrwal 48776c9aaf5SAneesh Bansal #if defined(CONFIG_RAMBOOT_SDCARD) || defined(CONFIG_RAMBOOT_SPIFLASH) || \ 48876c9aaf5SAneesh Bansal defined(CONFIG_RAMBOOT_NAND) 48949249e13SPoonam Aggrwal #define CONFIG_SYS_RAMBOOT 49049249e13SPoonam Aggrwal #define CONFIG_SYS_EXTRA_ENV_RELOC 49149249e13SPoonam Aggrwal #else 49249249e13SPoonam Aggrwal #undef CONFIG_SYS_RAMBOOT 49349249e13SPoonam Aggrwal #endif 49449249e13SPoonam Aggrwal 49574fa22edSPrabhakar Kushwaha #ifdef CONFIG_SYS_FSL_ERRATUM_IFC_A003399 49650c76367SAneesh Bansal #if !defined(CONFIG_SPL) && !defined(CONFIG_SYS_RAMBOOT) 49774fa22edSPrabhakar Kushwaha #define CONFIG_A003399_NOR_WORKAROUND 49874fa22edSPrabhakar Kushwaha #endif 49974fa22edSPrabhakar Kushwaha #endif 50074fa22edSPrabhakar Kushwaha 50149249e13SPoonam Aggrwal #define CONFIG_BOARD_EARLY_INIT_R 50249249e13SPoonam Aggrwal 50349249e13SPoonam Aggrwal #define CONFIG_SYS_INIT_RAM_LOCK 50449249e13SPoonam Aggrwal #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* stack in RAM */ 505b39d1213SYork Sun #define CONFIG_SYS_INIT_RAM_SIZE 0x00004000 /* End of used area in RAM */ 50649249e13SPoonam Aggrwal 507b39d1213SYork Sun #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE \ 50849249e13SPoonam Aggrwal - GENERATED_GBL_DATA_SIZE) 50949249e13SPoonam Aggrwal #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 51049249e13SPoonam Aggrwal 5119307cbabSPrabhakar Kushwaha #define CONFIG_SYS_MONITOR_LEN (768 * 1024) 51249249e13SPoonam Aggrwal #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) /* Reserved for malloc*/ 51349249e13SPoonam Aggrwal 514c9e1f588SYing Zhang /* 515c9e1f588SYing Zhang * Config the L2 Cache as L2 SRAM 516c9e1f588SYing Zhang */ 517c9e1f588SYing Zhang #if defined(CONFIG_SPL_BUILD) 518c9e1f588SYing Zhang #if defined(CONFIG_SDCARD) || defined(CONFIG_SPIFLASH) 519c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_ADDR 0xD0000000 520c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_ADDR_PHYS CONFIG_SYS_INIT_L2_ADDR 521c9e1f588SYing Zhang #define CONFIG_SYS_L2_SIZE (256 << 10) 522c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_END (CONFIG_SYS_INIT_L2_ADDR + CONFIG_SYS_L2_SIZE) 523c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_TEXT_BASE 0xD0001000 524c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_STACK (CONFIG_SYS_INIT_L2_ADDR + 112 * 1024) 525c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_STACK_SIZE (16 << 10) 526c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_MALLOC_ADDR (CONFIG_SYS_INIT_L2_ADDR + 128 * 1024) 527c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_MALLOC_SIZE (128 << 10) 528c9e1f588SYing Zhang #define CONFIG_SPL_GD_ADDR (CONFIG_SYS_INIT_L2_ADDR + 96 * 1024) 529c9e1f588SYing Zhang #elif defined(CONFIG_NAND) 530c9e1f588SYing Zhang #ifdef CONFIG_TPL_BUILD 531c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_ADDR 0xD0000000 532c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_ADDR_PHYS CONFIG_SYS_INIT_L2_ADDR 533c9e1f588SYing Zhang #define CONFIG_SYS_L2_SIZE (256 << 10) 534c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_END (CONFIG_SYS_INIT_L2_ADDR + CONFIG_SYS_L2_SIZE) 535c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_TEXT_BASE 0xD0001000 536c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_STACK (CONFIG_SYS_INIT_L2_ADDR + 192 * 1024) 537c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_MALLOC_ADDR (CONFIG_SYS_INIT_L2_ADDR + 208 * 1024) 538c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_MALLOC_SIZE (48 << 10) 539c9e1f588SYing Zhang #define CONFIG_SPL_GD_ADDR (CONFIG_SYS_INIT_L2_ADDR + 176 * 1024) 540c9e1f588SYing Zhang #else 541c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_ADDR 0xD0000000 542c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_ADDR_PHYS CONFIG_SYS_INIT_L2_ADDR 543c9e1f588SYing Zhang #define CONFIG_SYS_L2_SIZE (256 << 10) 544c9e1f588SYing Zhang #define CONFIG_SYS_INIT_L2_END (CONFIG_SYS_INIT_L2_ADDR + CONFIG_SYS_L2_SIZE) 545c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_TEXT_BASE (CONFIG_SYS_INIT_L2_END - 0x3000) 546c9e1f588SYing Zhang #define CONFIG_SPL_RELOC_STACK ((CONFIG_SYS_INIT_L2_END - 1) & ~0xF) 547c9e1f588SYing Zhang #endif 548c9e1f588SYing Zhang #endif 549c9e1f588SYing Zhang #endif 550c9e1f588SYing Zhang 55149249e13SPoonam Aggrwal /* Serial Port */ 55249249e13SPoonam Aggrwal #define CONFIG_CONS_INDEX 1 55349249e13SPoonam Aggrwal #undef CONFIG_SERIAL_SOFTWARE_FIFO 55449249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_SERIAL 55549249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_REG_SIZE 1 55649249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 557c9e1f588SYing Zhang #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_INIT_MINIMAL) 558d793e5a8SDipen Dudhat #define CONFIG_NS16550_MIN_FUNCTIONS 559d793e5a8SDipen Dudhat #endif 56049249e13SPoonam Aggrwal 56149249e13SPoonam Aggrwal #define CONFIG_SYS_BAUDRATE_TABLE \ 56249249e13SPoonam Aggrwal {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} 56349249e13SPoonam Aggrwal 56449249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 56549249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 56649249e13SPoonam Aggrwal 56700f792e0SHeiko Schocher /* I2C */ 56800f792e0SHeiko Schocher #define CONFIG_SYS_I2C 56900f792e0SHeiko Schocher #define CONFIG_SYS_I2C_FSL 57000f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_SPEED 400000 57100f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_SLAVE 0x7F 57200f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_OFFSET 0x3000 57300f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_SPEED 400000 57400f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_SLAVE 0x7F 57500f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_OFFSET 0x3100 576ad89da0cSShengzhou Liu #define I2C_PCA9557_ADDR1 0x18 577e512c50bSShengzhou Liu #define I2C_PCA9557_ADDR2 0x19 578ad89da0cSShengzhou Liu #define I2C_PCA9557_BUS_NUM 0 57949249e13SPoonam Aggrwal 58049249e13SPoonam Aggrwal /* I2C EEPROM */ 5817601686cSYork Sun #if defined(CONFIG_TARGET_P1010RDB_PB) 582e512c50bSShengzhou Liu #define CONFIG_ID_EEPROM 583e512c50bSShengzhou Liu #ifdef CONFIG_ID_EEPROM 584e512c50bSShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_NXID 585e512c50bSShengzhou Liu #endif 586e512c50bSShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 587e512c50bSShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 588e512c50bSShengzhou Liu #define CONFIG_SYS_EEPROM_BUS_NUM 0 589e512c50bSShengzhou Liu #define MAX_NUM_PORTS 9 /* for 128Bytes EEPROM */ 590e512c50bSShengzhou Liu #endif 59149249e13SPoonam Aggrwal /* enable read and write access to EEPROM */ 59249249e13SPoonam Aggrwal #define CONFIG_CMD_EEPROM 59349249e13SPoonam Aggrwal #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 59449249e13SPoonam Aggrwal #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 59549249e13SPoonam Aggrwal #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5 59649249e13SPoonam Aggrwal 59749249e13SPoonam Aggrwal /* RTC */ 59849249e13SPoonam Aggrwal #define CONFIG_RTC_PT7C4338 59949249e13SPoonam Aggrwal #define CONFIG_SYS_I2C_RTC_ADDR 0x68 60049249e13SPoonam Aggrwal 60149249e13SPoonam Aggrwal /* 60249249e13SPoonam Aggrwal * SPI interface will not be available in case of NAND boot SPI CS0 will be 60349249e13SPoonam Aggrwal * used for SLIC 60449249e13SPoonam Aggrwal */ 6050fa934d2SPrabhakar Kushwaha #if !defined(CONFIG_NAND) || !defined(CONFIG_NAND_SECBOOT) 60649249e13SPoonam Aggrwal /* eSPI - Enhanced SPI */ 60749249e13SPoonam Aggrwal #define CONFIG_SF_DEFAULT_SPEED 10000000 60849249e13SPoonam Aggrwal #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 609d793e5a8SDipen Dudhat #endif 61049249e13SPoonam Aggrwal 61149249e13SPoonam Aggrwal #if defined(CONFIG_TSEC_ENET) 61249249e13SPoonam Aggrwal #define CONFIG_MII /* MII PHY management */ 61349249e13SPoonam Aggrwal #define CONFIG_MII_DEFAULT_TSEC 1 /* Allow unregistered phys */ 61449249e13SPoonam Aggrwal #define CONFIG_TSEC1 1 61549249e13SPoonam Aggrwal #define CONFIG_TSEC1_NAME "eTSEC1" 61649249e13SPoonam Aggrwal #define CONFIG_TSEC2 1 61749249e13SPoonam Aggrwal #define CONFIG_TSEC2_NAME "eTSEC2" 61849249e13SPoonam Aggrwal #define CONFIG_TSEC3 1 61949249e13SPoonam Aggrwal #define CONFIG_TSEC3_NAME "eTSEC3" 62049249e13SPoonam Aggrwal 62149249e13SPoonam Aggrwal #define TSEC1_PHY_ADDR 1 62249249e13SPoonam Aggrwal #define TSEC2_PHY_ADDR 0 62349249e13SPoonam Aggrwal #define TSEC3_PHY_ADDR 2 62449249e13SPoonam Aggrwal 62549249e13SPoonam Aggrwal #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 62649249e13SPoonam Aggrwal #define TSEC2_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 62749249e13SPoonam Aggrwal #define TSEC3_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 62849249e13SPoonam Aggrwal 62949249e13SPoonam Aggrwal #define TSEC1_PHYIDX 0 63049249e13SPoonam Aggrwal #define TSEC2_PHYIDX 0 63149249e13SPoonam Aggrwal #define TSEC3_PHYIDX 0 63249249e13SPoonam Aggrwal 63349249e13SPoonam Aggrwal #define CONFIG_ETHPRIME "eTSEC1" 63449249e13SPoonam Aggrwal 63549249e13SPoonam Aggrwal #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ 63649249e13SPoonam Aggrwal 63749249e13SPoonam Aggrwal /* TBI PHY configuration for SGMII mode */ 63849249e13SPoonam Aggrwal #define CONFIG_TSEC_TBICR_SETTINGS ( \ 63949249e13SPoonam Aggrwal TBICR_PHY_RESET \ 64049249e13SPoonam Aggrwal | TBICR_ANEG_ENABLE \ 64149249e13SPoonam Aggrwal | TBICR_FULL_DUPLEX \ 64249249e13SPoonam Aggrwal | TBICR_SPEED1_SET \ 64349249e13SPoonam Aggrwal ) 64449249e13SPoonam Aggrwal 64549249e13SPoonam Aggrwal #endif /* CONFIG_TSEC_ENET */ 64649249e13SPoonam Aggrwal 64749249e13SPoonam Aggrwal /* SATA */ 64849249e13SPoonam Aggrwal #define CONFIG_FSL_SATA 6499760b274SZang Roy-R61911 #define CONFIG_FSL_SATA_V2 65049249e13SPoonam Aggrwal #define CONFIG_LIBATA 65149249e13SPoonam Aggrwal 65249249e13SPoonam Aggrwal #ifdef CONFIG_FSL_SATA 65349249e13SPoonam Aggrwal #define CONFIG_SYS_SATA_MAX_DEVICE 2 65449249e13SPoonam Aggrwal #define CONFIG_SATA1 65549249e13SPoonam Aggrwal #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 65649249e13SPoonam Aggrwal #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 65749249e13SPoonam Aggrwal #define CONFIG_SATA2 65849249e13SPoonam Aggrwal #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 65949249e13SPoonam Aggrwal #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 66049249e13SPoonam Aggrwal 66149249e13SPoonam Aggrwal #define CONFIG_CMD_SATA 66249249e13SPoonam Aggrwal #define CONFIG_LBA48 66349249e13SPoonam Aggrwal #endif /* #ifdef CONFIG_FSL_SATA */ 66449249e13SPoonam Aggrwal 66549249e13SPoonam Aggrwal #ifdef CONFIG_MMC 66649249e13SPoonam Aggrwal #define CONFIG_FSL_ESDHC 66749249e13SPoonam Aggrwal #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR 66849249e13SPoonam Aggrwal #endif 66949249e13SPoonam Aggrwal 67049249e13SPoonam Aggrwal #define CONFIG_HAS_FSL_DR_USB 67149249e13SPoonam Aggrwal 67249249e13SPoonam Aggrwal #if defined(CONFIG_HAS_FSL_DR_USB) 673*8850c5d5STom Rini #define CONFIG_USB_EHCI_HCD 67449249e13SPoonam Aggrwal 675*8850c5d5STom Rini #ifdef CONFIG_USB_EHCI_HCD 67649249e13SPoonam Aggrwal #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 67749249e13SPoonam Aggrwal #define CONFIG_USB_EHCI_FSL 67849249e13SPoonam Aggrwal #endif 67949249e13SPoonam Aggrwal #endif 68049249e13SPoonam Aggrwal 68149249e13SPoonam Aggrwal /* 68249249e13SPoonam Aggrwal * Environment 68349249e13SPoonam Aggrwal */ 684c9e1f588SYing Zhang #if defined(CONFIG_SDCARD) 68549249e13SPoonam Aggrwal #define CONFIG_ENV_IS_IN_MMC 6864394d0c2SFabio Estevam #define CONFIG_FSL_FIXED_MMC_LOCATION 68749249e13SPoonam Aggrwal #define CONFIG_SYS_MMC_ENV_DEV 0 68849249e13SPoonam Aggrwal #define CONFIG_ENV_SIZE 0x2000 689c9e1f588SYing Zhang #elif defined(CONFIG_SPIFLASH) 69049249e13SPoonam Aggrwal #define CONFIG_ENV_IS_IN_SPI_FLASH 69149249e13SPoonam Aggrwal #define CONFIG_ENV_SPI_BUS 0 69249249e13SPoonam Aggrwal #define CONFIG_ENV_SPI_CS 0 69349249e13SPoonam Aggrwal #define CONFIG_ENV_SPI_MAX_HZ 10000000 69449249e13SPoonam Aggrwal #define CONFIG_ENV_SPI_MODE 0 69549249e13SPoonam Aggrwal #define CONFIG_ENV_OFFSET 0x100000 /* 1MB */ 69649249e13SPoonam Aggrwal #define CONFIG_ENV_SECT_SIZE 0x10000 69749249e13SPoonam Aggrwal #define CONFIG_ENV_SIZE 0x2000 6980fa934d2SPrabhakar Kushwaha #elif defined(CONFIG_NAND) 699d793e5a8SDipen Dudhat #define CONFIG_ENV_IS_IN_NAND 700c9e1f588SYing Zhang #ifdef CONFIG_TPL_BUILD 701c9e1f588SYing Zhang #define CONFIG_ENV_SIZE 0x2000 702c9e1f588SYing Zhang #define CONFIG_ENV_ADDR (CONFIG_SYS_INIT_L2_ADDR + (160 << 10)) 703c9e1f588SYing Zhang #else 7047601686cSYork Sun #if defined(CONFIG_TARGET_P1010RDB_PA) 705d793e5a8SDipen Dudhat #define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE 706e512c50bSShengzhou Liu #define CONFIG_ENV_RANGE (3 * CONFIG_ENV_SIZE) /* 3*16=48K for env */ 7077601686cSYork Sun #elif defined(CONFIG_TARGET_P1010RDB_PB) 708e512c50bSShengzhou Liu #define CONFIG_ENV_SIZE (16 * 1024) 709e512c50bSShengzhou Liu #define CONFIG_ENV_RANGE (32 * CONFIG_ENV_SIZE) /* new block size 512K */ 710e512c50bSShengzhou Liu #endif 711c9e1f588SYing Zhang #endif 712c9e1f588SYing Zhang #define CONFIG_ENV_OFFSET (1024 * 1024) 7130fa934d2SPrabhakar Kushwaha #elif defined(CONFIG_SYS_RAMBOOT) 71449249e13SPoonam Aggrwal #define CONFIG_ENV_IS_NOWHERE /* Store ENV in memory only */ 71549249e13SPoonam Aggrwal #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000) 71649249e13SPoonam Aggrwal #define CONFIG_ENV_SIZE 0x2000 71749249e13SPoonam Aggrwal #else 71849249e13SPoonam Aggrwal #define CONFIG_ENV_IS_IN_FLASH 71949249e13SPoonam Aggrwal #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 72049249e13SPoonam Aggrwal #define CONFIG_ENV_SIZE 0x2000 72149249e13SPoonam Aggrwal #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 72249249e13SPoonam Aggrwal #endif 72349249e13SPoonam Aggrwal 72449249e13SPoonam Aggrwal #define CONFIG_LOADS_ECHO /* echo on for serial download */ 72549249e13SPoonam Aggrwal #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */ 72649249e13SPoonam Aggrwal 72749249e13SPoonam Aggrwal /* 72849249e13SPoonam Aggrwal * Command line configuration. 72949249e13SPoonam Aggrwal */ 73049249e13SPoonam Aggrwal #define CONFIG_CMD_ERRATA 73149249e13SPoonam Aggrwal #define CONFIG_CMD_IRQ 73249249e13SPoonam Aggrwal #define CONFIG_CMD_REGINFO 73349249e13SPoonam Aggrwal 73449249e13SPoonam Aggrwal #undef CONFIG_WATCHDOG /* watchdog disabled */ 73549249e13SPoonam Aggrwal 736*8850c5d5STom Rini #if defined(CONFIG_MMC) || defined(CONFIG_USB_EHCI_HCD) \ 73749249e13SPoonam Aggrwal || defined(CONFIG_FSL_SATA) 73849249e13SPoonam Aggrwal #endif 73949249e13SPoonam Aggrwal 740737537efSRuchika Gupta /* Hash command with SHA acceleration supported in hardware */ 741737537efSRuchika Gupta #ifdef CONFIG_FSL_CAAM 742737537efSRuchika Gupta #define CONFIG_CMD_HASH 743737537efSRuchika Gupta #define CONFIG_SHA_HW_ACCEL 744737537efSRuchika Gupta #endif 745737537efSRuchika Gupta 74649249e13SPoonam Aggrwal /* 74749249e13SPoonam Aggrwal * Miscellaneous configurable options 74849249e13SPoonam Aggrwal */ 74949249e13SPoonam Aggrwal #define CONFIG_SYS_LONGHELP /* undef to save memory */ 75049249e13SPoonam Aggrwal #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 75149249e13SPoonam Aggrwal #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ 75249249e13SPoonam Aggrwal #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 75349249e13SPoonam Aggrwal 75449249e13SPoonam Aggrwal #if defined(CONFIG_CMD_KGDB) 75549249e13SPoonam Aggrwal #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 75649249e13SPoonam Aggrwal #else 75749249e13SPoonam Aggrwal #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 75849249e13SPoonam Aggrwal #endif 75949249e13SPoonam Aggrwal #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) 76049249e13SPoonam Aggrwal /* Print Buffer Size */ 76149249e13SPoonam Aggrwal #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 76249249e13SPoonam Aggrwal #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE/* Boot Argument Buffer Size */ 76349249e13SPoonam Aggrwal 76449249e13SPoonam Aggrwal /* 76549249e13SPoonam Aggrwal * For booting Linux, the board info and command line data 76649249e13SPoonam Aggrwal * have to be in the first 64 MB of memory, since this is 76749249e13SPoonam Aggrwal * the maximum mapped by the Linux kernel during initialization. 76849249e13SPoonam Aggrwal */ 76949249e13SPoonam Aggrwal #define CONFIG_SYS_BOOTMAPSZ (64 << 20) /* Initial Memory map for Linux */ 77049249e13SPoonam Aggrwal #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */ 77149249e13SPoonam Aggrwal 77249249e13SPoonam Aggrwal #if defined(CONFIG_CMD_KGDB) 77349249e13SPoonam Aggrwal #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 77449249e13SPoonam Aggrwal #endif 77549249e13SPoonam Aggrwal 77649249e13SPoonam Aggrwal /* 77749249e13SPoonam Aggrwal * Environment Configuration 77849249e13SPoonam Aggrwal */ 77949249e13SPoonam Aggrwal 78049249e13SPoonam Aggrwal #if defined(CONFIG_TSEC_ENET) 78149249e13SPoonam Aggrwal #define CONFIG_HAS_ETH0 78249249e13SPoonam Aggrwal #define CONFIG_HAS_ETH1 78349249e13SPoonam Aggrwal #define CONFIG_HAS_ETH2 78449249e13SPoonam Aggrwal #endif 78549249e13SPoonam Aggrwal 7868b3637c6SJoe Hershberger #define CONFIG_ROOTPATH "/opt/nfsroot" 787b3f44c21SJoe Hershberger #define CONFIG_BOOTFILE "uImage" 78849249e13SPoonam Aggrwal #define CONFIG_UBOOTPATH u-boot.bin/* U-Boot image on TFTP server */ 78949249e13SPoonam Aggrwal 79049249e13SPoonam Aggrwal /* default location for tftp and bootm */ 79149249e13SPoonam Aggrwal #define CONFIG_LOADADDR 1000000 79249249e13SPoonam Aggrwal 79349249e13SPoonam Aggrwal #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ 79449249e13SPoonam Aggrwal 79549249e13SPoonam Aggrwal #define CONFIG_EXTRA_ENV_SETTINGS \ 7965368c55dSMarek Vasut "hwconfig=" __stringify(CONFIG_DEF_HWCONFIG) "\0" \ 79749249e13SPoonam Aggrwal "netdev=eth0\0" \ 7985368c55dSMarek Vasut "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ 79949249e13SPoonam Aggrwal "loadaddr=1000000\0" \ 80049249e13SPoonam Aggrwal "consoledev=ttyS0\0" \ 80149249e13SPoonam Aggrwal "ramdiskaddr=2000000\0" \ 80249249e13SPoonam Aggrwal "ramdiskfile=rootfs.ext2.gz.uboot\0" \ 803b24a4f62SScott Wood "fdtaddr=1e00000\0" \ 80449249e13SPoonam Aggrwal "fdtfile=p1010rdb.dtb\0" \ 80549249e13SPoonam Aggrwal "bdev=sda1\0" \ 80649249e13SPoonam Aggrwal "hwconfig=usb1:dr_mode=host,phy_type=utmi\0" \ 80749249e13SPoonam Aggrwal "othbootargs=ramdisk_size=600000\0" \ 80849249e13SPoonam Aggrwal "usbfatboot=setenv bootargs root=/dev/ram rw " \ 80949249e13SPoonam Aggrwal "console=$consoledev,$baudrate $othbootargs; " \ 81049249e13SPoonam Aggrwal "usb start;" \ 81149249e13SPoonam Aggrwal "fatload usb 0:2 $loadaddr $bootfile;" \ 81249249e13SPoonam Aggrwal "fatload usb 0:2 $fdtaddr $fdtfile;" \ 81349249e13SPoonam Aggrwal "fatload usb 0:2 $ramdiskaddr $ramdiskfile;" \ 81449249e13SPoonam Aggrwal "bootm $loadaddr $ramdiskaddr $fdtaddr\0" \ 81549249e13SPoonam Aggrwal "usbext2boot=setenv bootargs root=/dev/ram rw " \ 81649249e13SPoonam Aggrwal "console=$consoledev,$baudrate $othbootargs; " \ 81749249e13SPoonam Aggrwal "usb start;" \ 81849249e13SPoonam Aggrwal "ext2load usb 0:4 $loadaddr $bootfile;" \ 81949249e13SPoonam Aggrwal "ext2load usb 0:4 $fdtaddr $fdtfile;" \ 82049249e13SPoonam Aggrwal "ext2load usb 0:4 $ramdiskaddr $ramdiskfile;" \ 82149249e13SPoonam Aggrwal "bootm $loadaddr $ramdiskaddr $fdtaddr\0" \ 822e512c50bSShengzhou Liu CONFIG_BOOTMODE 823e512c50bSShengzhou Liu 8247601686cSYork Sun #if defined(CONFIG_TARGET_P1010RDB_PA) 825e512c50bSShengzhou Liu #define CONFIG_BOOTMODE \ 826e512c50bSShengzhou Liu "boot_bank0=i2c dev 0; i2c mw 18 1 f1; i2c mw 18 3 f0;" \ 827e512c50bSShengzhou Liu "mw.b ffb00011 0; mw.b ffb00009 0; reset\0" \ 828e512c50bSShengzhou Liu "boot_bank1=i2c dev 0; i2c mw 18 1 f1; i2c mw 18 3 f0;" \ 829e512c50bSShengzhou Liu "mw.b ffb00011 0; mw.b ffb00009 1; reset\0" \ 830e512c50bSShengzhou Liu "boot_nand=i2c dev 0; i2c mw 18 1 f9; i2c mw 18 3 f0;" \ 831e512c50bSShengzhou Liu "mw.b ffb00011 0; mw.b ffb00017 1; reset\0" 832e512c50bSShengzhou Liu 8337601686cSYork Sun #elif defined(CONFIG_TARGET_P1010RDB_PB) 834e512c50bSShengzhou Liu #define CONFIG_BOOTMODE \ 835e512c50bSShengzhou Liu "boot_bank0=i2c dev 0; i2c mw 18 1 fe; i2c mw 18 3 0;" \ 836e512c50bSShengzhou Liu "i2c mw 19 1 2; i2c mw 19 3 e1; reset\0" \ 837e512c50bSShengzhou Liu "boot_bank1=i2c dev 0; i2c mw 18 1 fe; i2c mw 18 3 0;" \ 838e512c50bSShengzhou Liu "i2c mw 19 1 12; i2c mw 19 3 e1; reset\0" \ 839e512c50bSShengzhou Liu "boot_nand=i2c dev 0; i2c mw 18 1 fc; i2c mw 18 3 0;" \ 840e512c50bSShengzhou Liu "i2c mw 19 1 8; i2c mw 19 3 f7; reset\0" \ 841e512c50bSShengzhou Liu "boot_spi=i2c dev 0; i2c mw 18 1 fa; i2c mw 18 3 0;" \ 842e512c50bSShengzhou Liu "i2c mw 19 1 0; i2c mw 19 3 f7; reset\0" \ 843e512c50bSShengzhou Liu "boot_sd=i2c dev 0; i2c mw 18 1 f8; i2c mw 18 3 0;" \ 844e512c50bSShengzhou Liu "i2c mw 19 1 4; i2c mw 19 3 f3; reset\0" 845e512c50bSShengzhou Liu #endif 84649249e13SPoonam Aggrwal 84749249e13SPoonam Aggrwal #define CONFIG_RAMBOOTCOMMAND \ 84849249e13SPoonam Aggrwal "setenv bootargs root=/dev/ram rw " \ 84949249e13SPoonam Aggrwal "console=$consoledev,$baudrate $othbootargs; " \ 85049249e13SPoonam Aggrwal "tftp $ramdiskaddr $ramdiskfile;" \ 85149249e13SPoonam Aggrwal "tftp $loadaddr $bootfile;" \ 85249249e13SPoonam Aggrwal "tftp $fdtaddr $fdtfile;" \ 85349249e13SPoonam Aggrwal "bootm $loadaddr $ramdiskaddr $fdtaddr" 85449249e13SPoonam Aggrwal 85549249e13SPoonam Aggrwal #define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND 85649249e13SPoonam Aggrwal 8572f439e80SRuchika Gupta #include <asm/fsl_secure_boot.h> 8582f439e80SRuchika Gupta 85949249e13SPoonam Aggrwal #endif /* __CONFIG_H */ 860