serial: dcc: Move driver to DM
PATCH v2 1/2 serial: dcc: Move driver to DM
Enabling this driver requires some DT changes.
Adding DCC to root or main bus:
dcc: dcc {
compatible = "arm,dcc";
u-boot,dm-pre-reloc;
};Extend alias list to link DCC:
serial0 = &uart0; serial1 = &uart1; serial2 = &dcc;
Change stdout-path to point to dcc port.
stdout-path = "serial2:115200n8";
Also add support for debug uart to help with early debug.
---
Changes in v2:
- Extend Kconfig entry description
drivers/serial/Kconfig | 11 +++++++++ drivers/serial/arm_dcc.c | 63 +++++++++++++++++++++++++++++------------------- 2 files changed, 49 insertions(+), 25 deletions(-)
drivers/serial/Kconfig +11 -0
@@ -119,6 +119,17 @@ config DEBUG_UART_UARTLITE You will need to provide parameters to make this work. The driver will be available until the real driver-model serial is running. +config DEBUG_UART_ARM_DCC + bool "ARM DCC" + help + Select this to enable a debug UART using the ARM JTAG DCC port. + The DCC port can be used for very early debugging and doesn't require + any additional setting like address/baudrate/clock. On systems without + any serial interface this is the easiest way how to get console. + Every ARM core has own DCC port which is the part of debug interface. + This port is available at least on ARMv6, ARMv7, ARMv8 and XScale + architectures. + config DEBUG_UART_ZYNQ bool "Xilinx Zynq" help
drivers/serial/arm_dcc.c +38 -25
110 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v2 2/2 ARM: zynq: zynqmp: Enable DCC serial driver by default
Compile DCC serial driver by default.
---
Changes in v2: None
include/configs/xilinx_zynqmp.h | 9 +++------ include/configs/zynq-common.h | 8 ++------ 2 files changed, 5 insertions(+), 12 deletions(-)
include/configs/xilinx_zynqmp.h +3 -6
@@ -53,12 +53,9 @@#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 0x2000000)/* Serial setup */ -#if defined(CONFIG_ZYNQMP_DCC ) -# define CONFIG_ARM_DCC -# define CONFIG_CPU_ARMV8 -#else -# define CONFIG_ZYNQ_SERIAL -#endif +#define CONFIG_ARM_DCC +#define CONFIG_CPU_ARMV8 +#define CONFIG_ZYNQ_SERIAL #define CONFIG_CONS_INDEX 0#define CONFIG_BAUDRATE 115200
include/configs/zynq-common.h +2 -6
@@ -36,12 +36,8 @@#define CONFIG_SYS_BAUDRATE_TABLE \ {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400} -/* DCC driver */ -#if defined(CONFIG_ZYNQ_DCC ) -# define CONFIG_ARM_DCC -#else -# define CONFIG_ZYNQ_SERIAL -#endif +#define CONFIG_ARM_DCC +#define CONFIG_ZYNQ_SERIAL #define CONFIG_ZYNQ_GPIO
Signature · 1 line
1.9.1
PATCH v2 2/2 ARM: zynq: zynqmp: Enable DCC serial driver by default
Quoted 3 lines · Michal Simek
Compile DCC serial driver by default.
Signed-off-by Michal Simek <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160225/02c69b7c/attachment.sig>
PATCH v2 1/2 serial: dcc: Move driver to DM
In reply to Michal SimekQuoted 18 lines · Michal Simek
Enabling this driver requires some DT changes.
Adding DCC to root or main bus:dcc: dcc { compatible = "arm,dcc"; u-boot,dm-pre-reloc; };Extend alias list to link DCC:
serial0 = &uart0; serial1 = &uart1; serial2 = &dcc;Change stdout-path to point to dcc port.
stdout-path = "serial2:115200n8";Also add support for debug uart to help with early debug.
Signed-off-by Michal Simek <[email protected]>
Quoted 8 lines
---
Changes in v2:
- ExtendKconfigentry descriptiondrivers/serial/Kconfig | 11 +++++++++ drivers/serial/arm_dcc.c | 63 +++++++++++++++++++++++++++++------------------- 2 files changed, 49 insertions(+), 25 deletions(-)
Great Kconfig help, thanks.
PATCH v2 1/2 serial: dcc: Move driver to DM
In reply to Michal SimekQuoted 12 lines · Michal Simek
Enabling this driver requires some DT changes.
Adding DCC to root or main bus:dcc: dcc { compatible = "arm,dcc"; u-boot,dm-pre-reloc; };Extend alias list to link DCC:
serial0 = &uart0; serial1 = &uart1; serial2 = &dcc;
Quoted 7 lines
Change stdout-path to point to dcc port.
stdout-path = "serial2:115200n8";Also add support for debug uart to help with early debug.
Signed-off-by Michal Simek <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160225/ff095115/attachment.sig>