Changeset 31734


Ignore:
Timestamp:
2012-05-15T11:38:02+02:00 (6 years ago)
Author:
blogic
Message:

[lantiq] adds zyxel p2601hnfx support

Signed-off-by: Luka Perkov <openwrt@…>

Location:
trunk/target/linux/lantiq
Files:
1 added
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/ar9/config-default

    r31060 r31734  
    2020CONFIG_LANTIQ_MACH_NETGEAR=y 
    2121CONFIG_LANTIQ_MACH_WBMR=y 
     22CONFIG_LANTIQ_MACH_P2601HNFX=y 
    2223# CONFIG_LANTIQ_VRX200 is not set 
    2324CONFIG_MDIO_BOARDINFO=y 
  • trunk/target/linux/lantiq/danube/config-default

    r31672 r31734  
    2020# CONFIG_LANTIQ_MACH_NETGEAR is not set 
    2121# CONFIG_LANTIQ_MACH_WBMR is not set 
     22# CONFIG_LANTIQ_MACH_P2601HNFX is not set 
    2223# CONFIG_LANTIQ_VRX200 is not set 
    2324CONFIG_MDIO_BOARDINFO=y 
  • trunk/target/linux/lantiq/files-3.3/arch/mips/lantiq/xway/mach-p2601hnfx.c

    r31733 r31734  
    3030 
    3131 
    32 static struct mtd_partition p2601hnf1_partitions[] __initdata = 
     32static struct mtd_partition p2601hnfx_partitions[] __initdata = 
    3333{ 
    3434        { 
     
    5454}; 
    5555 
    56 static struct physmap_flash_data p2601hnf1_flash_data __initdata = { 
    57         .nr_parts       = ARRAY_SIZE(p2601hnf1_partitions), 
    58         .parts          = p2601hnf1_partitions, 
     56static struct physmap_flash_data p2601hnfx_flash_data __initdata = { 
     57        .nr_parts       = ARRAY_SIZE(p2601hnfx_partitions), 
     58        .parts          = p2601hnfx_partitions, 
    5959}; 
    6060 
    61 static struct gpio_led p2601hnf1_leds_gpio[] __initdata = { 
     61static struct gpio_led p2601hnfx_leds_gpio[] __initdata = { 
    6262        { .name = "soc:red:power", .gpio = 29, .active_low = 1, .default_trigger = "default-off" }, 
    6363        { .name = "soc:yellow:phone", .gpio = 64, .active_low = 1, .default_trigger = "default-off" }, 
     
    7272 
    7373static struct gpio_button 
    74 p2601hnf1_gpio_buttons[] /*__initdata*/ = { 
     74p2601hnfx_gpio_buttons[] /* __initdata */ = { 
    7575        { .desc = "reset", .type = EV_KEY, .code = BTN_0, .threshold = 3, .gpio = 53, .active_low = 1, }, 
    7676        { .desc = "wlan", .type = EV_KEY, .code = BTN_1, .threshold = 1, .gpio = 54, .active_low = 1, }, 
     
    8282 
    8383static void __init 
    84 p2601hnf1_init(void) 
     84p2601hnfx_init(void) 
    8585{ 
    86  
    87 #define P2601HNF1_USB                   9 
     86#define P2601HNFX_USB                   9 
    8887 
    8988        ltq_register_gpio_stp(); 
    90         ltq_add_device_gpio_leds(-1, ARRAY_SIZE(p2601hnf1_leds_gpio), p2601hnf1_leds_gpio); 
    91         ltq_register_gpio_buttons(p2601hnf1_gpio_buttons, ARRAY_SIZE(p2601hnf1_gpio_buttons)); 
    92         ltq_register_nor(&p2601hnf1_flash_data); 
     89        ltq_add_device_gpio_leds(-1, ARRAY_SIZE(p2601hnfx_leds_gpio), p2601hnfx_leds_gpio); 
     90        ltq_register_gpio_buttons(p2601hnfx_gpio_buttons, ARRAY_SIZE(p2601hnfx_gpio_buttons)); 
     91        ltq_register_nor(&p2601hnfx_flash_data); 
    9392        ltq_register_etop(&ltq_eth_data); 
    94         xway_register_dwc(P2601HNF1_USB); 
     93        xway_register_dwc(P2601HNFX_USB); 
    9594 
    9695        // enable the ethernet ports on the SoC 
     
    10099} 
    101100 
    102 MIPS_MACHINE(LANTIQ_MACH_P2601HNF1, 
    103                         "P2601HNF1", 
    104                         "ZyXEL P-2601HN-F1", 
    105                         p2601hnf1_init); 
    106  
     101MIPS_MACHINE(LANTIQ_MACH_P2601HNFX, 
     102                        "P2601HNFX", 
     103                        "ZyXEL P-2601HN-Fx", 
     104                        p2601hnfx_init); 
  • trunk/target/linux/lantiq/image/Makefile

    r31063 r31734  
    158158Image/BuildKernel/Profile/WBMR=$(call Image/BuildKernel/Template,WBMR,$(xway_cmdline)) 
    159159Image/BuildKernel/Profile/DGN3500B=$(call Image/BuildKernel/Template,DGN3500B,$(xway_cmdline)) 
     160Image/BuildKernel/Profile/P2601HNFX=$(call Image/BuildKernel/Template,P2601HNFX,$(xway_cmdline)) 
    160161Image/BuildKernel/Profile/FRITZ7320=$(call Image/BuildKernelEVA/Template,FRITZ7320,$(xway_cmdline)) 
    161162 
    162163Image/Build/Profile/WBMR=$(call Image/Build/$(1),$(1),WBMR) 
    163164Image/Build/Profile/DGN3500B=$(call Image/Build/$(1),$(1),DGN3500B) 
     165Image/Build/Profile/P2601HNFX=$(call Image/Build/$(1),$(1),P2601HNFX) 
    164166Image/Build/Profile/FRITZ7320=$(call Image/BuildEVA/$(1),$(1),FRITZ7320) 
    165167 
     
    167169        $(call Image/BuildKernel/Template,WBMR,$(xway_cmdline)) 
    168170        $(call Image/BuildKernel/Template,DGN3500B,$(xway_cmdline)) 
     171        $(call Image/BuildKernel/Template,P2601HNFX,$(xway_cmdline)) 
    169172        $(call Image/BuildKernelEVA/Template,FRITZ7320,$(xway_cmdline)) 
    170173        $(call Image/BuildKernel/Template,NONE) 
     
    174177        $(call Image/Build/$(1),$(1),WBMR) 
    175178        $(call Image/Build/$(1),$(1),DGN3500B) 
     179        $(call Image/Build/$(1),$(1),P2601HNFX) 
    176180        $(call Image/BuildEVA/$(1),$(1),FRITZ7320) 
    177181        $(call Image/Build/$(1),$(1),NONE) 
  • trunk/target/linux/lantiq/patches-3.3/206-machtypes.patch

    r31671 r31734  
    11--- a/arch/mips/lantiq/machtypes.h 
    22+++ b/arch/mips/lantiq/machtypes.h 
    3 @@ -20,6 +20,36 @@ enum lantiq_mach_type { 
     3@@ -20,6 +20,39 @@ enum lantiq_mach_type { 
    44        LANTIQ_MACH_EASY98000,          /* Falcon Eval Board, NOR Flash */ 
    55        LANTIQ_MACH_EASY98000SF,        /* Falcon Eval Board, Serial Flash */ 
     
    3535+       /* Buffalo */ 
    3636+       LANTIQ_MACH_WBMR,               /* WBMR-HP-G300H */ 
     37+ 
     38+       /* ZyXEL */ 
     39+       LANTIQ_MACH_P2601HNFX,          /* ZyXEL P-2601HN-Fx */ 
    3740 }; 
    3841  
     
    4043--- a/arch/mips/lantiq/xway/Kconfig 
    4144+++ b/arch/mips/lantiq/xway/Kconfig 
    42 @@ -6,6 +6,30 @@ config LANTIQ_MACH_EASY50712 
     45@@ -6,6 +6,34 @@ config LANTIQ_MACH_EASY50712 
    4346        bool "Easy50712 - Danube" 
    4447        default y 
     
    5861+config LANTIQ_MACH_WBMR 
    5962+       bool "WBMR-HP-G300H" 
     63+       default y 
     64+ 
     65+config LANTIQ_MACH_P2601HNFX 
     66+       bool "P2601HNFX" 
    6067+       default y 
    6168+ 
     
    7380--- a/arch/mips/lantiq/xway/Makefile 
    7481+++ b/arch/mips/lantiq/xway/Makefile 
    75 @@ -2,3 +2,9 @@ obj-y := sysctrl.o reset.o gpio.o gpio_s 
     82@@ -2,3 +2,10 @@ obj-y := sysctrl.o reset.o gpio.o gpio_s 
    7683  
    7784 obj-$(CONFIG_LANTIQ_MACH_EASY50712) += mach-easy50712.o 
     
    8390+obj-$(CONFIG_LANTIQ_MACH_NETGEAR) += mach-netgear.o 
    8491+obj-$(CONFIG_LANTIQ_MACH_WBMR) += mach-wbmr.o 
     92+obj-$(CONFIG_LANTIQ_MACH_P2601HNFX) += mach-p2601hnfx.o 
    8593--- a/arch/mips/lantiq/falcon/Kconfig 
    8694+++ b/arch/mips/lantiq/falcon/Kconfig 
  • trunk/target/linux/lantiq/vr9/config-default

    r31672 r31734  
    2222# CONFIG_LANTIQ_MACH_NETGEAR is not set 
    2323# CONFIG_LANTIQ_MACH_WBMR is not set 
     24# CONFIG_LANTIQ_MACH_P2601HNFX is not set 
    2425CONFIG_LANTIQ_VRX200=y 
    2526CONFIG_M25PXX_USE_FAST_READ=y 
Note: See TracChangeset for help on using the changeset viewer.