All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@edgeble.ai>
To: Kever Yang <kever.yang@rock-chips.com>,
	Simon Glass <sjg@chromium.org>,
	Philipp Tomsich <philipp.tomsich@vrull.eu>,
	fatorangecat@189.cn
Cc: u-boot@lists.denx.de, Jagan Teki <jagan@edgeble.ai>,
	Steven Liu <steven.liu@rock-chips.com>,
	Joseph Chen <chenjh@rock-chips.com>
Subject: [RFC PATCH 10/16] arm: rockchip: Add ioc header for rk3588
Date: Thu, 26 Jan 2023 03:57:35 +0530	[thread overview]
Message-ID: <20230125222741.303259-11-jagan@edgeble.ai> (raw)
In-Reply-To: <20230125222741.303259-1-jagan@edgeble.ai>

Add IOC unit header include for rk3588.

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Jagan Teki <jagan@edgeble.ai>
---
 .../include/asm/arch-rockchip/ioc_rk3588.h    | 102 ++++++++++++++++++
 1 file changed, 102 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-rockchip/ioc_rk3588.h

diff --git a/arch/arm/include/asm/arch-rockchip/ioc_rk3588.h b/arch/arm/include/asm/arch-rockchip/ioc_rk3588.h
new file mode 100644
index 0000000000..2fd47b5d1c
--- /dev/null
+++ b/arch/arm/include/asm/arch-rockchip/ioc_rk3588.h
@@ -0,0 +1,102 @@
+/*
+ * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+#ifndef _ASM_ARCH_IOC_RK3588_H
+#define _ASM_ARCH_IOC_RK3588_H
+
+#include <common.h>
+
+struct rk3588_bus_ioc {
+	uint32_t reserved0000[3];      /* Address Offset: 0x0000 */
+	uint32_t gpio0b_iomux_sel_h;   /* Address Offset: 0x000C */
+	uint32_t gpio0c_iomux_sel_l;   /* Address Offset: 0x0010 */
+	uint32_t gpio0c_iomux_sel_h;   /* Address Offset: 0x0014 */
+	uint32_t gpio0d_iomux_sel_l;   /* Address Offset: 0x0018 */
+	uint32_t gpio0d_iomux_sel_h;   /* Address Offset: 0x001C */
+	uint32_t gpio1a_iomux_sel_l;   /* Address Offset: 0x0020 */
+	uint32_t gpio1a_iomux_sel_h;   /* Address Offset: 0x0024 */
+	uint32_t gpio1b_iomux_sel_l;   /* Address Offset: 0x0028 */
+	uint32_t gpio1b_iomux_sel_h;   /* Address Offset: 0x002C */
+	uint32_t gpio1c_iomux_sel_l;   /* Address Offset: 0x0030 */
+	uint32_t gpio1c_iomux_sel_h;   /* Address Offset: 0x0034 */
+	uint32_t gpio1d_iomux_sel_l;   /* Address Offset: 0x0038 */
+	uint32_t gpio1d_iomux_sel_h;   /* Address Offset: 0x003C */
+	uint32_t gpio2a_iomux_sel_l;   /* Address Offset: 0x0040 */
+	uint32_t gpio2a_iomux_sel_h;   /* Address Offset: 0x0044 */
+	uint32_t gpio2b_iomux_sel_l;   /* Address Offset: 0x0048 */
+	uint32_t gpio2b_iomux_sel_h;   /* Address Offset: 0x004C */
+	uint32_t gpio2c_iomux_sel_l;   /* Address Offset: 0x0050 */
+	uint32_t gpio2c_iomux_sel_h;   /* Address Offset: 0x0054 */
+	uint32_t gpio2d_iomux_sel_l;   /* Address Offset: 0x0058 */
+	uint32_t gpio2d_iomux_sel_h;   /* Address Offset: 0x005C */
+	uint32_t gpio3a_iomux_sel_l;   /* Address Offset: 0x0060 */
+	uint32_t gpio3a_iomux_sel_h;   /* Address Offset: 0x0064 */
+	uint32_t gpio3b_iomux_sel_l;   /* Address Offset: 0x0068 */
+	uint32_t gpio3b_iomux_sel_h;   /* Address Offset: 0x006C */
+	uint32_t gpio3c_iomux_sel_l;   /* Address Offset: 0x0070 */
+	uint32_t gpio3c_iomux_sel_h;   /* Address Offset: 0x0074 */
+	uint32_t gpio3d_iomux_sel_l;   /* Address Offset: 0x0078 */
+	uint32_t gpio3d_iomux_sel_h;   /* Address Offset: 0x007C */
+	uint32_t gpio4a_iomux_sel_l;   /* Address Offset: 0x0080 */
+	uint32_t gpio4a_iomux_sel_h;   /* Address Offset: 0x0084 */
+	uint32_t gpio4b_iomux_sel_l;   /* Address Offset: 0x0088 */
+	uint32_t gpio4b_iomux_sel_h;   /* Address Offset: 0x008C */
+	uint32_t gpio4c_iomux_sel_l;   /* Address Offset: 0x0090 */
+	uint32_t gpio4c_iomux_sel_h;   /* Address Offset: 0x0094 */
+	uint32_t gpio4d_iomux_sel_l;   /* Address Offset: 0x0098 */
+	uint32_t gpio4d_iomux_sel_h;   /* Address Offset: 0x009C */
+};
+check_member(rk3588_bus_ioc, gpio4d_iomux_sel_h, 0x009C);
+
+
+struct rk3588_pmu1_ioc {
+	uint32_t gpio0a_iomux_sel_l;   /* Address Offset: 0x0000 */
+	uint32_t gpio0a_iomux_sel_h;   /* Address Offset: 0x0004 */
+	uint32_t gpio0b_iomux_sel_l;   /* Address Offset: 0x0008 */
+	uint32_t reserved0012;         /* Address Offset: 0x000C */
+	uint32_t gpio0a_ds_l;          /* Address Offset: 0x0010 */
+	uint32_t gpio0a_ds_h;          /* Address Offset: 0x0014 */
+	uint32_t gpio0b_ds_l;          /* Address Offset: 0x0018 */
+	uint32_t reserved0028;         /* Address Offset: 0x001C */
+	uint32_t gpio0a_p;             /* Address Offset: 0x0020 */
+	uint32_t gpio0b_p;             /* Address Offset: 0x0024 */
+	uint32_t gpio0a_ie;            /* Address Offset: 0x0028 */
+	uint32_t gpio0b_ie;            /* Address Offset: 0x002C */
+	uint32_t gpio0a_smt;           /* Address Offset: 0x0030 */
+	uint32_t gpio0b_smt;           /* Address Offset: 0x0034 */
+	uint32_t gpio0a_pdis;          /* Address Offset: 0x0038 */
+	uint32_t gpio0b_pdis;          /* Address Offset: 0x003C */
+	uint32_t xin_con;              /* Address Offset: 0x0040 */
+};
+check_member(rk3588_pmu1_ioc, xin_con, 0x0040);
+
+struct rk3588_pmu2_ioc {
+	uint32_t gpio0b_iomux_sel_h;  /* Address Offset: 0x0000 */
+	uint32_t gpio0c_iomux_sel_l;  /* Address Offset: 0x0004 */
+	uint32_t gpio0c_iomux_sel_h;  /* Address Offset: 0x0008 */
+	uint32_t gpio0d_iomux_sel_l;  /* Address Offset: 0x000C */
+	uint32_t gpio0d_iomux_sel_h;  /* Address Offset: 0x0010 */
+	uint32_t gpio0b_ds_h;         /* Address Offset: 0x0014 */
+	uint32_t gpio0c_ds_l;         /* Address Offset: 0x0018 */
+	uint32_t gpio0c_ds_h;         /* Address Offset: 0x001C */
+	uint32_t gpio0d_ds_l;         /* Address Offset: 0x0020 */
+	uint32_t gpio0d_ds_h;         /* Address Offset: 0x0024 */
+	uint32_t gpio0b_p;            /* Address Offset: 0x0028 */
+	uint32_t gpio0c_p;            /* Address Offset: 0x002C */
+	uint32_t gpio0d_p;            /* Address Offset: 0x0030 */
+	uint32_t gpio0b_ie;           /* Address Offset: 0x0034 */
+	uint32_t gpio0c_ie;           /* Address Offset: 0x0038 */
+	uint32_t gpio0d_ie;           /* Address Offset: 0x003C */
+	uint32_t gpio0b_smt;          /* Address Offset: 0x0040 */
+	uint32_t gpio0c_smt;          /* Address Offset: 0x0044 */
+	uint32_t gpio0d_smt;          /* Address Offset: 0x0048 */
+	uint32_t gpio0b_pdis;         /* Address Offset: 0x004C */
+	uint32_t gpio0c_pdis;         /* Address Offset: 0x0050 */
+	uint32_t gpio0d_pdis;         /* Address Offset: 0x0054 */
+};
+check_member(rk3588_pmu2_ioc, gpio0d_pdis, 0x0054);
+
+#endif
+
-- 
2.25.1


  parent reply	other threads:[~2023-01-25 22:30 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25 22:27 [RFC PATCH 00/16] arm: Add Rockchip RK3588 support Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 01/16] rockchip: mkimage: Add rk3588 support Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 02/16] arm: rockchip: Add cru header for rk3588 Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 03/16] arm: rockchip: Add grf " Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 04/16] dt-bindings: clk: Add dt-binding header for RK3588 Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 05/16] clk: rockchip: Add rk3588 clk support Jagan Teki
