summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKamil Lulko <kamil.lulko@gmail.com>2015-12-01 09:08:19 +0100
committerTom Rini <trini@konsulko.com>2015-12-12 15:56:08 -0500
commit665624149a55f43e25e13ea50bd0015c31e6c6bb (patch)
tree1cd8925446dd68c4e1267568ee7ca947200018ca /include
parent5076c64a08d2083af5a7761b12a30116ef0da967 (diff)
downloadu-boot-imx-665624149a55f43e25e13ea50bd0015c31e6c6bb.zip
u-boot-imx-665624149a55f43e25e13ea50bd0015c31e6c6bb.tar.gz
u-boot-imx-665624149a55f43e25e13ea50bd0015c31e6c6bb.tar.bz2
stm32: Convert serial driver to DM
Signed-off-by: Kamil Lulko <kamil.lulko@gmail.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/stm32f429-discovery.h10
-rw-r--r--include/dm/platform_data/serial_stm32.h16
2 files changed, 17 insertions, 9 deletions
diff --git a/include/configs/stm32f429-discovery.h b/include/configs/stm32f429-discovery.h
index 8191fb2..3e80861 100644
--- a/include/configs/stm32f429-discovery.h
+++ b/include/configs/stm32f429-discovery.h
@@ -1,6 +1,6 @@
/*
* (C) Copyright 2015
- * Kamil Lulko, <rev13@wp.pl>
+ * Kamil Lulko, <kamil.lulko@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
@@ -51,14 +51,6 @@
#define CONFIG_STM32_GPIO
#define CONFIG_STM32_SERIAL
-/*
- * Configuration of the USART
- * 1: TX:PA9 RX:PA10
- * 2: TX:PD5 RX:PD6
- * 3: TX:PC10 RX:PC11
- * 6: TX:PG14 RX:PG9
- */
-#define CONFIG_STM32_USART 1
#define CONFIG_STM32_HSE_HZ 8000000
diff --git a/include/dm/platform_data/serial_stm32.h b/include/dm/platform_data/serial_stm32.h
new file mode 100644
index 0000000..d1cfcbe
--- /dev/null
+++ b/include/dm/platform_data/serial_stm32.h
@@ -0,0 +1,16 @@
+/*
+ * (C) Copyright 2015
+ * Kamil Lulko, <kamil.lulko@gmail.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __SERIAL_STM32_H
+#define __SERIAL_STM32_H
+
+/* Information about a serial port */
+struct stm32_serial_platdata {
+ struct stm32_usart *base; /* address of registers in physical memory */
+};
+
+#endif /* __SERIAL_STM32_H */