diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2007-11-22 03:07:03 -0500 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-11-22 03:07:03 -0500 |
commit | 137b1529da492baa654c702ecb60bb950eccb98d (patch) | |
tree | e51b79cb23e428eba0e3168b920ec623721886fa /arch/blackfin/mach-bf527/boards/ezkit.c | |
parent | b33d51877726b066699b9ee40b5f512c77bdca38 (diff) |
Blackfin arch: sharing the board-specific MAC function does not make sense so move it into board-specific files
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index 299b1704796d..57407b95d532 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -808,3 +808,14 @@ void native_machine_restart(char *cmd) | |||
808 | if ((bfin_read_SYSCR() & 0x7) == 0x3) | 808 | if ((bfin_read_SYSCR() & 0x7) == 0x3) |
809 | bfin_gpio_reset_spi0_ssel1(); | 809 | bfin_gpio_reset_spi0_ssel1(); |
810 | } | 810 | } |
811 | |||
812 | /* | ||
813 | * Currently the MAC address is saved in Flash by U-Boot | ||
814 | */ | ||
815 | #define FLASH_MAC 0x203f0000 | ||
816 | void get_bf537_ether_addr(char *addr) | ||
817 | { | ||
818 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); | ||
819 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); | ||
820 | } | ||
821 | EXPORT_SYMBOL(get_bf537_ether_addr); | ||