]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-tegra/board.c
board: amlogic: Rename folder for Amlogic boards
[u-boot] / arch / arm / mach-tegra / board.c
index b00e4b5c1e2531d45ccdde0d69cfaf8f6ce3f21c..3d1d26d13d1399b38b1fadac66721a8bb4c08e2e 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include <common.h>
+#include <dm.h>
+#include <ns16550.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
@@ -212,6 +214,18 @@ void board_init_uart_f(void)
        setup_uarts(uart_ids);
 }
 
+#if !CONFIG_IS_ENABLED(OF_CONTROL)
+static struct ns16550_platdata ns16550_com1_pdata = {
+       .base = CONFIG_SYS_NS16550_COM1,
+       .reg_shift = 2,
+       .clock = CONFIG_SYS_NS16550_CLK,
+};
+
+U_BOOT_DEVICE(ns16550_com1) = {
+       "ns16550_serial", &ns16550_com1_pdata
+};
+#endif
+
 #if !defined(CONFIG_SYS_DCACHE_OFF) && !defined(CONFIG_ARM64)
 void enable_caches(void)
 {