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-bf537/boards/stamp.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-bf537/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 3bd0dad14ae3..d35f9628972c 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -732,3 +732,14 @@ void native_machine_restart(char *cmd) | |||
732 | if ((bfin_read_SYSCR() & 0x7) == 0x3) | 732 | if ((bfin_read_SYSCR() & 0x7) == 0x3) |
733 | bfin_gpio_reset_spi0_ssel1(); | 733 | bfin_gpio_reset_spi0_ssel1(); |
734 | } | 734 | } |
735 | |||
736 | /* | ||
737 | * Currently the MAC address is saved in Flash by U-Boot | ||
738 | */ | ||
739 | #define FLASH_MAC 0x203f0000 | ||
740 | void get_bf537_ether_addr(char *addr) | ||
741 | { | ||
742 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); | ||
743 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); | ||
744 | } | ||
745 | EXPORT_SYMBOL(get_bf537_ether_addr); | ||