1129ba616SKumar Gala /* 2*509c4c4cSKumar Gala * Copyright 2007-2010 Freescale Semiconductor, Inc. 3129ba616SKumar Gala * 4129ba616SKumar Gala * See file CREDITS for list of people who contributed to this 5129ba616SKumar Gala * project. 6129ba616SKumar Gala * 7129ba616SKumar Gala * This program is free software; you can redistribute it and/or 8129ba616SKumar Gala * modify it under the terms of the GNU General Public License as 9129ba616SKumar Gala * published by the Free Software Foundation; either version 2 of 10129ba616SKumar Gala * the License, or (at your option) any later version. 11129ba616SKumar Gala * 12129ba616SKumar Gala * This program is distributed in the hope that it will be useful, 13129ba616SKumar Gala * but WITHOUT ANY WARRANTY; without even the implied warranty of 14129ba616SKumar Gala * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15129ba616SKumar Gala * GNU General Public License for more details. 16129ba616SKumar Gala * 17129ba616SKumar Gala * You should have received a copy of the GNU General Public License 18129ba616SKumar Gala * along with this program; if not, write to the Free Software 19129ba616SKumar Gala * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20129ba616SKumar Gala * MA 02111-1307 USA 21129ba616SKumar Gala */ 22129ba616SKumar Gala 23129ba616SKumar Gala #include <common.h> 24129ba616SKumar Gala #include <command.h> 25129ba616SKumar Gala #include <pci.h> 26129ba616SKumar Gala #include <asm/processor.h> 27129ba616SKumar Gala #include <asm/mmu.h> 287c0d4a75SKumar Gala #include <asm/cache.h> 29129ba616SKumar Gala #include <asm/immap_85xx.h> 30c8514622SKumar Gala #include <asm/fsl_pci.h> 31129ba616SKumar Gala #include <asm/fsl_ddr_sdram.h> 32129ba616SKumar Gala #include <asm/io.h> 33129ba616SKumar Gala #include <miiphy.h> 34129ba616SKumar Gala #include <libfdt.h> 35129ba616SKumar Gala #include <fdt_support.h> 367e183cadSLiu Yu #include <tsec.h> 37b560ab85SKumar Gala #include <netdev.h> 38129ba616SKumar Gala 397e183cadSLiu Yu #include "../common/sgmii_riser.h" 40129ba616SKumar Gala 41129ba616SKumar Gala long int fixed_sdram(void); 42129ba616SKumar Gala 43129ba616SKumar Gala int checkboard (void) 44129ba616SKumar Gala { 456bb5b412SKumar Gala u8 vboot; 466bb5b412SKumar Gala u8 *pixis_base = (u8 *)PIXIS_BASE; 476bb5b412SKumar Gala 48cb69e4deSKumar Gala puts ("Board: MPC8572DS "); 49cb69e4deSKumar Gala #ifdef CONFIG_PHYS_64BIT 50cb69e4deSKumar Gala puts ("(36-bit addrmap) "); 51cb69e4deSKumar Gala #endif 52cb69e4deSKumar Gala printf ("Sys ID: 0x%02x, " 536bb5b412SKumar Gala "Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ", 546bb5b412SKumar Gala in_8(pixis_base + PIXIS_ID), in_8(pixis_base + PIXIS_VER), 556bb5b412SKumar Gala in_8(pixis_base + PIXIS_PVER)); 566bb5b412SKumar Gala 576bb5b412SKumar Gala vboot = in_8(pixis_base + PIXIS_VBOOT); 586bb5b412SKumar Gala switch ((vboot & PIXIS_VBOOT_LBMAP) >> 6) { 596bb5b412SKumar Gala case PIXIS_VBOOT_LBMAP_NOR0: 606bb5b412SKumar Gala puts ("vBank: 0\n"); 616bb5b412SKumar Gala break; 626bb5b412SKumar Gala case PIXIS_VBOOT_LBMAP_PJET: 636bb5b412SKumar Gala puts ("Promjet\n"); 646bb5b412SKumar Gala break; 656bb5b412SKumar Gala case PIXIS_VBOOT_LBMAP_NAND: 666bb5b412SKumar Gala puts ("NAND\n"); 676bb5b412SKumar Gala break; 686bb5b412SKumar Gala case PIXIS_VBOOT_LBMAP_NOR1: 696bb5b412SKumar Gala puts ("vBank: 1\n"); 706bb5b412SKumar Gala break; 716bb5b412SKumar Gala } 726bb5b412SKumar Gala 73129ba616SKumar Gala return 0; 74129ba616SKumar Gala } 75129ba616SKumar Gala 76129ba616SKumar Gala phys_size_t initdram(int board_type) 77129ba616SKumar Gala { 78129ba616SKumar Gala phys_size_t dram_size = 0; 79129ba616SKumar Gala 80129ba616SKumar Gala puts("Initializing...."); 81129ba616SKumar Gala 82129ba616SKumar Gala #ifdef CONFIG_SPD_EEPROM 83129ba616SKumar Gala dram_size = fsl_ddr_sdram(); 84129ba616SKumar Gala #else 85129ba616SKumar Gala dram_size = fixed_sdram(); 86129ba616SKumar Gala #endif 87e57f0fa1SDave Liu dram_size = setup_ddr_tlbs(dram_size / 0x100000); 88e57f0fa1SDave Liu dram_size *= 0x100000; 89129ba616SKumar Gala 90129ba616SKumar Gala puts(" DDR: "); 91129ba616SKumar Gala return dram_size; 92129ba616SKumar Gala } 93129ba616SKumar Gala 94129ba616SKumar Gala #if !defined(CONFIG_SPD_EEPROM) 95129ba616SKumar Gala /* 96129ba616SKumar Gala * Fixed sdram init -- doesn't use serial presence detect. 97129ba616SKumar Gala */ 98129ba616SKumar Gala 99129ba616SKumar Gala phys_size_t fixed_sdram (void) 100129ba616SKumar Gala { 1016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR; 102129ba616SKumar Gala volatile ccsr_ddr_t *ddr= &immap->im_ddr; 103129ba616SKumar Gala uint d_init; 104129ba616SKumar Gala 1056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS; 1066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG; 107129ba616SKumar Gala 1086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3; 1096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0; 1106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1; 1116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2; 1126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->sdram_mode = CONFIG_SYS_DDR_MODE_1; 1136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->sdram_mode_2 = CONFIG_SYS_DDR_MODE_2; 1146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL; 1156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->sdram_data_init = CONFIG_SYS_DDR_DATA_INIT; 1166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CTRL; 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->sdram_cfg_2 = CONFIG_SYS_DDR_CONTROL2; 118129ba616SKumar Gala 119129ba616SKumar Gala #if defined (CONFIG_DDR_ECC) 1206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->err_int_en = CONFIG_SYS_DDR_ERR_INT_EN; 1216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->err_disable = CONFIG_SYS_DDR_ERR_DIS; 1226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->err_sbe = CONFIG_SYS_DDR_SBE; 123129ba616SKumar Gala #endif 124129ba616SKumar Gala asm("sync;isync"); 125129ba616SKumar Gala 126129ba616SKumar Gala udelay(500); 127129ba616SKumar Gala 1286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL; 129129ba616SKumar Gala 130129ba616SKumar Gala #if defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER) 131129ba616SKumar Gala d_init = 1; 132129ba616SKumar Gala debug("DDR - 1st controller: memory initializing\n"); 133129ba616SKumar Gala /* 134129ba616SKumar Gala * Poll until memory is initialized. 135129ba616SKumar Gala * 512 Meg at 400 might hit this 200 times or so. 136129ba616SKumar Gala */ 137129ba616SKumar Gala while ((ddr->sdram_cfg_2 & (d_init << 4)) != 0) { 138129ba616SKumar Gala udelay(1000); 139129ba616SKumar Gala } 140129ba616SKumar Gala debug("DDR: memory initialized\n\n"); 141129ba616SKumar Gala asm("sync; isync"); 142129ba616SKumar Gala udelay(500); 143129ba616SKumar Gala #endif 144129ba616SKumar Gala 145129ba616SKumar Gala return 512 * 1024 * 1024; 146129ba616SKumar Gala } 147129ba616SKumar Gala 148129ba616SKumar Gala #endif 149129ba616SKumar Gala 150129ba616SKumar Gala #ifdef CONFIG_PCIE1 151129ba616SKumar Gala static struct pci_controller pcie1_hose; 152129ba616SKumar Gala #endif 153129ba616SKumar Gala 154129ba616SKumar Gala #ifdef CONFIG_PCIE2 155129ba616SKumar Gala static struct pci_controller pcie2_hose; 156129ba616SKumar Gala #endif 157129ba616SKumar Gala 158129ba616SKumar Gala #ifdef CONFIG_PCIE3 159129ba616SKumar Gala static struct pci_controller pcie3_hose; 160129ba616SKumar Gala #endif 161129ba616SKumar Gala 162129ba616SKumar Gala #ifdef CONFIG_PCI 163129ba616SKumar Gala void pci_init_board(void) 164129ba616SKumar Gala { 1656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); 166f61dae7cSKumar Gala struct fsl_pci_info pci_info[3]; 16742c01b9dSKumar Gala u32 devdisr, pordevsr, io_sel, temp32; 168f61dae7cSKumar Gala int first_free_busno = 0; 169f61dae7cSKumar Gala int num = 0; 170f61dae7cSKumar Gala 171f61dae7cSKumar Gala int pcie_ep, pcie_configured; 172f61dae7cSKumar Gala 173f61dae7cSKumar Gala devdisr = in_be32(&gur->devdisr); 174f61dae7cSKumar Gala pordevsr = in_be32(&gur->pordevsr); 175f61dae7cSKumar Gala io_sel = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19; 176129ba616SKumar Gala 17742c01b9dSKumar Gala debug (" pci_init_board: devdisr=%x, io_sel=%x\n", devdisr, io_sel); 178129ba616SKumar Gala 179f61dae7cSKumar Gala if (!(pordevsr & MPC85xx_PORDEVSR_SGMII1_DIS)) 180129ba616SKumar Gala printf (" eTSEC1 is in sgmii mode.\n"); 181f61dae7cSKumar Gala if (!(pordevsr & MPC85xx_PORDEVSR_SGMII2_DIS)) 182129ba616SKumar Gala printf (" eTSEC2 is in sgmii mode.\n"); 183f61dae7cSKumar Gala if (!(pordevsr & MPC85xx_PORDEVSR_SGMII3_DIS)) 184129ba616SKumar Gala printf (" eTSEC3 is in sgmii mode.\n"); 185f61dae7cSKumar Gala if (!(pordevsr & MPC85xx_PORDEVSR_SGMII4_DIS)) 186129ba616SKumar Gala printf (" eTSEC4 is in sgmii mode.\n"); 187129ba616SKumar Gala 188f61dae7cSKumar Gala puts("\n"); 189129ba616SKumar Gala #ifdef CONFIG_PCIE3 190f61dae7cSKumar Gala pcie_configured = is_fsl_pci_cfg(LAW_TRGT_IF_PCIE_3, io_sel); 191129ba616SKumar Gala 192028e1168SRoy Zang if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE3)){ 193f61dae7cSKumar Gala SET_STD_PCIE_INFO(pci_info[num], 3); 19442c01b9dSKumar Gala pcie_ep = fsl_setup_hose(&pcie3_hose, pci_info[num].regs); 195f61dae7cSKumar Gala printf (" PCIE3 connected to ULI as %s (base addr %lx)\n", 19664917ca3SPeter Tyser pcie_ep ? "Endpoint" : "Root Complex", 197f61dae7cSKumar Gala pci_info[num].regs); 198f61dae7cSKumar Gala first_free_busno = fsl_pci_init_port(&pci_info[num++], 19901471d53SKumar Gala &pcie3_hose, first_free_busno); 200129ba616SKumar Gala /* 201129ba616SKumar Gala * Activate ULI1575 legacy chip by performing a fake 202129ba616SKumar Gala * memory access. Needed to make ULI RTC work. 203129ba616SKumar Gala * Device 1d has the first on-board memory BAR. 204129ba616SKumar Gala */ 205f61dae7cSKumar Gala pci_hose_read_config_dword(&pcie3_hose, PCI_BDF(2, 0x1d, 0), 206129ba616SKumar Gala PCI_BASE_ADDRESS_1, &temp32); 2075af0fdd8SKumar Gala if (temp32 >= CONFIG_SYS_PCIE3_MEM_BUS) { 208ad97dce1SKumar Gala void *p = pci_mem_to_virt(PCI_BDF(2, 0x1d, 0), 209ad97dce1SKumar Gala temp32, 4, 0); 210ad97dce1SKumar Gala debug(" uli1572 read to %p\n", p); 211ad97dce1SKumar Gala in_be32(p); 212129ba616SKumar Gala } 213129ba616SKumar Gala } else { 214129ba616SKumar Gala printf (" PCIE3: disabled\n"); 215129ba616SKumar Gala } 216f61dae7cSKumar Gala puts("\n"); 217129ba616SKumar Gala #else 218f61dae7cSKumar Gala setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE3); /* disable */ 219129ba616SKumar Gala #endif 220129ba616SKumar Gala 221129ba616SKumar Gala #ifdef CONFIG_PCIE2 222f61dae7cSKumar Gala pcie_configured = is_fsl_pci_cfg(LAW_TRGT_IF_PCIE_2, io_sel); 223129ba616SKumar Gala 224028e1168SRoy Zang if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE2)){ 225f61dae7cSKumar Gala SET_STD_PCIE_INFO(pci_info[num], 2); 22642c01b9dSKumar Gala pcie_ep = fsl_setup_hose(&pcie2_hose, pci_info[num].regs); 227f61dae7cSKumar Gala printf (" PCIE2 connected to Slot 1 as %s (base addr %lx)\n", 22864917ca3SPeter Tyser pcie_ep ? "Endpoint" : "Root Complex", 229f61dae7cSKumar Gala pci_info[num].regs); 230f61dae7cSKumar Gala first_free_busno = fsl_pci_init_port(&pci_info[num++], 23101471d53SKumar Gala &pcie2_hose, first_free_busno); 232129ba616SKumar Gala } else { 233129ba616SKumar Gala printf (" PCIE2: disabled\n"); 234129ba616SKumar Gala } 235129ba616SKumar Gala 236f61dae7cSKumar Gala puts("\n"); 237129ba616SKumar Gala #else 238f61dae7cSKumar Gala setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE2); /* disable */ 239129ba616SKumar Gala #endif 240f61dae7cSKumar Gala 241129ba616SKumar Gala #ifdef CONFIG_PCIE1 242f61dae7cSKumar Gala pcie_configured = is_fsl_pci_cfg(LAW_TRGT_IF_PCIE_1, io_sel); 243129ba616SKumar Gala 244129ba616SKumar Gala if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE)){ 245f61dae7cSKumar Gala SET_STD_PCIE_INFO(pci_info[num], 1); 24642c01b9dSKumar Gala pcie_ep = fsl_setup_hose(&pcie1_hose, pci_info[num].regs); 247f61dae7cSKumar Gala printf (" PCIE1 connected to Slot 2 as %s (base addr %lx)\n", 24864917ca3SPeter Tyser pcie_ep ? "Endpoint" : "Root Complex", 249f61dae7cSKumar Gala pci_info[num].regs); 250f61dae7cSKumar Gala first_free_busno = fsl_pci_init_port(&pci_info[num++], 25101471d53SKumar Gala &pcie1_hose, first_free_busno); 252129ba616SKumar Gala } else { 253129ba616SKumar Gala printf (" PCIE1: disabled\n"); 254129ba616SKumar Gala } 255129ba616SKumar Gala 256f61dae7cSKumar Gala puts("\n"); 257129ba616SKumar Gala #else 258f61dae7cSKumar Gala setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE); /* disable */ 259129ba616SKumar Gala #endif 260129ba616SKumar Gala } 261129ba616SKumar Gala #endif 262129ba616SKumar Gala 263129ba616SKumar Gala int board_early_init_r(void) 264129ba616SKumar Gala { 2656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD const unsigned int flashbase = CONFIG_SYS_FLASH_BASE; 2665fb6ea3aSKumar Gala const u8 flash_esel = find_tlb_idx((void *)flashbase, 1); 267129ba616SKumar Gala 268129ba616SKumar Gala /* 269129ba616SKumar Gala * Remap Boot flash + PROMJET region to caching-inhibited 270129ba616SKumar Gala * so that flash can be erased properly. 271129ba616SKumar Gala */ 272129ba616SKumar Gala 2737c0d4a75SKumar Gala /* Flush d-cache and invalidate i-cache of any FLASH data */ 2747c0d4a75SKumar Gala flush_dcache(); 2757c0d4a75SKumar Gala invalidate_icache(); 276129ba616SKumar Gala 277129ba616SKumar Gala /* invalidate existing TLB entry for flash + promjet */ 278129ba616SKumar Gala disable_tlb(flash_esel); 279129ba616SKumar Gala 280c953ddfdSKumar Gala set_tlb(1, flashbase, CONFIG_SYS_FLASH_BASE_PHYS, /* tlb, epn, rpn */ 281129ba616SKumar Gala MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, /* perms, wimge */ 282129ba616SKumar Gala 0, flash_esel, BOOKE_PAGESZ_256M, 1); /* ts, esel, tsize, iprot */ 283129ba616SKumar Gala 284129ba616SKumar Gala return 0; 285129ba616SKumar Gala } 286129ba616SKumar Gala 2877e183cadSLiu Yu #ifdef CONFIG_TSEC_ENET 2887e183cadSLiu Yu int board_eth_init(bd_t *bis) 2897e183cadSLiu Yu { 2907e183cadSLiu Yu struct tsec_info_struct tsec_info[4]; 2917e183cadSLiu Yu volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); 2927e183cadSLiu Yu int num = 0; 2937e183cadSLiu Yu 2947e183cadSLiu Yu #ifdef CONFIG_TSEC1 2957e183cadSLiu Yu SET_STD_TSEC_INFO(tsec_info[num], 1); 2967e183cadSLiu Yu if (!(gur->pordevsr & MPC85xx_PORDEVSR_SGMII1_DIS)) 2977e183cadSLiu Yu tsec_info[num].flags |= TSEC_SGMII; 2987e183cadSLiu Yu num++; 2997e183cadSLiu Yu #endif 3007e183cadSLiu Yu #ifdef CONFIG_TSEC2 3017e183cadSLiu Yu SET_STD_TSEC_INFO(tsec_info[num], 2); 3027e183cadSLiu Yu if (!(gur->pordevsr & MPC85xx_PORDEVSR_SGMII2_DIS)) 3037e183cadSLiu Yu tsec_info[num].flags |= TSEC_SGMII; 3047e183cadSLiu Yu num++; 3057e183cadSLiu Yu #endif 3067e183cadSLiu Yu #ifdef CONFIG_TSEC3 3077e183cadSLiu Yu SET_STD_TSEC_INFO(tsec_info[num], 3); 3087e183cadSLiu Yu if (!(gur->pordevsr & MPC85xx_PORDEVSR_SGMII3_DIS)) 3097e183cadSLiu Yu tsec_info[num].flags |= TSEC_SGMII; 3107e183cadSLiu Yu num++; 3117e183cadSLiu Yu #endif 3127e183cadSLiu Yu #ifdef CONFIG_TSEC4 3137e183cadSLiu Yu SET_STD_TSEC_INFO(tsec_info[num], 4); 3147e183cadSLiu Yu if (!(gur->pordevsr & MPC85xx_PORDEVSR_SGMII4_DIS)) 3157e183cadSLiu Yu tsec_info[num].flags |= TSEC_SGMII; 3167e183cadSLiu Yu num++; 3177e183cadSLiu Yu #endif 3187e183cadSLiu Yu 3197e183cadSLiu Yu if (!num) { 3207e183cadSLiu Yu printf("No TSECs initialized\n"); 3217e183cadSLiu Yu 3227e183cadSLiu Yu return 0; 3237e183cadSLiu Yu } 3247e183cadSLiu Yu 325feede8b0SAndy Fleming #ifdef CONFIG_FSL_SGMII_RISER 3267e183cadSLiu Yu fsl_sgmii_riser_init(tsec_info, num); 327feede8b0SAndy Fleming #endif 3287e183cadSLiu Yu 3297e183cadSLiu Yu tsec_eth_init(bis, tsec_info, num); 3307e183cadSLiu Yu 331b560ab85SKumar Gala return pci_eth_init(bis); 3327e183cadSLiu Yu } 3337e183cadSLiu Yu #endif 3347e183cadSLiu Yu 335129ba616SKumar Gala #if defined(CONFIG_OF_BOARD_SETUP) 336129ba616SKumar Gala void ft_board_setup(void *blob, bd_t *bd) 337129ba616SKumar Gala { 338b6730512SKumar Gala phys_addr_t base; 339b6730512SKumar Gala phys_size_t size; 340129ba616SKumar Gala 341129ba616SKumar Gala ft_cpu_setup(blob, bd); 342129ba616SKumar Gala 343129ba616SKumar Gala base = getenv_bootm_low(); 344129ba616SKumar Gala size = getenv_bootm_size(); 345129ba616SKumar Gala 346129ba616SKumar Gala fdt_fixup_memory(blob, (u64)base, (u64)size); 347129ba616SKumar Gala 348129ba616SKumar Gala #ifdef CONFIG_PCIE3 3492dba0deaSKumar Gala ft_fsl_pci_setup(blob, "pci0", &pcie3_hose); 350129ba616SKumar Gala #endif 351129ba616SKumar Gala #ifdef CONFIG_PCIE2 3522dba0deaSKumar Gala ft_fsl_pci_setup(blob, "pci1", &pcie2_hose); 353129ba616SKumar Gala #endif 354129ba616SKumar Gala #ifdef CONFIG_PCIE1 3552dba0deaSKumar Gala ft_fsl_pci_setup(blob, "pci2", &pcie1_hose); 356129ba616SKumar Gala #endif 357feede8b0SAndy Fleming #ifdef CONFIG_FSL_SGMII_RISER 358feede8b0SAndy Fleming fsl_sgmii_riser_fdt_fixup(blob); 359feede8b0SAndy Fleming #endif 360129ba616SKumar Gala } 361129ba616SKumar Gala #endif 362129ba616SKumar Gala 363129ba616SKumar Gala #ifdef CONFIG_MP 364129ba616SKumar Gala extern void cpu_mp_lmb_reserve(struct lmb *lmb); 365129ba616SKumar Gala 366129ba616SKumar Gala void board_lmb_reserve(struct lmb *lmb) 367129ba616SKumar Gala { 368129ba616SKumar Gala cpu_mp_lmb_reserve(lmb); 369129ba616SKumar Gala } 370129ba616SKumar Gala #endif 371