summaryrefslogtreecommitdiff
path: root/chip/stm32/usart-stm32l5.h
diff options
context:
space:
mode:
authorJes B. Klinke <jbk@chromium.org>2021-08-31 10:43:04 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-08 18:57:37 +0000
commitc8e071566ceb60190120dbc7c0c0a681364cc5d9 (patch)
tree3676cde58c8806b2e7245605ee8a980357e5706d /chip/stm32/usart-stm32l5.h
parentf2af0a3a74192876fc1b72706813d756393da167 (diff)
downloadchrome-ec-c8e071566ceb60190120dbc7c0c0a681364cc5d9.tar.gz
chip/stm32: UART declarations for STM32L5 series
STM32L5 can have up to four UARTs, one more than previous Lx series. These files were copied from usart-stm32l.{h,c}, modified only by making one more copy of the appropriate declarations. BUG=b:192262089 TEST=Compile with hyperdebug board (from later in the chain) BRANCH=none Signed-off-by: Jes Bodi Klinke <jbk@chromium.org> Change-Id: I8bd2d13de67fc74b59c16a79a87fd4615912be09 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133814 Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'chip/stm32/usart-stm32l5.h')
-rw-r--r--chip/stm32/usart-stm32l5.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/chip/stm32/usart-stm32l5.h b/chip/stm32/usart-stm32l5.h
new file mode 100644
index 0000000000..564ffbc580
--- /dev/null
+++ b/chip/stm32/usart-stm32l5.h
@@ -0,0 +1,19 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef __CROS_EC_USART_STM32L5_H
+#define __CROS_EC_USART_STM32L5_H
+
+#include "usart.h"
+
+/*
+ * The STM32L5 series can have as many as four UARTS. These are the HW configs
+ * for those UARTS. They can be used to initialize STM32 generic UART configs.
+ */
+extern struct usart_hw_config const usart1_hw;
+extern struct usart_hw_config const usart2_hw;
+extern struct usart_hw_config const usart3_hw;
+extern struct usart_hw_config const usart4_hw;
+
+#endif /* __CROS_EC_USART_STM32L5_H */