aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-05-30 17:38:21 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-05-30 17:38:21 +0000
commit3467b17e69e2e4eebe7b21f4792e5da55ead970c (patch)
tree9e8b540d4f49738eda60748830e38f100701a7d7 /target/linux/ar71xx/files
parent4cf6e53ccccea67bd6e7767c92847c48f66b2c43 (diff)
downloadupstream-3467b17e69e2e4eebe7b21f4792e5da55ead970c.tar.gz
upstream-3467b17e69e2e4eebe7b21f4792e5da55ead970c.tar.bz2
upstream-3467b17e69e2e4eebe7b21f4792e5da55ead970c.zip
ar71xx: rb2011: add switch led control values
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 36796
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
index fd39ec618c..a6261d6539 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
@@ -119,6 +119,14 @@ static struct ar8327_pad_cfg rb2011_ar8327_pad0_cfg = {
.rxclk_delay_sel = AR8327_CLK_DELAY_SEL0,
};
+static struct ar8327_led_cfg rb2011_ar8327_led_cfg = {
+ .led_ctrl0 = 0x0000c731,
+ .led_ctrl1 = 0x00000000,
+ .led_ctrl2 = 0x00000000,
+ .led_ctrl3 = 0x0030c300,
+ .open_drain = false,
+};
+
static struct ar8327_platform_data rb2011_ar8327_data = {
.pad0_cfg = &rb2011_ar8327_pad0_cfg,
.port0_cfg = {
@@ -127,7 +135,8 @@ static struct ar8327_platform_data rb2011_ar8327_data = {
.duplex = 1,
.txpause = 1,
.rxpause = 1,
- }
+ },
+ .led_cfg = &rb2011_ar8327_led_cfg,
};
static struct mdio_board_info rb2011_mdio0_info[] = {