fixup the optional UART on the Cambria -- thanks, Chris
[openwrt/openwrt.git] / target / linux / ixp4xx / patches-2.6.26 / 191-cambria_optional_uart.patch
index 5747aa7de552635f4b8a0bb156a2dd64715d311e..78e4a9e561a11edba3ccdd39cd4ae7e999d6ee21 100644 (file)
 +
 +static struct plat_serial8250_port cambria_optional_uart_data[] = {
 +      {
-+              .flags          = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
++              .flags          = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_BUGGY_UART,
 +              .iotype         = UPIO_MEM,
 +              .regshift       = 0,
 +              .uartclk        = 1843200,
 +      },
 +      {
-+              .flags          = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
++              .flags          = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_BUGGY_UART,
 +              .iotype         = UPIO_MEM,
 +              .regshift       = 0,
 +              .uartclk        = 1843200,
@@ -72,7 +72,7 @@
        platform_device_register(&cambria_npec_device);
        platform_device_register(&cambria_npea_device);
  
-@@ -298,6 +349,22 @@
+@@ -298,6 +349,20 @@
  
  static void __init cambria_gw2358_setup(void)
  {
@@ -90,8 +90,6 @@
 +
 +      platform_device_register(&cambria_optional_uart);
 +
-+      cambria_npec_data.phy = 2;
-+      cambria_npea_data.phy = 1;
        platform_device_register(&cambria_npec_device);
        platform_device_register(&cambria_npea_device);