From patchwork Wed Aug 28 07:19:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172335 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp366252ily; Wed, 28 Aug 2019 00:21:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSvM0gI/MWHS2Tg6LrTytIhAt2J0eX1V4Ilk5+RAeWSUWb59ZcVW/Ayq9XX7Nr/IGem84w X-Received: by 2002:a62:1ad4:: with SMTP id a203mr2969985pfa.210.1566976818737; Wed, 28 Aug 2019 00:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566976818; cv=none; d=google.com; s=arc-20160816; b=m68bBZ0NGcowdlWWrOvfG2hchDm0p+exln6YMURngJs+Ej3znRW5wwG7Q2fNJ0hiTi VPO5nTXtxgUatkaixSNpN96PHAviU+1e5DLYGcJjOwYMtcA9A0uxidSbT2Md++J3f8Mg sVr2PtRHKchA+bkWhaeCJFgXt0vlq9yoaZeDC4A5mEwi5n0kGESofnkL7P5TJltIsMY0 8qj+3i8bKkTsPA8AXcHj3bcCkq5djB+iZ1VVvs7FHEgP8y7UOJmj46cUFJ3ceIap/I5C 33hUKoSvM+i+E1urRaeTwk6g40TyHx+yAphRXkQtzgz/8lMB0jwmS6dmZjfId6OlsvAl b0AA== 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=LG7XOMd3X8KORp948KL5SdMjDvzk087XF2Wob74XRRY=; b=oxlYkK7+yDfhjujlU3n3/U8OzeJzlEm2qENHhEtjkxKkjaIb9+F6cec9BpnvH11rL3 lB2A2DMsN0IL+oAO0gGLzatw0GoyrNCrCHqQhhNQLhCKzLVhI47z4t7yS8j9ni0FyECq v/E+q08myPi3YQc/pXsZTJEL0VQptrjrbpdEp9/87+Zg7bGgvYoAden5LLnjoNOp4oWf xyMwVtmu6VvdgJOhgbfIZR0CdijYjLjxyTM97cqKm7uM//GC5bXlC0VEqn9xJumCh0D1 iqSSAvq8RqlTyJHDr/q0UNuxr2kjDWvNx3CLmPv2hIJwesabSwxmRl7tBoqZbIYNit+G 35Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aVC1ZoaB; 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 f9si1222986plo.306.2019.08.28.00.20.18; Wed, 28 Aug 2019 00:20:18 -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=aVC1ZoaB; 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 S1726450AbfH1HUS (ORCPT + 8 others); Wed, 28 Aug 2019 03:20:18 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:59446 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbfH1HUS (ORCPT ); Wed, 28 Aug 2019 03:20:18 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7KAH2116241; Wed, 28 Aug 2019 02:20:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566976810; bh=LG7XOMd3X8KORp948KL5SdMjDvzk087XF2Wob74XRRY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aVC1ZoaByZga+guWqMWK7wAIJbW4CdYlXHR75pJwULA0VmUl+nJw6bb3JWTfmWX/D gWtFMDATQ7HzcMWDL1ZTWthsRnu58PKRLKtKNg25hk/YDilFpHGnttvPDLwktzg/0M 3byxO6ODIrC43EtuE/rkSVLnedBTZ9pNmhqEorQU= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7KAje078708 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:20:10 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:20:10 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE109.ent.ti.com (10.64.6.30) 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; Wed, 28 Aug 2019 02:20:10 -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 x7S7JmfL052201; Wed, 28 Aug 2019 02:20:08 -0500 From: Tero Kristo To: , , , , CC: , , Subject: [PATCHv2 09/11] soc: ti: omap-prm: add dra7 PRM data Date: Wed, 28 Aug 2019 10:19:39 +0300 Message-ID: <20190828071941.32378-10-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828071941.32378-1-t-kristo@ti.com> References: <20190828071941.32378-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 c4b33214bce1..a54c2e556b7a 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -86,6 +86,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 }, @@ -106,6 +119,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 }, { }, };