]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
gpio: x86: Correct usage of IS_ENABLED() macro in intel_pinctrl_defs.h
authorTom Rini <trini@konsulko.com>
Wed, 26 Feb 2025 20:31:32 +0000 (14:31 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 9 May 2025 16:42:09 +0000 (10:42 -0600)
This file was using IS_ENABLED() to test for CONFIG flags but omitted
the CONFIG_ prefix and so did not work as expected.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/x86/include/asm/intel_pinctrl_defs.h

index 5d83d24bae2d1970cca908f8e9b7763f5d2153b5..f45c06076f5744b4cc02195d3007ae4a79832071 100644 (file)
 #define PAD_CFG2_DEBOUNCE_MASK         0x1f
 
 /* voltage tolerance  0=3.3V default 1=1.8V tolerant */
-#if IS_ENABLED(INTEL_PINCTRL_IOSTANDBY)
+#if IS_ENABLED(CONFIG_INTEL_PINCTRL_IOSTANDBY)
 #define PAD_CFG1_TOL_MASK              (0x1 << 25)
 #define  PAD_CFG1_TOL_1V8              (0x1 << 25)
 #endif
                                PAD_CFG0_TRIG_##trig | \
                                PAD_CFG0_RX_POL_##inv)
 
-#if IS_ENABLED(INTEL_PINCTRL_DUAL_ROUTE_SUPPORT)
+#if IS_ENABLED(CONFIG_INTEL_PINCTRL_DUAL_ROUTE_SUPPORT)
 #define PAD_IRQ_CFG_DUAL_ROUTE(route1, route2, trig, inv)  \
                                (PAD_CFG0_ROUTE_##route1 | \
                                PAD_CFG0_ROUTE_##route2 | \
                PAD_IRQ_CFG(NMI, trig, inv), PAD_PULL(pull) | \
                PAD_IOSSTATE(TXD_RXE))
 
-#if IS_ENABLED(INTEL_PINCTRL_DUAL_ROUTE_SUPPORT)
+#if IS_ENABLED(CONFIG_INTEL_PINCTRL_DUAL_ROUTE_SUPPORT)
 /* GPI, GPIO Driver, SCI interrupt */
 #define PAD_CFG_GPI_GPIO_DRIVER_SCI(pad, pull, rst, trig, inv) \
        _PAD_CFG_STRUCT(pad,            \