summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/stm32/gpio-f0-l.c2
-rw-r--r--chip/stm32/gpio.c2
-rw-r--r--chip/stm32/gpio_chip.h16
-rw-r--r--include/gpio.h8
4 files changed, 18 insertions, 10 deletions
diff --git a/chip/stm32/gpio-f0-l.c b/chip/stm32/gpio-f0-l.c
index 826cb7c591..df45c15aa5 100644
--- a/chip/stm32/gpio-f0-l.c
+++ b/chip/stm32/gpio-f0-l.c
@@ -10,7 +10,7 @@
*/
#include "common.h"
-#include "gpio.h"
+#include "gpio_chip.h"
#include "registers.h"
#include "util.h"
diff --git a/chip/stm32/gpio.c b/chip/stm32/gpio.c
index ee34df4565..3a5f6265c2 100644
--- a/chip/stm32/gpio.c
+++ b/chip/stm32/gpio.c
@@ -8,7 +8,7 @@
#include "clock.h"
#include "common.h"
#include "console.h"
-#include "gpio.h"
+#include "gpio_chip.h"
#include "hooks.h"
#include "registers.h"
#include "system.h"
diff --git a/chip/stm32/gpio_chip.h b/chip/stm32/gpio_chip.h
new file mode 100644
index 0000000000..ec9da96e14
--- /dev/null
+++ b/chip/stm32/gpio_chip.h
@@ -0,0 +1,16 @@
+/* Copyright 2016 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_CHIP_STM32_GPIO_CHIP_H
+#define __CROS_EC_CHIP_STM32_GPIO_CHIP_H
+
+#include "include/gpio.h"
+
+/**
+ * Enable GPIO peripheral clocks.
+ */
+void gpio_enable_clocks(void);
+
+#endif /* __CROS_EC_CHIP_STM32_GPIO_CHIP_H */
diff --git a/include/gpio.h b/include/gpio.h
index 7c0a4cad22..741f41f3d7 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -225,14 +225,6 @@ void gpio_set_flags_by_mask(uint32_t port, uint32_t mask, uint32_t flags);
*/
void gpio_set_alternate_function(uint32_t port, uint32_t mask, int func);
-/**
- * Enable GPIO peripheral clocks.
- *
- * This function is used by the GPIO implementation and should not be called
- * outside of that context.
- */
-void gpio_enable_clocks(void);
-
/* Optional board-level function to set hibernate GPIO states. */
void board_set_gpio_hibernate_state(void) __attribute__((weak));