diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-01-31 17:56:30 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-01-31 17:56:30 +0000 |
commit | 72b08b729a6d694880c557c2442b4413195373c3 (patch) | |
tree | 20aa45c62f087f58aa36296ae9adaa6fbb2b2143 /target/linux/ramips/files/arch/mips | |
parent | fb29bd369ac81d846170081479c3ebd0e3d020b1 (diff) | |
download | master-31e0f0ae-72b08b729a6d694880c557c2442b4413195373c3.tar.gz master-31e0f0ae-72b08b729a6d694880c557c2442b4413195373c3.tar.bz2 master-31e0f0ae-72b08b729a6d694880c557c2442b4413195373c3.zip |
ramips_eth: pass sys_clk via platform_data
SVN-Revision: 19462
Diffstat (limited to 'target/linux/ramips/files/arch/mips')
-rw-r--r-- | target/linux/ramips/files/arch/mips/include/asm/mach-ralink/ramips_eth_platform.h | 1 | ||||
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/ramips_eth_platform.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/ramips_eth_platform.h index a60a572f5f..ec1e7d4fa2 100644 --- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/ramips_eth_platform.h +++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/ramips_eth_platform.h @@ -24,6 +24,7 @@ struct ramips_eth_platform_data unsigned char mac[6]; void (*reset_fe)(void); int min_pkt_len; + unsigned long sys_freq; }; #endif /* _RAMIPS_ETH_PLATFORM_H */ diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c index 4ad93b580d..6a810a3a0a 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c @@ -118,7 +118,7 @@ static struct resource rt305x_eth_resources[] = { static struct ramips_eth_platform_data ramips_eth_data = { .mac = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 }, .reset_fe = rt305x_fe_reset, - .min_pkt_len = 64 + .min_pkt_len = 64, }; static struct platform_device rt305x_eth_device = { @@ -132,5 +132,7 @@ static struct platform_device rt305x_eth_device = { void __init rt305x_register_ethernet(void) { + ramips_eth_data.sys_freq = rt305x_sys_freq; + platform_device_register(&rt305x_eth_device); } |