diff options
author | Heiko Schocher <hs@denx.de> | 2011-04-03 20:10:20 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-04-28 00:52:09 +0200 |
commit | 1b41493defcf8940bce91859de16d7a956ebc569 (patch) | |
tree | f15cd645cd2ed7d3778281ae87378c35a7f9b3f6 /board/digsy_mtc/digsy_mtc.c | |
parent | 9030a55ef3b82aca88d228692fdceffc4ca14aa2 (diff) | |
download | u-boot-imx-1b41493defcf8940bce91859de16d7a956ebc569.zip u-boot-imx-1b41493defcf8940bce91859de16d7a956ebc569.tar.gz u-boot-imx-1b41493defcf8940bce91859de16d7a956ebc569.tar.bz2 |
mpc52xx, digsy_mtc: change phy addr for rev5 boards.
- rev5 board has phy addr 1 -> adapt CONFIG_PHY_ADDR define
in board config file.
- also fixup the phy addr entry in dts, before booting
Linux.
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'board/digsy_mtc/digsy_mtc.c')
-rw-r--r-- | board/digsy_mtc/digsy_mtc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/digsy_mtc/digsy_mtc.c b/board/digsy_mtc/digsy_mtc.c index cbfdc9e..79cb3f1 100644 --- a/board/digsy_mtc/digsy_mtc.c +++ b/board/digsy_mtc/digsy_mtc.c @@ -405,6 +405,9 @@ int update_flash_size (int flash_size) void ft_board_setup(void *blob, bd_t *bd) { + int phy_addr = CONFIG_PHY_ADDR; + char eth_path[] = "/soc5200@f0000000/mdio@3000/ethernet-phy@0"; + ft_cpu_setup(blob, bd); /* * There are 2 RTC nodes in the DTS, so remove @@ -422,5 +425,7 @@ void ft_board_setup(void *blob, bd_t *bd) #endif ft_adapt_flash_base(blob); #endif + /* fix up the phy address */ + do_fixup_by_path(blob, eth_path, "reg", &phy_addr, sizeof(int), 0); } #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */ |