From patchwork Mon Aug 21 23:48:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 110601 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1931084qge; Mon, 21 Aug 2017 16:48:57 -0700 (PDT) X-Received: by 10.99.107.3 with SMTP id g3mr18609461pgc.172.1503359336956; Mon, 21 Aug 2017 16:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503359336; cv=none; d=google.com; s=arc-20160816; b=kFH2nRBXlWtebyxKMSePFtEKXnLd2HvYyq/t9iTWmCuUfeysUxaWpGsAnl37pqiCWX Y0hg3Ul2nnl9AmowuMbhfit2a+JNC66y4T2ROjyT/vJwAjHXpjVfp1KlREC30al/3YqW 2btRLpn8kdfsLmTdTa6MLp/1fHk1kIkXgySPMwpRYhTdjtDmEBqyySYLm7wKH63GaSf/ JFafDBHLk0IpJe0IesgSS8TUWOojmurXrSn8ctir2VF0+QY7FvryFgLbatT7H947geT4 CqfSUAFto/mt3mqHMbXaz9Zcy8ZgphboUiqTZxV8MrAgv8Ke7bpSvdG56S8iZsgZutxm oeNQ== 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 :arc-authentication-results; bh=TI/MgUyHqPDYEwC2UwLytBlnVZzxb84Vxo5nuYRmdFo=; b=xoLwWoYYGQraCClSfyxFevYAlk3V3twUqCj22eBzGHI1fWiq5PodTdlxAPH5Efoycf mhllGw8Eeh0cg5zxkPhWBXNXuwRoeOnQg0ZOdF6l+fUHcu/6zPCoCh7E1of9l2JAQ7+v HSYy/RfMWDYReJBrOewjN99A0dk4jF+pcj7L86BmY6lq74/qmYD2dyjpw26o+NI3oMU9 CFzWajYmsqiYsPnTo5C4Gx4947fb3iMZg3d2i/Nx0QufjmMxKwspOW3jyf9pWzL1Xnc/ Cbx0dl2wxMhMqdQlwU2u71M9ZlakQUMymj2FHqPsQYEJ65Wc7DV0en8x6aPSPF/kUgjT QvBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=AuN9DyZE; 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=fail (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 b1si8624655pld.664.2017.08.21.16.48.56; Mon, 21 Aug 2017 16:48:56 -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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=AuN9DyZE; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754229AbdHUXsz (ORCPT + 3 others); Mon, 21 Aug 2017 19:48:55 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:14378 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753979AbdHUXsw (ORCPT ); Mon, 21 Aug 2017 19:48:52 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v7LNmL8m026862; Mon, 21 Aug 2017 18:48:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1503359301; bh=5Z0homQZYw7bcRpVZegnSWg/q5qsJU5MuzyxW+66OrI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AuN9DyZE9ZNLs6QsM/OwI0iezjuS7iVKrjUWuFniR8pXRg3RVBZ3o+i+lMW8UiIqQ wbn1zPlyr8shZNjFVAzP4L8auFabgGyhvV4hmxBfJ9x+heLzeBL++NGEd0kInJ/A2g xkiJG7pRFllACU+SGaA4nB6RfsLJyn3JCEVnmFoI= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7LNmLQc002294; Mon, 21 Aug 2017 18:48:21 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Mon, 21 Aug 2017 18:48:20 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Mon, 21 Aug 2017 18:48:20 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7LNmKmg003473; Mon, 21 Aug 2017 18:48:20 -0500 Received: from localhost (irmo.dhcp.ti.com [128.247.58.153]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id v7LNmK307086; Mon, 21 Aug 2017 18:48:20 -0500 (CDT) From: Suman Anna To: Tony Lindgren CC: Paul Walmsley , , , Tero Kristo , Suman Anna Subject: [PATCH 3/8] ARM: OMAP2+: Extend iommu pdata-quirks to DRA7 IPUs Date: Mon, 21 Aug 2017 18:48:13 -0500 Message-ID: <20170821234818.4755-4-s-anna@ti.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170821234818.4755-1-s-anna@ti.com> References: <20170821234818.4755-1-s-anna@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 The IOMMUs within the IPU processor subsystems in DRA7xx SoCs are very similar to those in OMAP4/OMAP5, so extend the OMAP4 iommu pdata quirks for these MMUs as well. Signed-off-by: Suman Anna --- arch/arm/mach-omap2/pdata-quirks.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.13.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 6b433fce65a5..253315393a29 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -412,7 +412,8 @@ static void __init omap3_pandora_legacy_init(void) } #endif /* CONFIG_ARCH_OMAP3 */ -#if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) +#if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) || \ + defined(CONFIG_SOC_DRA7XX) static struct iommu_platform_data omap4_iommu_pdata = { .reset_name = "mmu_cache", .assert_reset = omap_device_assert_hardreset, @@ -588,6 +589,10 @@ static struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { &dra7_hsmmc_data_mmc2), OF_DEV_AUXDATA("ti,dra7-hsmmc", 0x480ad000, "480ad000.mmc", &dra7_hsmmc_data_mmc3), + OF_DEV_AUXDATA("ti,dra7-iommu", 0x55082000, "55082000.mmu", + &omap4_iommu_pdata), + OF_DEV_AUXDATA("ti,dra7-iommu", 0x58882000, "58882000.mmu", + &omap4_iommu_pdata), #endif /* Common auxdata */ OF_DEV_AUXDATA("pinctrl-single", 0, NULL, &pcs_pdata),