sgmii_riser.c 613 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Freescale SGMII Riser Card
  3. *
  4. * This driver supports the SGMII Riser card found on the
  5. * "DS" style of development board from Freescale.
  6. *
  7. * This software may be used and distributed according to the
  8. * terms of the GNU Public License, Version 2, incorporated
  9. * herein by reference.
  10. *
  11. * Copyright 2008 Freescale Semiconductor, Inc.
  12. *
  13. */
  14. #include <config.h>
  15. #include <common.h>
  16. #include <tsec.h>
  17. void fsl_sgmii_riser_init(struct tsec_info_struct *tsec_info, int num)
  18. {
  19. int i;
  20. for (i = 0; i < num; i++)
  21. if (tsec_info[i].flags & TSEC_SGMII)
  22. tsec_info[i].phyaddr += SGMII_RISER_PHY_OFFSET;
  23. }