p1022ds.c (17e967b3dfcc0616a135700a2c39287943ffb958) p1022ds.c (063c12633d5ad74d52152d9c358e715475e17629)
1/*
2 * Copyright 2010-2011 Freescale Semiconductor, Inc.
3 * Authors: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
4 * Timur Tabi <timur@freescale.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)

--- 8 unchanged lines hidden (view full) ---

17#include <asm/cache.h>
18#include <asm/immap_85xx.h>
19#include <asm/fsl_pci.h>
20#include <asm/fsl_ddr_sdram.h>
21#include <asm/fsl_serdes.h>
22#include <asm/io.h>
23#include <libfdt.h>
24#include <fdt_support.h>
1/*
2 * Copyright 2010-2011 Freescale Semiconductor, Inc.
3 * Authors: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
4 * Timur Tabi <timur@freescale.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)

--- 8 unchanged lines hidden (view full) ---

17#include <asm/cache.h>
18#include <asm/immap_85xx.h>
19#include <asm/fsl_pci.h>
20#include <asm/fsl_ddr_sdram.h>
21#include <asm/fsl_serdes.h>
22#include <asm/io.h>
23#include <libfdt.h>
24#include <fdt_support.h>
25#include <fsl_mdio.h>
25#include <tsec.h>
26#include <asm/fsl_law.h>
27#include <netdev.h>
28#include <i2c.h>
29#include <hwconfig.h>
30
31#include "../common/ngpixis.h"
32

--- 241 unchanged lines hidden (view full) ---

274 *
275 * Returns:
276 * <0, error
277 * 0, no ethernet devices found
278 * >0, number of ethernet devices initialized
279 */
280int board_eth_init(bd_t *bis)
281{
26#include <tsec.h>
27#include <asm/fsl_law.h>
28#include <netdev.h>
29#include <i2c.h>
30#include <hwconfig.h>
31
32#include "../common/ngpixis.h"
33

--- 241 unchanged lines hidden (view full) ---

275 *
276 * Returns:
277 * <0, error
278 * 0, no ethernet devices found
279 * >0, number of ethernet devices initialized
280 */
281int board_eth_init(bd_t *bis)
282{
283 struct fsl_pq_mdio_info mdio_info;
282 struct tsec_info_struct tsec_info[2];
283 unsigned int num = 0;
284
285#ifdef CONFIG_TSEC1
286 SET_STD_TSEC_INFO(tsec_info[num], 1);
287 num++;
288#endif
289#ifdef CONFIG_TSEC2
290 SET_STD_TSEC_INFO(tsec_info[num], 2);
291 num++;
292#endif
293
284 struct tsec_info_struct tsec_info[2];
285 unsigned int num = 0;
286
287#ifdef CONFIG_TSEC1
288 SET_STD_TSEC_INFO(tsec_info[num], 1);
289 num++;
290#endif
291#ifdef CONFIG_TSEC2
292 SET_STD_TSEC_INFO(tsec_info[num], 2);
293 num++;
294#endif
295
296 mdio_info.regs = (struct tsec_mii_mng *)CONFIG_SYS_MDIO_BASE_ADDR;
297 mdio_info.name = DEFAULT_MII_NAME;
298 fsl_pq_mdio_init(bis, &mdio_info);
299
294 return tsec_eth_init(bis, tsec_info, num) + pci_eth_init(bis);
295}
296
297#ifdef CONFIG_OF_BOARD_SETUP
298/**
299 * ft_codec_setup - fix up the clock-frequency property of the codec node
300 *
301 * Update the clock-frequency property based on the value of the 'audclk'

--- 39 unchanged lines hidden ---
300 return tsec_eth_init(bis, tsec_info, num) + pci_eth_init(bis);
301}
302
303#ifdef CONFIG_OF_BOARD_SETUP
304/**
305 * ft_codec_setup - fix up the clock-frequency property of the codec node
306 *
307 * Update the clock-frequency property based on the value of the 'audclk'

--- 39 unchanged lines hidden ---