aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2011-11-26 10:25:03 -0500
committerCyril Chemparathy <cyril@ti.com>2012-09-21 10:44:02 -0400
commitf5e26552d252098413df965a289c9150d95727c8 (patch)
tree374ee981c4a184a0d5df4df581b48ad6a5ee4971
parente1ee7465f2c30ff2003f137f47a987c98d640775 (diff)
downloadlinux-keystone-f5e26552d252098413df965a289c9150d95727c8.tar.gz
tci6614: add low level debug support
- Adds LL debug support - Early printk support Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
-rw-r--r--arch/arm/Kconfig.debug7
-rw-r--r--arch/arm/mach-davinci/include/mach/debug-macro.S3
-rw-r--r--arch/arm/mach-davinci/include/mach/serial.h5
-rw-r--r--arch/arm/mach-davinci/include/mach/uncompress.h3
4 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index e968a52e488196..a9ea4174626978 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -132,6 +132,13 @@ choice
their output to UART1 serial port on DaVinci TNETV107X
devices.
+ config DEBUG_DAVINCI_TCI6614_UART0
+ bool "Kernel low-level debugging on TCI6614 using UART0"
+ depends on ARCH_DAVINCI_TCI6614
+ help
+ Say Y here if you want the debug print routines to direct
+ their output to UART0 serial port on TCI6614 devices.
+
config DEBUG_DC21285_PORT
bool "Kernel low-level debugging messages via footbridge serial port"
depends on FOOTBRIDGE
diff --git a/arch/arm/mach-davinci/include/mach/debug-macro.S b/arch/arm/mach-davinci/include/mach/debug-macro.S
index 34290d14754b41..096a38ae9a7c11 100644
--- a/arch/arm/mach-davinci/include/mach/debug-macro.S
+++ b/arch/arm/mach-davinci/include/mach/debug-macro.S
@@ -33,6 +33,9 @@
#elif defined(CONFIG_DEBUG_DAVINCI_TNETV107X_UART1)
#define UART_BASE TNETV107X_UART2_BASE
#define UART_VIRTBASE TNETV107X_UART2_VIRT
+#elif defined(CONFIG_DEBUG_DAVINCI_TCI6614_UART0)
+#define UART_BASE TCI6614_UART0_BASE
+#define UART_VIRTBASE TCI6614_UART0_VIRT
#else
#error "Select a specifc port for DEBUG_LL"
#endif
diff --git a/arch/arm/mach-davinci/include/mach/serial.h b/arch/arm/mach-davinci/include/mach/serial.h
index 46b3cd11c3c2ec..5c6f3214dd5f98 100644
--- a/arch/arm/mach-davinci/include/mach/serial.h
+++ b/arch/arm/mach-davinci/include/mach/serial.h
@@ -31,6 +31,11 @@
#define TNETV107X_UART1_VIRT IOMEM(0xfed88400)
#define TNETV107X_UART2_VIRT IOMEM(0xfee08300)
+#define TCI6614_UART0_BASE 0x02540000
+#define TCI6614_UART0_VIRT IOMEM(0xfed40000)
+#define TCI6614_UART1_BASE 0x02541000
+#define TCI6614_UART1_VIRT IOMEM(0xfed41000)
+
/* DaVinci UART register offsets */
#define UART_DAVINCI_PWREMU 0x0c
#define UART_DM646X_SCR 0x10
diff --git a/arch/arm/mach-davinci/include/mach/uncompress.h b/arch/arm/mach-davinci/include/mach/uncompress.h
index 18cfd4977155b4..ea41c92b25388a 100644
--- a/arch/arm/mach-davinci/include/mach/uncompress.h
+++ b/arch/arm/mach-davinci/include/mach/uncompress.h
@@ -65,6 +65,9 @@ static inline void set_uart_info(u32 phys)
#define DEBUG_LL_TNETV107X(machine, port) \
_DEBUG_LL_ENTRY(machine, TNETV107X_UART##port##_BASE)
+#define DEBUG_LL_TCI6614(machine, port) \
+ _DEBUG_LL_ENTRY(machine, TCI6614_UART##port##_BASE)
+
static inline void __arch_decomp_setup(unsigned long arch_id)
{
/*