diff options
author | Karlheinz Jerg <karlheinz.jerg@keymile.com> | 2013-01-21 03:55:16 +0000 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2013-02-15 17:47:19 -0600 |
commit | 1eb95ebe0d466d793fcf1f689fc20f6cc83c7fe1 (patch) | |
tree | c0c3e5ed94dea753ff9ba0cefcb2a70387d92d8e /board/keymile/km82xx | |
parent | cf976ce478b8d7fd62184eac24caa1d31c7d8c55 (diff) | |
download | u-boot-imx-1eb95ebe0d466d793fcf1f689fc20f6cc83c7fe1.zip u-boot-imx-1eb95ebe0d466d793fcf1f689fc20f6cc83c7fe1.tar.gz u-boot-imx-1eb95ebe0d466d793fcf1f689fc20f6cc83c7fe1.tar.bz2 |
km82xx, km83xx: move ethernet_present() from common to cpu specific
For kmvect1 we need a special solution and for km_arm boards we already
have. So move the common code to the architectur specific file.
Signed-off-by: Karlheinz Jerg <karlheinz.jerg@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Diffstat (limited to 'board/keymile/km82xx')
-rw-r--r-- | board/keymile/km82xx/km82xx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c index 67b69f6..defc885 100644 --- a/board/keymile/km82xx/km82xx.c +++ b/board/keymile/km82xx/km82xx.c @@ -385,6 +385,14 @@ void handle_mgcoge3un_reset(void) } #endif +int ethernet_present(void) +{ + struct km_bec_fpga *base = + (struct km_bec_fpga *)CONFIG_SYS_KMBEC_FPGA_BASE; + + return in_8(&base->bprth) & PIGGY_PRESENT; +} + /* * Early board initalization. */ |