aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:04 +0000
commit892ef42a7701a50dd05168575f6b13650a1bc9a1 (patch)
tree83329867de519de92560c71221db59024f917c85 /target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
parentcd4462326c2870d40d6aca47f5fa93d318718c87 (diff)
downloadupstream-892ef42a7701a50dd05168575f6b13650a1bc9a1.tar.gz
upstream-892ef42a7701a50dd05168575f6b13650a1bc9a1.tar.bz2
upstream-892ef42a7701a50dd05168575f6b13650a1bc9a1.zip
atheros: v3.18: remap main SoC MMR memory
Honestly remap main SoC MMR mem and use accessor functions to interact with registers. Now registers defined relatively to base address (e.g. SDRAM controller base address). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44723
Diffstat (limited to 'target/linux/atheros/patches-3.18/102-ar5312_gpio.patch')
-rw-r--r--target/linux/atheros/patches-3.18/102-ar5312_gpio.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch b/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
index 47da6de70f..3493e8e434 100644
--- a/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
+++ b/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
@@ -10,7 +10,7 @@
config SOC_AR2315
--- a/arch/mips/ath25/ar5312.c
+++ b/arch/mips/ath25/ar5312.c
-@@ -184,6 +184,22 @@ static struct platform_device ar5312_phy
+@@ -205,6 +205,22 @@ static struct platform_device ar5312_phy
.num_resources = 1,
};
@@ -18,8 +18,8 @@
+ {
+ .name = "ar5312-gpio",
+ .flags = IORESOURCE_MEM,
-+ .start = AR5312_GPIO,
-+ .end = AR5312_GPIO + 0x0c - 1,
++ .start = AR5312_GPIO_BASE,
++ .end = AR5312_GPIO_BASE + 0x0c - 1,
+ },
+};
+
@@ -33,7 +33,7 @@
#ifdef CONFIG_LEDS_GPIO
static struct gpio_led ar5312_leds[] = {
{ .name = "wlan", .gpio = 0, .active_low = 1, },
-@@ -271,6 +287,8 @@ void __init ar5312_init_devices(void)
+@@ -299,6 +315,8 @@ void __init ar5312_init_devices(void)
platform_device_register(&ar5312_physmap_flash);