From patchwork Fri Aug 30 12:18:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172693 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp543690ily; Fri, 30 Aug 2019 05:18:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNupmCIyyz79nt/zAu+ZaDL5RgSdRwegdkSsJZlE7SItxnuXjAOBJ4ISCXqbFPGPA1cskY X-Received: by 2002:a17:902:fa5:: with SMTP id 34mr15663680plz.285.1567167535425; Fri, 30 Aug 2019 05:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567167535; cv=none; d=google.com; s=arc-20160816; b=pc0LTIjqBD2jc9RQqezkfe0UnV22YOdZQSO6VUKagSGr7YR8vwBAylCoc7urGHbcK3 jsTl2PPa40AAqt07kUP7eEmM5n20ajAH9t7bZRsbBDBIuui4JCf6tpr2wMtLoE9FQi6z yoPHeGxDLbvDMoglimYMQPRoOk/7Fk51ilz7oX0uGgT2/VCpQKC4Fp9LFdvbf3iTmTXT eXemCEPvYvtYuFyKFnJM1gJug3qb72upXuzN9MHYYNnBEJY+70JXgvkQUJNN1xU84od9 MWyjlgjIPY8sjXM2c3W2EaOyQdznG2gX1IqNkYtWh409bn0bfupF5wXB1QIKjHSIId49 BhXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=m5F7T0I8i9kVslFhvet0C2Cq/+ANjXtF6DL6MR2PLmI=; b=SumRGlCfXaNDYkWSYJnJPlLqKkLwTIOpFVRxXRvyyKDk24WBC2cB8c51fXbD5GbCgU HI0XIy9uwauhEUtbu4Yi8g19YPsl3MnV9gpT1i5fr05xtxvnOUp4f7R2jt4mcSWbFvsG 0R9rPkdqFhnqqGCQ+dNcL4tvgdxtIp9FwWp5/8Gx36xkjAir3v/9LbaGv6iokU0UcJmz /Rvt2iHdbPUdC//pvtlkJSU0+dFnIud/7km30YnByXcpeJ1moiD1tOH+3kDHix5I5Io1 LOZ7YceSj2hztrgF6M75895KDIJEHwM2PMuUyZ2OUjtsXxDt6CLFsRaFZ2a6iJcZ9L14 uOwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=X4lVSZbF; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r193si1886576pfr.27.2019.08.30.05.18.55; Fri, 30 Aug 2019 05:18:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=X4lVSZbF; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728157AbfH3MSy (ORCPT + 8 others); Fri, 30 Aug 2019 08:18:54 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39280 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727739AbfH3MSy (ORCPT ); Fri, 30 Aug 2019 08:18:54 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7UCIi0q119978; Fri, 30 Aug 2019 07:18:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1567167524; bh=m5F7T0I8i9kVslFhvet0C2Cq/+ANjXtF6DL6MR2PLmI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=X4lVSZbFHJa6bV8ehdf0y7ML+SrQVGW5w/d1sCo17kWjUasjyiWImc0dQg5r57r+K R7nwUiV79n8Vgq0u+oBbBiTfi41+GBp/yf80BISite3p1PAoyluDpZL4NY7dDWEkJz hqecFq0ZAs2tIpEExN+IiMHvyrNnkx1UtyFp3Suk= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7UCIiXS004799 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 30 Aug 2019 07:18:44 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 30 Aug 2019 07:18:44 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 30 Aug 2019 07:18:44 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7UCIP6O083824; Fri, 30 Aug 2019 07:18:42 -0500 From: Tero Kristo To: , , , , CC: , Subject: [PATCHv3 08/10] soc: ti: omap-prm: add dra7 PRM data Date: Fri, 30 Aug 2019 15:18:14 +0300 Message-ID: <20190830121816.30034-9-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190830121816.30034-1-t-kristo@ti.com> References: <20190830121816.30034-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add PRM instance data for dra7 family of SoCs. Initially this is just used to provide reset support. Signed-off-by: Tero Kristo --- drivers/soc/ti/omap_prm.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/soc/ti/omap_prm.c b/drivers/soc/ti/omap_prm.c index bc0933315484..bb03afe1a95c 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -87,6 +87,19 @@ static const struct omap_prm_data omap4_prm_data[] = { { }, }; +static const struct omap_prm_data dra7_prm_data[] = { + { .name = "dsp1", .base = 0x4ae06400, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_01 }, + { .name = "ipu", .base = 0x4ae06500, .rstctrl = 0x10, .rstst = 0x14, .clkdm_name = "ipu1", .rstmap = rst_map_012 }, + { .name = "core", .base = 0x4ae06700, .rstctrl = 0x210, .rstst = 0x214, .clkdm_name = "ipu2", .rstmap = rst_map_012 }, + { .name = "iva", .base = 0x4ae06f00, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_012 }, + { .name = "dsp2", .base = 0x4ae07b00, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_01 }, + { .name = "eve1", .base = 0x4ae07b40, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_01 }, + { .name = "eve2", .base = 0x4ae07b80, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_01 }, + { .name = "eve3", .base = 0x4ae07bc0, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_01 }, + { .name = "eve4", .base = 0x4ae07c00, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_01 }, + { }, +}; + static const struct omap_rst_map am3_per_rst_map[] = { { .rst = 1 }, { .rst = -1 }, @@ -107,6 +120,7 @@ static const struct omap_prm_data am3_prm_data[] = { static const struct of_device_id omap_prm_id_table[] = { { .compatible = "ti,omap4-prm-inst", .data = omap4_prm_data }, + { .compatible = "ti,dra7-prm-inst", .data = dra7_prm_data }, { .compatible = "ti,am3-prm-inst", .data = am3_prm_data }, { }, };