From patchwork Mon Nov 13 23:34:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 118830 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2373184qgn; Mon, 13 Nov 2017 15:35:32 -0800 (PST) X-Google-Smtp-Source: AGs4zMZSbu6x5xFejzuBOsmL9Gka08w4SWaEhGXZv9/CFMj4MxDw3XToBEiBJP/pNaX949h2Idr/ X-Received: by 10.101.75.204 with SMTP id p12mr10300369pgr.61.1510616132539; Mon, 13 Nov 2017 15:35:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510616132; cv=none; d=google.com; s=arc-20160816; b=jj2IqzEuUlw8zR3NRA0h4+JzMgT7qR2K70b1ZgCLiWWyXc/+DpQBsbYyXBz9XgpC2m mQwqlFaGJwqOTYPZyfD/IpyF5GjqaWblu0pF+hOZ9gC0OhJDUxZ0mKqxf67cqTo5X60e xQgGB5TkkLhWzUGMlXEKW2GUQzFbuaJH7jcfGG1VdoUJg3450ee2FwY7epYnaqaiVWGA 0XXveGitf6ZpSEcxbS6tvOE7HY0GSjrEaWppFcaH61wBxqm6zt7vbCBClb4uJ85tZbbl EUPwOm/iAIB9KzTkvpsEm9UxqSpFzHtKFg91zKlmeLCBNA2kP4Pt1nKjWsWOquzyqkj2 Ge2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=DxzENWlzdY/VNmr3sXwJfzXNYjMk4Ef/I1j8gVIEesY=; b=v88OeXXloIZdkTAT9vZBS4JPmb7eTElEKkRsigmpsFRcM3Bh4EN5h6dOdnCVSSsjy9 kW06tdQ6X6UbTzGo5F/OJPyRQHJ/M0TFmNR1N15XB+WECUHXQOY5jQap4KQ1XJIchkbH mG6LWqyZLLD1sN8a6QD8PE7wCCRkPGHs6J7zkWTo58/r4ZhJgOm29rJnXDnbcNF2H09n 2CG06oAIwQx2Wg02XsTBuyQvJJz7JR/uXcU3TS2+CkECq6P5nQRAoOekkI0Q3GAw1Fb8 P3rDysIR2QEUs2cSwhKBGeaz8ym/LrtT2+mY3yQ0jfMf/I0vCaYF8FW6mDo3U4QlCAuR bD+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si7646595plt.416.2017.11.13.15.35.32; Mon, 13 Nov 2017 15:35:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbdKMXf3 (ORCPT + 27 others); Mon, 13 Nov 2017 18:35:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:59428 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbdKMXei (ORCPT ); Mon, 13 Nov 2017 18:34:38 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 27E85ACFC; Mon, 13 Nov 2017 23:34:37 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-arm-kernel@lists.infradead.org Cc: Thomas Liau , Jeff Chen , =?utf-8?b?5byg5Lic6aOO?= , =?utf-8?b?5YiY54Kc?= , =?utf-8?b?5byg5aSp55uK?= , =?utf-8?b?5qKF5Yip?= , support@cubietech.com, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH v2 7/8] soc: actions: sps: Add S700 Date: Tue, 14 Nov 2017 00:34:26 +0100 Message-Id: <20171113233427.5386-8-afaerber@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171113233427.5386-1-afaerber@suse.de> References: <20171113233427.5386-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add power domains for S700 SoC. Signed-off-by: Andreas Färber --- v2: New drivers/soc/actions/owl-sps.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) -- 2.13.6 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 #include #include +#include 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 }, { } };