remove AR71XX_EARLY_SERIAL stuff
authorGabor Juhos <juhosg@openwrt.org>
Tue, 25 Aug 2009 17:13:12 +0000 (17:13 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 25 Aug 2009 17:13:12 +0000 (17:13 +0000)
SVN-Revision: 17400

target/linux/ar71xx/config-2.6.28
target/linux/ar71xx/config-2.6.30
target/linux/ar71xx/config-2.6.31
target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig
target/linux/ar71xx/files/arch/mips/ar71xx/devices.c
target/linux/ar71xx/files/arch/mips/ar71xx/devices.h
target/linux/ar71xx/files/arch/mips/ar71xx/setup.c

index a81c5f22ebefc11acaa3813528a30f9717de2797..78a05526ba8000ee47d543d994e663f109a610f1 100644 (file)
@@ -5,7 +5,6 @@ CONFIG_ADM6996_PHY=y
 CONFIG_AG71XX=y
 CONFIG_AG71XX_AR8216_SUPPORT=y
 # CONFIG_AG71XX_DEBUG is not set
-# CONFIG_AR71XX_EARLY_SERIAL is not set
 CONFIG_AR71XX_MACH_AP81=y
 CONFIG_AR71XX_MACH_AP83=y
 CONFIG_AR71XX_MACH_AW_NR580=y
index 5f9e9ee47c348c26a219ccc30c64a0a6ca98df3d..dbeea43be8d183d00af2e390352d93e6c310484d 100644 (file)
@@ -4,7 +4,6 @@ CONFIG_ADM6996_PHY=y
 CONFIG_AG71XX=y
 CONFIG_AG71XX_AR8216_SUPPORT=y
 # CONFIG_AG71XX_DEBUG is not set
-# CONFIG_AR71XX_EARLY_SERIAL is not set
 CONFIG_AR71XX_MACH_AP81=y
 CONFIG_AR71XX_MACH_AP83=y
 CONFIG_AR71XX_MACH_AW_NR580=y
index 9a6a89857bc0ddce07c49f1e7eede0edae62b198..dd84d1f0b393982ddb6184ab20e4bd113e988814 100644 (file)
@@ -6,7 +6,6 @@ CONFIG_AG71XX_AR8216_SUPPORT=y
 # CONFIG_AG71XX_DEBUG is not set
 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set
 # CONFIG_AR7 is not set
-# CONFIG_AR71XX_EARLY_SERIAL is not set
 CONFIG_AR71XX_MACH_AP81=y
 CONFIG_AR71XX_MACH_AP83=y
 CONFIG_AR71XX_MACH_AW_NR580=y
index 9840c7f986b19e6eb0b742a64a3accf60a790283..b8b36490141845532cb2b5afdefc3734eecfbade 100644 (file)
@@ -1,9 +1,5 @@
 if ATHEROS_AR71XX
 
-config AR71XX_EARLY_SERIAL
-       bool "Use early serial console"
-       default n
-
 menu "Atheros AR71xx machine selection"
 
 config AR71XX_MACH_AP81
index 62969d00a4bd6b8935620dc6d5db498bda57398d..5ff65e0ed06417a76d41719c4f0b1143c306ed2b 100644 (file)
@@ -140,7 +140,6 @@ void __init ar71xx_add_device_usb(void)
        }
 }
 
-#ifndef CONFIG_AR71XX_EARLY_SERIAL
 static struct resource ar71xx_uart_resources[] = {
        {
                .start  = AR71XX_UART_BASE,
@@ -177,7 +176,6 @@ void __init ar71xx_add_device_uart(void)
        ar71xx_uart_data[0].uartclk = ar71xx_ahb_freq;
        platform_device_register(&ar71xx_uart_device);
 }
-#endif /* CONFIG_AR71XX_EARLY_SERIAL */
 
 static struct resource ar71xx_mdio_resources[] = {
        {
index ec75ac1e8c4270b84d1b972e6f19ffea79414404..6c721269df0b21267b3d69a3b7018f3605cf7d3f 100644 (file)
@@ -50,12 +50,7 @@ void ar71xx_add_device_gpio_buttons(int id,
                                    struct gpio_button *buttons) __init;
 
 void ar71xx_add_device_usb(void) __init;
-
-#ifdef CONFIG_AR71XX_EARLY_SERIAL
-static inline void ar71xx_add_device_uart(void) {}
-#else
 void ar71xx_add_device_uart(void) __init;
-#endif
 
 void ar71xx_add_device_wdt(void) __init;
 
index 1666d8216ba6c3afd8137858168386183e75d240..4a2295af493ca36f3a7ffe4b24100abaae67073e 100644 (file)
@@ -226,26 +226,6 @@ static void __init detect_sys_frequency(void)
        }
 }
 
-#ifdef CONFIG_AR71XX_EARLY_SERIAL
-static void __init ar71xx_early_serial_setup(void)
-{
-       struct uart_port p;
-
-       memset(&p, 0, sizeof(p));
-
-       p.flags         = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP;
-       p.iotype        = UPIO_MEM32;
-       p.uartclk       = ar71xx_ahb_freq;
-       p.irq           = AR71XX_MISC_IRQ_UART;
-       p.regshift      = 2;
-       p.mapbase       = AR71XX_UART_BASE;
-
-       early_serial_setup(&p);
-}
-#else
-static inline void ar71xx_early_serial_setup(void) {};
-#endif /* CONFIG_AR71XX_EARLY_SERIAL */
-
 const char *get_system_type(void)
 {
        return ar71xx_sys_type;
@@ -288,8 +268,6 @@ void __init plat_mem_setup(void)
        _machine_restart = ar71xx_restart;
        _machine_halt = ar71xx_halt;
        pm_power_off = ar71xx_halt;
-
-       ar71xx_early_serial_setup();
 }
 
 void __init plat_time_init(void)