Commit 29d9f010 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Simon Horman

ARM: shmobile: Koelsch: pass Ether PHY IRQ

Pass Ether's PHY IRQ (which is IRQC's IRQ0) to the 'sh_eth' driver. Set the IRQ
trigger type to be low-level as per the Micrel PHY driver's setup.
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: default avatarMagnus Damm <magnus.damm@gmail.com>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 5812b8b2
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/gpio_keys.h> #include <linux/gpio_keys.h>
#include <linux/input.h> #include <linux/input.h>
#include <linux/irq.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/leds.h> #include <linux/leds.h>
#include <linux/phy.h> #include <linux/phy.h>
...@@ -92,6 +93,7 @@ static void __init koelsch_add_du_device(void) ...@@ -92,6 +93,7 @@ static void __init koelsch_add_du_device(void)
/* Ether */ /* Ether */
static const struct sh_eth_plat_data ether_pdata __initconst = { static const struct sh_eth_plat_data ether_pdata __initconst = {
.phy = 0x1, .phy = 0x1,
.phy_irq = irq_pin(0),
.edmac_endian = EDMAC_LITTLE_ENDIAN, .edmac_endian = EDMAC_LITTLE_ENDIAN,
.phy_interface = PHY_INTERFACE_MODE_RMII, .phy_interface = PHY_INTERFACE_MODE_RMII,
.ether_link_active_low = 1, .ether_link_active_low = 1,
...@@ -232,6 +234,8 @@ static void __init koelsch_init(void) ...@@ -232,6 +234,8 @@ static void __init koelsch_init(void)
{ {
koelsch_add_standard_devices(); koelsch_add_standard_devices();
irq_set_irq_type(irq_pin(0), IRQ_TYPE_LEVEL_LOW);
if (IS_ENABLED(CONFIG_PHYLIB)) if (IS_ENABLED(CONFIG_PHYLIB))
phy_register_fixup_for_id("r8a7791-ether-ff:01", phy_register_fixup_for_id("r8a7791-ether-ff:01",
koelsch_ksz8041_fixup); koelsch_ksz8041_fixup);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment