diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-13 03:01:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-13 03:01:17 +0000 |
commit | 7ac3fd1f5d23f3420ee6cb59d27310d9322fa16b (patch) | |
tree | a76e110fae7cd83723c55b3cacb612b24920a7b9 /target/linux/atheros/patches-3.18/103-ar2315_gpio.patch | |
parent | 6afc58ca5bf9c1360e156ea90cd2d89228c6af0a (diff) | |
download | upstream-7ac3fd1f5d23f3420ee6cb59d27310d9322fa16b.tar.gz upstream-7ac3fd1f5d23f3420ee6cb59d27310d9322fa16b.tar.bz2 upstream-7ac3fd1f5d23f3420ee6cb59d27310d9322fa16b.zip |
atheros: v3.18: remap flash for boardconfig parsing
Rework boardconfig handling code to honestly remap flash memory region.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44725 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.18/103-ar2315_gpio.patch')
-rw-r--r-- | target/linux/atheros/patches-3.18/103-ar2315_gpio.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch b/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch index f0ab110400..32022e6aeb 100644 --- a/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch +++ b/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch @@ -40,11 +40,11 @@ + .num_resources = ARRAY_SIZE(ar2315_gpio_res) +}; + - /* - * NB: We use mapping size that is larger than the actual flash size, - * but this shouldn't be a problem here, because the flash will simply -@@ -285,6 +313,7 @@ void __init ar2315_init_devices(void) - ath25_find_config(ar2315_flash_limit()); + #ifdef CONFIG_LEDS_GPIO + static struct gpio_led ar2315_leds[6]; + static struct gpio_led_platform_data ar2315_led_data = { +@@ -275,6 +303,7 @@ void __init ar2315_init_devices(void) + ath25_find_config(AR2315_SPI_READ_BASE, AR2315_SPI_READ_SIZE); ar2315_eth_data.macaddr = ath25_board.config->enet0_mac; + platform_device_register(&ar2315_gpio); |