From patchwork Wed Aug 7 07:48:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 170734 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp6780754ile; Wed, 7 Aug 2019 00:49:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2chb+/Esmi71/1EGjBZuaRIbqfWmGgq2uIfKh99fpKtT5rOTWYlyk34bNTGZ5OCL/NeLO X-Received: by 2002:a17:902:20ec:: with SMTP id v41mr6674651plg.142.1565164181393; Wed, 07 Aug 2019 00:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565164181; cv=none; d=google.com; s=arc-20160816; b=hZratDYRGAkxkfkEw+u0JVNAjlzRn6s4XXTO2ABDtn7IxXt5rShgpFMetY/ANUmh2u Tvdp9Rlvc1XaxuWJEw7c1dEJIVu1PMYxFHa8D5UAxg0YEZMpTbln5/GOS6AyZ+ZY27aY dagicJUFdHRujmWkU/4ooI0XhmWmiUy54hrSo6pHsPbXc3lMW26mrQhPnXcWZbDksYrh tpG5o9B72kbaIpkHWoPNmEcIvMJK51FHIsnWhx5BOGXVo7fugKF9zsMt6UspQzrp/CN3 F4/KNc6GWj0Knr0/qYgeB8JmxlAn2ND5y+37vfOWauySz0ItyrjhqPYQOjx4SmPbRWCz HdoQ== 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=BBRujk0f89SQsnPkxzJUb2bva4542dJuBag8u/wOKaU=; b=dBSV56PHRpeQnSwmi00yuQczQxJg76HPzAi7rrn34bsIEchzhXRssQIYeQW/4bfLVi PAWMUN4T91EGrPId8xyjTCND7DSXo8NhiLdpC3kImT4eU1zLPrUUQV1aLzk7FNUcjW9V aD77ZkXCyF/5Nqieh3ZgcfS2i3bnIZYU6gP6gvlH5qDn9xoj3rIJ//vK5KG1D7M/CG5w 6ZWFsxx4z/ONCcguw58I+ofKHFs+oEqlIqKvUMBnrt/Ba7+UtazqhSMG0LTra0qKUj/j YoRiZ/OF3/Z2Qly33O5v0xHz4zVE3PVGQg/QydwMYQqjrCms/Dndi+IGiRVLzmsA6e45 FIUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lh7l43Bu; 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 u6si367847plz.89.2019.08.07.00.49.41; Wed, 07 Aug 2019 00:49:41 -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=lh7l43Bu; 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 S2387402AbfHGHtk (ORCPT + 8 others); Wed, 7 Aug 2019 03:49:40 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:57912 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387450AbfHGHtj (ORCPT ); Wed, 7 Aug 2019 03:49:39 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x777nZUl026515; Wed, 7 Aug 2019 02:49:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1565164175; bh=BBRujk0f89SQsnPkxzJUb2bva4542dJuBag8u/wOKaU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lh7l43Bu/iBQp+Jwj3duxE0/KtNeoVeRxWYoMBYxI2O4J4X356W9mD64eZ+eB2MQx 4a8YJtKzVmxZ/gnetVoc3jqEuV6EXcRhvUMJd4uWAn+6knbL/MV6QadSkCPIcesNd3 R1Sh3luSe4X2V8U/7Cc7w9wBvCqoXvlYCXC2cvS0= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x777nZGB078611 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Aug 2019 02:49:35 -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, 7 Aug 2019 02:49:35 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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, 7 Aug 2019 02:49:35 -0500 Received: from gomoku.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x777nNHi118711; Wed, 7 Aug 2019 02:49:33 -0500 From: Tero Kristo To: , , , CC: , , Subject: [PATCH 6/8] soc: ti: omap_prm: add data for am33xx Date: Wed, 7 Aug 2019 10:48:57 +0300 Message-ID: <1565164139-21886-7-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1565164139-21886-1-git-send-email-t-kristo@ti.com> References: <1565164139-21886-1-git-send-email-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 AM33xx SoC. Includes some basic register definitions and reset data for now. Signed-off-by: Tero Kristo --- drivers/soc/ti/omap_prm.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 1.9.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 9b8d5945..fadfc7f 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -73,8 +73,25 @@ struct omap_prm_data omap4_prm_data[] = { { }, }; +struct omap_rst_map am3_wkup_rst_map[] = { + { .rst = 3, .st = 5 }, + { .rst = -1 }, +}; + +struct omap_prm_data am3_prm_data[] = { + { .name = "per", .base = 0x44e00c00, .pwstctrl = 0xc, .pwstst = 0x8, .flags = OMAP_PRM_NO_RSTST }, + { .name = "wkup", .base = 0x44e00d00, .pwstctrl = 0x4, .pwstst = 0x8, .rstst = 0xc, .rstmap = am3_wkup_rst_map }, + { .name = "mpu", .base = 0x44e00e00, .pwstst = 0x4 }, + { .name = "device", .base = 0x44e00f00, .rstctl = 0x0, .rstst = 0x8 }, + { .name = "rtc", .base = 0x44e01000, .pwstst = 0x4 }, + { .name = "gfx", .base = 0x44e01100, .pwstst = 0x10, .rstctl = 0x4, .rstst = 0x14 }, + { .name = "cefuse", .base = 0x44e01200, .pwstst = 0x4 }, + { }, +}; + static const struct of_device_id omap_prm_id_table[] = { { .compatible = "ti,omap4-prm-inst", .data = omap4_prm_data }, + { .compatible = "ti,am3-prm-inst", .data = am3_prm_data }, { }, };