From patchwork Tue Jun 11 14:51:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 530 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 06F7D3F08A for ; Tue, 11 Jun 2019 16:57:05 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id x9sf9761244pfm.16 for ; Tue, 11 Jun 2019 07:57:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560265023; cv=pass; d=google.com; s=arc-20160816; b=fl7UauvNYe8GDshaAGbfeVyyP01+pgkfRD7hHWsEGkNSJ968e6YhXS+y8X5+BcTkcr AqS8vBPaAZo7m3qcFmqfLx4QlA+xq053zyrSooIMubisyNMwJQdFznfFCEaJ7kzy5RQj GRDLL1GD23gYDbw8NuSin1sBUhWmINW1KvcrqB57AHMjtoJKKV6AqJJhDA7xsdzG2tmu IiYYQUuhZ5a+dXeT5XEqQyAcMs3lBg/bGLNN0l0GyM2TSH1ZlqBVjtyg736gpqZN5ZsO HnH/7dzbsYDOtagvOU4yMW7JLAJYB9O+3mMN7m/5b0O54d0ijCr5dr4a8Uj6o1zwX2I+ jzYw== 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=sBIgsyoqY6yuOUizIMat8e1Wf7eim1b4dLIpO8DZzew9I+F90HJSWJlfjfV8rhY/JD 4jxd03q1sy8RYgBeNzsqo19WcHji/FWaqHJjcOPtcIvoVZc/QCUk1GIs9K4vyU8Pc/Ep 6QDE13+L+rIc5flx42H3OicKWYeEs4Nj4XAuOhnWPhbw0MJexOPrpPVU7wRLGEdys98Y zs4iwb1pIFZfArNyGjIj0Wmh2MYVGT32kacCW3G9rRh/XkKq2CkmltQjUWYXGaTKw8bU vBtOXUkSG8ra0k6wbDDcrTTAf50ZpgtGa9T5zne4b4HSWNXyWJKWBpkw/A0lXc89Mz5C ubAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Aa4i2TFy; 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=MsbyxeZLvBFFRSYD0wqpAW36YBZqykMUWP4arZGw53zlQaFeuP3Q7TPNjuvlU2EqF+ SQl4fIYXTazpi5qaGQ/1kHE5rNvRUWjfJPd0813OBWlXCEhUbwT7YVJ/XXajRYiIJ7tH llH1IlRxnirVXPmrv3x0em3/FZxhK8ETGk14Q= 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=D6hSjJ46+buDPVlr9Xafd4hnTyMFA6Y53rPE0Wqrer3PKk2cSKrUwcWpVMCRb3wSxA 9QtEFlL77f9KpcpqtkVGGpjrKCV6FGhfaF9j/lczjrpY2PYWO9ms8Oabx/kQl7MaBnn1 gglw7sZjYIlrAjVKHoFYPokw9afSj4gclRJyRtitbQI0wYb/1QsJYZWYF6mukzYSa9Pg MlMSC4Wt29hycO/3/OSfjzIOfhwKkOf7MKGCjh5/tRjB8q7sNWz8JDzKl5BFJjRkX7Zh pqo2aub4IZ4CfXcdUsOhPHn+Co/o9Lpq3AfuHF9NdCwpr9+9yRxsa6RVbhLWDmkuoR7U y14Q== X-Gm-Message-State: APjAAAVdY7OqF9v9qhMNzVH+Lw0gSR4smokAHDXFpRNaC2GNI+vbgGRI phRnLSRb9T6kmy6Gi3syypvKsFjz X-Google-Smtp-Source: APXvYqyiep+gjwsqBSyxE18BISN/jg3BBnVBEHbK5MkuoaNCl/Drn7M2tkuIeQIWfrvjoMsy0lt4qw== X-Received: by 2002:a62:5cc6:: with SMTP id q189mr80372772pfb.114.1560265023842; Tue, 11 Jun 2019 07:57:03 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:32d:: with SMTP id 42ls4892775pld.11.gmail; Tue, 11 Jun 2019 07:57:03 -0700 (PDT) X-Received: by 2002:a17:90a:9bca:: with SMTP id b10mr26566556pjw.90.1560265023515; Tue, 11 Jun 2019 07:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560265023; cv=none; d=google.com; s=arc-20160816; b=nODGO1ZiR/7ZQ5YPorMTwPG6rzR3zQ4i1L+VS00NwitGanUovT4EIjj+Gdhr92iwgN +yI2hRZO/KlK8YXj5DAdk6710G3Ufngq11IRp1fUN3HIrpv254ypNNKhjNTAAPdJI0xl alWquopz9YjouOzIBEcIxnqk944RwUvoZHV/oHeYH9xeugSA5wU90KVfk/G+SO1etLUT 5OP3RCrlZFSeQ+C+xwWTJdLiuy0QIuPIdUiK/CMYTGLTt4Ulm+NVarFBrjebZEIdo8VP f0lRzy5juzFIz0qNGxgsjWKGSzN97Nd4HQdpgJQapaU9hzvZGjuhHvJj5csUPcn8y7QQ c4yg== 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=dP+lVwYCY8cnfcHZCOOiX6cxglECYHt5MLabQ/yFBrNqLgQBNEkZAIomrOHd70NdWU U0gE1xqsSGarktWuFXq0vmhZEhkCjumuKyxKsX5AcQdFH6XlhMFN7mXAVyEraiRCV6fW CgZMAGtQ5wuOeZkY3SHrZhOIDrtiOSTIOxXn1BeeUKyHDT4AcsmuxLU+gbnlLCTCE/iz CTA4Hr3dsBfUnRBLY/hE2RAfpZW5V8Uti3kTJZ4T5Kd8LhBMVwFtBp4zudlpxlakJlel CmoVvYi8MuFaGjEzn2evKei7VQFpk0wpWCnH2KfpMjmTB97lEvhfSr8dLATzVQ2vhRPO EGfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Aa4i2TFy; 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 v196sor6662730pgb.58.2019.06.11.07.57.03 for (Google Transport Security); Tue, 11 Jun 2019 07:57:03 -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:1516:: with SMTP id v22mr21201453pgl.204.1560265023084; Tue, 11 Jun 2019 07:57:03 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.56.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:57:02 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 79/92] arm: include: rockchip: Add rk3399 pmu file Date: Tue, 11 Jun 2019 20:21:22 +0530 Message-Id: <20190611145135.21399-80-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190611145135.21399-1-jagan@amarulasolutions.com> References: <20190611145135.21399-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=Aa4i2TFy; 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__ */