All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
@ 2016-01-18  8:27 ` Marc Gonzalez
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2016-01-18  8:27 UTC (permalink / raw)
  To: arm-soc
  Cc: Sebastian Frias, Mans Rullgard, linux-serial, Linux ARM, Peter Hurley

From: Mans Rullgard <mans@mansr.com>

Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
but with a different register layout. While this UART has previously
only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
SMP87xx series from Sigma Designs also uses it.

This patch allows the debug console to work with this type of UART.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
---
Peter, this is the patch I've been using on Tango for earlyprintk support.
arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
---
 arch/arm/Kconfig.debug            |  9 +++++++++
 arch/arm/include/debug/palmchip.S | 11 +++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 arch/arm/include/debug/palmchip.S

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 259c0ca9c99a..708aa9150c00 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
 config DEBUG_LL_INCLUDE
 	string
 	default "debug/sa1100.S" if DEBUG_SA1100
+	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
 	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
 	default "debug/at91.S" if DEBUG_AT91_UART
 	default "debug/asm9260.S" if DEBUG_ASM9260_UART
@@ -1588,6 +1589,14 @@ config DEBUG_UART_8250_WORD
 		DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2 || \
 		DEBUG_BRCMSTB_UART
 
+config DEBUG_UART_8250_PALMCHIP
+	bool "8250 UART is Palmchip BK-310x"
+	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
+	help
+	  Palmchip provides a UART implementation compatible with 16550
+	  except for having a different register layout.  Say Y here if
+	  the debug UART is of this type.
+
 config DEBUG_UART_8250_FLOW_CONTROL
 	bool "Enable flow control for 8250 UART"
 	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
diff --git a/arch/arm/include/debug/palmchip.S b/arch/arm/include/debug/palmchip.S
new file mode 100644
index 000000000000..6824b2d1c38e
--- /dev/null
+++ b/arch/arm/include/debug/palmchip.S
@@ -0,0 +1,11 @@
+#include <linux/serial_reg.h>
+
+#undef UART_TX
+#undef UART_LSR
+#undef UART_MSR
+
+#define UART_TX 1
+#define UART_LSR 7
+#define UART_MSR 8
+
+#include <debug/8250.S>

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
@ 2016-01-18  8:27 ` Marc Gonzalez
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2016-01-18  8:27 UTC (permalink / raw)
  To: linux-arm-kernel

From: Mans Rullgard <mans@mansr.com>

Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
but with a different register layout. While this UART has previously
only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
SMP87xx series from Sigma Designs also uses it.

This patch allows the debug console to work with this type of UART.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
---
Peter, this is the patch I've been using on Tango for earlyprintk support.
arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
---
 arch/arm/Kconfig.debug            |  9 +++++++++
 arch/arm/include/debug/palmchip.S | 11 +++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 arch/arm/include/debug/palmchip.S

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 259c0ca9c99a..708aa9150c00 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
 config DEBUG_LL_INCLUDE
 	string
 	default "debug/sa1100.S" if DEBUG_SA1100
+	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
 	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
 	default "debug/at91.S" if DEBUG_AT91_UART
 	default "debug/asm9260.S" if DEBUG_ASM9260_UART
@@ -1588,6 +1589,14 @@ config DEBUG_UART_8250_WORD
 		DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2 || \
 		DEBUG_BRCMSTB_UART
 
+config DEBUG_UART_8250_PALMCHIP
+	bool "8250 UART is Palmchip BK-310x"
+	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
+	help
+	  Palmchip provides a UART implementation compatible with 16550
+	  except for having a different register layout.  Say Y here if
+	  the debug UART is of this type.
+
 config DEBUG_UART_8250_FLOW_CONTROL
 	bool "Enable flow control for 8250 UART"
 	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
