From 9df731a176aab8e03b984b681b1bea01ccff6644 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 06 Nov 2023 07:23:06 +0000
Subject: [PATCH] rk3568 rt uboot init

---
 u-boot/include/irq-platform.h |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/u-boot/include/irq-platform.h b/u-boot/include/irq-platform.h
index 222d5c7..53516fc 100644
--- a/u-boot/include/irq-platform.h
+++ b/u-boot/include/irq-platform.h
@@ -241,6 +241,46 @@
 #define IRQ_GPIO3			69
 #define IRQ_GPIO4			70
 
+#elif defined(CONFIG_ROCKCHIP_RK3528)
+#define GPIO0_PHYS			0xff610000
+#define GPIO1_PHYS			0xffaf0000
+#define GPIO2_PHYS			0xffb00000
+#define GPIO3_PHYS			0xffb10000
+#define GPIO4_PHYS			0xffb20000
+
+#define GIC_IRQS_NR			(5 * 32)
+#define GPIO_IRQS_NR			(5 * 32)
+
+#define GPIO_BANK_NUM			5
+#define GPIO_BANK_PINS			32
+
+#define IRQ_TIMER0			63
+#define IRQ_GPIO0			103
+#define IRQ_GPIO1			105
+#define IRQ_GPIO2			107
+#define IRQ_GPIO3			108
+#define IRQ_GPIO4			110
+
+#elif defined(CONFIG_ROCKCHIP_RK3562)
+#define GPIO0_PHYS			0xff260000
+#define GPIO1_PHYS			0xff620000
+#define GPIO2_PHYS			0xff630000
+#define GPIO3_PHYS			0xffac0000
+#define GPIO4_PHYS			0xffad0000
+
+#define GIC_IRQS_NR			(5 * 32)
+#define GPIO_IRQS_NR			(5 * 32)
+
+#define GPIO_BANK_NUM			5
+#define GPIO_BANK_PINS			32
+
+#define IRQ_TIMER0			77
+#define IRQ_GPIO0			32
+#define IRQ_GPIO1			34
+#define IRQ_GPIO2			36
+#define IRQ_GPIO3			38
+#define IRQ_GPIO4			40
+
 #elif defined(CONFIG_ROCKCHIP_RK3568)
 #define GPIO0_PHYS			0xfdd60000
 #define GPIO1_PHYS			0xfe740000

--
Gitblit v1.6.2