From patchwork Mon Jun 17 07:32:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 654 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3F5A83F353 for ; Mon, 17 Jun 2019 09:40:58 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id a5sf5539369pla.3 for ; Mon, 17 Jun 2019 00:40:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560757257; cv=pass; d=google.com; s=arc-20160816; b=z9SvhDL6rsdPsEnNysT4wuu2jTQkJ166DHM0SQuyhLq/3pPmgbFKeU4f1IrA5CkNy+ DAxF8ErJut66X+vtZ6GLLlrYoyHpV/iz8qBAnZi6Abjk73ndQ5S+/MreDbFPydzIOdqB rwfzB0K9Fme6G3A3/VJhSaF/r+YUakzEpS4wHvd/wsDD5uDS/zYS1RDNqxONy/aX9bWP 29YBRFT7hN5lISLOMbq++8lqlsiKPJrFiq7wqS0TRTs04ko0Ccf5whC8uTeX8+CfnqSa k34tZMashk0ZzU3QPGgGWw1dUp5KW8Fzqf8bvobWgN1T3sc+7dUOXYMg2Q7Qc51U4hYi JMQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=3vEcTjnIfiM2WTCZBrGXJMl0P0io4rREaBpyvbjJD+o=; b=hOjylgvb3cVee7k+0vyKXYmeM9Ww4bAKXHNe/U83ALjzPfiFOmP43VsQ7laCfS2clQ VE1pjVNoJO4w9wkZMh+zA+34NBcK+KdvCNweqxTalkfMNfVHUHhAs+PPFJxwRmFkabWN Blhp3ch5DHVyry7xE9kOcVaegGlDWEgmFCh1vATOmsqkA4p/yHcvIf24y+zGFuH4n47n 9mcbDTprNsMyJyAnqVGxJfAlRPjAx6WfpDnOQijGl8dx8/rkBnRd6X59/YXcgEq7XIMX szGT9GWfw/Qqs98AKG9DsUk378QaShcyPG7MOX2f+QLzJZ+vOnCFUicsUFFwbIClfIL7 4ouA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=E5TjqQpt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=3vEcTjnIfiM2WTCZBrGXJMl0P0io4rREaBpyvbjJD+o=; b=fSVnuzew4jiUteXzKxEPRr96VHaeaufaXCD7s3bBf71dcl03R+y4+GGNr3wZRhiHki KQCsDrZLNLtoUbNK0HOUebt4i+bh9rs5MW1dQY/XMgdJjIymZ+goo9DrxNSiO5xIp2mM EMUyYGrVcrpkqSZoV944QY5OHah54B2wMPOrQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=3vEcTjnIfiM2WTCZBrGXJMl0P0io4rREaBpyvbjJD+o=; b=hGQAjO/i/BfEfkIeCeiIystsBoNaQLIyU2I5QG5cT5mUsIh+vJe8QN4HTdchxVi14+ c0zecQfqFU/hl3tEhV3jMi0UgnXwcgNnIp3/j7Yf0WHu49Zm6zfWkOLB7qcMG0Q19rE8 Xkukhx346TdzX5CKN2aIQALsyKt7EJxCYQEUKKirlcY77VpF6zPkH/lUP4pNKEbIk2ch RrsOqg/pXJQdVvw7fx8J5tsJdfzL63div9A7UFmkhhXL8MU7OrZyi6L6IyhLYm1/a2Dd YXXZnBl2d5WNo7c9Uv0dyIzYGTXLKRPE1bV+N2ja2JBTQMBdKIDZpFIl2Y8FMqJjGUJe +XrA== X-Gm-Message-State: APjAAAUd0h7rsXq+V2BvvAdZPEVOes15Sn6frqHNeE0b2YOXcDRvKN2r mTqhwz1SngCgKI0mbJvmTxNSi03z X-Google-Smtp-Source: APXvYqwWFEcuraF15n08uNq6VzoUTihgBg+/m+Cu8uqrZbEQUIPd+KEPZV7jUgVsuMcnYeE40H7pRQ== X-Received: by 2002:aa7:83d4:: with SMTP id j20mr115567572pfn.90.1560757257083; Mon, 17 Jun 2019 00:40:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:22cd:: with SMTP id s71ls3987251pjc.1.gmail; Mon, 17 Jun 2019 00:40:56 -0700 (PDT) X-Received: by 2002:a17:90a:9bc5:: with SMTP id b5mr24954649pjw.109.1560757256755; Mon, 17 Jun 2019 00:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560757256; cv=none; d=google.com; s=arc-20160816; b=Ih2mKrOzDjwsTlTAF5tk1xwJX+DjMUKqrv9DOwwQAtCf+cDDE24K9DBWdh8xMejTX9 9MbjeMkTpbAogOGGxgoIbpDRjeYe0b2/44CSoIjoAJvBEOAD8sFIrXs9p/zz9+MM39Mv HP1BP+6dm6IXCMirqSEJvvCBNzSXgD94rAFm7YQHJuZ3KsT7OnFi1ol0qS0obfBU0Bxi NWA/JUXnfIXXqy9/zMDUk818FRxkpbJtVH3AGje4vq+UUP8Y+HxJDUWNmAAMwEnHK2rq LnwI5zXWhofneX+VgC4BnC6KjMhXrSabZGPhfOGvUR06TS0Xsh6MQnnrnea7CRO5/YNM UCaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=3scj5tpu65v2n66++2cTbZLzQWWaAK5Y+ewcl6Aa8Eo=; b=QE8dcmR+KZ6WCo7qvZL0gs/GEiwGXCajHE8GMBkWhXOxWHuQefQH+OW0R3upjHkSRo hJYGLzcx3XcZbW32YVW+5lnkGbYwEi5elhIKJLj2zTYgm24ANr5KaZ90oH7inPwt0u75 6uhxIlTFS2AohE4ZXQHe/NyG1L+MVQ57cEb0pE+f8mlY6AB3kDX87J28DLNCZkMxuizj c9+JQH2X5O5zmjJmxgrGDeAK4NFDbB59z7PE5LB71SXsm+hZlkbLDN6b+4LhWpU1x/0E 8H5bYrrOjYLxOS1yCD3VReqz+sg6VCkw0BpZSjK8wuSRFJ7Q8qT6eNqmMG03TuZ9x1In HZHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=E5TjqQpt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id z25sor10202635pgv.71.2019.06.17.00.40.56 for (Google Transport Security); Mon, 17 Jun 2019 00:40:56 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:e502:: with SMTP id r2mr19502433pgh.261.1560757256451; Mon, 17 Jun 2019 00:40:56 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.245]) by smtp.gmail.com with ESMTPSA id m41sm15205998pje.18.2019.06.17.00.40.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 00:40:56 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: Manivannan Sadhasivam , gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 83/99] arm: include: rockchip: Add rk3399 pmu file Date: Mon, 17 Jun 2019 13:02:36 +0530 Message-Id: <20190617073252.27810-84-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190617073252.27810-1-jagan@amarulasolutions.com> References: <20190617073252.27810-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=E5TjqQpt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add pmu header file for rk3399 SoC, this will help to configure pmu in sdram driver. Signed-off-by: Jagan Teki Signed-off-by: YouMin Chen --- .../include/asm/arch-rockchip/pmu_rk3399.h | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 arch/arm/include/asm/arch-rockchip/pmu_rk3399.h diff --git a/arch/arm/include/asm/arch-rockchip/pmu_rk3399.h b/arch/arm/include/asm/arch-rockchip/pmu_rk3399.h new file mode 100644 index 0000000000..f1096dccce --- /dev/null +++ b/arch/arm/include/asm/arch-rockchip/pmu_rk3399.h @@ -0,0 +1,72 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2018 Rockchip Electronics Co., Ltd. + * + */ + +#ifndef __SOC_ROCKCHIP_RK3399_PMU_H__ +#define __SOC_ROCKCHIP_RK3399_PMU_H__ + +struct rk3399_pmu_regs { + u32 pmu_wakeup_cfg[5]; + u32 pmu_pwrdn_con; + u32 pmu_pwrdn_st; + u32 pmu_pll_con; + u32 pmu_pwrmode_con; + u32 pmu_sft_con; + u32 pmu_int_con; + u32 pmu_int_st; + u32 pmu_gpio0_pos_int_con; + u32 pmu_gpio0_net_int_con; + u32 pmu_gpio1_pos_int_con; + u32 pmu_gpio1_net_int_con; + u32 pmu_gpio0_pos_int_st; + u32 pmu_gpio0_net_int_st; + u32 pmu_gpio1_pos_int_st; + u32 pmu_gpio1_net_int_st; + u32 pmu_pwrdn_inten; + u32 pmu_pwrdn_status; + u32 pmu_wakeup_status; + u32 pmu_bus_clr; + u32 pmu_bus_idle_req; + u32 pmu_bus_idle_st; + u32 pmu_bus_idle_ack; + u32 pmu_cci500_con; + u32 pmu_adb400_con; + u32 pmu_adb400_st; + u32 pmu_power_st; + u32 pmu_core_pwr_st; + u32 pmu_osc_cnt; + u32 pmu_plllock_cnt; + u32 pmu_pllrst_cnt; + u32 pmu_stable_cnt; + u32 pmu_ddrio_pwron_cnt; + u32 pmu_wakeup_rst_clr_cnt; + u32 pmu_ddr_sref_st; + u32 pmu_scu_l_pwrdn_cnt; + u32 pmu_scu_l_pwrup_cnt; + u32 pmu_scu_b_pwrdn_cnt; + u32 pmu_scu_b_pwrup_cnt; + u32 pmu_gpu_pwrdn_cnt; + u32 pmu_gpu_pwrup_cnt; + u32 pmu_center_pwrdn_cnt; + u32 pmu_center_pwrup_cnt; + u32 pmu_timeout_cnt; + u32 pmu_cpu0apm_con; + u32 pmu_cpu1apm_con; + u32 pmu_cpu2apm_con; + u32 pmu_cpu3apm_con; + u32 pmu_cpu0bpm_con; + u32 pmu_cpu1bpm_con; + u32 pmu_noc_auto_ena; + u32 pmu_pwrdn_con1; + u32 reserved0[0x4]; + u32 pmu_sys_reg_reg0; + u32 pmu_sys_reg_reg1; + u32 pmu_sys_reg_reg2; + u32 pmu_sys_reg_reg3; +}; + +check_member(rk3399_pmu_regs, pmu_sys_reg_reg3, 0xfc); + +#endif /* __SOC_ROCKCHIP_RK3399_PMU_H__ */