diff --git a/arch/arm/include/debug/palmchip.S b/arch/arm/include/debug/palmchip.S
new file mode 100644
index 000000000000..6824b2d1c38e
--- /dev/null
+++ b/arch/arm/include/debug/palmchip.S
@@ -0,0 +1,11 @@
+#include <linux/serial_reg.h>
+
+#undef UART_TX
+#undef UART_LSR
+#undef UART_MSR
+
+#define UART_TX 1
+#define UART_LSR 7
+#define UART_MSR 8
+
+#include <debug/8250.S>

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
  2016-01-18  8:27 ` Marc Gonzalez
@ 2016-01-27  0:40   ` Kevin Hilman
  -1 siblings, 0 replies; 12+ messages in thread
From: Kevin Hilman @ 2016-01-27  0:40 UTC (permalink / raw)
  To: Marc Gonzalez
  Cc: Mans Rullgard, Peter Hurley, arm-soc, linux-serial,
	Sebastian Frias, Linux ARM

Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:

> From: Mans Rullgard <mans@mansr.com>
>
> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
> but with a different register layout.

... because UART register layout is where we really need innovation. ;)

> While this UART has previously
> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
> SMP87xx series from Sigma Designs also uses it.
>
> This patch allows the debug console to work with this type of UART.
>
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>

It appears this was previously acked by Arnd also?  https://lkml.org/lkml/2015/11/9/116

> ---
> Peter, this is the patch I've been using on Tango for earlyprintk support.
> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
> ---
>  arch/arm/Kconfig.debug            |  9 +++++++++
>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>  2 files changed, 20 insertions(+)
>  create mode 100644 arch/arm/include/debug/palmchip.S
>
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 259c0ca9c99a..708aa9150c00 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>  config DEBUG_LL_INCLUDE
>  	string
>  	default "debug/sa1100.S" if DEBUG_SA1100
> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP

minor nit: We're trying (not always with great success) to keep various
parts of this file sorted alphanumerically.  Can you please insert the
new entries accordingly?

Otherwise looks good to me,

Acked-by: Kevin Hilman <khilman@baylibre.com>

Kevin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
@ 2016-01-27  0:40   ` Kevin Hilman
  0 siblings, 0 replies; 12+ messages in thread
From: Kevin Hilman @ 2016-01-27  0:40 UTC (permalink / raw)
  To: linux-arm-kernel

Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:

> From: Mans Rullgard <mans@mansr.com>
>
> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
> but with a different register layout.

... because UART register layout is where we really need innovation. ;)

> While this UART has previously
> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
> SMP87xx series from Sigma Designs also uses it.
>
> This patch allows the debug console to work with this type of UART.
>
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>

It appears this was previously acked by Arnd also?  https://lkml.org/lkml/2015/11/9/116

> ---
> Peter, this is the patch I've been using on Tango for earlyprintk support.
> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
> ---
>  arch/arm/Kconfig.debug            |  9 +++++++++
>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>  2 files changed, 20 insertions(+)
>  create mode 100644 arch/arm/include/debug/palmchip.S
>
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 259c0ca9c99a..708aa9150c00 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>  config DEBUG_LL_INCLUDE
>  	string
>  	default "debug/sa1100.S" if DEBUG_SA1100
> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP

minor nit: We're trying (not always with great success) to keep various
parts of this file sorted alphanumerically.  Can you please insert the
new entries accordingly?

Otherwise looks good to me,

Acked-by: Kevin Hilman <khilman@baylibre.com>

Kevin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
  2016-01-27  0:40   ` Kevin Hilman
