mpc8572ds.c (4db2fa7f9446d0f2fe8db3d62184b1212fe22707) | mpc8572ds.c (063c12633d5ad74d52152d9c358e715475e17629) |
---|---|
1/* 2 * Copyright 2007-2011 Freescale Semiconductor, Inc. 3 * 4 * See file CREDITS for list of people who contributed to this 5 * project. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 21 unchanged lines hidden (view full) --- 30#include <asm/fsl_pci.h> 31#include <asm/fsl_ddr_sdram.h> 32#include <asm/io.h> 33#include <asm/fsl_serdes.h> 34#include <miiphy.h> 35#include <libfdt.h> 36#include <fdt_support.h> 37#include <tsec.h> | 1/* 2 * Copyright 2007-2011 Freescale Semiconductor, Inc. 3 * 4 * See file CREDITS for list of people who contributed to this 5 * project. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 21 unchanged lines hidden (view full) --- 30#include <asm/fsl_pci.h> 31#include <asm/fsl_ddr_sdram.h> 32#include <asm/io.h> 33#include <asm/fsl_serdes.h> 34#include <miiphy.h> 35#include <libfdt.h> 36#include <fdt_support.h> 37#include <tsec.h> |
38#include <fsl_mdio.h> |
|
38#include <netdev.h> 39 40#include "../common/sgmii_riser.h" 41 42int checkboard (void) 43{ 44 u8 vboot; 45 u8 *pixis_base = (u8 *)PIXIS_BASE; --- 136 unchanged lines hidden (view full) --- 182 0, flash_esel, BOOKE_PAGESZ_256M, 1); /* ts, esel, tsize, iprot */ 183 184 return 0; 185} 186 187#ifdef CONFIG_TSEC_ENET 188int board_eth_init(bd_t *bis) 189{ | 39#include <netdev.h> 40 41#include "../common/sgmii_riser.h" 42 43int checkboard (void) 44{ 45 u8 vboot; 46 u8 *pixis_base = (u8 *)PIXIS_BASE; --- 136 unchanged lines hidden (view full) --- 183 0, flash_esel, BOOKE_PAGESZ_256M, 1); /* ts, esel, tsize, iprot */ 184 185 return 0; 186} 187 188#ifdef CONFIG_TSEC_ENET 189int board_eth_init(bd_t *bis) 190{ |
191 struct fsl_pq_mdio_info mdio_info; |
|
190 struct tsec_info_struct tsec_info[4]; 191 int num = 0; 192 193#ifdef CONFIG_TSEC1 194 SET_STD_TSEC_INFO(tsec_info[num], 1); 195 if (is_serdes_configured(SGMII_TSEC1)) { 196 puts("eTSEC1 is in sgmii mode.\n"); 197 tsec_info[num].flags |= TSEC_SGMII; --- 30 unchanged lines hidden (view full) --- 228 229 return 0; 230 } 231 232#ifdef CONFIG_FSL_SGMII_RISER 233 fsl_sgmii_riser_init(tsec_info, num); 234#endif 235 | 192 struct tsec_info_struct tsec_info[4]; 193 int num = 0; 194 195#ifdef CONFIG_TSEC1 196 SET_STD_TSEC_INFO(tsec_info[num], 1); 197 if (is_serdes_configured(SGMII_TSEC1)) { 198 puts("eTSEC1 is in sgmii mode.\n"); 199 tsec_info[num].flags |= TSEC_SGMII; --- 30 unchanged lines hidden (view full) --- 230 231 return 0; 232 } 233 234#ifdef CONFIG_FSL_SGMII_RISER 235 fsl_sgmii_riser_init(tsec_info, num); 236#endif 237 |
238 mdio_info.regs = (struct tsec_mii_mng *)CONFIG_SYS_MDIO_BASE_ADDR; 239 mdio_info.name = DEFAULT_MII_NAME; 240 fsl_pq_mdio_init(bis, &mdio_info); 241 |
|
236 tsec_eth_init(bis, tsec_info, num); 237 238 return pci_eth_init(bis); 239} 240#endif 241 242#if defined(CONFIG_OF_BOARD_SETUP) 243void ft_board_setup(void *blob, bd_t *bd) --- 18 unchanged lines hidden --- | 242 tsec_eth_init(bis, tsec_info, num); 243 244 return pci_eth_init(bis); 245} 246#endif 247 248#if defined(CONFIG_OF_BOARD_SETUP) 249void ft_board_setup(void *blob, bd_t *bd) --- 18 unchanged lines hidden --- |