summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-stm32f4/stm32.h
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 /arch/arm/include/asm/arch-stm32f4/stm32.h
parent5076c64a08d2083af5a7761b12a30116ef0da967 (diff)
downloadu-boot-665624149a55f43e25e13ea50bd0015c31e6c6bb.tar.gz
u-boot-665624149a55f43e25e13ea50bd0015c31e6c6bb.tar.xz
u-boot-665624149a55f43e25e13ea50bd0015c31e6c6bb.zip
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 'arch/arm/include/asm/arch-stm32f4/stm32.h')
-rw-r--r--arch/arm/include/asm/arch-stm32f4/stm32.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-stm32f4/stm32.h b/arch/arm/include/asm/arch-stm32f4/stm32.h
index 7ca6dc3de8..6b64d0361b 100644
--- a/arch/arm/include/asm/arch-stm32f4/stm32.h
+++ b/arch/arm/include/asm/arch-stm32f4/stm32.h
@@ -3,7 +3,7 @@
* Yuri Tikhonov, Emcraft Systems, yur@emcraft.com
*
* (C) Copyright 2015
- * Kamil Lulko, <rev13@wp.pl>
+ * Kamil Lulko, <kamil.lulko@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
@@ -106,6 +106,14 @@ struct stm32_flash_regs {
#define STM32_FLASH_CR_SNB_OFFSET 3
#define STM32_FLASH_CR_SNB_MASK (15 << STM32_FLASH_CR_SNB_OFFSET)
+/*
+ * Peripheral base addresses
+ */
+#define STM32_USART1_BASE (STM32_APB2PERIPH_BASE + 0x1000)
+#define STM32_USART2_BASE (STM32_APB1PERIPH_BASE + 0x4400)
+#define STM32_USART3_BASE (STM32_APB1PERIPH_BASE + 0x4800)
+#define STM32_USART6_BASE (STM32_APB2PERIPH_BASE + 0x1400)
+
enum clock {
CLOCK_CORE,
CLOCK_AHB,