@ 2016-01-27  0:44     ` Måns Rullgård
  -1 siblings, 0 replies; 12+ messages in thread
From: Måns Rullgård @ 2016-01-27  0:44 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Peter Hurley, arm-soc, linux-serial, Sebastian Frias, Linux ARM,
	Marc Gonzalez

Kevin Hilman <khilman@baylibre.com> writes:

> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
>
>> From: Mans Rullgard <mans@mansr.com>
>>
>> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
>> but with a different register layout.
>
> ... because UART register layout is where we really need innovation. ;)
>
>> While this UART has previously
>> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
>> SMP87xx series from Sigma Designs also uses it.
>>
>> This patch allows the debug console to work with this type of UART.
>>
>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>
> It appears this was previously acked by Arnd also?
> https://lkml.org/lkml/2015/11/9/116
>
>> ---
>> Peter, this is the patch I've been using on Tango for earlyprintk support.
>> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
>> ---
>>  arch/arm/Kconfig.debug            |  9 +++++++++
>>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>>  2 files changed, 20 insertions(+)
>>  create mode 100644 arch/arm/include/debug/palmchip.S
>>
>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>> index 259c0ca9c99a..708aa9150c00 100644
>> --- a/arch/arm/Kconfig.debug
>> +++ b/arch/arm/Kconfig.debug
>> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>>  config DEBUG_LL_INCLUDE
>>  	string
>>  	default "debug/sa1100.S" if DEBUG_SA1100
>> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>
> minor nit: We're trying (not always with great success) to keep various
> parts of this file sorted alphanumerically.  Can you please insert the
> new entries accordingly?

It has to precede the regular 8250 entry so as to take precedence over
that.

> Otherwise looks good to me,
>
> Acked-by: Kevin Hilman <khilman@baylibre.com>
>
> Kevin

-- 
Måns Rullgård

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
@ 2016-01-27  0:44     ` Måns Rullgård
  0 siblings, 0 replies; 12+ messages in thread
From: Måns Rullgård @ 2016-01-27  0:44 UTC (permalink / raw)
  To: linux-arm-kernel

Kevin Hilman <khilman@baylibre.com> writes:

> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
>
>> From: Mans Rullgard <mans@mansr.com>
>>
>> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
>> but with a different register layout.
>
> ... because UART register layout is where we really need innovation. ;)
>
>> While this UART has previously
>> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
>> SMP87xx series from Sigma Designs also uses it.
>>
>> This patch allows the debug console to work with this type of UART.
>>
>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>
> It appears this was previously acked by Arnd also?
> https://lkml.org/lkml/2015/11/9/116
>
>> ---
>> Peter, this is the patch I've been using on Tango for earlyprintk support.
>> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
>> ---
>>  arch/arm/Kconfig.debug            |  9 +++++++++
>>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>>  2 files changed, 20 insertions(+)
>>  create mode 100644 arch/arm/include/debug/palmchip.S
>>
>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>> index 259c0ca9c99a..708aa9150c00 100644
>> --- a/arch/arm/Kconfig.debug
>> +++ b/arch/arm/Kconfig.debug
>> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>>  config DEBUG_LL_INCLUDE
>>  	string
>>  	default "debug/sa1100.S" if DEBUG_SA1100
>> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>
> minor nit: We're trying (not always with great success) to keep various
> parts of this file sorted alphanumerically.  Can you please insert the
> new entries accordingly?

It has to precede the regular 8250 entry so as to take precedence over
that.

> Otherwise looks good to me,
>
> Acked-by: Kevin Hilman <khilman@baylibre.com>
>
> Kevin

-- 
M?ns Rullg?rd

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
  2016-01-27  0:44     ` Måns Rullgård
@ 2016-01-29 16:44       ` Marc Gonzalez
  -1 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2016-01-29 16:44 UTC (permalink / raw)
  To: Mans Rullgard, Kevin Hilman
  Cc: Sebastian Frias, arm-soc, linux-serial, Linux ARM, Peter Hurley

On 27/01/2016 01:44, Måns Rullgård wrote:

