From patchwork Wed Aug 28 07:19:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172331 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp365203ily; Wed, 28 Aug 2019 00:20:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzItlodi9gO/oBlcOsrw3xFUmI2dH+ZBB1Y/1ui3kPo4OXvf6Z5QVffMj0lnC9EFNGDf/tQ X-Received: by 2002:a63:6c4:: with SMTP id 187mr2041735pgg.401.1566976829200; Wed, 28 Aug 2019 00:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566976829; cv=none; d=google.com; s=arc-20160816; b=rZiFFEE9jUQwr99bX+csI0oK/L5inoXPdk8YWkOA6Dh0OOpG0YaF9vYlM9bh6ICWJs 1YXHgJP67nJZAUAJKbL4Lmg8uwJ6LHoE01vubcWGtTQSHRCK5gpbqopW9oWrsy5weKIi z9i6Pke5dgHdKDF6r1+8DnMoGxN2FylJO2eOTKcnGK0lcifyY0Dc7Oq1aK9lLpm7e40A /+f7+krnpGoIS8lURs9r1dTDWoUevzi1zbY62zVoM70PqndRCl5PNSB2PHBTXu74TRj6 qInuqkwWVae2u/U1TPIlAPxDZMAlNHO0tGhfltEld6MXmhyimfdCkp6yZZL8CEJvTfoZ Dm4A== 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=dGrMgeUi6wflxIOZ9TLPa+y2wgWQNeSeZXll2Q1ypN8=; b=R855xqCb84Qfx69KeOBYv61vGpkyW0ES3+Zo72AJW9v8pwqkS1dn5WGPGsLTK2Ra+o a/f5UuQWXEAb2hWNG3Ty5sweDOxnMX8zagQWvhajnV3tuQmMHxTRwiXH6KEReFqokcHm k2pHJc7n85LTxg/lmdVrHz7djZ31PlEudK5zUbYSccKeMpsed8CaZsjlhrfSHsL7We1F nUZyJDzT9dI/DN0c3b5uaYgX4sTk/d4sTggDccmXNqr3CLucJKTw0mS2oWSo9Elm6ood 8Y1TnSF0AVpt6Ph83P6z5E0C+NuWc7k8WKxElov2xkpO4ovFV9juVWMzi5a+IVDzlUDG 7rVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LA7RHGfH; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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.29; Wed, 28 Aug 2019 00:20:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=LA7RHGfH; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726462AbfH1HU2 (ORCPT + 5 others); Wed, 28 Aug 2019 03:20:28 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:53060 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbfH1HU2 (ORCPT ); Wed, 28 Aug 2019 03:20:28 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7KKG4112382; Wed, 28 Aug 2019 02:20:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566976821; bh=dGrMgeUi6wflxIOZ9TLPa+y2wgWQNeSeZXll2Q1ypN8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LA7RHGfHHWPKg1RLI17yfbYWVpXg1RU3JUvaAt79aXRfoyq+tfl95bm6lZfmvApRn NaoPn9ry9yrPaftjaSzzRyIPKtKLkegS4EdzCdrVl4TiOCXXnjleX50Q1Sq5a2ViTl D2q2ImWl/caFL0skz6G7J2KTjb44CSDVht2xOM4M= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7KKbZ025853 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:20:20 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE113.ent.ti.com (10.64.6.34) 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:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Wed, 28 Aug 2019 02:20:14 -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 x7S7JmfN052201; Wed, 28 Aug 2019 02:20:12 -0500 From: Tero Kristo To: , , , , CC: , , Subject: [PATCHv2 11/11] soc: ti: omap-prm: add omap5 PRM data Date: Wed, 28 Aug 2019 10:19:41 +0300 Message-ID: <20190828071941.32378-12-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: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 fd11785637ff..1a02e319fc63 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -86,6 +86,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 }, @@ -138,6 +146,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 },