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 14E59C54EAA for ; Mon, 30 Jan 2023 15:05:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D827C8583E; Mon, 30 Jan 2023 16:02:53 +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="fcim96oO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB8E585839; Mon, 30 Jan 2023 15:58:26 +0100 (CET) Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (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 8B85B8584D for ; Mon, 30 Jan 2023 15:58:18 +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-pl1-x62d.google.com with SMTP id z1so4345299plg.6 for ; Mon, 30 Jan 2023 06:58:18 -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=fcim96oOzKmGjhBY+oqSGwu9G4bI4HHFP1tC1hjGg04a0FyCtc3xMfxq9y1y+rNrfp 4D9b8wygAtQ60llF/hgHPK6IW+650gfhV5wI/qeUjqQ95ZZSs+baQGur4fYSwzQVU2RH en+tZvk+7FoGJh9zX+etyHiYMFeh2rOvySiZi6niyJuucTDEGnMt6NnKyns2lTqQIAIe RbUTLDq7H4IGME+3YgexqkMMpoCD8LRlO0ZO85wt3HTITfNJSv8ZsKcUCWlvmPZZLvCe 9/IoaVPkbzDEcbBHvOtCV2UJdcSnGqLpRTKvwMmVvwZCrr7AOb8RCldJlgvhLfWVMXen qoBA== 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=1jFKIoyHTzBsJSPImWMErNzEguy3vmRkVMYnXBNVOGXn5ztn0Yjy9LE2cLAiwNsYnq xX4jBUtXaC+mUeDLlJsoK3dw9avxXLx2rajwPIFfSVXQPrwzfki46T8awAZLv8QIpN2L zQAzpK77nLSnQECPaA0W+CeDBvSPgLsAE6yA+j41SrRSQVnNGKYjk048j1sZ7ODKGQEU A4sFUBF3BZm1kl0d3dy0bVRskQuwcuN6+fGvZxOHwWacOBX8amzX+KPcfZeXHDLlqieH i+J2wertQvCazsRzjkMsretyh2+Z7voQoAry8k/XuffrsSb3gyKI8RDUe50Xl7NopFgl 9ecA== X-Gm-Message-State: AO0yUKUZW/SMYoVLDQldWHKPSIiEISB850JiKyX6wwBDg9YoR5eOpCg6 izlnenqqrTzCVWwqYm6BCStrTw== X-Google-Smtp-Source: AK7set+u6WkLiOu2nNp0olgEmu3Jkj1qygA5PeGV6X0Ng/iTY6phkM95xymhKGh5rGKkgCW/x6/Sqw== X-Received: by 2002:a05:6a20:441a:b0:be:9142:737a with SMTP id ce26-20020a056a20441a00b000be9142737amr1029635pzb.56.1675090696934; Mon, 30 Jan 2023 06:58:16 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a238:7d50:367e:d8d1:8afd]) by smtp.gmail.com with ESMTPSA id q19-20020a656853000000b004d09bbd023csm6916127pgt.88.2023.01.30.06.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 06:58:16 -0800 (PST) From: Jagan Teki To: Kever Yang , Jonas Karlman , Simon Glass , Philipp Tomsich , fatorangecat@189.cn Cc: u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v1 03/18] arm: rockchip: Add grf header for rk3588 Date: Mon, 30 Jan 2023 20:27:34 +0530 Message-Id: <20230130145749.177515-4-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230130145749.177515-1-jagan@edgeble.ai> References: <20230130145749.177515-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