> Kevin Hilman <khilman@baylibre.com> writes:
> 
>> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
>>
>>> From: Mans Rullgard <mans@mansr.com>
>>>
>>> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
>>> but with a different register layout.
>>
>> ... because UART register layout is where we really need innovation. ;)
>>
>>> While this UART has previously
>>> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
>>> SMP87xx series from Sigma Designs also uses it.
>>>
>>> This patch allows the debug console to work with this type of UART.
>>>
>>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>>
>> It appears this was previously acked by Arnd also?
>> https://lkml.org/lkml/2015/11/9/116
>>
>>> ---
>>> Peter, this is the patch I've been using on Tango for earlyprintk support.
>>> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
>>> ---
>>>  arch/arm/Kconfig.debug            |  9 +++++++++
>>>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>>>  2 files changed, 20 insertions(+)
>>>  create mode 100644 arch/arm/include/debug/palmchip.S
>>>
>>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>>> index 259c0ca9c99a..708aa9150c00 100644
>>> --- a/arch/arm/Kconfig.debug
>>> +++ b/arch/arm/Kconfig.debug
>>> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>>>  config DEBUG_LL_INCLUDE
>>>  	string
>>>  	default "debug/sa1100.S" if DEBUG_SA1100
>>> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>>
>> minor nit: We're trying (not always with great success) to keep various
>> parts of this file sorted alphanumerically.  Can you please insert the
>> new entries accordingly?
> 
> It has to precede the regular 8250 entry so as to take precedence over
> that.

<confused> Are you all talking about these 2 lines:

	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250

default "debug/palmchip.S" is supposed to come before default "debug/8250.S" ?

Because, in my config, there is no DEBUG_LL_UART_8250 to be seen, and
# CONFIG_DEBUG_UART_8250 is not set

So I don't see how the order might cause a problem in that case?

Regards.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
@ 2016-01-29 16:44       ` Marc Gonzalez
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2016-01-29 16:44 UTC (permalink / raw)
  To: linux-arm-kernel

On 27/01/2016 01:44, M?ns Rullg?rd wrote:

> Kevin Hilman <khilman@baylibre.com> writes:
> 
>> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
>>
>>> From: Mans Rullgard <mans@mansr.com>
>>>
>>> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
>>> but with a different register layout.
>>
>> ... because UART register layout is where we really need innovation. ;)
>>
>>> While this UART has previously
>>> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
>>> SMP87xx series from Sigma Designs also uses it.
>>>
>>> This patch allows the debug console to work with this type of UART.
>>>
>>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>>
>> It appears this was previously acked by Arnd also?
>> https://lkml.org/lkml/2015/11/9/116
>>
>>> ---
>>> Peter, this is the patch I've been using on Tango for earlyprintk support.
>>> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
>>> ---
>>>  arch/arm/Kconfig.debug            |  9 +++++++++
>>>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>>>  2 files changed, 20 insertions(+)
>>>  create mode 100644 arch/arm/include/debug/palmchip.S
>>>
>>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>>> index 259c0ca9c99a..708aa9150c00 100644
>>> --- a/arch/arm/Kconfig.debug
>>> +++ b/arch/arm/Kconfig.debug
>>> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>>>  config DEBUG_LL_INCLUDE
>>>  	string
>>>  	default "debug/sa1100.S" if DEBUG_SA1100
>>> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>>
>> minor nit: We're trying (not always with great success) to keep various
>> parts of this file sorted alphanumerically.  Can you please insert the
>> new entries accordingly?
> 
> It has to precede the regular 8250 entry so as to take precedence over
> that.

<confused> Are you all talking about these 2 lines:

	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250

default "debug/palmchip.S" is supposed to come before default "debug/8250.S" ?

Because, in my config, there is no DEBUG_LL_UART_8250 to be seen, and
# CONFIG_DEBUG_UART_8250 is not set

So I don't see how the order might cause a problem in that case?

Regards.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
  2016-01-29 16:44       ` Marc Gonzalez
