aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-09-25 17:54:56 -0400
committerStephen Warren <swarren@nvidia.com>2012-11-16 14:22:18 -0500
commit460678035247a9f72a4401dfeb6513ee495bf975 (patch)
tree4529e3199c7755ab7bf87e5003e389d0054d9a36
parent7a28106509463529d7b0408d3f5a0ab99f6810ee (diff)
ARM: tegra: move debug-macro.S to include/debug
Move Tegra's debug-macro.S over to the common debug macro directory. Move Tegra's debug UART selection menu into ARM's Kconfig.debug, so that all related options are selected in the same place. Tegra's uncompress.h is left in mach-tegra/include/mach; it will be removed whenever Tegra is converted to multi-platform. Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--arch/arm/Kconfig.debug38
-rw-r--r--arch/arm/include/debug/tegra.S (renamed from arch/arm/mach-tegra/include/mach/debug-macro.S)2
-rw-r--r--arch/arm/mach-tegra/Kconfig29
3 files changed, 38 insertions, 31 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index b0f3857b3a4c..96b9425219d9 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -345,6 +345,13 @@ choice
345 Say Y here if you want kernel low-level debugging support 345 Say Y here if you want kernel low-level debugging support
346 on SOCFPGA based platforms. 346 on SOCFPGA based platforms.
347 347
348 config DEBUG_TEGRA_UART
349 depends on ARCH_TEGRA
350 bool "Use Tegra UART for low-level debug"
351 help
352 Say Y here if you want kernel low-level debugging support
353 on Tegra based platforms.
354
348 config DEBUG_VEXPRESS_UART0_DETECT 355 config DEBUG_VEXPRESS_UART0_DETECT
349 bool "Autodetect UART0 on Versatile Express Cortex-A core tiles" 356 bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
350 depends on ARCH_VEXPRESS && CPU_CP15_MMU 357 depends on ARCH_VEXPRESS && CPU_CP15_MMU
@@ -409,6 +416,36 @@ choice
409 416
410endchoice 417endchoice
411 418
419choice
420 prompt "Low-level debug console UART"
421 depends on DEBUG_LL && DEBUG_TEGRA_UART
422
423 config TEGRA_DEBUG_UART_AUTO_ODMDATA
424 bool "Via ODMDATA"
425 help
426 Automatically determines which UART to use for low-level debug based
427 on the ODMDATA value. This value is part of the BCT, and is written
428 to the boot memory device using nvflash, or other flashing tool.
429 When bits 19:18 are 3, then bits 17:15 indicate which UART to use;
430 0/1/2/3/4 are UART A/B/C/D/E.
431
432 config TEGRA_DEBUG_UARTA
433 bool "UART A"
434
435 config TEGRA_DEBUG_UARTB
436 bool "UART B"
437
438 config TEGRA_DEBUG_UARTC
439 bool "UART C"
440
441 config TEGRA_DEBUG_UARTD
442 bool "UART D"
443
444 config TEGRA_DEBUG_UARTE
445 bool "UART E"
446
447endchoice
448
412config DEBUG_LL_INCLUDE 449config DEBUG_LL_INCLUDE
413 string 450 string
414 default "debug/icedcc.S" if DEBUG_ICEDCC 451 default "debug/icedcc.S" if DEBUG_ICEDCC
@@ -418,6 +455,7 @@ config DEBUG_LL_INCLUDE
418 default "debug/socfpga.S" if DEBUG_SOCFPGA_UART 455 default "debug/socfpga.S" if DEBUG_SOCFPGA_UART
419 default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \ 456 default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \
420 DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1 457 DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1
458 default "debug/tegra.S" if DEBUG_TEGRA_UART
421 default "mach/debug-macro.S" 459 default "mach/debug-macro.S"
422 460
423config EARLY_PRINTK 461config EARLY_PRINTK
diff --git a/arch/arm/mach-tegra/include/mach/debug-macro.S b/arch/arm/include/debug/tegra.S
index f67fd6df0e2f..883d7c22fd9d 100644
--- a/arch/arm/mach-tegra/include/mach/debug-macro.S
+++ b/arch/arm/include/debug/tegra.S
@@ -1,6 +1,4 @@
1/* 1/*
2 * arch/arm/mach-tegra/include/mach/debug-macro.S
3 *
4 * Copyright (C) 2010,2011 Google, Inc. 2 * Copyright (C) 2010,2011 Google, Inc.
5 * Copyright (C) 2011-2012 NVIDIA CORPORATION. All Rights Reserved. 3 * Copyright (C) 2011-2012 NVIDIA CORPORATION. All Rights Reserved.
6 * 4 *
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index 97fcd16e2dab..e426d1b7747e 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -57,35 +57,6 @@ config TEGRA_AHB
57 which controls AHB bus master arbitration and some 57 which controls AHB bus master arbitration and some
58 perfomance parameters(priority, prefech size). 58 perfomance parameters(priority, prefech size).
59 59
60choice
61 prompt "Low-level debug console UART"
62
63config TEGRA_DEBUG_UART_AUTO_ODMDATA
64 bool "Via ODMDATA"
65 help
66 Automatically determines which UART to use for low-level debug based
67 on the ODMDATA value. This value is part of the BCT, and is written
68 to the boot memory device using nvflash, or other flashing tool.
69 When bits 19:18 are 3, then bits 17:15 indicate which UART to use;
70 0/1/2/3/4 are UART A/B/C/D/E.
71
72config TEGRA_DEBUG_UARTA
73 bool "UART-A"
74
75config TEGRA_DEBUG_UARTB
76 bool "UART-B"
77
78config TEGRA_DEBUG_UARTC
79 bool "UART-C"
80
81config TEGRA_DEBUG_UARTD
82 bool "UART-D"
83
84config TEGRA_DEBUG_UARTE
85 bool "UART-E"
86
87endchoice
88
89config TEGRA_EMC_SCALING_ENABLE 60config TEGRA_EMC_SCALING_ENABLE
90 bool "Enable scaling the memory frequency" 61 bool "Enable scaling the memory frequency"
91 62