mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-28 16:55:22 +00:00
Get STM32 boards configuring I2C using device tree and remove configuration from pinmux.c Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
29 lines
535 B
C
29 lines
535 B
C
/*
|
|
* Copyright (c) 2019 The Chromium OS Authors
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <kernel.h>
|
|
#include <device.h>
|
|
#include <init.h>
|
|
#include <drivers/pinmux.h>
|
|
#include <sys/sys_io.h>
|
|
|
|
#include <pinmux/stm32/pinmux_stm32.h>
|
|
|
|
static const struct pin_config pinconf[] = {
|
|
};
|
|
|
|
static int pinmux_stm32_init(const struct device *port)
|
|
{
|
|
ARG_UNUSED(port);
|
|
|
|
stm32_setup_pins(pinconf, ARRAY_SIZE(pinconf));
|
|
|
|
return 0;
|
|
}
|
|
|
|
SYS_INIT(pinmux_stm32_init, PRE_KERNEL_1,
|
|
CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);
|