summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-stm32.h
diff options
context:
space:
mode:
authorPierre-Yves MORDRET <pierre-yves.mordret@st.com>2017-09-14 17:28:36 +0300
committerWolfram Sang <wsa@the-dreams.de>2017-09-14 18:34:29 +0300
commitdf8c847b53539cc1b05cf3bd8f446194aedfeafc (patch)
tree04a9d53c94160b9e64597740e0f87387505b4652 /drivers/i2c/busses/i2c-stm32.h
parentedcd2ae8ebd4c6882f426e8430f28004ed22eb66 (diff)
downloadlinux-df8c847b53539cc1b05cf3bd8f446194aedfeafc.tar.xz
i2c: i2c-stm32f4: use generic definition of speed enum
This patch uses a more generic definition of speed enum for i2c-stm32f4 driver. Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com> Reviewed-by: Ludovic BARRE <ludovic.barre@st.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-stm32.h')
-rw-r--r--drivers/i2c/busses/i2c-stm32.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-stm32.h b/drivers/i2c/busses/i2c-stm32.h
new file mode 100644
index 000000000000..dab51761f8c5
--- /dev/null
+++ b/drivers/i2c/busses/i2c-stm32.h
@@ -0,0 +1,20 @@
+/*
+ * i2c-stm32.h
+ *
+ * Copyright (C) M'boumba Cedric Madianga 2017
+ * Author: M'boumba Cedric Madianga <cedric.madianga@gmail.com>
+ *
+ * License terms: GNU General Public License (GPL), version 2
+ */
+
+#ifndef _I2C_STM32_H
+#define _I2C_STM32_H
+
+enum stm32_i2c_speed {
+ STM32_I2C_SPEED_STANDARD, /* 100 kHz */
+ STM32_I2C_SPEED_FAST, /* 400 kHz */
+ STM32_I2C_SPEED_FAST_PLUS, /* 1 MHz */
+ STM32_I2C_SPEED_END,
+};
+
+#endif /* _I2C_STM32_H */