summaryrefslogtreecommitdiff
path: root/arch/arm/soc/st_stm32/stm32l4/soc_pinmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/soc/st_stm32/stm32l4/soc_pinmux.c')
-rw-r--r--arch/arm/soc/st_stm32/stm32l4/soc_pinmux.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/soc/st_stm32/stm32l4/soc_pinmux.c b/arch/arm/soc/st_stm32/stm32l4/soc_pinmux.c
index 81a610624..a6ec50a8e 100644
--- a/arch/arm/soc/st_stm32/stm32l4/soc_pinmux.c
+++ b/arch/arm/soc/st_stm32/stm32l4/soc_pinmux.c
@@ -99,23 +99,3 @@ int stm32_get_pin_config(int pin, int func)
}
return -EINVAL;
}
-
-clock_control_subsys_t stm32_get_port_clock(int port)
-{
- const clock_control_subsys_t ports_to_clock[STM32_PORTS_MAX] = {
- UINT_TO_POINTER(STM32L4X_CLOCK_SUBSYS_GPIOA),
- UINT_TO_POINTER(STM32L4X_CLOCK_SUBSYS_GPIOB),
- UINT_TO_POINTER(STM32L4X_CLOCK_SUBSYS_GPIOC),
- UINT_TO_POINTER(STM32L4X_CLOCK_SUBSYS_GPIOD),
- UINT_TO_POINTER(STM32L4X_CLOCK_SUBSYS_GPIOE),
- UINT_TO_POINTER(STM32L4X_CLOCK_SUBSYS_GPIOF),
- UINT_TO_POINTER(STM32L4X_CLOCK_SUBSYS_GPIOG),
- UINT_TO_POINTER(STM32L4X_CLOCK_SUBSYS_GPIOH),
- };
-
- if (port > STM32_PORTH) {
- return NULL;
- }
-
- return ports_to_clock[port];
-}