From 665624149a55f43e25e13ea50bd0015c31e6c6bb Mon Sep 17 00:00:00 2001 From: Kamil Lulko Date: Tue, 1 Dec 2015 09:08:19 +0100 Subject: stm32: Convert serial driver to DM Signed-off-by: Kamil Lulko Cc: Simon Glass Reviewed-by: Simon Glass --- board/st/stm32f429-discovery/stm32f429-discovery.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'board/st/stm32f429-discovery') diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c index f418186..8bc2d9e 100644 --- a/board/st/stm32f429-discovery/stm32f429-discovery.c +++ b/board/st/stm32f429-discovery/stm32f429-discovery.c @@ -6,7 +6,7 @@ * Pavel Boldin, Emcraft Systems, paboldin@emcraft.com * * (C) Copyright 2015 - * Kamil Lulko, + * Kamil Lulko, * * SPDX-License-Identifier: GPL-2.0+ */ @@ -17,6 +17,8 @@ #include #include #include +#include +#include DECLARE_GLOBAL_DATA_PTR; @@ -263,6 +265,15 @@ int dram_init(void) return rv; } +static const struct stm32_serial_platdata serial_platdata = { + .base = (struct stm32_usart *)STM32_USART1_BASE, +}; + +U_BOOT_DEVICE(stm32_serials) = { + .name = "serial_stm32", + .platdata = &serial_platdata, +}; + u32 get_board_rev(void) { return 0; -- cgit v1.1