From patchwork Thu Sep 12 11:39:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 173694 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp2003870ilq; Thu, 12 Sep 2019 04:39:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXWLOPsOLtD29rFTwoWZ0fsxDdkqy8lVaQSpY6xPvvFhhPaSKc4aTcmjQ97w6p1er0Ny/3 X-Received: by 2002:a17:906:5393:: with SMTP id g19mr23942984ejo.256.1568288388939; Thu, 12 Sep 2019 04:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568288388; cv=none; d=google.com; s=arc-20160816; b=jaoGHtKIjHwRNQkLCtV2gfxRItBWE+zYS3JYM/Zp5m/+prK3e8qbxOCLhr/W0iN5RC 9JlQ6RXLgeClhsemZURDlwTUclgfiBD3jIgwSchse7/dAaG4NM/WolqrA989KrIGKGXn Nv+8W8RLvhhJza2GI0W/CoLanG2Oees9bz/kAbzvfxXPJ6OxxoWfUYTb8kcyR4xMi/De 0Ai7VXcyunPhcguOSsGc59EZOHlsLQKKO1SEmscMLjBTxEV6urKfgrmEewnVse54r3KY MIm2EILacV6GQDC3JdwVuJcyUcEOAAiy70w2Z6il07IYrNfAkCXaR/4ksyezu0NOl5Co tZOQ== 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=pt9ZUil/2B5wcm+TkD0BrIf3fmHoBR66aLscI2ljxIs=; b=tP/A4gVcI1iK3IW+uCK9akTk+oBgFuqlsOIhl/gGIOzD3la2DX0aspekHWTZrQ2ZxB YfP4dyWuIYJc34eHTbFiZWMRyl/NeaoyCeT7n1N3nufRFnUBJDc/I+y2zr2RUJ2Ng4mP 07/BL6W6G5Yd0lvuBxOh/Gx45HXM8fxzR65BlqUns3U3b+sLyA3PXDEOoVrtgejznJFo g0CvJwz/OojxZay9iSXZ83NAOvYNQzLBMf5YbbXuvCgyMjif3keVqzmwY2GJv23Lb4Wb ax+JsS8zC5oJ0eRsc8la1r15Tpo43m1Sv3uykm9g+XpbjtIGmdOP6uG87nW8LLqHWYNx oARA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=x5BkxIjN; 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 z20si8881422edq.250.2019.09.12.04.39.48; Thu, 12 Sep 2019 04:39:48 -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=x5BkxIjN; 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 S1731387AbfILLjs (ORCPT + 8 others); Thu, 12 Sep 2019 07:39:48 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:48314 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731376AbfILLjs (ORCPT ); Thu, 12 Sep 2019 07:39:48 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8CBddKa116594; Thu, 12 Sep 2019 06:39:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568288379; bh=pt9ZUil/2B5wcm+TkD0BrIf3fmHoBR66aLscI2ljxIs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=x5BkxIjNpWo0LzdhCZRuZYOOOcbNl5opx5CyOv1eXPEL0Eyl5y2W1DWIgOSklKufM RjivOfkXn7JgUVczxBFYKmylA/k/12O08NblNrvoQ2sVy0sbejsvMPawFJtulzP+NZ Flib08R5/rVUmIXY834pR4RVA0PevyZ5SqaloYTs= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8CBddaa007894 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Sep 2019 06:39:39 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 12 Sep 2019 06:39:39 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) 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; Thu, 12 Sep 2019 06:39:39 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8CBdKcw120606; Thu, 12 Sep 2019 06:39:37 -0500 From: Tero Kristo To: , , , , , CC: , Subject: [PATCHv5 07/10] soc: ti: omap-prm: add dra7 PRM data Date: Thu, 12 Sep 2019 14:39:13 +0300 Message-ID: <20190912113916.20093-8-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912113916.20093-1-t-kristo@ti.com> References: <20190912113916.20093-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 a5fde34f6afd..de11ce08ff7b 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -84,6 +84,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 }, @@ -104,6 +117,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 }, { }, };