aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorThéo Lebrun <theo.lebrun@bootlin.com>2024-02-28 12:28:22 +0100
committerLinus Walleij <linus.walleij@linaro.org>2024-02-29 10:36:55 +0100
commit3c30cc26df0a3fc50b1f3fe4fd3a9b19a1704d95 (patch)
treeeaa16011ddd97fff53d65788d8473180f274cf54 /include/linux/gpio
parentgpio: nomadik: handle variadic GPIO count (diff)
downloadwireguard-linux-3c30cc26df0a3fc50b1f3fe4fd3a9b19a1704d95.tar.xz
wireguard-linux-3c30cc26df0a3fc50b1f3fe4fd3a9b19a1704d95.zip
gpio: nomadik: support mobileye,eyeq5-gpio
We create a custom compatible for the STA2X11 IP block as integrated into the Mobileye EyeQ5 platform. Its wake and alternate functions have been disabled, we want to avoid touching those registers. We both do: (1) early return in functions that do not support the platform, but with warnings, and (2) avoid calling those functions in the first place. We ensure that pinctrl-nomadik is not used with this STA2X11 variant. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Link: https://lore.kernel.org/r/20240228-mbly-gpio-v2-24-3ba757474006@bootlin.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/gpio-nomadik.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/gpio/gpio-nomadik.h b/include/linux/gpio/gpio-nomadik.h
index 0166ddb71f43..9bdb09fda4c9 100644
--- a/include/linux/gpio/gpio-nomadik.h
+++ b/include/linux/gpio/gpio-nomadik.h
@@ -57,6 +57,7 @@ struct nmk_gpio_chip {
void (*set_ioforce)(bool enable);
spinlock_t lock;
bool sleepmode;
+ bool is_mobileye_soc;
/* Keep track of configured edges */
u32 edge_rising;
u32 edge_falling;