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
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
# 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
if ATHEROS_AR71XX
-config AR71XX_EARLY_SERIAL
- bool "Use early serial console"
- default n
-
menu "Atheros AR71xx machine selection"
config AR71XX_MACH_AP81
}
}
-#ifndef CONFIG_AR71XX_EARLY_SERIAL
static struct resource ar71xx_uart_resources[] = {
{
.start = AR71XX_UART_BASE,
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[] = {
{
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;
}
}
-#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;
_machine_restart = ar71xx_restart;
_machine_halt = ar71xx_halt;
pm_power_off = ar71xx_halt;
-
- ar71xx_early_serial_setup();
}
void __init plat_time_init(void)