diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-11-14 21:40:28 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-11-23 13:53:20 +0100 |
commit | 136179bec19f4bc84227cba138214ea392a723ea (patch) | |
tree | 10db7097eb695409881e74371693134a3cf636c3 /board/toradex/colibri_pxa270 | |
parent | fc127d184aea293ec415dd66e3282dba0b66c5f3 (diff) | |
download | u-boot-imx-136179bec19f4bc84227cba138214ea392a723ea.zip u-boot-imx-136179bec19f4bc84227cba138214ea392a723ea.tar.gz u-boot-imx-136179bec19f4bc84227cba138214ea392a723ea.tar.bz2 |
colibri_pxa270: transition to driver model for serial
Add serial platform data to board file.
Enable driver model for PXA serial driver.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'board/toradex/colibri_pxa270')
-rw-r--r-- | board/toradex/colibri_pxa270/colibri_pxa270.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/board/toradex/colibri_pxa270/colibri_pxa270.c b/board/toradex/colibri_pxa270/colibri_pxa270.c index 3def0a6..2e3e03a 100644 --- a/board/toradex/colibri_pxa270/colibri_pxa270.c +++ b/board/toradex/colibri_pxa270/colibri_pxa270.c @@ -8,10 +8,13 @@ #include <common.h> #include <asm/arch/hardware.h> -#include <asm/arch/regs-mmc.h> #include <asm/arch/pxa.h> -#include <netdev.h> +#include <asm/arch/regs-mmc.h> +#include <asm/arch/regs-uart.h> #include <asm/io.h> +#include <dm/platdata.h> +#include <dm/platform_data/serial_pxa.h> +#include <netdev.h> #include <serial.h> #include <usb.h> @@ -105,3 +108,14 @@ int board_mmc_init(bd_t *bis) return 0; } #endif + +static const struct pxa_serial_platdata serial_platdata = { + .base = (struct pxa_uart_regs *)FFUART_BASE, + .port = FFUART_INDEX, + .baudrate = CONFIG_BAUDRATE, +}; + +U_BOOT_DEVICE(pxa_serials) = { + .name = "serial_pxa", + .platdata = &serial_platdata, +}; |