@ 2016-01-29 16:50         ` Måns Rullgård
  -1 siblings, 0 replies; 12+ messages in thread
From: Måns Rullgård @ 2016-01-29 16:50 UTC (permalink / raw)
  To: Marc Gonzalez
  Cc: Peter Hurley, Kevin Hilman, arm-soc, linux-serial,
	Sebastian Frias, Linux ARM

Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:

> On 27/01/2016 01:44, Måns Rullgård wrote:
>
>> Kevin Hilman <khilman@baylibre.com> writes:
>> 
>>> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
>>>
>>>> From: Mans Rullgard <mans@mansr.com>
>>>>
>>>> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
>>>> but with a different register layout.
>>>
>>> ... because UART register layout is where we really need innovation. ;)
>>>
>>>> While this UART has previously
>>>> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
>>>> SMP87xx series from Sigma Designs also uses it.
>>>>
>>>> This patch allows the debug console to work with this type of UART.
>>>>
>>>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>>>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>>>
>>> It appears this was previously acked by Arnd also?
>>> https://lkml.org/lkml/2015/11/9/116
>>>
>>>> ---
>>>> Peter, this is the patch I've been using on Tango for earlyprintk support.
>>>> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
>>>> ---
>>>>  arch/arm/Kconfig.debug            |  9 +++++++++
>>>>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>>>>  2 files changed, 20 insertions(+)
>>>>  create mode 100644 arch/arm/include/debug/palmchip.S
>>>>
>>>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>>>> index 259c0ca9c99a..708aa9150c00 100644
>>>> --- a/arch/arm/Kconfig.debug
>>>> +++ b/arch/arm/Kconfig.debug
>>>> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>>>>  config DEBUG_LL_INCLUDE
>>>>  	string
>>>>  	default "debug/sa1100.S" if DEBUG_SA1100
>>>> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>>>
>>> minor nit: We're trying (not always with great success) to keep various
>>> parts of this file sorted alphanumerically.  Can you please insert the
>>> new entries accordingly?
>> 
>> It has to precede the regular 8250 entry so as to take precedence over
>> that.
>
> <confused> Are you all talking about these 2 lines:
>
> 	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
> 	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
>
> default "debug/palmchip.S" is supposed to come before default "debug/8250.S" ?
>
> Because, in my config, there is no DEBUG_LL_UART_8250 to be seen, and
> # CONFIG_DEBUG_UART_8250 is not set

CONFIG_DEBUG_LL_UART_8250=y here.  In fact DEBUG_UART_8250_PALMCHIP
depends on "DEBUG_LL_UART_8250 || DEBUG_UART_8250" so one of those
*must* be set for any of this to matter.

-- 
Måns Rullgård

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
@ 2016-01-29 16:50         ` Måns Rullgård
  0 siblings, 0 replies; 12+ messages in thread
From: Måns Rullgård @ 2016-01-29 16:50 UTC (permalink / raw)
  To: linux-arm-kernel

Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:

> On 27/01/2016 01:44, M?ns Rullg?rd wrote:
>
>> Kevin Hilman <khilman@baylibre.com> writes:
>> 
>>> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
>>>
>>>> From: Mans Rullgard <mans@mansr.com>
>>>>
>>>> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
>>>> but with a different register layout.
>>>
>>> ... because UART register layout is where we really need innovation. ;)
>>>
>>>> While this UART has previously
>>>> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
>>>> SMP87xx series from Sigma Designs also uses it.
>>>>
>>>> This patch allows the debug console to work with this type of UART.
>>>>
>>>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>>>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>>>
>>> It appears this was previously acked by Arnd also?
>>> https://lkml.org/lkml/2015/11/9/116
>>>
>>>> ---
>>>> Peter, this is the patch I've been using on Tango for earlyprintk support.
>>>> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
>>>> ---
>>>>  arch/arm/Kconfig.debug            |  9 +++++++++
>>>>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>>>>  2 files changed, 20 insertions(+)
>>>>  create mode 100644 arch/arm/include/debug/palmchip.S
>>>>
>>>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>>>> index 259c0ca9c99a..708aa9150c00 100644
>>>> --- a/arch/arm/Kconfig.debug
>>>> +++ b/arch/arm/Kconfig.debug
>>>> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>>>>  config DEBUG_LL_INCLUDE
>>>>  	string
>>>>  	default "debug/sa1100.S" if DEBUG_SA1100
>>>> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>>>
>>> minor nit: We're trying (not always with great success) to keep various
>>> parts of this file sorted alphanumerically.  Can you please insert the
>>> new entries accordingly?
>> 
>> It has to precede the regular 8250 entry so as to take precedence over
>> that.
>
> <confused> Are you all talking about these 2 lines:
>
> 	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
> 	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
>
> default "debug/palmchip.S" is supposed to come before default "debug/8250.S" ?
>
> Because, in my config, there is no DEBUG_LL_UART_8250 to be seen, and
> # CONFIG_DEBUG_UART_8250 is not set

