]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/overo/overo.c
dm: omap3: Move to driver model for GPIO and serial
[karo-tx-uboot.git] / board / overo / overo.c
index 13220c56dd0634dc8a1cee9538fda0dafae2302c..7506820e349f4174679a9d58ee293831c4cc6da2 100644 (file)
@@ -13,6 +13,8 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
+#include <dm.h>
+#include <ns16550.h>
 #include <netdev.h>
 #include <twl4030.h>
 #include <linux/mtd/nand.h>
@@ -73,6 +75,17 @@ static const u32 gpmc_lan_config[] = {
     /*CONFIG7- computed as params */
 };
 
+static const struct ns16550_platdata overo_serial = {
+       OMAP34XX_UART3,
+       2,
+       V_NS16550_CLK
+};
+
+U_BOOT_DEVICE(overo_uart) = {
+       "serial_omap",
+       &overo_serial
+};
+
 /*
  * Routine: board_init
  * Description: Early hardware init.