diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2018-08-25 22:40:08 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-10 21:19:31 -0400 |
commit | 8a86152db049f3df3f04e1112d7fe18f718c7d04 (patch) | |
tree | 2e2b255c29432a1d81cbda2639adb4150f43e47a /board/pandora | |
parent | 3f20321ad8bdd7e84c3cfd2592b16ff65d05d04c (diff) | |
download | u-boot-8a86152db049f3df3f04e1112d7fe18f718c7d04.tar.gz |
omap3: pandora: Enable DM_SERIAL
This patch enables DM_SERIAL for the pandora board. Verified that
the default kernel can still be booted with this.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Diffstat (limited to 'board/pandora')
-rw-r--r-- | board/pandora/pandora.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/pandora/pandora.c b/board/pandora/pandora.c index 4f91dc3bee..a9aae7951d 100644 --- a/board/pandora/pandora.c +++ b/board/pandora/pandora.c @@ -13,6 +13,8 @@ * Texas Instruments, <www.ti.com> */ #include <common.h> +#include <dm.h> +#include <ns16550.h> #include <twl4030.h> #include <asm/io.h> #include <asm/gpio.h> @@ -33,6 +35,18 @@ DECLARE_GLOBAL_DATA_PTR; #define GPIO_IO_PWRDNZ (1 << 6) #define PBIASLITEVMODE1 (1 << 8) +static const struct ns16550_platdata pandora_serial = { + .base = OMAP34XX_UART3, + .reg_shift = 2, + .clock = V_NS16550_CLK, + .fcr = UART_FCR_DEFVAL, +}; + +U_BOOT_DEVICE(pandora_uart) = { + "ns16550_serial", + &pandora_serial +}; + /* * Routine: board_init * Description: Early hardware init. |