From: Iliyan Malchev Date: Sun, 6 Jun 2010 00:45:38 +0000 (-0700) Subject: [ARM] tegra: stingray: enable fiq debugger in board file X-Git-Tag: firefly_0821_release~9834^2~467 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cdf34cf3a350ed5aace4f63375250ec2db07f1b9;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: stingray: enable fiq debugger in board file Change-Id: Id0019b0e849dcac90b6583f30d18d67ca9b7a002 Signed-off-by: Colin Cross --- diff --git a/arch/arm/mach-tegra/board-stingray.c b/arch/arm/mach-tegra/board-stingray.c index d1ed4db1f157..67fbdf1fbe3f 100644 --- a/arch/arm/mach-tegra/board-stingray.c +++ b/arch/arm/mach-tegra/board-stingray.c @@ -51,6 +51,7 @@ #include #include #include +#include #include @@ -95,28 +96,6 @@ static int __init parse_tag_nvidia(const struct tag *tag) } __tagtable(ATAG_NVIDIA, parse_tag_nvidia); -static struct plat_serial8250_port debug_uart_platform_data[] = { - { - .membase = IO_ADDRESS(TEGRA_UARTB_BASE), - .mapbase = TEGRA_UARTB_BASE, - .irq = INT_UARTB, - .flags = UPF_BOOT_AUTOCONF, - .iotype = UPIO_MEM, - .regshift = 2, - .uartclk = 0, /* filled in by tegra_stingray_init */ - }, { - .flags = 0 - } -}; - -static struct platform_device debug_uart = { - .name = "serial8250", - .id = PLAT8250_DEV_PLATFORM, - .dev = { - .platform_data = debug_uart_platform_data, - }, -}; - static struct plat_serial8250_port hs_uarta_platform_data[] = { { .mapbase = TEGRA_UARTA_BASE, @@ -624,7 +603,6 @@ static struct platform_device ram_console_device = { }; static struct platform_device *stingray_devices[] __initdata = { - &debug_uart, &cpcap_otg, &bq24617_device, &bcm4329_rfkill, @@ -1029,7 +1007,8 @@ static void __init tegra_stingray_init(void) tegra_clk_init_from_table(stingray_clk_init_table); clk = tegra_get_clock_by_name("uartb"); - debug_uart_platform_data[0].uartclk = clk_get_rate(clk); + tegra_serial_debug_init(TEGRA_UARTB_BASE, INT_UARTB, + clk, INT_QUAD_RES_31, -1); nvmap_add_carveout_heap(TEGRA_IRAM_BASE, TEGRA_IRAM_SIZE, "iram", NVMEM_HEAP_CARVEOUT_IRAM);