From patchwork Wed Aug 28 07:19:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172337 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp366596ily; Wed, 28 Aug 2019 00:22:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC8AT1RFiBSjGNzcYuIOAQ/2G2mUEdJTyA/lrzMXJ3817bvRYKBTPcZzPTutNMeNZWKyzA X-Received: by 2002:a63:6097:: with SMTP id u145mr104945pgb.227.1566976815747; Wed, 28 Aug 2019 00:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566976815; cv=none; d=google.com; s=arc-20160816; b=E9jM7gwlvs+sVO8lwNeHgyJxDUnM0HmQOwonNXW4A5ouk/nJfsvlQ32u91jMj09H0J CFCEXtngwUeIElIa9snEi7GYD331d5Cv5pVK+SAo9vDc1dKYgUREuiqt58XvamlN/VIq xhOehvsVtSLVgpirnEKpcMFzktjQjhezivhVA5fZG0RWuEQySKK/iOUyrEN7DSVMuZyR lCdyH94ykaUVA2KnItDQQNphPk0O7jU2G1uN3yQqyyNdFXBoIx5oYlFej6DcQcGl+LAN veHSpkxju46z7Bv3/uX62vOVUAmXzldFuSDXCPYDEmTkWYL5AYUy0EaFTpsehVoL0Dma hZzQ== 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=H3gWYOUu1IxnMBzQnYaDY16nQ5OnXii/NZ37NGeparY=; b=b8UkKy7vIFpDT0niYU0QTmV2SolFQD1EHEy8m+8i7tgFBj2HP1C5m2L61/n+//s1+B gp1Z0JBcvdQYIRC76ZAV3IwrGbMfAOmCx0KGicO0s2Cf/HoX3sx/dSNDhbuzBkFrAcSF 7eeY7XggehpVBQt6KNqTQXBPEfhX7RYvaOpfRB3uXXZn/+yPgo4w6Vv0qkpu4NaoY+nW hAPMB8jt1bMBYudvvfjuvDETy9Ytr6dzJ/gAsGC2rNWk8pX/CGkgliwCUWqL6x13ndqj K/qwXaSL8e5g1vs9dnP7TW/1Pwe8ii1G7/5bL5Lj381gJeHgiYyZe14WVweQe5Iy/T8j Y9hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NwWwH8X6; 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.15; Wed, 28 Aug 2019 00:20:15 -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=NwWwH8X6; 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 S1726446AbfH1HUP (ORCPT + 8 others); Wed, 28 Aug 2019 03:20:15 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:53012 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbfH1HUO (ORCPT ); Wed, 28 Aug 2019 03:20:14 -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 x7S7K7Fa112330; Wed, 28 Aug 2019 02:20:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566976807; bh=H3gWYOUu1IxnMBzQnYaDY16nQ5OnXii/NZ37NGeparY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NwWwH8X6fdafxhbYabOne0KA2m/hIeo08jmufbeZxc9MZf0QniL3ReGp36mbXZKKH 4tc+7aawy6sG8LaCTV+xXILmX7xkABmRbCXbsVVT2DmtUAF07EMd268QLoxFc2fDho Xd8ieKmjFnY1iKwJUlQrAFSBQ1k+R2Q2iSkYo/Mc= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7K7Ow025590 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:20:07 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE112.ent.ti.com (157.170.170.23) 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:06 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) 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:05 -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 x7S7JmfJ052201; Wed, 28 Aug 2019 02:20:04 -0500 From: Tero Kristo To: , , , , CC: , , Subject: [PATCHv2 07/11] soc: ti: omap-prm: add omap4 PRM data Date: Wed, 28 Aug 2019 10:19:37 +0300 Message-ID: <20190828071941.32378-8-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 data for omap4 family of SoCs. Initially this is just used to provide reset support. Signed-off-by: Tero Kristo --- drivers/soc/ti/omap_prm.c | 22 ++++++++++++++++++++++ 1 file changed, 22 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 d7a29e282788..192eeae67dfc 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -60,7 +60,29 @@ struct omap_reset_data { #define OMAP_PRM_HAS_RESETS (OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_HAS_RSTST) +static const struct omap_rst_map rst_map_01[] = { + { .rst = 0, .st = 0 }, + { .rst = 1, .st = 1 }, + { .rst = -1 }, +}; + +static const struct omap_rst_map rst_map_012[] = { + { .rst = 0, .st = 0 }, + { .rst = 1, .st = 1 }, + { .rst = 2, .st = 2 }, + { .rst = -1 }, +}; + +static const struct omap_prm_data omap4_prm_data[] = { + { .name = "tesla", .base = 0x4a306400, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_01 }, + { .name = "core", .base = 0x4a306700, .rstctrl = 0x210, .rstst = 0x214, .clkdm_name = "ducati", .rstmap = rst_map_012 }, + { .name = "ivahd", .base = 0x4a306f00, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_012 }, + { .name = "device", .base = 0x4a307b00, .rstctrl = 0x0, .rstst = 0x4, .rstmap = rst_map_01, .flags = OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_HAS_NO_CLKDM }, + { }, +}; + static const struct of_device_id omap_prm_id_table[] = { + { .compatible = "ti,omap4-prm-inst", .data = omap4_prm_data }, { }, };