diff options
author | Wolfgang Denk <wd@denx.de> | 2008-09-03 23:07:41 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-03 23:07:41 +0200 |
commit | 53c987f51391c1a221b0468aa0f37a3a6ce9181a (patch) | |
tree | 62bd19ba9bcf8a5062e874ab53877b53a434d6f7 /board/freescale/common/sgmii_riser.c | |
parent | 1711f3bd16d1c5e9d17b4c0198b426d86999781b (diff) | |
parent | ce42d166ac3c55ebf1e7c2f9707a79acefa006be (diff) | |
download | u-boot-imx-53c987f51391c1a221b0468aa0f37a3a6ce9181a.zip u-boot-imx-53c987f51391c1a221b0468aa0f37a3a6ce9181a.tar.gz u-boot-imx-53c987f51391c1a221b0468aa0f37a3a6ce9181a.tar.bz2 |
Merge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master
Diffstat (limited to 'board/freescale/common/sgmii_riser.c')
-rw-r--r-- | board/freescale/common/sgmii_riser.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/board/freescale/common/sgmii_riser.c b/board/freescale/common/sgmii_riser.c new file mode 100644 index 0000000..5ccd6bc --- /dev/null +++ b/board/freescale/common/sgmii_riser.c @@ -0,0 +1,26 @@ +/* + * Freescale SGMII Riser Card + * + * This driver supports the SGMII Riser card found on the + * "DS" style of development board from Freescale. + * + * This software may be used and distributed according to the + * terms of the GNU Public License, Version 2, incorporated + * herein by reference. + * + * Copyright 2008 Freescale Semiconductor, Inc. + * + */ + +#include <config.h> +#include <common.h> +#include <tsec.h> + +void fsl_sgmii_riser_init(struct tsec_info_struct *tsec_info, int num) +{ + int i; + + for (i = 0; i < num; i++) + if (tsec_info[i].flags & TSEC_SGMII) + tsec_info[i].phyaddr += SGMII_RISER_PHY_OFFSET; +} |