[PATCH v7 03/19] rockchip: include: add GRF_GPIO3B_IOMUX to grf_rk3066.h

Johan Jonker jbx6244 at gmail.com
Tue Jan 11 22:18:27 CET 2022


In order to use rk3066 sdmmc and SPL OF_PLATDATA the pinctrl
must be set without driver. Add the register defines for it
to grf_rk3066.h

Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
---
 .../include/asm/arch-rockchip/grf_rk3066.h    | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3066.h b/arch/arm/include/asm/arch-rockchip/grf_rk3066.h
index 71fdcd03..026ad1c1 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3066.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3066.h
@@ -83,6 +83,44 @@ enum {
 	GPIO1B0_UART2_SIN
 };
 
+/* GRF_GPIO3B_IOMUX */
+enum {
+	GPIO3B6_SHIFT		= 12,
+	GPIO3B6_MASK		= 1 << GPIO3B6_SHIFT,
+	GPIO3B6_GPIO		= 0,
+	GPIO3B6_SDMMC0_DECTN,
+
+	GPIO3B5_SHIFT		= 10,
+	GPIO3B5_MASK		= 1 << GPIO3B5_SHIFT,
+	GPIO3B5_GPIO		= 0,
+	GPIO3B5_SDMMC0_DATA3,
+
+	GPIO3B4_SHIFT		= 8,
+	GPIO3B4_MASK		= 1 << GPIO3B4_SHIFT,
+	GPIO3B4_GPIO		= 0,
+	GPIO3B4_SDMMC0_DATA2,
+
+	GPIO3B3_SHIFT		= 6,
+	GPIO3B3_MASK		= 1 << GPIO3B3_SHIFT,
+	GPIO3B3_GPIO		= 0,
+	GPIO3B3_SDMMC0_DATA1,
+
+	GPIO3B2_SHIFT		= 4,
+	GPIO3B2_MASK		= 1 << GPIO3B2_SHIFT,
+	GPIO3B2_GPIO		= 0,
+	GPIO3B2_SDMMC0_DATA0,
+
+	GPIO3B1_SHIFT		= 2,
+	GPIO3B1_MASK		= 1 << GPIO3B1_SHIFT,
+	GPIO3B1_GPIO		= 0,
+	GPIO3B1_SDMMC0_CMD,
+
+	GPIO3B0_SHIFT		= 0,
+	GPIO3B0_MASK		= 1 << GPIO3B0_SHIFT,
+	GPIO3B0_GPIO		= 0,
+	GPIO3B0_SDMMC0_CLKOUT,
+};
+
 /* GRF_SOC_CON0 */
 enum {
 	SMC_MUX_CON_SHIFT	= 13,
-- 
2.20.1



More information about the U-Boot mailing list