linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: afaerber@suse.de (Andreas Färber)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 7/8] soc: actions: sps: Add S700
Date: Tue, 14 Nov 2017 00:34:26 +0100	[thread overview]
Message-ID: <20171113233427.5386-8-afaerber@suse.de> (raw)
In-Reply-To: <20171113233427.5386-1-afaerber@suse.de>

Add power domains for S700 SoC.

Signed-off-by: Andreas F?rber <afaerber@suse.de>
---
 v2: New
 
 drivers/soc/actions/owl-sps.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/drivers/soc/actions/owl-sps.c b/drivers/soc/actions/owl-sps.c
index 875225bfa21c..8477f0f18e24 100644
--- a/drivers/soc/actions/owl-sps.c
+++ b/drivers/soc/actions/owl-sps.c
@@ -17,6 +17,7 @@
 #include <linux/pm_domain.h>
 #include <linux/soc/actions/owl-sps.h>
 #include <dt-bindings/power/owl-s500-powergate.h>
+#include <dt-bindings/power/owl-s700-powergate.h>
 
 struct owl_sps_domain_info {
 	const char *name;
@@ -203,8 +204,49 @@ static const struct owl_sps_info s500_sps_info = {
 	.domains = s500_sps_domains,
 };
 
+static const struct owl_sps_domain_info s700_sps_domains[] = {
+	[S700_PD_VDE] = {
+		.name = "VDE",
+		.pwr_bit = 0,
+	},
+	[S700_PD_VCE_SI] = {
+		.name = "VCE_SI",
+		.pwr_bit = 1,
+	},
+	[S700_PD_USB2_1] = {
+		.name = "USB2_1",
+		.pwr_bit = 2,
+	},
+	[S700_PD_HDE] = {
+		.name = "HDE",
+		.pwr_bit = 7,
+	},
+	[S700_PD_DMA] = {
+		.name = "DMA",
+		.pwr_bit = 8,
+	},
+	[S700_PD_DS] = {
+		.name = "DS",
+		.pwr_bit = 9,
+	},
+	[S700_PD_USB3] = {
+		.name = "USB3",
+		.pwr_bit = 10,
+	},
+	[S700_PD_USB2_0] = {
+		.name = "USB2_0",
+		.pwr_bit = 11,
+	},
+};
+
+static const struct owl_sps_info s700_sps_info = {
+	.num_domains = ARRAY_SIZE(s700_sps_domains),
+	.domains = s700_sps_domains,
+};
+
 static const struct of_device_id owl_sps_of_matches[] = {
 	{ .compatible = "actions,s500-sps", .data = &s500_sps_info },
+	{ .compatible = "actions,s700-sps", .data = &s700_sps_info },
 	{ }
 };
 
-- 
2.13.6

  parent reply	other threads:[~2017-11-13 23:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-13 23:34 [PATCH v2 0/8] arm64: Add initial Actions Semi S700 and CubieBoard7 support Andreas Färber
2017-11-13 23:34 ` [PATCH v2 1/8] dt-bindings: arm: actions: Add S700 and CubieBoard7 Andreas Färber
2017-11-16 14:03   ` Andreas Färber
2017-11-13 23:34 ` [PATCH v2 2/8] dt-bindings: timer: Add Actions Semi S700 Andreas Färber
2017-12-07 13:15   ` Daniel Lezcano
2017-11-13 23:34 ` [PATCH v2 3/8] clocksource: owl: Adopt TIMER_OF_DECLARE() Andreas Färber
2017-12-07 13:15   ` Daniel Lezcano
2017-11-13 23:34 ` [PATCH v2 4/8] clocksource: owl: Prepare S700 Andreas Färber
2017-12-04 23:00   ` Andreas Färber
2017-12-07  9:23     ` Daniel Lezcano
2017-12-07 12:47       ` Andreas Färber
2017-12-07 13:11         ` Daniel Lezcano
2017-12-07 13:16           ` Andreas Färber
2017-12-07 13:16   ` Daniel Lezcano
2017-11-13 23:34 ` [PATCH v2 5/8] arm64: dts: actions: Add S700 and CubieBoard7 Andreas Färber
2017-12-22 10:10   ` Andreas Färber
2017-11-13 23:34 ` [PATCH v2 6/8] dt-bindings: power: Add Actions Semi S700 SPS Andreas Färber
2017-11-16  4:35   ` Rob Herring
2017-11-16 13:42     ` Andreas Färber
2017-11-13 23:34 ` Andreas Färber [this message]
2017-11-16 14:05   ` [PATCH v2 7/8] soc: actions: sps: Add S700 Andreas Färber
2017-11-13 23:34 ` [PATCH v2 8/8] arm64: dts: actions: Add S700 SPS node Andreas Färber
2017-11-16 14:16   ` Andreas Färber
2017-12-07  9:20 ` [PATCH v2 0/8] arm64: Add initial Actions Semi S700 and CubieBoard7 support Daniel Lezcano
2017-12-07 11:30   ` Andreas Färber

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=20171113233427.5386-8-afaerber@suse.de \
    --to=afaerber@suse.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).