From patchwork Thu Sep 12 11:39:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 173696 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp2003980ilq; Thu, 12 Sep 2019 04:39:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzf7/qTK+A9VzrsnEMZUH6TtSyc632e1Oor+2rAWpUie0+H+v5G0nh46juUnJLg8joh+Pc8 X-Received: by 2002:a17:906:85c8:: with SMTP id i8mr34304273ejy.178.1568288395469; Thu, 12 Sep 2019 04:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568288395; cv=none; d=google.com; s=arc-20160816; b=RCy/HXSgLkUovCfWYB7jbFktIw0t+81IQgeDqpdClk0M6s223x8PdOZvhVQKOA1FND v2JqgfF8aDWyAK4wD/KM8017knI/WcniWaCb397q/oHsQ5LGw8Su+o+kRyEFFD+5fO+U PLtAQksMUDnoDwNHzsJDKeayRqMe1ASEYKnO93iSpp924jHgZ5On/lpAycoxF6E8P+kA whYqkciP147HSGg5e4Geac5jWOvVoxqrRiXtweFjGTFwq9QHht+eFuo5ONj0je11AJdz PCTRZSCOjeZmHDt43hyno4gctfpwK+2+9nZe8jDIqDdLlGp3fz/yLTah2VgwYn8xwSi0 4b7g== 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=fLZbcw5wepXuSeFrsWtd637NuzfIOkB+KDiZWWlKW2M=; b=EgI40BUYdBECPqlJti/vok5tHNTm548DAgqCWzGe/u4rb6BUSGEWtFIVZpNjr8Jddc oJKgTnlFhGyE6lmdqOVrVW2p0d2qMrsOGlQGcgUm5jLMY8fgMBF8zGrVY8I3F5oBRf4P chghFPNigyMJuf8vOyQRR1yaP5dM+TRdyGJXo5XGHEWqcOD3Olo6pAv8atDb5EU6Ngsj LnGPNY+Gw/jw7RIx0fIRl4uoE7WevidzpcA0UwBdaFJxUuY7vNBBqPba8ZYZp9ljZLJb vgH//6PRXAmrDQ4XV1UNs3hSOsTw4iBbFh6gXD2cO1/oDcEWvpKvnwdPmWrhhzgYqr11 0//w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="OJy/BAwd"; 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 c12si14652476edb.394.2019.09.12.04.39.55; Thu, 12 Sep 2019 04:39: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="OJy/BAwd"; 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 S1731422AbfILLjv (ORCPT + 8 others); Thu, 12 Sep 2019 07:39:51 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:47890 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731375AbfILLjv (ORCPT ); Thu, 12 Sep 2019 07:39:51 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8CBdiKf074127; Thu, 12 Sep 2019 06:39:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568288384; bh=fLZbcw5wepXuSeFrsWtd637NuzfIOkB+KDiZWWlKW2M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OJy/BAwdAkD5gi8zkwckGHfcjKsG/npDDYEjsdgICUC9l9hfjW3fNtkHA+2hb/JhU uwzo/7gfpkIkxNGVyNNpBmS5CCjp4sgTtBojPQvsgRZBAucmxSowzr5QFKSVnsbMlC VSgvC2J6FSnqz1TAobjjtwOP177GEBajKYcKZC8Y= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8CBdisK012872 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Sep 2019 06:39:44 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE110.ent.ti.com (157.170.170.21) 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:44 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE109.ent.ti.com (157.170.170.41) 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:43 -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 x8CBdKd0120606; Thu, 12 Sep 2019 06:39:42 -0500 From: Tero Kristo To: , , , , , CC: , Subject: [PATCHv5 09/10] soc: ti: omap-prm: add omap5 PRM data Date: Thu, 12 Sep 2019 14:39:15 +0300 Message-ID: <20190912113916.20093-10-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 omap5 family of SoCs. Initially this is just used to provide reset support. Signed-off-by: Tero Kristo --- drivers/soc/ti/omap_prm.c | 9 +++++++++ 1 file changed, 9 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 73ea64896770..38e8704c51ad 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -84,6 +84,14 @@ static const struct omap_prm_data omap4_prm_data[] = { { }, }; +static const struct omap_prm_data omap5_prm_data[] = { + { .name = "dsp", .base = 0x4ae06400, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_01 }, + { .name = "core", .base = 0x4ae06700, .rstctrl = 0x210, .rstst = 0x214, .clkdm_name = "ipu", .rstmap = rst_map_012 }, + { .name = "iva", .base = 0x4ae07200, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_012 }, + { .name = "device", .base = 0x4ae07c00, .rstctrl = 0x0, .rstst = 0x4, .rstmap = rst_map_01, .flags = OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_HAS_NO_CLKDM }, + { }, +}; + 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 }, @@ -136,6 +144,7 @@ static const struct omap_prm_data am4_prm_data[] = { static const struct of_device_id omap_prm_id_table[] = { { .compatible = "ti,omap4-prm-inst", .data = omap4_prm_data }, + { .compatible = "ti,omap5-prm-inst", .data = omap5_prm_data }, { .compatible = "ti,dra7-prm-inst", .data = dra7_prm_data }, { .compatible = "ti,am3-prm-inst", .data = am3_prm_data }, { .compatible = "ti,am4-prm-inst", .data = am4_prm_data },