949d4b91d9
Change the settings to support pinctrl on the GD32VF103. - Split soc/arm/gigadevice/common/pinctrl_soc.h and put it into include/dt-bindings. - Leave some definitions that can't handle with device tree compiler in pinctrl_soc.h. - Remove dependency to SOC_FAMILY_GD32 because always enabled it if GD32_HAS_AF(IO)_PINMAX was selected. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
22 lines
765 B
Plaintext
22 lines
765 B
Plaintext
# Copyright (c) 2021 Teslabs Engineering S.L.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
DT_COMPAT_GIGADEVICE_GD32_PINCTRL_AF := gd,gd32-pinctrl-af
|
|
DT_COMPAT_GIGADEVICE_GD32_PINCTRL_AFIO := gd,gd32-pinctrl-afio
|
|
|
|
config PINCTRL_GD32_AF
|
|
bool "GD32 AF pin controller driver"
|
|
depends on GD32_HAS_AF_PINMUX
|
|
default $(dt_compat_enabled,$(DT_COMPAT_GIGADEVICE_GD32_PINCTRL_AF))
|
|
help
|
|
GD32 AF pin controller driver. This driver is used by series using the
|
|
AF pin multiplexing model.
|
|
|
|
config PINCTRL_GD32_AFIO
|
|
bool "GD32 AFIO pin controller driver"
|
|
depends on GD32_HAS_AFIO_PINMUX
|
|
default $(dt_compat_enabled,$(DT_COMPAT_GIGADEVICE_GD32_PINCTRL_AFIO))
|
|
help
|
|
GD32 AFIO pin controller driver. This driver is used by series using the
|
|
AFIO pin multiplexing model.
|