summaryrefslogtreecommitdiff
path: root/board/st
diff options
context:
space:
mode:
authorVikas Manocha <vikas.manocha@st.com>2014-12-01 12:27:54 -0800
committerTom Rini <trini@ti.com>2014-12-09 15:16:20 -0500
commit39e4795a797663d08cd2216975430b2819e3173c (patch)
tree98c7adc8c7a3a64c3432434d628a0287752587b1 /board/st
parent498b7c2ecc06cc96094f8ad8fb7d8cb46d79295b (diff)
downloadu-boot-imx-39e4795a797663d08cd2216975430b2819e3173c.zip
u-boot-imx-39e4795a797663d08cd2216975430b2819e3173c.tar.gz
u-boot-imx-39e4795a797663d08cd2216975430b2819e3173c.tar.bz2
dm: stv0991: Move serial to driver model
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Diffstat (limited to 'board/st')
-rw-r--r--board/st/stv0991/stv0991.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/st/stv0991/stv0991.c b/board/st/stv0991/stv0991.c
index 989fb5e..f465699 100644
--- a/board/st/stv0991/stv0991.c
+++ b/board/st/stv0991/stv0991.c
@@ -13,12 +13,25 @@
#include <asm/arch/gpio.h>
#include <netdev.h>
#include <asm/io.h>
+#include <dm/platdata.h>
+#include <dm/platform_data/serial_pl01x.h>
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)
{