]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arch/arm/include/asm/arch-imxrt/gpio.h: imxrt gpio use common gpio.h
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Sat, 28 Jun 2025 22:19:44 +0000 (00:19 +0200)
committerFabio Estevam <festevam@gmail.com>
Sun, 29 Jun 2025 13:08:10 +0000 (10:08 -0300)
The current file defines a struct gpio_regs identical to the one in
<asm/mach-imx/gpio.h>. 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 <giulio.benetti@benettiengineering.com>
arch/arm/include/asm/arch-imxrt/gpio.h

index da31a7438aa1c2775d13ba57b25a5a504fdf6eef..be130e006529614089337d6da5e7237300e01b0e 100644 (file)
@@ -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 <asm/mach-imx/gpio.h>
 
 #endif /* __ASM_ARCH_GPIO_H__ */