Skip to content

Commit 100cc13

Browse files
Hau Hoquytranpzz
authored andcommitted
drivers: pinctrl: Support pinctrl driver for RX140 SoC
Modify driver code to adapt with RX140 SoC Signed-off-by: Hau Ho <[email protected]>
1 parent e041a76 commit 100cc13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/pinctrl/renesas/rx/pinctrl_renesas_rx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
extern const uint8_t g_gpio_open_drain_n_support[];
1818
extern const uint8_t g_gpio_pull_up_support[];
19-
#ifndef CONFIG_SOC_SERIES_RX261
19+
#if !defined(CONFIG_SOC_SERIES_RX261) && !defined(CONFIG_SOC_SERIES_RX140)
2020
extern const uint8_t g_gpio_dscr_support[];
2121
#endif
2222

@@ -47,7 +47,7 @@ static int pinctrl_configure_pullup(const pinctrl_soc_pin_t *pin, uint32_t value
4747
return ret;
4848
}
4949

50-
#ifndef CONFIG_SOC_SERIES_RX261
50+
#if !defined(CONFIG_SOC_SERIES_RX261) && !defined(CONFIG_SOC_SERIES_RX140)
5151
static int pinctrl_configure_dscr(const pinctrl_soc_pin_t *pin, uint32_t value)
5252
{
5353
gpio_port_pin_t port_pin;
@@ -137,7 +137,7 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt, uintp
137137
if (ret != 0) {
138138
return -EINVAL;
139139
}
140-
#ifndef CONFIG_SOC_SERIES_RX261
140+
#if !defined(CONFIG_SOC_SERIES_RX261) && !defined(CONFIG_SOC_SERIES_RX140)
141141
/* Set drive-strength */
142142
ret = pinctrl_configure_dscr(pin, pin->cfg.drive_strength);
143143

0 commit comments

Comments
 (0)