Received: by 10.192.165.156 with SMTP id m28csp950195imm; Wed, 11 Apr 2018 09:45:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49KuVjZnxpHMohJDsMY2TdiTjrdg7vfoV1o+PSGClt5BzEi5UqN0Bja/YaY7fqXj0hUJIWq X-Received: by 10.101.75.81 with SMTP id k17mr4059999pgt.335.1523465136659; Wed, 11 Apr 2018 09:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523465136; cv=none; d=google.com; s=arc-20160816; b=yZbq+KVqI2j4YTUjY+pFU8H3P//Ak7Dey++UYSoIuGmf/N/jM2KRYizEeHqfNBzWGX mQ8T32Q7/s+ywU+ZiHWJp7pXGQBVHuwSGg1Q16G0crrkTZ+l1bYNq94eUJDcn4eiq2Bn dMgGdvswMBzxbg4i/rO1HDjrHin6z+1M1GhbbqqWRr/PRjW0oAIYN60+kU2reeiaHNDK 9zf6xt40eFFeBY6syqn+FvYryaprQQ6Xl45VtLi9/h6AFtvtDviH39CQ6Q6/8e52VKWH KcIglRMG2u2rhBtzlfg0WUOL7VkGcMMoTGqM2x8zY6q/4jwHNBh2CAxS9AheXXmPBqFv S8Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=duXBi7ytN2M5Np9UXUthzyGMNoE1ArSrXMXbpwncKDw=; b=nSgRYiXrQNbGsGYLb/xo/D+sJO9iQYBgkwb4FL3lvy1B2YVfqh6jst8MIjr3uRGPbo 0NNiZlTpdxavUOUk2z04Ta0oc956IWC3GVz/acVrB0UEwNeV+uNL0cXY5pxy9RP2JmXk Vu+Fdk0pa60K9wN9ySza+xcK4+FMAmdKPiWCfTMze1Y7NlRf23/NuPUKPBnes4UaJynx zWqk4Evk2BqHqXZtVPUh88Jlu0sL/TtVrRudwjfvSKiR95n2v7bkAcv/XPD7FYeLxOIn LS8Z2ltykMqrkmKm9U+xJmrACesVQNEz9hvez1501YhHzpvwm5EO/vjBd4ND1q9xB6x2 OwCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VLQV5MFM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n86si1172305pfb.126.2018.04.11.09.44.59; Wed, 11 Apr 2018 09:45:36 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=VLQV5MFM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754048AbeDKQly (ORCPT + 99 others); Wed, 11 Apr 2018 12:41:54 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:41081 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754032AbeDKQlu (ORCPT ); Wed, 11 Apr 2018 12:41:50 -0400 Received: by mail-pf0-f195.google.com with SMTP id a2so1196475pff.8 for ; Wed, 11 Apr 2018 09:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=duXBi7ytN2M5Np9UXUthzyGMNoE1ArSrXMXbpwncKDw=; b=VLQV5MFMwBGbvNd397XeVu5+mT/gmiCdH7AowckAXbsMOF9VxexDfCqeN/sf3NePGR PbOii6QiwdOMj9ThetuGMwXyLlkeZvwA0tYKAF9R5FL9qApt8HBTseA4JdxPloI9V789 DjfyslFNrGMDLJj9kpUl/7UU7wLtbfUJwpwNM= 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; bh=duXBi7ytN2M5Np9UXUthzyGMNoE1ArSrXMXbpwncKDw=; b=h0h5iMhWphBDONxrQ9l8zU9nvNX3awuwHFZSZLZiDd2L5JVJHVjomwgdyhi4ssifkc IVTyOTQojJkYhUM7E8zWO1jGsjb0G2dc0tkPf31o5fE/V9WiAEP08F4uJ2O5TDDQV+uy 39Xlq6X2zdRYHNodgqdP5gictv5QHI7hDFH1tlLimEPH8od0Q1+crq1hqs+9xOTj5UCI mHlFKYAi7JDswxwcm8NhDLrgbK5FG+3/sPqtazGiy1IOLorCG3Z2AUXI5QBZErJuWESU MVqzztr99h33nMCQIIi/Zdfjqy2ieICDy16ANlU2GzqB35hTk0D6bNLyFhfjALAfmcO2 t0pg== X-Gm-Message-State: ALQs6tDSCFZ1pZr+kw6fjWUPwWNVo2Dl7dufP5yjfWxlTx+qhDL9nSzx Bz7qrz5p4c+EBK5XfNCxJb5i X-Received: by 10.98.10.23 with SMTP id s23mr4696551pfi.204.1523464909711; Wed, 11 Apr 2018 09:41:49 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7003:60a7:ecd4:48:c695:bedb]) by smtp.gmail.com with ESMTPSA id r20sm4864554pff.165.2018.04.11.09.41.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 09:41:49 -0700 (PDT) From: Manivannan Sadhasivam To: afaerber@suse.de, robh+dt@kernel.org Cc: liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, manivannanece23@gmail.com, Manivannan Sadhasivam Subject: [PATCH 3/4] soc: actions: sps: Add S900 power domains Date: Wed, 11 Apr 2018 22:10:35 +0530 Message-Id: <20180411164036.8046-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180411164036.8046-1-manivannan.sadhasivam@linaro.org> References: <20180411164036.8046-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add power domains for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- drivers/soc/actions/owl-sps.c | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/drivers/soc/actions/owl-sps.c b/drivers/soc/actions/owl-sps.c index 38b276e6f319..f6445d671f22 100644 --- a/drivers/soc/actions/owl-sps.c +++ b/drivers/soc/actions/owl-sps.c @@ -14,6 +14,7 @@ #include #include #include +#include struct owl_sps_domain_info { const char *name; @@ -240,9 +241,66 @@ static const struct owl_sps_info s700_sps_info = { .domains = s700_sps_domains, }; +static const struct owl_sps_domain_info s900_sps_domains[] = { + [S900_PD_GPU_B] = { + .name = "GPU_B", + .pwr_bit = 3, + }, + [S900_PD_VCE] = { + .name = "VCE", + .pwr_bit = 4, + }, + [S900_PD_SENSOR] = { + .name = "SENSOR", + .pwr_bit = 5, + }, + [S900_PD_VDE] = { + .name = "VDE", + .pwr_bit = 6, + }, + [S900_PD_HDE] = { + .name = "HDE", + .pwr_bit = 7, + }, + [S900_PD_USB3] = { + .name = "USB3", + .pwr_bit = 8, + }, + [S900_PD_DDR0] = { + .name = "DDR0", + .pwr_bit = 9, + }, + [S900_PD_DDR1] = { + .name = "DDR1", + .pwr_bit = 10, + }, + [S900_PD_DE] = { + .name = "DE", + .pwr_bit = 13, + }, + [S900_PD_NAND] = { + .name = "NAND", + .pwr_bit = 14, + }, + [S900_PD_USB2_H0] = { + .name = "USB2_H0", + .pwr_bit = 15, + }, + [S900_PD_USB2_H1] = { + .name = "USB2_H1", + .pwr_bit = 16, + }, +}; + +static const struct owl_sps_info s900_sps_info = { + .num_domains = ARRAY_SIZE(s900_sps_domains), + .domains = s900_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 }, + { .compatible = "actions,s900-sps", .data = &s900_sps_info }, { } }; -- 2.14.1