CONFIG_DEBUG_LL_UART_8250=y here.  In fact DEBUG_UART_8250_PALMCHIP
depends on "DEBUG_LL_UART_8250 || DEBUG_UART_8250" so one of those
*must* be set for any of this to matter.

-- 
M?ns Rullg?rd

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
  2016-01-29 16:50         ` Måns Rullgård
@ 2016-01-29 16:58           ` Marc Gonzalez
  -1 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2016-01-29 16:58 UTC (permalink / raw)
  To: Mans Rullgard
  Cc: Peter Hurley, Kevin Hilman, arm-soc, linux-serial,
	Sebastian Frias, Linux ARM

On 29/01/2016 17:50, Måns Rullgård wrote:

> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
> 
>> On 27/01/2016 01:44, Måns Rullgård wrote:
>>
>>> Kevin Hilman <khilman@baylibre.com> writes:
>>>
>>>> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
>>>>
>>>>> From: Mans Rullgard <mans@mansr.com>
>>>>>
>>>>> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
>>>>> but with a different register layout.
>>>>
>>>> ... because UART register layout is where we really need innovation. ;)
>>>>
>>>>> While this UART has previously
>>>>> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
>>>>> SMP87xx series from Sigma Designs also uses it.
>>>>>
>>>>> This patch allows the debug console to work with this type of UART.
>>>>>
>>>>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>>>>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>>>>
>>>> It appears this was previously acked by Arnd also?
>>>> https://lkml.org/lkml/2015/11/9/116
>>>>
>>>>> ---
>>>>> Peter, this is the patch I've been using on Tango for earlyprintk support.
>>>>> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
>>>>> ---
>>>>>  arch/arm/Kconfig.debug            |  9 +++++++++
>>>>>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>>>>>  2 files changed, 20 insertions(+)
>>>>>  create mode 100644 arch/arm/include/debug/palmchip.S
>>>>>
>>>>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>>>>> index 259c0ca9c99a..708aa9150c00 100644
>>>>> --- a/arch/arm/Kconfig.debug
>>>>> +++ b/arch/arm/Kconfig.debug
>>>>> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>>>>>  config DEBUG_LL_INCLUDE
>>>>>  	string
>>>>>  	default "debug/sa1100.S" if DEBUG_SA1100
>>>>> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>>>>
>>>> minor nit: We're trying (not always with great success) to keep various
>>>> parts of this file sorted alphanumerically.  Can you please insert the
>>>> new entries accordingly?
>>>
>>> It has to precede the regular 8250 entry so as to take precedence over
>>> that.
>>
>> <confused> Are you all talking about these 2 lines:
>>
>> 	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>> 	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
>>
>> default "debug/palmchip.S" is supposed to come before default "debug/8250.S" ?
>>
>> Because, in my config, there is no DEBUG_LL_UART_8250 to be seen, and
>> # CONFIG_DEBUG_UART_8250 is not set
> 
> CONFIG_DEBUG_LL_UART_8250=y here.  In fact DEBUG_UART_8250_PALMCHIP
> depends on "DEBUG_LL_UART_8250 || DEBUG_UART_8250" so one of those
> *must* be set for any of this to matter.

Doh! I was looking at a config where earlyprintk isn't enabled... o_O

config DEBUG_UART_8250_PALMCHIP
	bool "8250 UART is Palmchip BK-310x"
	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250

OK, I understand now. Thanks.

