Ignore:
Timestamp:
2011-10-10T17:13:46+02:00 (5 years ago)
Author:
blogic
Message:

[lantiq]

  • update patches to 3.0
  • add basic vr9 support
  • backport 3.1 fixes
  • backport 3.2 queue (falcon)
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/patches-3.0/0011-MIPS-lantiq-adds-falcon-I2C.patch

    r28404 r28405  
     1From 6437f41dfdf9475178e22ab0dd886af033f90cc2 Mon Sep 17 00:00:00 2001 
     2From: John Crispin <blogic@openwrt.org> 
     3Date: Thu, 29 Sep 2011 21:10:16 +0200 
     4Subject: [PATCH 11/24] MIPS: lantiq: adds falcon I2C 
     5 
     6--- 
     7 arch/mips/lantiq/falcon/devices.c |   21 + 
     8 arch/mips/lantiq/falcon/devices.h |    1 + 
     9 drivers/i2c/busses/Kconfig        |    4 + 
     10 drivers/i2c/busses/Makefile       |    1 + 
     11 drivers/i2c/busses/i2c-falcon.c   |  815 +++++++++++++++++++++++++++++++++++++ 
     12 5 files changed, 842 insertions(+), 0 deletions(-) 
     13 create mode 100644 drivers/i2c/busses/i2c-falcon.c 
     14 
     15diff --git a/arch/mips/lantiq/falcon/devices.c b/arch/mips/lantiq/falcon/devices.c 
     16index 4f47b44..a998b6b 100644 
     17--- a/arch/mips/lantiq/falcon/devices.c 
     18+++ b/arch/mips/lantiq/falcon/devices.c 
     19@@ -126,3 +126,24 @@ falcon_register_gpio_extra(void) 
     20        ltq_sysctl_activate(SYSCTL_SYS1, 
     21                ACTS_PADCTRL3 | ACTS_PADCTRL4 | ACTS_P3 | ACTS_P4); 
     22 } 
     23+ 
     24+/* i2c */ 
     25+static struct resource falcon_i2c_resources[] = { 
     26+       MEM_RES("i2c", GPON_I2C_BASE,GPON_I2C_END), 
     27+       IRQ_RES("i2c_lb", FALCON_IRQ_I2C_LBREQ), 
     28+       IRQ_RES("i2c_b", FALCON_IRQ_I2C_BREQ), 
     29+       IRQ_RES("i2c_err", FALCON_IRQ_I2C_I2C_ERR), 
     30+       IRQ_RES("i2c_p", FALCON_IRQ_I2C_I2C_P), 
     31+}; 
     32+ 
     33+void __init falcon_register_i2c(void) 
     34+{ 
     35+       platform_device_register_simple("i2c-falcon", 0, 
     36+       falcon_i2c_resources, ARRAY_SIZE(falcon_i2c_resources)); 
     37+       sys1_hw_activate(ACTS_I2C_ACT); 
     38+} 
     39+ 
     40+void __init falcon_register_crypto(void) 
     41+{ 
     42+       platform_device_register_simple("ltq_falcon_deu", 0, NULL, 0); 
     43+} 
     44diff --git a/arch/mips/lantiq/falcon/devices.h b/arch/mips/lantiq/falcon/devices.h 
     45index 18be8b6..2fdcb08 100644 
     46--- a/arch/mips/lantiq/falcon/devices.h 
     47+++ b/arch/mips/lantiq/falcon/devices.h 
     48@@ -16,5 +16,6 @@ 
     49 extern void falcon_register_nand(void); 
     50 extern void falcon_register_gpio(void); 
     51 extern void falcon_register_gpio_extra(void); 
     52+extern void falcon_register_i2c(void); 
     53  
     54 #endif 
     55diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig 
     56index 646068e..e6c3ab6 100644 
     57--- a/drivers/i2c/busses/Kconfig 
     58+++ b/drivers/i2c/busses/Kconfig 
     59@@ -284,6 +284,10 @@ config I2C_POWERMAC 
     60  
     61 comment "I2C system bus drivers (mostly embedded / system-on-chip)" 
     62  
     63+config I2C_FALCON 
     64+       tristate "Falcon I2C interface" 
     65+#      depends on SOC_FALCON 
     66+ 
     67 config I2C_AT91 
     68        tristate "Atmel AT91 I2C Two-Wire interface (TWI)" 
     69        depends on ARCH_AT91 && EXPERIMENTAL && BROKEN 
     70diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile 
     71index e6cf294..83e9250 100644 
    172--- a/drivers/i2c/busses/Makefile 
    273+++ b/drivers/i2c/busses/Makefile 
     
    879  
    980 ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG 
    10 --- a/drivers/i2c/busses/Kconfig 
    11 +++ b/drivers/i2c/busses/Kconfig 
    12 @@ -284,6 +284,10 @@ config I2C_POWERMAC 
    13   
    14  comment "I2C system bus drivers (mostly embedded / system-on-chip)" 
    15   
    16 +config I2C_FALCON 
    17 +       tristate "Falcon I2C interface" 
    18 +#      depends on SOC_FALCON 
    19 + 
    20  config I2C_AT91 
    21         tristate "Atmel AT91 I2C Two-Wire interface (TWI)" 
    22         depends on ARCH_AT91 && EXPERIMENTAL && BROKEN 
     81diff --git a/drivers/i2c/busses/i2c-falcon.c b/drivers/i2c/busses/i2c-falcon.c 
     82new file mode 100644 
     83index 0000000..7bb1253 
    2384--- /dev/null 
    2485+++ b/drivers/i2c/busses/i2c-falcon.c 
     
    839900+MODULE_LICENSE("GPL"); 
    840901+MODULE_VERSION(DRV_VERSION); 
     902--  
     9031.7.5.4 
     904 
Note: See TracChangeset for help on using the changeset viewer.