diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-22 21:37:15 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-10-23 19:29:07 -0600 |
commit | b3f4ca1135edd66d14254089bbeb8077c6d0bb72 (patch) | |
tree | c4ddf862f38264189353f6f56069fe5294782ec5 /board/logicpd/zoom1/zoom1.c | |
parent | 1a44cd89faec48bc80543ed4cf2afc614863068b (diff) | |
download | u-boot-imx-b3f4ca1135edd66d14254089bbeb8077c6d0bb72.zip u-boot-imx-b3f4ca1135edd66d14254089bbeb8077c6d0bb72.tar.gz u-boot-imx-b3f4ca1135edd66d14254089bbeb8077c6d0bb72.tar.bz2 |
dm: omap3: Move to driver model for GPIO and serial
Adjust the configuration for the am33xx boards, including beagleboard,
to use driver model.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/logicpd/zoom1/zoom1.c')
-rw-r--r-- | board/logicpd/zoom1/zoom1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/logicpd/zoom1/zoom1.c b/board/logicpd/zoom1/zoom1.c index 461a852..9ef0026 100644 --- a/board/logicpd/zoom1/zoom1.c +++ b/board/logicpd/zoom1/zoom1.c @@ -15,6 +15,8 @@ * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> +#include <dm.h> +#include <ns16550.h> #include <netdev.h> #include <twl4030.h> #include <asm/io.h> @@ -41,6 +43,17 @@ static const u32 gpmc_lab_enet[] = { /*CONF7- computed as params */ }; +static const struct ns16550_platdata zoom1_serial = { + OMAP34XX_UART3, + 2, + V_NS16550_CLK +}; + +U_BOOT_DEVICE(zoom1_uart) = { + "serial_omap", + &zoom1_serial +}; + /* * Routine: board_init * Description: Early hardware init. |