Regards.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART
@ 2016-01-29 16:58           ` Marc Gonzalez
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2016-01-29 16:58 UTC (permalink / raw)
  To: linux-arm-kernel

On 29/01/2016 17:50, M?ns Rullg?rd wrote:

> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
> 
>> On 27/01/2016 01:44, M?ns Rullg?rd wrote:
>>
>>> Kevin Hilman <khilman@baylibre.com> writes:
>>>
>>>> Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:
>>>>
>>>>> From: Mans Rullgard <mans@mansr.com>
>>>>>
>>>>> Some SoCs use a Palmchip BK-310x UART which is mostly 16550 compatible
>>>>> but with a different register layout.
>>>>
>>>> ... because UART register layout is where we really need innovation. ;)
>>>>
>>>>> While this UART has previously
>>>>> only been supported in MIPS based chips (Alchemy, Ralink), the ARM based
>>>>> SMP87xx series from Sigma Designs also uses it.
>>>>>
>>>>> This patch allows the debug console to work with this type of UART.
>>>>>
>>>>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>>>>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>>>>
>>>> It appears this was previously acked by Arnd also?
>>>> https://lkml.org/lkml/2015/11/9/116
>>>>
>>>>> ---
>>>>> Peter, this is the patch I've been using on Tango for earlyprintk support.
>>>>> arm-soc, this is just the Nov 8 patch with my Signed-off-by tag.
>>>>> ---
>>>>>  arch/arm/Kconfig.debug            |  9 +++++++++
>>>>>  arch/arm/include/debug/palmchip.S | 11 +++++++++++
>>>>>  2 files changed, 20 insertions(+)
>>>>>  create mode 100644 arch/arm/include/debug/palmchip.S
>>>>>
>>>>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>>>>> index 259c0ca9c99a..708aa9150c00 100644
>>>>> --- a/arch/arm/Kconfig.debug
>>>>> +++ b/arch/arm/Kconfig.debug
>>>>> @@ -1304,6 +1304,7 @@ config DEBUG_SIRFSOC_UART
>>>>>  config DEBUG_LL_INCLUDE
>>>>>  	string
>>>>>  	default "debug/sa1100.S" if DEBUG_SA1100
>>>>> +	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>>>>
>>>> minor nit: We're trying (not always with great success) to keep various
>>>> parts of this file sorted alphanumerically.  Can you please insert the
>>>> new entries accordingly?
>>>
>>> It has to precede the regular 8250 entry so as to take precedence over
>>> that.
>>
>> <confused> Are you all talking about these 2 lines:
>>
>> 	default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
>> 	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
>>
>> default "debug/palmchip.S" is supposed to come before default "debug/8250.S" ?
>>
>> Because, in my config, there is no DEBUG_LL_UART_8250 to be seen, and
>> # CONFIG_DEBUG_UART_8250 is not set
> 
> CONFIG_DEBUG_LL_UART_8250=y here.  In fact DEBUG_UART_8250_PALMCHIP
> depends on "DEBUG_LL_UART_8250 || DEBUG_UART_8250" so one of those
> *must* be set for any of this to matter.

Doh! I was looking at a config where earlyprintk isn't enabled... o_O

config DEBUG_UART_8250_PALMCHIP
	bool "8250 UART is Palmchip BK-310x"
	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250

OK, I understand now. Thanks.

Regards.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-01-29 16:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-18  8:27 [RESEND PATCH v2] ARM: debug: add support for Palmchip BK-310x UART Marc Gonzalez
2016-01-18  8:27 ` Marc Gonzalez
2016-01-27  0:40 ` Kevin Hilman
2016-01-27  0:40   ` Kevin Hilman
2016-01-27  0:44   ` Måns Rullgård
2016-01-27  0:44     ` Måns Rullgård
2016-01-29 16:44     ` Marc Gonzalez
2016-01-29 16:44       ` Marc Gonzalez
2016-01-29 16:50       ` Måns Rullgård
2016-01-29 16:50         ` Måns Rullgård
2016-01-29 16:58         ` Marc Gonzalez
2016-01-29 16:58           ` Marc Gonzalez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.