diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2011-03-08 08:00:04 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-03-17 16:52:44 +0900 |
commit | 9055f895f805afd57b833e51c4665aa1b2579d43 (patch) | |
tree | 024d920e309af68fa77fe7d5018136febae8a034 /arch/sh/boards/mach-sh7763rdp | |
parent | 984f6cfd21babd70302592641bd01b574e25ee83 (diff) | |
download | blackbird-op-linux-9055f895f805afd57b833e51c4665aa1b2579d43.tar.gz blackbird-op-linux-9055f895f805afd57b833e51c4665aa1b2579d43.zip |
sh: modify platform_device for sh_eth driver
A new parameter is added to sh_eth_plat_data. And the sh_eth driver
needs additional memory resource if a module has TSU.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/mach-sh7763rdp')
-rw-r--r-- | arch/sh/boards/mach-sh7763rdp/setup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-sh7763rdp/setup.c b/arch/sh/boards/mach-sh7763rdp/setup.c index f64a6918224c..f3d828f133e5 100644 --- a/arch/sh/boards/mach-sh7763rdp/setup.c +++ b/arch/sh/boards/mach-sh7763rdp/setup.c @@ -75,6 +75,10 @@ static struct resource sh_eth_resources[] = { .end = 0xFEE00F7C - 1, .flags = IORESOURCE_MEM, }, { + .start = 0xFEE01800, /* TSU */ + .end = 0xFEE01FFF, + .flags = IORESOURCE_MEM, + }, { .start = 57, /* irq number */ .flags = IORESOURCE_IRQ, }, @@ -83,6 +87,8 @@ static struct resource sh_eth_resources[] = { static struct sh_eth_plat_data sh7763_eth_pdata = { .phy = 1, .edmac_endian = EDMAC_LITTLE_ENDIAN, + .register_type = SH_ETH_REG_GIGABIT, + .phy_interface = PHY_INTERFACE_MODE_MII, }; static struct platform_device sh7763rdp_eth_device = { |