diff options
author | John Crispin <john@openwrt.org> | 2011-10-10 15:13:46 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-10-10 15:13:46 +0000 |
commit | 0a866293bd9e204978c995cb0545c20f8ab63c7e (patch) | |
tree | 7d7a9ef25035a4afd4b371b85506fe062bac125a /target/linux/lantiq/patches-3.0/998-easy98000-asc1.patch | |
parent | 1359fe4fcf0a6cef3eced837d63c866cc75a52fc (diff) | |
download | master-31e0f0ae-0a866293bd9e204978c995cb0545c20f8ab63c7e.tar.gz master-31e0f0ae-0a866293bd9e204978c995cb0545c20f8ab63c7e.tar.bz2 master-31e0f0ae-0a866293bd9e204978c995cb0545c20f8ab63c7e.zip |
* update patches to 3.0
* add basic vr9 support
* backport 3.1 fixes
* backport 3.2 queue (falcon)
SVN-Revision: 28405
Diffstat (limited to 'target/linux/lantiq/patches-3.0/998-easy98000-asc1.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.0/998-easy98000-asc1.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/target/linux/lantiq/patches-3.0/998-easy98000-asc1.patch b/target/linux/lantiq/patches-3.0/998-easy98000-asc1.patch deleted file mode 100644 index 6d6aea86ee..0000000000 --- a/target/linux/lantiq/patches-3.0/998-easy98000-asc1.patch +++ /dev/null @@ -1,59 +0,0 @@ -activate serial driver for ASC1 if "use_asc1=x" is given on kernel commandline -mux setup for pins is done via late_initcall, when the gpio driver is initialized - -only implemented for EASY98000, generic version t.b.d. ---- a/arch/mips/lantiq/falcon/devices.c -+++ b/arch/mips/lantiq/falcon/devices.c -@@ -75,6 +75,7 @@ void __init falcon_register_asc(int port - case 1: - platform_device_register_simple("ltq_asc", 1, - falcon_asc1_resources, ARRAY_SIZE(falcon_asc1_resources)); -+ sys1_hw_activate(ACTS_ASC1_ACT); - break; - default: - break; ---- a/arch/mips/lantiq/falcon/mach-easy98000.c -+++ b/arch/mips/lantiq/falcon/mach-easy98000.c -@@ -15,6 +15,7 @@ - #include <linux/spi/spi.h> - #include <linux/spi/spi_gpio.h> - #include <linux/spi/eeprom.h> -+#include <falcon/lantiq_soc.h> - - #include "../machtypes.h" - -@@ -206,9 +207,34 @@ static void __init easy98000_spi_gpio_in - platform_device_register(&easy98000_spi_gpio_device); - } - -+static int register_asc1 = 0; -+static int __init parse_asc1(char *p) -+{ -+ register_asc1 = 1; -+ return 0; -+} -+__setup("use_asc1", parse_asc1); -+ -+#define MUXC_SIF_RX_PIN 112 -+#define MUXC_SIF_TX_PIN 113 -+ -+static int __init asc1_mux_setup(void) -+{ -+ if (register_asc1) { -+ if (ltq_gpio_request(MUXC_SIF_RX_PIN, 1, 1, 0, "asc1-rx")) -+ return -1; -+ if (ltq_gpio_request(MUXC_SIF_TX_PIN, 1, 1, 1, "asc1-tx")) -+ return -1; -+ } -+ return 0; -+} -+late_initcall(asc1_mux_setup); -+ - static void __init easy98000_init_common(void) - { - falcon_register_asc(0); -+ if (register_asc1) -+ falcon_register_asc(1); - falcon_register_gpio(); - falcon_register_wdt(); - falcon_register_i2c(); |