Skip to content

Commit 08b68ae

Browse files
prabhakarladgeertu
authored andcommitted
pinctrl: renesas: rzg2l: Enable variable configuration for all
Enable parsing of variable configuration for all architectures. This prepares for adding support for the RZ/V2H SoC, which utilizes the ARM64 architecture and features port pins with variable configuration. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> # on RZ/G3S Link: https://lore.kernel.org/r/20240530173857.164073-6-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 13a8cae commit 08b68ae

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/pinctrl/renesas/pinctrl-rzg2l.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ struct rzg2l_pinctrl {
317317

318318
static const u16 available_ps[] = { 1800, 2500, 3300 };
319319

320-
#ifdef CONFIG_RISCV
321320
static u64 rzg2l_pinctrl_get_variable_pin_cfg(struct rzg2l_pinctrl *pctrl,
322321
u64 pincfg,
323322
unsigned int port,
@@ -336,6 +335,7 @@ static u64 rzg2l_pinctrl_get_variable_pin_cfg(struct rzg2l_pinctrl *pctrl,
336335
return 0;
337336
}
338337

338+
#ifdef CONFIG_RISCV
339339
static const u64 r9a07g043f_variable_pin_cfg[] = {
340340
RZG2L_VARIABLE_PIN_CFG_PACK(20, 0, PIN_CFG_IOLH_B | PIN_CFG_SR | PIN_CFG_PUPD |
341341
PIN_CFG_FILONOFF | PIN_CFG_FILNUM | PIN_CFG_FILCLKSEL |
@@ -2219,13 +2219,11 @@ static int rzg2l_pinctrl_register(struct rzg2l_pinctrl *pctrl)
22192219
if (i && !(i % RZG2L_PINS_PER_PORT))
22202220
j++;
22212221
pin_data[i] = pctrl->data->port_pin_configs[j];
2222-
#ifdef CONFIG_RISCV
22232222
if (pin_data[i] & PIN_CFG_VARIABLE)
22242223
pin_data[i] = rzg2l_pinctrl_get_variable_pin_cfg(pctrl,
22252224
pin_data[i],
22262225
j,
22272226
i % RZG2L_PINS_PER_PORT);
2228-
#endif
22292227
pins[i].drv_data = &pin_data[i];
22302228
}
22312229

0 commit comments

Comments
 (0)