aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-3.18/605-MIPS-ath79-db120-fixes.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-04-21 12:42:05 +0000
committerJohn Crispin <john@openwrt.org>2015-04-21 12:42:05 +0000
commit8a777768a8fa405be605b41104cb4f2abad1829d (patch)
treee782ecdc5d9f9fd9151fe37483ecbc893bcc9311 /target/linux/ar71xx/patches-3.18/605-MIPS-ath79-db120-fixes.patch
parent1200296d38ac828c0d4c04928e85b24542c2307d (diff)
downloadupstream-8a777768a8fa405be605b41104cb4f2abad1829d.tar.gz
upstream-8a777768a8fa405be605b41104cb4f2abad1829d.tar.bz2
upstream-8a777768a8fa405be605b41104cb4f2abad1829d.zip
ar71xx: spi cleanup for ap121, db120, ubnt-xm and ap136
Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 45552
Diffstat (limited to 'target/linux/ar71xx/patches-3.18/605-MIPS-ath79-db120-fixes.patch')
-rw-r--r--target/linux/ar71xx/patches-3.18/605-MIPS-ath79-db120-fixes.patch10
1 files changed, 3 insertions, 7 deletions
diff --git a/target/linux/ar71xx/patches-3.18/605-MIPS-ath79-db120-fixes.patch b/target/linux/ar71xx/patches-3.18/605-MIPS-ath79-db120-fixes.patch
index b494f9305f..d62263fcdf 100644
--- a/target/linux/ar71xx/patches-3.18/605-MIPS-ath79-db120-fixes.patch
+++ b/target/linux/ar71xx/patches-3.18/605-MIPS-ath79-db120-fixes.patch
@@ -63,28 +63,24 @@
};
static struct gpio_keys_button db120_gpio_keys[] __initdata = {
-@@ -76,66 +93,85 @@ static struct gpio_keys_button db120_gpi
+@@ -76,60 +93,85 @@ static struct gpio_keys_button db120_gpi
},
};
--static struct ath79_spi_controller_data db120_spi0_data = {
-- .cs_type = ATH79_SPI_CS_TYPE_INTERNAL,
-- .cs_line = 0,
+static struct ar8327_pad_cfg db120_ar8327_pad0_cfg = {
+ .mode = AR8327_PAD_MAC_RGMII,
+ .txclk_delay_en = true,
+ .rxclk_delay_en = true,
+ .txclk_delay_sel = AR8327_CLK_DELAY_SEL1,
+ .rxclk_delay_sel = AR8327_CLK_DELAY_SEL2,
- };
-
++};
++
-static struct spi_board_info db120_spi_info[] = {
- {
- .bus_num = 0,
- .chip_select = 0,
- .max_speed_hz = 25000000,
- .modalias = "s25sl064a",
-- .controller_data = &db120_spi0_data,
- }
+static struct ar8327_led_cfg db120_ar8327_led_cfg = {
+ .led_ctrl0 = 0x00000000,