sh: modify platform_device for sh_eth driver
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 8 Mar 2011 08:00:04 +0000 (08:00 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 17 Mar 2011 07:52:44 +0000 (16:52 +0900)
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>
arch/sh/boards/board-espt.c
arch/sh/boards/mach-ecovec24/setup.c
arch/sh/boards/mach-sh7763rdp/setup.c

index d5ce5e18eb3712bbc3450cbc74baea64a1ad54b9..9da92ac36533ec894694ddc6aa13eaa5717cc141 100644 (file)
@@ -66,6 +66,11 @@ 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,
        },
@@ -74,6 +79,8 @@ static struct resource sh_eth_resources[] = {
 static struct sh_eth_plat_data sh7763_eth_pdata = {
        .phy = 0,
        .edmac_endian = EDMAC_LITTLE_ENDIAN,
+       .register_type = SH_ETH_REG_GIGABIT,
+       .phy_interface = PHY_INTERFACE_MODE_MII,
 };
 
 static struct platform_device espt_eth_device = {
index 701667acfd89e919f15202ef2161f445e15e0c93..3b71d2190de1b1782af836c668cb5f85da669d6f 100644 (file)
@@ -142,6 +142,8 @@ static struct resource sh_eth_resources[] = {
 static struct sh_eth_plat_data sh_eth_plat = {
        .phy = 0x1f, /* SMSC LAN8700 */
        .edmac_endian = EDMAC_LITTLE_ENDIAN,
+       .register_type = SH_ETH_REG_FAST_SH4,
+       .phy_interface = PHY_INTERFACE_MODE_MII,
        .ether_link_active_low = 1
 };
 
index f64a6918224c75c6bf9c676958816481e7f06209..f3d828f133e5adbfb7b9d0c7d0d4484c9f4a56d8 100644 (file)
@@ -74,6 +74,10 @@ static struct resource sh_eth_resources[] = {
                .start  = 0xFEE00800,   /* use eth1 */
                .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 = {