msm: Deprecate use of MSM_DEBUG_UART1,2,3 for low level debug
This patch is based off "msm: Consolidate and move DEBUG_LL
to generic ARM Kconfig" where use of MSM_DEBUG_UART1,2,3 is
deprecated and instead have one Kconfig per target/board.
The choice menu for selecting the DEBUG UART still remains
in mach-msm folder and has not been moved under DEBUG_LL
unlike the original patch.
Remove machine_is_*() checks from uncompress.h for various
targets and instead use CONFIG_SERIAL_MSM_HSL to identify
the UART core.
Change-Id: I1de37dfe093213185fb7c759cd731c950a7d0acc
Signed-off-by: Sathish Ambley <sambley@codeaurora.org>
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index 304a4dd..2d681fa 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -712,28 +712,52 @@
bool "6.2.20 + New ADSP"
endchoice
-config MSM_DEBUG_UART
- int
- default 1 if MSM_DEBUG_UART1
- default 2 if MSM_DEBUG_UART2
- default 3 if MSM_DEBUG_UART3
+config DEBUG_MSM8930_UART
+ bool "Kernel low-level debugging messages via MSM 8930 UART"
+ depends on ARCH_MSM8930 && DEBUG_LL
+ help
+ Say Y here if you want the debug print routines to direct
+ their output to the serial port on MSM 8930 devices.
choice
prompt "Debug UART"
+ depends on DEBUG_LL
- default MSM_DEBUG_UART_NONE
+ config DEBUG_MSM_UART1
+ bool "Kernel low-level debugging messages via MSM UART1"
+ depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
+ help
+ Say Y here if you want the debug print routines to direct
+ their output to the first serial port on MSM devices.
- config MSM_DEBUG_UART_NONE
- bool "None"
+ config DEBUG_MSM_UART2
+ bool "Kernel low-level debugging messages via MSM UART2"
+ depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
+ help
+ Say Y here if you want the debug print routines to direct
+ their output to the second serial port on MSM devices.
- config MSM_DEBUG_UART1
- bool "UART1"
+ config DEBUG_MSM_UART3
+ bool "Kernel low-level debugging messages via MSM UART3"
+ depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
+ help
+ Say Y here if you want the debug print routines to direct
+ their output to the third serial port on MSM devices.
- config MSM_DEBUG_UART2
- bool "UART2"
+ config DEBUG_MSM8660_UART
+ bool "Kernel low-level debugging messages via MSM 8660 UART"
+ depends on ARCH_MSM8X60
+ help
+ Say Y here if you want the debug print routines to direct
+ their output to the serial port on MSM 8660 devices.
- config MSM_DEBUG_UART3
- bool "UART3"
+ config DEBUG_MSM8960_UART
+ bool "Kernel low-level debugging messages via MSM 8960 UART"
+ depends on ARCH_MSM8960
+ select DEBUG_MSM8930_UART
+ help
+ Say Y here if you want the debug print routines to direct
+ their output to the serial port on MSM 8960 devices.
endchoice
choice