You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
sh-pfc: Split pins and functions definition tables
Split the GPIOs table into a pins table for real GPIOs and a functions table for function GPIOs. Only register pins with the pinctrl core. The function GPIOs remain accessible as GPIOs. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
@@ -1192,7 +1192,7 @@ static pinmux_enum_t pinmux_data[] = {
|
||||
PINMUX_DATA(SCIF3_I_TXD_MARK, PSB14_1, PTZ3_FN),
|
||||
};
|
||||
|
||||
static struct pinmux_gpio pinmux_gpios[] = {
|
||||
static struct pinmux_pin pinmux_pins[] = {
|
||||
/* PTA */
|
||||
PINMUX_GPIO(GPIO_PTA7, PTA7_DATA),
|
||||
PINMUX_GPIO(GPIO_PTA6, PTA6_DATA),
|
||||
@@ -1418,7 +1418,11 @@ static struct pinmux_gpio pinmux_gpios[] = {
|
||||
PINMUX_GPIO(GPIO_PTZ2, PTZ2_DATA),
|
||||
PINMUX_GPIO(GPIO_PTZ1, PTZ1_DATA),
|
||||
PINMUX_GPIO(GPIO_PTZ0, PTZ0_DATA),
|
||||
};
|
||||
|
||||
#define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins)
|
||||
|
||||
static struct pinmux_func pinmux_func_gpios[] = {
|
||||
/* BSC */
|
||||
GPIO_FN(D31),
|
||||
GPIO_FN(D30),
|
||||
@@ -2210,9 +2214,10 @@ struct sh_pfc_soc_info sh7724_pinmux_info = {
|
||||
.output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
|
||||
.function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
|
||||
|
||||
.gpios = pinmux_gpios,
|
||||
.nr_pins = GPIO_PTZ0 + 1,
|
||||
.nr_gpios = ARRAY_SIZE(pinmux_gpios),
|
||||
.pins = pinmux_pins,
|
||||
.nr_pins = ARRAY_SIZE(pinmux_pins),
|
||||
.func_gpios = pinmux_func_gpios,
|
||||
.nr_func_gpios = ARRAY_SIZE(pinmux_func_gpios),
|
||||
|
||||
.cfg_regs = pinmux_config_regs,
|
||||
.data_regs = pinmux_data_regs,
|
||||
|
||||
Reference in New Issue
Block a user