diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-06-19 10:44:17 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-06-19 10:44:17 +0000 |
commit | 5745a7b08d925319d5a51afeeea7f72bb8c8879e (patch) | |
tree | 3773d289080821bb05c3b65d093a789c2fc1a690 /target/linux/ar71xx | |
parent | 8d2d96fb1ec6385d405cb465dd5eac36fc1a107a (diff) | |
download | master-187ad058-5745a7b08d925319d5a51afeeea7f72bb8c8879e.tar.gz master-187ad058-5745a7b08d925319d5a51afeeea7f72bb8c8879e.tar.bz2 master-187ad058-5745a7b08d925319d5a51afeeea7f72bb8c8879e.zip |
ar71xx: make AR8327 LEDs working on the DB120 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32457 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/patches-3.3/605-MIPS-ath79-db120-fixes.patch | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/target/linux/ar71xx/patches-3.3/605-MIPS-ath79-db120-fixes.patch b/target/linux/ar71xx/patches-3.3/605-MIPS-ath79-db120-fixes.patch index 01c3c9f1d5..cde9816925 100644 --- a/target/linux/ar71xx/patches-3.3/605-MIPS-ath79-db120-fixes.patch +++ b/target/linux/ar71xx/patches-3.3/605-MIPS-ath79-db120-fixes.patch @@ -62,7 +62,7 @@ }; static struct gpio_keys_button db120_gpio_keys[] __initdata = { -@@ -76,66 +92,90 @@ static struct gpio_keys_button db120_gpi +@@ -76,66 +92,99 @@ static struct gpio_keys_button db120_gpi }, }; @@ -84,6 +84,18 @@ - .max_speed_hz = 25000000, - .modalias = "s25sl064a", - .controller_data = &db120_spi0_data, +- } ++static struct ar8327_led_cfg db120_ar8327_led_cfg = { ++ .led_ctrl0 = 0x00000000, ++ .led_ctrl1 = 0xc737c737, ++ .led_ctrl2 = 0x00000000, ++ .led_ctrl3 = 0x00c30c00, ++ .open_drain = true, + }; + +-static struct ath79_spi_platform_data db120_spi_data = { +- .bus_num = 0, +- .num_chipselect = 1, +static struct ar8327_platform_data db120_ar8327_data = { + .pad0_cfg = &db120_ar8327_pad0_cfg, + .cpuport_cfg = { @@ -92,23 +104,20 @@ + .duplex = 1, + .txpause = 1, + .rxpause = 1, - } ++ }, ++ .led_cfg = &db120_ar8327_led_cfg, }; --static struct ath79_spi_platform_data db120_spi_data = { -- .bus_num = 0, -- .num_chipselect = 1, +-#ifdef CONFIG_PCI +-static struct ath9k_platform_data db120_ath9k_data; +static struct mdio_board_info db120_mdio0_info[] = { + { + .bus_id = "ag71xx-mdio.0", + .phy_addr = 0, + .platform_data = &db120_ar8327_data, + }, - }; ++}; --#ifdef CONFIG_PCI --static struct ath9k_platform_data db120_ath9k_data; -- -static int db120_pci_plat_dev_init(struct pci_dev *dev) +static void __init db120_gmac_setup(void) { |