aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2013-05-29 16:46:33 +0530
committerTushar Behera <tushar.behera@linaro.org>2013-06-03 11:31:19 +0530
commitd2e7a075b550b41f8a603f8de6fb2f1f465f67f8 (patch)
tree1384223c8e93263ffee7637f33b9aa2a2eb9c45d
parent774bfc4885c2e6bdb71ddda257b5538e80f21af7 (diff)
ARM: EXYNOS: uncompress - print debug messages if DEBUG_LL is definedupstream/arndale-usb
Low-level debug messages make an assumption that the specified UART port has been preconfigured by the bootloader. When this UART port number is not correctly specified (e.g. different boards in the same platform using different UART ports), the booting gets stalled while printing the message "Uncompressing Linux... done, booting the kernel" This print subroutine should be called only when DEBUG_LL is defined. Doing so and disabling DEBUG_LL in default config file, we would be able to boot multiple boards with different default UART ports. With this current approach, we miss the print "Uncompressing Linux... done, booting the kernel." when DEBUG_LL is not defined. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--arch/arm/plat-samsung/include/plat/uncompress.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/plat-samsung/include/plat/uncompress.h b/arch/arm/plat-samsung/include/plat/uncompress.h
index 438b24846e7..02b66d723d1 100644
--- a/arch/arm/plat-samsung/include/plat/uncompress.h
+++ b/arch/arm/plat-samsung/include/plat/uncompress.h
@@ -66,6 +66,9 @@ uart_rd(unsigned int reg)
static void putc(int ch)
{
+ if (!config_enabled(CONFIG_DEBUG_LL))
+ return;
+
if (uart_rd(S3C2410_UFCON) & S3C2410_UFCON_FIFOMODE) {
int level;
@@ -118,7 +121,12 @@ static void arch_decomp_error(const char *x)
#ifdef CONFIG_S3C_BOOT_UART_FORCE_FIFO
static inline void arch_enable_uart_fifo(void)
{
- u32 fifocon = uart_rd(S3C2410_UFCON);
+ u32 fifocon;
+
+ if (!config_enabled(CONFIG_DEBUG_LL))
+ return;
+
+ fifocon = uart_rd(S3C2410_UFCON);
if (!(fifocon & S3C2410_UFCON_FIFOMODE)) {
fifocon |= S3C2410_UFCON_RESETBOTH;