diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2011-03-08 03:00:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-03-17 03:52:44 -0400 |
commit | 9055f895f805afd57b833e51c4665aa1b2579d43 (patch) | |
tree | 024d920e309af68fa77fe7d5018136febae8a034 | |
parent | 984f6cfd21babd70302592641bd01b574e25ee83 (diff) |
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>
-rw-r--r-- | arch/sh/boards/board-espt.c | 7 | ||||
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/mach-sh7763rdp/setup.c | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/boards/board-espt.c b/arch/sh/boards/board-espt.c index d5ce5e18eb37..9da92ac36533 100644 --- a/arch/sh/boards/board-espt.c +++ b/arch/sh/boards/board-espt.c | |||
@@ -66,6 +66,11 @@ static struct resource sh_eth_resources[] = { | |||
66 | .end = 0xFEE00F7C - 1, | 66 | .end = 0xFEE00F7C - 1, |
67 | .flags = IORESOURCE_MEM, | 67 | .flags = IORESOURCE_MEM, |
68 | }, { | 68 | }, { |
69 | .start = 0xFEE01800, /* TSU */ | ||
70 | .end = 0xFEE01FFF, | ||
71 | .flags = IORESOURCE_MEM, | ||
72 | }, { | ||
73 | |||
69 | .start = 57, /* irq number */ | 74 | .start = 57, /* irq number */ |
70 | .flags = IORESOURCE_IRQ, | 75 | .flags = IORESOURCE_IRQ, |
71 | }, | 76 | }, |
@@ -74,6 +79,8 @@ static struct resource sh_eth_resources[] = { | |||
74 | static struct sh_eth_plat_data sh7763_eth_pdata = { | 79 | static struct sh_eth_plat_data sh7763_eth_pdata = { |
75 | .phy = 0, | 80 | .phy = 0, |
76 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 81 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
82 | .register_type = SH_ETH_REG_GIGABIT, | ||
83 | .phy_interface = PHY_INTERFACE_MODE_MII, | ||
77 | }; | 84 | }; |
78 | 85 | ||
79 | static struct platform_device espt_eth_device = { | 86 | static struct platform_device espt_eth_device = { |
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 701667acfd89..3b71d2190de1 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -142,6 +142,8 @@ static struct resource sh_eth_resources[] = { | |||
142 | static struct sh_eth_plat_data sh_eth_plat = { | 142 | static struct sh_eth_plat_data sh_eth_plat = { |
143 | .phy = 0x1f, /* SMSC LAN8700 */ | 143 | .phy = 0x1f, /* SMSC LAN8700 */ |
144 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 144 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
145 | .register_type = SH_ETH_REG_FAST_SH4, | ||
146 | .phy_interface = PHY_INTERFACE_MODE_MII, | ||
145 | .ether_link_active_low = 1 | 147 | .ether_link_active_low = 1 |
146 | }; | 148 | }; |
147 | 149 | ||
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[] = { | |||
75 | .end = 0xFEE00F7C - 1, | 75 | .end = 0xFEE00F7C - 1, |
76 | .flags = IORESOURCE_MEM, | 76 | .flags = IORESOURCE_MEM, |
77 | }, { | 77 | }, { |
78 | .start = 0xFEE01800, /* TSU */ | ||
79 | .end = 0xFEE01FFF, | ||
80 | .flags = IORESOURCE_MEM, | ||
81 | }, { | ||
78 | .start = 57, /* irq number */ | 82 | .start = 57, /* irq number */ |
79 | .flags = IORESOURCE_IRQ, | 83 | .flags = IORESOURCE_IRQ, |
80 | }, | 84 | }, |
@@ -83,6 +87,8 @@ static struct resource sh_eth_resources[] = { | |||
83 | static struct sh_eth_plat_data sh7763_eth_pdata = { | 87 | static struct sh_eth_plat_data sh7763_eth_pdata = { |
84 | .phy = 1, | 88 | .phy = 1, |
85 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 89 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
90 | .register_type = SH_ETH_REG_GIGABIT, | ||
91 | .phy_interface = PHY_INTERFACE_MODE_MII, | ||
86 | }; | 92 | }; |
87 | 93 | ||
88 | static struct platform_device sh7763rdp_eth_device = { | 94 | static struct platform_device sh7763rdp_eth_device = { |