configs: am335x_boneblack: add example debug uart configuration

Message ID 20180411192319.9992-1-sjoerd.simons@collabora.co.uk
State New
Headers show
Series
  • configs: am335x_boneblack: add example debug uart configuration
Related show

Commit Message

Sjoerd Simons April 11, 2018, 7:23 p.m.
To make it simpler to enable the debug uart on boneblack add debug
uart configuration as an example in the defconfig but with
CONFIG_DEBUG_UART disabled. Which allows a user to simple enable it when
needing easily without figuring out the right values for memory
base/clock and shift.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
---

 configs/am335x_boneblack_defconfig | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Tom Rini April 12, 2018, 1:55 p.m. | #1
On Wed, Apr 11, 2018 at 09:23:19PM +0200, Sjoerd Simons wrote:

> To make it simpler to enable the debug uart on boneblack add debug

> uart configuration as an example in the defconfig but with

> CONFIG_DEBUG_UART disabled. Which allows a user to simple enable it when

> needing easily without figuring out the right values for memory

> base/clock and shift.

> 

> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>

> ---

> 

>  configs/am335x_boneblack_defconfig | 5 +++++

>  1 file changed, 5 insertions(+)

> 

> diff --git a/configs/am335x_boneblack_defconfig b/configs/am335x_boneblack_defconfig

> index 5688e44c0b..67c16e46d2 100644

> --- a/configs/am335x_boneblack_defconfig

> +++ b/configs/am335x_boneblack_defconfig

> @@ -48,3 +48,8 @@ CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"

>  CONFIG_LZO=y

>  CONFIG_OF_LIBFDT=y

>  CONFIG_OF_LIBFDT_OVERLAY=y

> +# CONFIG_DEBUG_UART is not set

> +CONFIG_DEBUG_UART_NS16550=y

> +CONFIG_DEBUG_UART_BASE=0x44e09000

> +CONFIG_DEBUG_UART_CLOCK=48000000

> +CONFIG_DEBUG_UART_SHIFT=2


This will get overwritten by the next defconfig re-sync.

-- 
Tom

Patch

diff --git a/configs/am335x_boneblack_defconfig b/configs/am335x_boneblack_defconfig
index 5688e44c0b..67c16e46d2 100644
--- a/configs/am335x_boneblack_defconfig
+++ b/configs/am335x_boneblack_defconfig
@@ -48,3 +48,8 @@  CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
 CONFIG_LZO=y
 CONFIG_OF_LIBFDT=y
 CONFIG_OF_LIBFDT_OVERLAY=y
+# CONFIG_DEBUG_UART is not set
+CONFIG_DEBUG_UART_NS16550=y
+CONFIG_DEBUG_UART_BASE=0x44e09000
+CONFIG_DEBUG_UART_CLOCK=48000000
+CONFIG_DEBUG_UART_SHIFT=2