From patchwork Wed Aug 7 07:48:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 11081401 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 37ED0912 for ; Wed, 7 Aug 2019 07:49:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A070287C1 for ; Wed, 7 Aug 2019 07:49:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E9B1287E9; Wed, 7 Aug 2019 07:49:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4828287A8 for ; Wed, 7 Aug 2019 07:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387481AbfHGHtm (ORCPT ); Wed, 7 Aug 2019 03:49:42 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:35596 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387450AbfHGHtm (ORCPT ); Wed, 7 Aug 2019 03:49:42 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x777naQK124160; Wed, 7 Aug 2019 02:49:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1565164177; bh=bwa7pELuDkqr+8qGFfDbMpJD8DewjyhXL2s0BYZTCho=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rk3SKYhGPGSu3EPcvmaMA4kAI4/KMAaGe80c8TF0K3jFZTU0XZ1xbMQ0tREx/AfUQ rG4nhEdL40YYg6PP+xqsCyxU5fge6liv91Uczo71CpdOOfg+5LuvXHB6fVMZ9DY/3o xSNbBOtvmg0wDGG6wWH5Q1P2QH98edijXDboeReM= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x777naLk076681 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Aug 2019 02:49:36 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE115.ent.ti.com (157.170.170.26) 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:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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, 7 Aug 2019 02:49:36 -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 x777nNHj118711; Wed, 7 Aug 2019 02:49:35 -0500 From: Tero Kristo To: , , , CC: , , Subject: [PATCH 7/8] soc: ti: omap-prm: add dra7 PRM data Date: Wed, 7 Aug 2019 10:48:58 +0300 Message-ID: <1565164139-21886-8-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: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add PRM data for dra7 family of SoCs. Signed-off-by: Tero Kristo --- drivers/soc/ti/omap_prm.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/soc/ti/omap_prm.c b/drivers/soc/ti/omap_prm.c index fadfc7f..05b7749 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -73,6 +73,31 @@ struct omap_prm_data omap4_prm_data[] = { { }, }; +static struct omap_prm_data dra7_prm_data[] = { + { .name = "mpu", .base = 0x4ae06300, .pwstst = 0x4 }, + { .name = "dsp1", .base = 0x4ae06400, .pwstst = 0x4, .rstctl = 0x10, .rstst = 0x14 }, + { .name = "ipu", .base = 0x4ae06500, .pwstst = 0x4, .rstctl = 0x10, .rstst = 0x14, .clkdm_name = "ipu1" }, + { .name = "coreaon", .base = 0x4ae06628, .pwstst = 0x4 }, + { .name = "core", .base = 0x4ae06700, .pwstst = 0x4, .rstctl = 0x210, .rstst = 0x214, .clkdm_name = "ipu2" }, + { .name = "iva", .base = 0x4ae06f00, .pwstst = 0x4 }, + { .name = "cam", .base = 0x4ae07000, .pwstst = 0x4 }, + { .name = "dss", .base = 0x4ae07100, .pwstst = 0x4 }, + { .name = "gpu", .base = 0x4ae07200, .pwstst = 0x4 }, + { .name = "l3init", .base = 0x4ae07300, .pwstst = 0x4, .rstctl = 0x10, .rstst = 0x14 }, + { .name = "l4per", .base = 0x4ae07400, .pwstst = 0x4 }, + { .name = "custefuse", .base = 0x4ae07600, .pwstst = 0x4 }, + { .name = "wkupaon", .base = 0x4ae07724, .pwstst = 0x4 }, + { .name = "emu", .base = 0x4ae07900, .pwstst = 0x4 }, + { .name = "dsp2", .base = 0x4ae07b00, .pwstst = 0x4, .rstctl = 0x10, .rstst = 0x14 }, + { .name = "eve1", .base = 0x4ae07b40, .pwstst = 0x4 }, + { .name = "eve2", .base = 0x4ae07b80, .pwstst = 0x4 }, + { .name = "eve3", .base = 0x4ae07bc0, .pwstst = 0x4 }, + { .name = "eve4", .base = 0x4ae07c00, .pwstst = 0x4 }, + { .name = "rtc", .base = 0x4ae07c60, .pwstst = 0x4 }, + { .name = "vpe", .base = 0x4ae07c80, .pwstst = 0x4 }, + { }, +}; + struct omap_rst_map am3_wkup_rst_map[] = { { .rst = 3, .st = 5 }, { .rst = -1 }, @@ -91,6 +116,7 @@ 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 }, { }, };