From patchwork Wed Aug 28 07:19:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172336 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp366553ily; Wed, 28 Aug 2019 00:22:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqx44nruvA4hfW5VmvmvedIz5v9iJMXK9RFg96bzDKhBjQ8n7P+ieOpFw3rAIAAw3/rzz6Ai X-Received: by 2002:a62:e401:: with SMTP id r1mr3084908pfh.193.1566976820692; Wed, 28 Aug 2019 00:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566976820; cv=none; d=google.com; s=arc-20160816; b=JTuXneUOOM33cggMQGS6tl93MbAXjwRPZ/J1jwSUcPsrpEQsp7GR3XEm0YrxNU8gys iB95j7yf4+6ccVS/FEOg3m8FdtamV5ML4LZxWItqlXEBG2FT0TNZD5fNTfZfngvGA355 gAGrdzPhyD/bNvSFBpHaLk2KQvag2M3aCa/KbKDbRM0W9eJ0OWf19Xc9JauogeE2+uOD VWTZx5GdCzKj8B81D3lGfbcCP/iZ5fTsf43SWt8O6Mh04UL2p2pQYWpy9/1iehErLXWa 0hQlLYWjKwjnjHK7VsvfEX6nzFDHW+t5gdJn+59QtQpyiJq/W5bBoJBYK5WLVvk6W6+K 2vuw== 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=afuz//7UnNzwVZVMwo/xYo1kuWhXq1NbpeAZpr9BBT0=; b=O+S/DRxahoWHWJw3TDnin8XWGxGUnwff72ZLNaMeZQvzjWKDXZFI8D3arNaAAnKCzV ue/w0aHgr8db22vLzuPGZA0zBwThn2dfayjjkSXKkTi0xE/LuLj47Bpw6vv1YtD/d7Nh tMMgvAOE1lQcamLePTKIqqp5HOqzA/IWoy/jlLWXwzbBrDNTLxxRh+BCumSUHtuuN/z/ s9zzEa6xDfqBCOl/7lkjQ5jeV7QzStzmMRtA4SHhVvcfdjFimql4mRKTW/5vPh4HQ1Uw +LKhpSIwCbd6wK7m0JpVyBNgBLzlwapDVXj04XWGz39sDFFVOK7vPmcURf5w0Y9R3HVX 7q8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=K+ZnL1gI; 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.20; Wed, 28 Aug 2019 00:20:20 -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=K+ZnL1gI; 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 S1726455AbfH1HUT (ORCPT + 5 others); Wed, 28 Aug 2019 03:20:19 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:53020 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbfH1HUT (ORCPT ); Wed, 28 Aug 2019 03:20:19 -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 x7S7KC2Z112354; Wed, 28 Aug 2019 02:20:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566976812; bh=afuz//7UnNzwVZVMwo/xYo1kuWhXq1NbpeAZpr9BBT0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=K+ZnL1gIFj9jeX5sHseRH7zdRdJETd2Tvrx12JwRcNd3MxajRRIN6pEoIENLvzfqq +iO+vUUdd7jIpZXNsM1+PGZpZ6J6FLgrXMBU2s2dyjHF68hs56h7bsfQQw7RFEWnCv n7WgqpXKsTlUUf+0WJ+gM1E8htrekrMKAcZHCnU4= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7KCgi083430 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:20:12 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE114.ent.ti.com (10.64.6.35) 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:12 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) 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:12 -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 x7S7JmfM052201; Wed, 28 Aug 2019 02:20:10 -0500 From: Tero Kristo To: , , , , CC: , , Subject: [PATCHv2 10/11] soc: ti: omap-prm: add am4 PRM data Date: Wed, 28 Aug 2019 10:19:40 +0300 Message-ID: <20190828071941.32378-11-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 am4 family of SoCs. Initially this is just used to provide reset support. Signed-off-by: Tero Kristo --- drivers/soc/ti/omap_prm.c | 20 ++++++++++++++++++++ 1 file changed, 20 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 a54c2e556b7a..fd11785637ff 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -117,10 +117,30 @@ static const struct omap_prm_data am3_prm_data[] = { { }, }; +static const struct omap_rst_map am4_per_rst_map[] = { + { .rst = 1, .st = 0 }, + { .rst = -1 }, +}; + +static const struct omap_rst_map am4_device_rst_map[] = { + { .rst = 0, .st = 1 }, + { .rst = 1, .st = 0 }, + { .rst = -1 }, +}; + +static const struct omap_prm_data am4_prm_data[] = { + { .name = "gfx", .base = 0x44df0400, .rstctrl = 0x10, .rstst = 0x14, .rstmap = rst_map_0, .clkdm_name = "gfx_l3" }, + { .name = "per", .base = 0x44df0800, .rstctrl = 0x10, .rstst = 0x14, .rstmap = am4_per_rst_map, .clkdm_name = "pruss_ocp" }, + { .name = "wkup", .base = 0x44df2000, .rstctrl = 0x10, .rstst = 0x14, .rstmap = am3_wkup_rst_map, .flags = OMAP_PRM_HAS_NO_CLKDM }, + { .name = "device", .base = 0x44df4000, .rstctrl = 0x0, .rstst = 0x4, .rstmap = am4_device_rst_map, .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 }, { .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 }, { }, };