ar71xx: rb2011: add switch led control values
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 30 May 2013 17:38:21 +0000 (17:38 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 30 May 2013 17:38:21 +0000 (17:38 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36796 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c

index fd39ec6..a6261d6 100644 (file)
@@ -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[] = {