From 39e4795a797663d08cd2216975430b2819e3173c Mon Sep 17 00:00:00 2001 From: Vikas Manocha Date: Mon, 1 Dec 2014 12:27:54 -0800 Subject: dm: stv0991: Move serial to driver model Signed-off-by: Vikas Manocha --- board/st/stv0991/stv0991.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'board/st') diff --git a/board/st/stv0991/stv0991.c b/board/st/stv0991/stv0991.c index 989fb5e558..f465699b55 100644 --- a/board/st/stv0991/stv0991.c +++ b/board/st/stv0991/stv0991.c @@ -13,12 +13,25 @@ #include #include #include +#include +#include DECLARE_GLOBAL_DATA_PTR; struct gpio_regs *const gpioa_regs = (struct gpio_regs *) GPIOA_BASE_ADDR; +static const struct pl01x_serial_platdata serial_platdata = { + .base = 0x80406000, + .type = TYPE_PL011, + .clock = 2700 * 1000, +}; + +U_BOOT_DEVICE(stv09911_serials) = { + .name = "serial_pl01x", + .platdata = &serial_platdata, +}; + #ifdef CONFIG_SHOW_BOOT_PROGRESS void show_boot_progress(int progress) { -- cgit v1.2.1