From patchwork Tue Oct 8 12:55:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 175488 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5662759ill; Tue, 8 Oct 2019 05:56:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUjXiz7oy3rl25pDyq0i8G/p3zEIqdd5bCe1N4lUWfkvI/ml6E9llIwjYznyKrHwGJ+FJo X-Received: by 2002:a50:aa96:: with SMTP id q22mr33702899edc.179.1570539371467; Tue, 08 Oct 2019 05:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570539371; cv=none; d=google.com; s=arc-20160816; b=Cq1VPZBkQFQRWGTXrC4c2o/60smMt2dlhcd++5Cb2TxO4mQKVDYJnvUSLFe108XbYP 7eIOy/5geFLhtYh7cXXp3/7GfNKIErknNh26K6phn3DwxBW+qauaBMwfFRRs6Ylqf1fu jGqEufzmJC331DkZ/gDOBDojUowsFCYfCnpmZH1+89MzQZPLFWiJZwUc/b0YNypTF5Ec pehXxyJByGtahwSLNQUwk/Kef6h9s6fs6MEE5dNyBfikxpkujJakEZu6dp66Y+ivXdRP h/yheCI//lU+mHUvUcOSopnxomx30rXNmL13f7FcNNsXnXcxhZAuOejDke4UTImVm/Zl mikw== 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=Wp64ZlAHHn5CU3tpHDUlmh3XM1SsalkAr43GzuyHMkIrg1el/GtNAO00gCVT7vg69A 7K40a4i8uUbC2buHTUfDVl9SccIpAqvLfOXDLCY03/kSV5DaB9gBn1ZS3/EvMlAu+Wtg bbYkcw6W+KaSfOuO+sTXfN8zgYtyizq9hb6kBxpgxmYzu7PLENd4sgZr6DLnISz9Orki spwii7qtTGdJZ1P+WVJyK1p+h1N7UY2rLq20SduubzInu/01yqjvrGSwCZIg6PohX+0V fXT0M2kTzxIRE5gfrwzu8MS1GQm/4AQXS+2X7PYajARIR2jm+d8Ac++1UGP+IFRseoez p3XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ISjQqBPf; 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 g5si10344318edb.324.2019.10.08.05.56.11; Tue, 08 Oct 2019 05:56:11 -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=ISjQqBPf; 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 S1731006AbfJHM4K (ORCPT + 8 others); Tue, 8 Oct 2019 08:56:10 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:44580 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730963AbfJHM4K (ORCPT ); Tue, 8 Oct 2019 08:56:10 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x98Cu3qc126453; Tue, 8 Oct 2019 07:56:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570539363; bh=pt9ZUil/2B5wcm+TkD0BrIf3fmHoBR66aLscI2ljxIs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ISjQqBPfCD6njG6oUAxaToH96+gcVLc4jt9l9AoMCtG9WwhmDUuQ4+30XYk/DZnXw P9kEMJzFca7Yln/ugQZ+J70P8kdiqwwZmynsZ0lEZec+tEk+lPq+1CVHkrGdeLme9V biHfRv3Oo+TvDd5LB6aCzUqUN4D4mbMb4WQPXqsk= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x98Cu3YH010238 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Oct 2019 07:56:03 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) 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; Tue, 8 Oct 2019 07:56:00 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE106.ent.ti.com (157.170.170.36) 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; Tue, 8 Oct 2019 07:56:02 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x98Ctk5E046741; Tue, 8 Oct 2019 07:56:01 -0500 From: Tero Kristo To: , CC: , , , , Subject: [PATCHv8 7/9] soc: ti: omap-prm: add dra7 PRM data Date: Tue, 8 Oct 2019 15:55:42 +0300 Message-ID: <20191008125544.20679-8-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191008125544.20679-1-t-kristo@ti.com> References: <20191008125544.20679-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 }, { }, };