2023-02-02 14:09   ` Eugen Hristev
2023-01-25 22:27 ` [RFC PATCH 06/16] clk: rockchip: pll: Add pll_rk3588 type for rk3588 Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 07/16] ram: rockchip: Add rk3588 ddr driver support Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 08/16] dt-bindings: power: Add power-domain header for rk3588 Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 09/16] dt-bindings: reset: add rk3588 reset definitions Jagan Teki
2023-01-25 22:27 ` Jagan Teki [this message]
2023-01-25 22:27 ` [RFC PATCH 11/16] arm64: dts: rockchip: Add base DT for rk3588 SoC Jagan Teki
2023-02-02 14:06   ` Eugen Hristev
2023-01-25 22:27 ` [RFC PATCH 12/16] arm64: dts: rockchip: rk3588: Add Edgeble Neu6 Model A SoM Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 13/16] arm64: dts: rockchip: rk3588: Add Edgeble Neu6 Model A IO Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 14/16] arm: rockchip: Add RK3588 arch core support Jagan Teki
2023-01-25 22:27 ` [RFC PATCH 15/16] ARM: dts: rockchip: Add rk3588-u-boot.dtsi Jagan Teki
2023-01-27 13:33   ` Eugen Hristev
2023-01-27 13:37     ` Jagan Teki
2023-01-27 13:50       ` Eugen Hristev
2023-01-27 14:23         ` Jagan Teki
2023-01-27 15:19   ` Eugen Hristev
2023-01-25 22:27 ` [RFC PATCH 16/16] board: rockchip: Add Edgeble Neural Compute Module 6 Jagan Teki
2023-02-02  8:23   ` Eugen Hristev
2023-02-16  9:03     ` Jagan Teki
2023-01-25 22:47 ` [RFC PATCH 00/16] arm: Add Rockchip RK3588 support Jonas Karlman
2023-01-26 16:51   ` Jagan Teki
2023-01-26 16:58     ` Jonas Karlman
2023-01-26 17:42       ` Jagan Teki
2023-01-26 18:01         ` Jagan Teki
2023-01-26 18:04         ` Simon Glass
2023-01-26 18:26           ` Jagan Teki
2023-01-26 19:03             ` Jonas Karlman
2023-01-26 19:17               ` Jagan Teki
2023-01-26 22:16                 ` Jonas Karlman
2023-01-26 23:43                   ` Jonas Karlman
2023-01-27 13:21                     ` Jagan Teki
2023-01-29  9:04                       ` Jonas Karlman
2023-03-08  8:57                         ` Eugen Hristev
2023-03-12 22:34                           ` Jonas Karlman
2023-03-13  8:42                             ` Eugen Hristev
2023-03-13 10:00                               ` Jonas Karlman
2023-03-13 14:21                                 ` Eugen Hristev
2023-03-13 14:51                                   ` Eugen Hristev
2023-03-13 15:07                                   ` Mark Kettenis
2023-03-13 15:21                                     ` Eugen Hristev
2023-03-13 15:34                                       ` Mark Kettenis
2023-03-13 15:49                                         ` Eugen Hristev
2023-03-13 19:15                                           ` Jonas Karlman
2023-01-26 19:14             ` Simon Glass
2023-01-26 19:35               ` Jagan Teki
2023-01-29  9:47   ` Kever Yang
2023-01-29  9:58     ` Jonas Karlman
2023-01-30  0:55       ` Kever Yang
2023-01-30  5:19         ` Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230125222741.303259-11-jagan@edgeble.ai \
    --to=jagan@edgeble.ai \
    --cc=chenjh@rock-chips.com \
    --cc=fatorangecat@189.cn \
    --cc=kever.yang@rock-chips.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=sjg@chromium.org \
    --cc=steven.liu@rock-chips.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.