From: Giulio Benetti Date: Sat, 28 Jun 2025 22:19:44 +0000 (+0200) Subject: arch/arm/include/asm/arch-imxrt/gpio.h: imxrt gpio use common gpio.h X-Git-Tag: v2025.10-rc1~91^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14da5ed615de8ed1e6aea6d290a65bd9c678fe0;p=pandora-u-boot.git arch/arm/include/asm/arch-imxrt/gpio.h: imxrt gpio use common gpio.h The current file defines a struct gpio_regs identical to the one in . To eliminate code duplication and align with the approach used for i.MX8M, include the common header instead of redefining the struct. Signed-off-by: Giulio Benetti --- diff --git a/arch/arm/include/asm/arch-imxrt/gpio.h b/arch/arm/include/asm/arch-imxrt/gpio.h index da31a7438aa..be130e00652 100644 --- a/arch/arm/include/asm/arch-imxrt/gpio.h +++ b/arch/arm/include/asm/arch-imxrt/gpio.h @@ -7,13 +7,6 @@ #ifndef __ASM_ARCH_GPIO_H__ #define __ASM_ARCH_GPIO_H__ -#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) -/* GPIO registers */ -struct gpio_regs { - u32 gpio_dr; /* data */ - u32 gpio_dir; /* direction */ - u32 gpio_psr; /* pad satus */ -}; -#endif +#include #endif /* __ASM_ARCH_GPIO_H__ */