]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-tegra/board.c
arm: freescale: Rename initdram() to fsl_initdram()
[u-boot] / arch / arm / mach-tegra / board.c
index b00e4b5c1e2531d45ccdde0d69cfaf8f6ce3f21c..b3a041b539af80ae7b75e3f709931ab92ff1a213 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,19 @@ 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,
+       .fcr = UART_FCR_DEFVAL,
+};
+
+U_BOOT_DEVICE(ns16550_com1) = {
+       "ns16550_serial", &ns16550_com1_pdata
+};
+#endif
+
 #if !defined(CONFIG_SYS_DCACHE_OFF) && !defined(CONFIG_ARM64)
 void enable_caches(void)
 {