Changeset 32934


Ignore:
Timestamp:
2012-08-01T14:24:57+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: ew-dorin: added router firmware generation

[juhosg: remove dead code]

Signed-off-by: embedded wireless GmbH <info@…>

Location:
trunk/target/linux/ar71xx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/network

    r32608 r32934  
    134134bullet-m |\ 
    135135eap7660d |\ 
     136ew-dorin |\ 
    136137rb-411 |\ 
    137138tl-mr11u |\ 
     
    187188        ;; 
    188189 
    189 ew-dorin) 
     190ew-dorin-router) 
    190191        ucidef_set_interfaces_lan_wan "eth0" "eth1" 
    191192        ucidef_add_switch "eth0" "1" "1" 
  • trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh

    r32931 r32934  
    400400                name="ew-dorin" 
    401401                ;; 
     402        *EmbWir-Dorin-Router) 
     403                name="ew-dorin-router" 
     404                ;; 
    402405        esac 
    403406 
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r32931 r32934  
    9595                return 0 
    9696                ;; 
    97         ew-dorin | \ 
    9897        ap81 | \ 
    9998        ap83 | \ 
     
    102101        dir-615-e4 | \ 
    103102        dir-825-b1 | \ 
     103        ew-dorin | \ 
     104        ew-dorin-router | \ 
    104105        mzk-w04nu | \ 
    105106        mzk-w300nh | \ 
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-ew-dorin.c

    r32447 r32934  
    8686        ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0); 
    8787 
     88        ath79_register_mdio(0, 0x0); 
     89 
     90        /* LAN ports */ 
     91        ath79_register_eth(1); 
     92 
     93        ath79_register_leds_gpio(-1, ARRAY_SIZE(dorin_leds_gpio), 
     94                                 dorin_leds_gpio); 
     95        ath79_register_gpio_keys_polled(-1, DORIN_KEYS_POLL_INTERVAL, 
     96                                        ARRAY_SIZE(dorin_gpio_keys), 
     97                                        dorin_gpio_keys); 
     98} 
     99 
     100MIPS_MACHINE(ATH79_MACH_EW_DORIN, "EW-DORIN", "EmbWir-Dorin", 
     101             ew_dorin_setup); 
     102 
     103 
     104static void __init ew_dorin_router_setup(void) 
     105{ 
     106        u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); 
     107        static u8 mac[6]; 
     108 
     109        ath79_register_m25p80(NULL); 
     110 
     111        ath79_register_usb(); 
     112 
     113        if (ar93xx_wmac_read_mac_address(mac)) { 
     114                ath79_register_wmac(NULL, NULL); 
     115        } else { 
     116                ath79_register_wmac(art + DORIN_CALDATA_OFFSET, 
     117                                    art + DORIN_WMAC_MAC_OFFSET); 
     118                memcpy(mac, art + DORIN_WMAC_MAC_OFFSET, sizeof(mac)); 
     119        } 
     120 
     121        mac[3] |= 0x40; 
     122        ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0); 
     123 
    88124        mac[3] &= 0x3F; 
    89125        ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0); 
     
    105141} 
    106142 
    107 MIPS_MACHINE(ATH79_MACH_EW_DORIN, "EW-DORIN", "EmbWir-Dorin", 
    108              ew_dorin_setup); 
     143MIPS_MACHINE(ATH79_MACH_EW_DORIN_ROUTER, "EW-DORIN-ROUTER", 
     144             "EmbWir-Dorin-Router", ew_dorin_router_setup); 
  • trunk/target/linux/ar71xx/image/Makefile

    r32931 r32934  
    683683 
    684684ew-dorin_cmdline=board=EW-DORIN console=ttyATH0,115200 
     685ew-dorin-router_cmdline=board=EW-DORIN-ROUTER console=ttyATH0,115200 
    685686ew-dorin_mtdlayout_4M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),1024k(kernel),2688k(rootfs),64k(art),3712k@0x50000(firmware) 
    686687define Image/Build/Profile/EWDORIN 
    687688        $(call Image/Build/Template/$(fs_64k)/$(1),AthLzma,ew-dorin,$(ew-dorin_cmdline),$(ew-dorin_mtdlayout_4M),1048576,2752512,KRuImage) 
     689        $(call Image/Build/Template/$(fs_64k)/$(1),AthLzma,ew-dorin-router,$(ew-dorin-router_cmdline),$(ew-dorin_mtdlayout_4M),1048576,2752512,KRuImage) 
    688690endef 
    689691 
  • trunk/target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch

    r32931 r32934  
    11--- a/arch/mips/ath79/machtypes.h 
    22+++ b/arch/mips/ath79/machtypes.h 
    3 @@ -16,18 +16,92 @@ 
     3@@ -16,18 +16,93 @@ 
    44  
    55 enum ath79_mach_type { 
     
    2323+       ATH79_MACH_DIR_825_B1,          /* D-Link DIR-825 rev. B1 */ 
    2424+       ATH79_MACH_EW_DORIN,            /* embedded wireless Dorin Platform */ 
     25+       ATH79_MACH_EW_DORIN_ROUTER,     /* embedded wireless Dorin Router Platform */ 
    2526+       ATH79_MACH_EAP7660D,            /* Senao EAP7660D */ 
    2627+       ATH79_MACH_JA76PF,              /* jjPlus JA76PF */ 
Note: See TracChangeset for help on using the changeset viewer.