summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-01-17 12:10:35 +0000
committerJohn Crispin <john@openwrt.org>2012-01-17 12:10:35 +0000
commit49eb3fd845e496771d612c240fedf77be221e2d3 (patch)
treece415d67d75392ad5e2daee47af311e4c1e2d5ca /target
parenta2708d11e88d423279e3a90869c6d5e6405d3f6f (diff)
downloadmtk-20170518-49eb3fd845e496771d612c240fedf77be221e2d3.zip
mtk-20170518-49eb3fd845e496771d612c240fedf77be221e2d3.tar.gz
mtk-20170518-49eb3fd845e496771d612c240fedf77be221e2d3.tar.bz2
gigaset 76x
* fixes leds * adds all leds found on the sx763 board * removes board_config from flash layout because wireless data is stored in kernel (ath5k) * fix button handling Signed-off-by: Luka Perkov <openwrt@lukaperkov.net> SVN-Revision: 29763
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/uci-defaults/leds2
-rw-r--r--target/linux/lantiq/files-3.1/arch/mips/lantiq/xway/mach-gigasx76x.c36
2 files changed, 17 insertions, 21 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/leds b/target/linux/lantiq/base-files/etc/uci-defaults/leds
index 1de8c36..411e9d8 100755
--- a/target/linux/lantiq/base-files/etc/uci-defaults/leds
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/leds
@@ -95,6 +95,8 @@ GIGASX76X)
set_led_wlan "wifi" "wifi" "soc:green:wifi" "phy0radio"
set_led_netdev "online" "online" "soc:green:online" "nas0"
set_led_usbdev "usb" "USB" "soc:green:usb" "1-1"
+ set_led_default "adsl" "adsl" "soc:green:adsl" "0"
+ set_led_default "voip" "voip" "soc:green:voip" "0"
set_led_default "phone1" "fxs1" "soc:green:phone1" "0"
set_led_default "phone2" "fxs2" "soc:green:phone2" "0"
set_led_default "line" "line" "soc:green:line" "0"
diff --git a/target/linux/lantiq/files-3.1/arch/mips/lantiq/xway/mach-gigasx76x.c b/target/linux/lantiq/files-3.1/arch/mips/lantiq/xway/mach-gigasx76x.c
index 5256fdd..3dbfcb9 100644
--- a/target/linux/lantiq/files-3.1/arch/mips/lantiq/xway/mach-gigasx76x.c
+++ b/target/linux/lantiq/files-3.1/arch/mips/lantiq/xway/mach-gigasx76x.c
@@ -54,25 +54,20 @@ static struct mtd_partition gigasx76x_partitions[] =
{
.name = "linux",
.offset = 0x020000,
- .size = 0x7d0000,
- },
- {
- .name = "board_config",
- .offset = 0x7f0000,
- .size = 0x010000,
+ .size = 0x7e0000,
},
};
static struct gpio_led
gigasx76x_gpio_leds[] __initdata = {
-
- { .name = "soc:green:usb", .gpio = 202, },
- { .name = "soc:green:wifi", .gpio = 203, },
- { .name = "soc:green:phone2", .gpio = 204, },
- { .name = "soc:green:phone1", .gpio = 205, },
- { .name = "soc:green:line", .gpio = 206, },
- { .name = "soc:green:online", .gpio = 207, },
- { .name = "soc:green:voip", .gpio = 208, },
+ { .name = "soc:green:voip", .gpio = 216, },
+ { .name = "soc:green:adsl", .gpio = 217, },
+ { .name = "soc:green:usb", .gpio = 218, },
+ { .name = "soc:green:wifi", .gpio = 219, },
+ { .name = "soc:green:phone2", .gpio = 220, },
+ { .name = "soc:green:phone1", .gpio = 221, },
+ { .name = "soc:green:line", .gpio = 222, },
+ { .name = "soc:green:online", .gpio = 223, },
};
static struct gpio_keys_button
@@ -80,19 +75,19 @@ gigasx76x_gpio_keys[] __initdata = {
{
.desc = "wps",
.type = EV_KEY,
- .code = BTN_0,
+ .code = KEY_WPS_BUTTON,
.debounce_interval = LTQ_KEYS_DEBOUNCE_INTERVAL,
.gpio = 22,
.active_low = 1,
},
- /*{
- .desc = "factory",
+ {
+ .desc = "reset",
.type = EV_KEY,
- .code = BTN_1,
+ .code = BTN_0,
.debounce_interval = LTQ_KEYS_DEBOUNCE_INTERVAL,
.gpio = 14,
- .active_low = 1,
- },*/
+ .active_low = 0,
+ },
};
static struct physmap_flash_data gigasx76x_flash_data = {
@@ -228,7 +223,6 @@ static void __init gigasx76x_init(void) {
ltq_register_nor(&gigasx76x_flash_data);
ltq_register_pci(&ltq_pci_data);
ltq_register_tapi();
- ltq_register_madwifi_eep(GIGASX76X_MADWIFI_ADDR);
ltq_add_device_gpio_leds(-1, ARRAY_SIZE(gigasx76x_gpio_leds), gigasx76x_gpio_leds);
ltq_register_gpio_keys_polled(-1, LTQ_KEYS_POLL_INTERVAL, ARRAY_SIZE(gigasx76x_gpio_keys), gigasx76x_gpio_keys);
ltq_register_ath5k(gigasx76x_ath5k_eeprom_data, gigasx76x_ath5k_eeprom_mac);