]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Add support for earlycon for DCC port
authorMichal Simek <michal.simek@xilinx.com>
Wed, 9 Sep 2015 11:16:14 +0000 (13:16 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 10 Sep 2015 11:27:09 +0000 (13:27 +0200)
Setup early console based on serial console driver selection.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h

index f2fdc61cb17bb7c8fa102b4ceeb4313638fbbe8c..44e03f6a524ee955a462e0e0a5142de9bc61727b 100644 (file)
 #if defined(CONFIG_ZYNQ_DCC)
 # define CONFIG_ARM_DCC
 # define CONFIG_CPU_ARMV8
+# define CONFIG_BOOTARGS       "setenv bootargs console=hvc0 " \
+                               "earlycon=dcc; run nosmp;"
 #else
 # if defined(CONFIG_ZYNQ_SERIAL_UART0) || defined(CONFIG_ZYNQ_SERIAL_UART1)
 #  define CONFIG_ZYNQ_SERIAL
+#  define CONFIG_BOOTARGS      "setenv bootargs console=ttyPS0,${baudrate}" \
+                               "earlycon=cdns,mmio,0xff000000,${baudrate}n8"
 # endif
 #endif
 
        "sdroot=setenv bootargs $bootargs root=/dev/mmcblk0p2 rw rootwait\0" \
        DFU_ALT_INFO
 
-
-#define CONFIG_BOOTARGS                "setenv bootargs console=ttyPS0,${baudrate} " \
-                               "earlycon=cdns,mmio,0xff000000,${baudrate}n8"
 #define CONFIG_PREBOOT         "run bootargs; run sata_root; run setup"
 #define CONFIG_BOOTCOMMAND     "run $modeboot"
 #define CONFIG_BOOTDELAY       5