[ARM] tegra: stingray: enable fiq debugger in board file
authorIliyan Malchev <malchev@google.com>
Sun, 6 Jun 2010 00:45:38 +0000 (17:45 -0700)
committerColin Cross <ccross@android.com>
Fri, 8 Oct 2010 19:53:36 +0000 (12:53 -0700)
Change-Id: Id0019b0e849dcac90b6583f30d18d67ca9b7a002
Signed-off-by: Colin Cross <ccross@google.com>
arch/arm/mach-tegra/board-stingray.c

index d1ed4db1f1572d15b646afb193fa47d832172ded..67fbdf1fbe3fe1b5a085e65e33d9b2524bc9b1ca 100644 (file)
@@ -51,6 +51,7 @@
 #include <mach/cpcap_audio.h>
 #include <mach/suspend.h>
 #include <mach/system.h>
+#include <mach/tegra_fiq_debugger.h>
 
 #include <linux/usb/android_composite.h>
 
@@ -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);