From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 875FEC54E94 for ; Wed, 25 Jan 2023 22:28:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 89DF78571A; Wed, 25 Jan 2023 23:28:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=edgeble.ai Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=edgeble-ai.20210112.gappssmtp.com header.i=@edgeble-ai.20210112.gappssmtp.com header.b="ofhtLO+W"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 38BC3856C7; Wed, 25 Jan 2023 23:28:05 +0100 (CET) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C3C49856C5 for ; Wed, 25 Jan 2023 23:27:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=edgeble.ai Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jagan@edgeble.ai Received: by mail-pj1-x1034.google.com with SMTP id x2-20020a17090a46c200b002295ca9855aso3596034pjg.2 for ; Wed, 25 Jan 2023 14:27:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XHVsN/4i9yM0o+doF5XrRVvEdfoF2t3gkdpKaAg2n/g=; b=ofhtLO+WAVqDTfLz+h9PSh/uJdEqm2O9mOsyn/A2LCsu1u2pX2BHLKvPf4kCzXjIzw /W8ilizyMH+SfTjlGE9sCLQMTh1focr6a8XxymoaqJ2x9FYJQ7dRkmyBOuYllBQT+gkk zYoxz+tu1hg3wyJkHvDWwqd1WUyLvCVtVf7IqIpT4ebN9wvu0XwI21sLT4g6msRgRxvh QwzFqBPKMwd5BXIS8vU8XkdRgF5lKynxVgcgQmYsY+CAFCYK9xISoXrr3fGqilb/UzDM kdBJCXX29cm80sMOP3HVbR1S1c523/kXcJZtzQGliIog4QEs/AmbHll7LtmIWV5lHr8z fovw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XHVsN/4i9yM0o+doF5XrRVvEdfoF2t3gkdpKaAg2n/g=; b=Gabi7XcDbvEZsaI/VqxDQeqhN1FNgU1cJ7AwLQEG0YAJxScEQO9uG1UlCp08CGrtrt G1XyYZ1bCcDliSZPaRK6qT6zKN0QhckoEYIEtgfBeDEvb14eXI3p45c6QMO44LVLMOUu mIWrg8OK41fHTLvAk4UIcXXSBDyxwnIeQRMsnQfJIgfCa4uDGOe9K8T+9BNVQ30+s+/d 2bG6oJK+63f2BfyueMIJsyO+KNRWLKRLS683ceS1RNbjs/zpA6UwWu+Uws1RYF/Ea4B1 c+zHbEvIsgCARe4FmcPqJg3fcYqpl7I7OozA8XlM2Be0tocKrpcMPBgK36ELZUuOi8kg vjnw== X-Gm-Message-State: AFqh2koF35DWaPMXXR8QzYQHMBl4ha1cpyMlL5V7L5bUNhKEsMSXiEVO F4BFmJ6ar+8faBFljd8VY+Ha6w== X-Google-Smtp-Source: AMrXdXvFbU8C9q9zQi7y5rFgmSeQfhMyk4/fv0EjIrIjpz1V716jec52hYzeURqsPNTSwsZMADsveA== X-Received: by 2002:a05:6a21:9012:b0:b9:2705:4e46 with SMTP id tq18-20020a056a21901200b000b927054e46mr25618155pzb.22.1674685676794; Wed, 25 Jan 2023 14:27:56 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a238:3cb1:2156:ef87:8af5]) by smtp.gmail.com with ESMTPSA id u26-20020a62d45a000000b0058bb0b8750csm4134647pfl.88.2023.01.25.14.27.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 14:27:56 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , fatorangecat@189.cn Cc: u-boot@lists.denx.de, Jagan Teki Subject: [RFC PATCH 03/16] arm: rockchip: Add grf header for rk3588 Date: Thu, 26 Jan 2023 03:57:28 +0530 Message-Id: <20230125222741.303259-4-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125222741.303259-1-jagan@edgeble.ai> References: <20230125222741.303259-1-jagan@edgeble.ai> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Add GRF header for Rockchip RK3588. Signed-off-by: Jagan Teki --- .../include/asm/arch-rockchip/grf_rk3588.h | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 arch/arm/include/asm/arch-rockchip/grf_rk3588.h diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3588.h b/arch/arm/include/asm/arch-rockchip/grf_rk3588.h new file mode 100644 index 0000000000..e0694068bb --- /dev/null +++ b/arch/arm/include/asm/arch-rockchip/grf_rk3588.h @@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2021 Rockchip Electronics Co., Ltd + */ + +#ifndef __SOC_ROCKCHIP_RK3588_GRF_H__ +#define __SOC_ROCKCHIP_RK3588_GRF_H__ + +struct rk3588_pmu1grf { + unsigned int soc_con[12]; + unsigned int reserved0[(0x0050 - 0x002c) / 4 - 1]; + unsigned int biu_con; + unsigned int biu_sts; + unsigned int reserved1[(0x0060 - 0x0054) / 4 - 1]; + unsigned int soc_sts; + unsigned int reserved2[(0x0080 - 0x0060) / 4 - 1]; + unsigned int mem_con[4]; + unsigned int reserved3[(0x0200 - 0x008c) / 4 - 1]; + unsigned int os_reg[8]; + unsigned int reserved4[(0x0230 - 0x021c) / 4 - 1]; + unsigned int rst_sts; + unsigned int rst_clr; + unsigned int reserved5[(0x0380 - 0x0234) / 4 - 1]; + unsigned int sd_detect_con; + unsigned int reserved6[(0x0390 - 0x0380) / 4 - 1]; + unsigned int sd_detect_sts; + unsigned int reserved7[(0x03a0 - 0x0390) / 4 - 1]; + unsigned int sd_detect_clr; + unsigned int reserved8[(0x03b0 - 0x03a0) / 4 - 1]; + unsigned int sd_detect_cnt; +}; + +check_member(rk3588_pmu1grf, sd_detect_cnt, 0x03b0); + +#endif /*__SOC_ROCKCHIP_RK3588_GRF_H__ */ -- 2.25.1