backfire: ar71xx: add rtl8366s initvals for the DIR-825 board (backport of r25121)
authorGabor Juhos <juhosg@openwrt.org>
Sun, 30 Jan 2011 21:15:06 +0000 (21:15 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 30 Jan 2011 21:15:06 +0000 (21:15 +0000)
SVN-Revision: 25257

target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c

index 0d5e92b0ac99cbd75b2b5f0493e25c973c10a1d2..c1af09c27f7e446f666eaed6a18a5431eabfb66d 100644 (file)
@@ -130,9 +130,15 @@ static struct gpio_button dir825b1_gpio_buttons[] __initdata = {
        }
 };
 
+static struct rtl8366s_initval dir825b1_rtl8366s_initvals[] = {
+       { .reg = 0x06, .val = 0x0108 },
+};
+
 static struct rtl8366s_platform_data dir825b1_rtl8366s_data = {
-       .gpio_sda        = DIR825B1_GPIO_RTL8366_SDA,
-       .gpio_sck        = DIR825B1_GPIO_RTL8366_SCK,
+       .gpio_sda       = DIR825B1_GPIO_RTL8366_SDA,
+       .gpio_sck       = DIR825B1_GPIO_RTL8366_SCK,
+       .num_initvals   = ARRAY_SIZE(dir825b1_rtl8366s_initvals),
+       .initvals       = dir825b1_rtl8366s_initvals,
 };
 
 static struct platform_device dir825b1_rtl8366s_device = {