Message ID | 1400684225-21381-5-git-send-email-gdjakov@mm-sol.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
On Wednesday 21 May 2014 17:57:05 Georgi Djakov wrote: > > diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug > index eab8ecb..91d5184 100644 > --- a/arch/arm/Kconfig.debug > +++ b/arch/arm/Kconfig.debug > @@ -101,6 +101,15 @@ choice > bool "Kernel low-level debugging on 9263 and 9g45" > depends on HAVE_AT91_DBGU1 > > + config DEBUG_APQ8084_UART > + bool "Kernel low-level debugging messages via APQ8084 UART" > + depends on ARCH_QCOM > + select MSM_HAS_DEBUG_UART_HS > + select DEBUG_MSM_UART > + help > + Say Y here if you want the debug print routines to direct > + their output to the serial port on Qualcomm APQ8084 devices. > + > config DEBUG_BCM2835 > bool "Kernel low-level debugging on BCM2835 PL011 UART" > depends on ARCH_BCM2835 > diff --git a/arch/arm/include/debug/msm.S b/arch/arm/include/debug/msm.S > index 9d653d4..178636d 100644 > --- a/arch/arm/include/debug/msm.S > +++ b/arch/arm/include/debug/msm.S > @@ -36,6 +36,11 @@ > #define MSM_DEBUG_UART_PHYS MSM_UART3_PHYS > #endif > > +#ifdef CONFIG_DEBUG_APQ8084_UART > +#define MSM_DEBUG_UART_BASE 0xFA75E000 > +#define MSM_DEBUG_UART_PHYS 0xF995E000 > +#endif > + > #ifdef CONFIG_DEBUG_MSM8660_UART > #define MSM_DEBUG_UART_BASE 0xF0040000 > #define MSM_DEBUG_UART_PHYS 0x19C40000 > Maybe we should move debug/msm.S over to use CONFIG_DEBUG_UART_PHYS/CONFIG_DEBUG_UART_VIRT now? Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, On Wed, 2014-05-21 at 17:18 +0200, Arnd Bergmann wrote: > On Wednesday 21 May 2014 17:57:05 Georgi Djakov wrote: > > > > +#ifdef CONFIG_DEBUG_APQ8084_UART > > +#define MSM_DEBUG_UART_BASE 0xFA75E000 > > +#define MSM_DEBUG_UART_PHYS 0xF995E000 > > +#endif > > + > Maybe we should move debug/msm.S over to use > CONFIG_DEBUG_UART_PHYS/CONFIG_DEBUG_UART_VIRT now? > There is patch which do this [1]. It was reviewed by Stephen Boyd [2]. Regards, Ivan [1] https://lkml.org/lkml/2014/4/14/312 [2] https://lkml.org/lkml/2014/4/14/542 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On May 21, 2014, at 10:28 AM, Ivan T. Ivanov <iivanov@mm-sol.com> wrote: > Hi, > > On Wed, 2014-05-21 at 17:18 +0200, Arnd Bergmann wrote: >> On Wednesday 21 May 2014 17:57:05 Georgi Djakov wrote: > >>> >>> +#ifdef CONFIG_DEBUG_APQ8084_UART >>> +#define MSM_DEBUG_UART_BASE 0xFA75E000 >>> +#define MSM_DEBUG_UART_PHYS 0xF995E000 >>> +#endif >>> + > >> Maybe we should move debug/msm.S over to use >> CONFIG_DEBUG_UART_PHYS/CONFIG_DEBUG_UART_VIRT now? >> > > There is patch which do this [1]. It was reviewed > by Stephen Boyd [2]. > > Regards, > Ivan > > > [1] https://lkml.org/lkml/2014/4/14/312 > [2] https://lkml.org/lkml/2014/4/14/542 I’ll grab Ivan’s patch and send via my qcom tree to arm-soc. - k
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index eab8ecb..91d5184 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -101,6 +101,15 @@ choice bool "Kernel low-level debugging on 9263 and 9g45" depends on HAVE_AT91_DBGU1 + config DEBUG_APQ8084_UART + bool "Kernel low-level debugging messages via APQ8084 UART" + depends on ARCH_QCOM + select MSM_HAS_DEBUG_UART_HS + select DEBUG_MSM_UART + help + Say Y here if you want the debug print routines to direct + their output to the serial port on Qualcomm APQ8084 devices. + config DEBUG_BCM2835 bool "Kernel low-level debugging on BCM2835 PL011 UART" depends on ARCH_BCM2835 diff --git a/arch/arm/include/debug/msm.S b/arch/arm/include/debug/msm.S index 9d653d4..178636d 100644 --- a/arch/arm/include/debug/msm.S +++ b/arch/arm/include/debug/msm.S @@ -36,6 +36,11 @@ #define MSM_DEBUG_UART_PHYS MSM_UART3_PHYS #endif +#ifdef CONFIG_DEBUG_APQ8084_UART +#define MSM_DEBUG_UART_BASE 0xFA75E000 +#define MSM_DEBUG_UART_PHYS 0xF995E000 +#endif + #ifdef CONFIG_DEBUG_MSM8660_UART #define MSM_DEBUG_UART_BASE 0xF0040000 #define MSM_DEBUG_UART_PHYS 0x19C40000
Add debug UART support for Qualcomm APQ8084 SoC. This patch adds a Kconfig entry and the base address of the debug UART. Signed-off-by: Georgi Djakov <gdjakov@mm-sol.com> --- arch/arm/Kconfig.debug | 9 +++++++++ arch/arm/include/debug/msm.S | 5 +++++ 2 files changed, 14 insertions(+)