summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-01-23 12:51:15 +0000
committerJohn Crispin <john@openwrt.org>2011-01-23 12:51:15 +0000
commita8819fd2205a3016b048511fafdbda907e2f5b8b (patch)
treed4b20cde0d70dc1bedddc8d2b31f6c7b920174f8
parent699f5c872992ddd97ec7cfcb39ec8933f463e8aa (diff)
downloadmtk-20170518-a8819fd2205a3016b048511fafdbda907e2f5b8b.zip
mtk-20170518-a8819fd2205a3016b048511fafdbda907e2f5b8b.tar.gz
mtk-20170518-a8819fd2205a3016b048511fafdbda907e2f5b8b.tar.bz2
adds machtype for ARV7518PW
SVN-Revision: 25074
-rw-r--r--target/linux/lantiq/image/Makefile2
-rw-r--r--target/linux/lantiq/patches/400-mach-arv45xx.patch36
2 files changed, 36 insertions, 2 deletions
diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile
index 71d0920..f00c8e7 100644
--- a/target/linux/lantiq/image/Makefile
+++ b/target/linux/lantiq/image/Makefile
@@ -61,6 +61,7 @@ define Image/BuildKernel
$(call Image/BuildKernel/Template,EASY50812,$(xway_cmdline))
$(call Image/BuildKernel/Template,ARV452,$(xway_cmdline))
$(call Image/BuildKernel/Template,ARV752DPW22,$(xway_cmdline))
+ $(call Image/BuildKernel/Template,ARV7518PW,$(xway_cmdline))
$(call Image/BuildKernel/Template,NONE)
endef
@@ -70,6 +71,7 @@ define Image/Build
$(call Image/Build/$(1),$(1),EASY50812)
$(call Image/Build/$(1),$(1),ARV452)
$(call Image/Build/$(1),$(1),ARV752DPW22)
+ $(call Image/Build/$(1),$(1),ARV7518PW)
$(call Image/Build/$(1),$(1),NONE)
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).rootfs
endef
diff --git a/target/linux/lantiq/patches/400-mach-arv45xx.patch b/target/linux/lantiq/patches/400-mach-arv45xx.patch
index b778a5b..6a7770c 100644
--- a/target/linux/lantiq/patches/400-mach-arv45xx.patch
+++ b/target/linux/lantiq/patches/400-mach-arv45xx.patch
@@ -1,6 +1,6 @@
--- a/arch/mips/include/asm/mach-lantiq/machine.h
+++ b/arch/mips/include/asm/mach-lantiq/machine.h
-@@ -11,4 +11,8 @@
+@@ -11,4 +11,9 @@
LANTIQ_MACH_EASY4010, /* Twinpass evalkit */
LANTIQ_MACH_EASY50712, /* Danube evalkit */
LANTIQ_MACH_EASY50812, /* AR9 eval board */
@@ -8,6 +8,7 @@
+ LANTIQ_MACH_ARV452, /* Airties WAV-281, Arcor EasyboxA800 */
+ LANTIQ_MACH_ARV4525, /* Speedport W502V */
+ LANTIQ_MACH_ARV752DPW22, /* Arcor easybox a803 */
++ LANTIQ_MACH_ARV7518PW, /* ASTORIA */
};
--- a/arch/mips/lantiq/xway/Kconfig
+++ b/arch/mips/lantiq/xway/Kconfig
@@ -31,7 +32,7 @@
+obj-$(CONFIG_LANTIQ_MACH_ARV45XX) += mach-arv45xx.o
--- /dev/null
+++ b/arch/mips/lantiq/xway/mach-arv45xx.c
-@@ -0,0 +1,268 @@
+@@ -0,0 +1,299 @@
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
@@ -199,6 +200,16 @@
+ { .name = "soc:green:eth4", .gpio = 46, .active_low = 1, .default_trigger = "default-on", },
+};
+
++static struct gpio_led
++arv7518pw_leds_gpio[] __initdata = {
++ { .name = "soc:green:power", .gpio = 2, .active_low = 1, },
++ { .name = "soc:green:adsl", .gpio = 4, .active_low = 1, },
++ { .name = "soc:green:internet", .gpio = 5, .active_low = 1, },
++ { .name = "soc:green:wlan", .gpio = 6, .active_low = 1, },
++ { .name = "sco:red:internet", .gpio = 8, .active_low = 1, },
++ { .name = "soc:green:usb", .gpio = 19, .active_low = 1, },
++};
++
+static void
+arv45xx_register_ethernet(void)
+{
@@ -274,6 +285,27 @@
+ "ARV4525 - Speedport W502V",
+ arv4525_init);
+
++
++static void __init
++arv7518pw_init(void)
++{
++ lq_register_gpio();
++ lq_register_gpio_ebu(ARV452_LATCH_SWITCH);
++ lq_register_asc(0);
++ lq_register_asc(1);
++ lq_register_gpio_leds(arv7518pw_leds_gpio, ARRAY_SIZE(arv7518pw_leds_gpio));
++ lq_register_nor(&arv75xx_flash_data);
++ lq_register_pci(&lq_pci_data);
++ lq_register_wdt();
++ arv75xx_register_ethernet();
++ //arv7518_register_ath9k(mac);
++}
++
++MIPS_MACHINE(LANTIQ_MACH_ARV7518PW,
++ "ARV7518PW",
++ "ARV7518PW - ASTORIA",
++ arv7518pw_init);
++
+static void __init
+arv752dpw22_init(void)
+{