]> git.baikalelectronics.ru Git - uboot.git/commitdiff
imx: imx9: Add gpio registers structure
authorYe Li <ye.li@nxp.com>
Tue, 26 Jul 2022 08:41:01 +0000 (16:41 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 Jul 2022 09:29:01 +0000 (11:29 +0200)
Add GPIO registers structure for iMX93, so that we can enable lpgpio
driver

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/Kconfig
arch/arm/include/asm/arch-imx9/gpio.h

index d290194f90033063f87251b0dfe4342aa2ceb650..e48054ab3858d36b8bb635def04980c8cd94bf46 100644 (file)
@@ -916,6 +916,7 @@ config ARCH_IMX9
        select DM
        select MACH_IMX
        select SUPPORT_SPL
+       select GPIO_EXTRA_HEADER
        select MISC
        select IMX_SENTINEL
        imply CMD_DM
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..40732022e7e56e9e460350a97a50b47bb2e98fa0 100644 (file)
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2022 NXP
+ */
+
+#ifndef __ASM_ARCH_IMX9_GPIO_H
+#define __ASM_ARCH_IMX9_GPIO_H
+
+struct gpio_regs {
+       u32 gpio_pdor;
+       u32 gpio_psor;
+       u32 gpio_pcor;
+       u32 gpio_ptor;
+       u32 gpio_pdir;
+       u32 gpio_pddr;
+       u32 gpio_pidr;
+       u8 gpio_pxdr[32];
+};
+
+#endif