From d9b755b3dc4f9121ab70b9d816ce813f6038ad6b Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 20 Aug 2008 17:20:58 +0000 Subject: load the mac address from flash where it is possible SVN-Revision: 12357 --- .../include/asm-mips/mach-adm5120/adm5120_platform.h | 2 ++ .../include/asm-mips/mach-adm5120/prom/admboot.h | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 target/linux/adm5120/files-2.6.26/include/asm-mips/mach-adm5120/prom/admboot.h (limited to 'target/linux/adm5120/files-2.6.26/include') diff --git a/target/linux/adm5120/files-2.6.26/include/asm-mips/mach-adm5120/adm5120_platform.h b/target/linux/adm5120/files-2.6.26/include/asm-mips/mach-adm5120/adm5120_platform.h index 24f38e3..9d2e430 100644 --- a/target/linux/adm5120/files-2.6.26/include/asm-mips/mach-adm5120/adm5120_platform.h +++ b/target/linux/adm5120/files-2.6.26/include/asm-mips/mach-adm5120/adm5120_platform.h @@ -57,6 +57,8 @@ static inline void adm5120_pci_set_irq_map(unsigned int nr_irqs, } #endif +extern void adm5120_setup_eth_macs(u8 *mac_base) __init; + extern struct adm5120_flash_platform_data adm5120_flash0_data; extern struct adm5120_flash_platform_data adm5120_flash1_data; diff --git a/target/linux/adm5120/files-2.6.26/include/asm-mips/mach-adm5120/prom/admboot.h b/target/linux/adm5120/files-2.6.26/include/asm-mips/mach-adm5120/prom/admboot.h new file mode 100644 index 0000000..fa42bf7 --- /dev/null +++ b/target/linux/adm5120/files-2.6.26/include/asm-mips/mach-adm5120/prom/admboot.h @@ -0,0 +1,17 @@ +/* + * ADMBoot specific definitions + * + * Copyright (C) 2008 Gabor Juhos + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + * + */ + +#ifndef _ADMBOOT_H +#define _ADMBOOT_H + +extern int admboot_get_mac_base(u32 offset, u32 len, u8 *mac) __init; + +#endif /* _ADMBOOT_H */ -- cgit v1.1