From patchwork Wed Aug 28 07:46:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172339 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp387714ily; Wed, 28 Aug 2019 00:46:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWEbFJzUalYLXd84eUCdqyQ4CXe/ATf2kYczbz4j+9/HQYMxZ+sjIS5ZM0ntP30MuvFhwq X-Received: by 2002:a17:90a:17c4:: with SMTP id q62mr2795474pja.135.1566978392891; Wed, 28 Aug 2019 00:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566978392; cv=none; d=google.com; s=arc-20160816; b=fCPP3dO7h3SgIYFLBCM666rb+2QW/kG4leGNQXgaSWQ15aI1q21HiXJKec73PN2Le9 V5FajSQ25O7Ru+Kx8CFmHm6elYiBWI015+BiDqraB8l8pMBiC6wLbIipW8RojOp0mOvy 4I+KLZcNOgnihhqUqT1bCF9mVWeLgl89N48XUxX3VHKM47kIslYc/G7jssPuiTZzXvnl ksLeEU5mE1vlEsfQEJtEOIoLejp1NGGSKwd7osfGM+QW4YJUzNyudOOg8me2DDEuMC/3 JDFtYKZzOFkQVgKIhJpU0GIhMwv2Hrp+CbTlRYvc7hicAT1ObjNYwlWz8v/JRvpkSJZ7 KZ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=hCwSNtASFYkENxgowz6wh/YL9fDjf9WpL2VlfaibQrA=; b=W/luJb55k0z9HfDj9eO7CpPWg+1x1ewhjVsg8aeLpU3VnGZIHsLHZNkmRSqoUh+AKX /jslnwQNMAVTkKDzR/c5tiLBywCmVHdx8XQrgnRZPnvu3yEKpZuRQ+lfN7wrj5NK5iJK l3vlLrh+bWWYqF4fVej/WdoHCANGWu+MAGdd9NMwUGJHop7y23wowgVN+mSb05ZK96pX MBRy/eDNc+4H6CsbcKcoqq4mhm3dORLIJFC63fdVvUnLAaN2V9mKi6GWVhgnXIfAi10y DSYwomvJYV1/MGOgI3/LJlTMGeBK6UmOY79pZU73jFmGs5auHJ6Zmk0PMomERmZBVmTl mW/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dwuwoQWn; 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 u2si1832458pfu.13.2019.08.28.00.46.32; Wed, 28 Aug 2019 00:46:32 -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=dwuwoQWn; 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 S1726328AbfH1Hqc (ORCPT + 5 others); Wed, 28 Aug 2019 03:46:32 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:37858 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbfH1Hqb (ORCPT ); Wed, 28 Aug 2019 03:46:31 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7kTkQ003940; Wed, 28 Aug 2019 02:46:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566978389; bh=hCwSNtASFYkENxgowz6wh/YL9fDjf9WpL2VlfaibQrA=; h=From:To:CC:Subject:Date; b=dwuwoQWn5pXhI16yCnZMEsYGy/v1i6FdxW8TRjwcl/jpJavEorXWZ+Wi1zc1s7dDv YV6PhqdiEt4kdxAhbl1HH/6ghE0BbMCqrvUB27Sl0QM5DJKOLvs+LtKq2BrzP118yX Id7wvMfW2Sv9/6xKAno1LmFpmrIwsqzX0zVLQjvY= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7kTre111767 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:46:29 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE115.ent.ti.com (10.64.6.36) 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:46:28 -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, 28 Aug 2019 02:46:29 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7kR3M051783; Wed, 28 Aug 2019 02:46:28 -0500 From: Tero Kristo To: , CC: Subject: [PATCHv2] ARM: OMAP2+: pdata-quirks: add PRM data for reset support Date: Wed, 28 Aug 2019 10:46:27 +0300 Message-ID: <20190828074627.682-1-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 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 parent clockdomain for reset must be in force wakeup mode, otherwise the reset may never complete. Add pdata quirks for this purpose for PRM driver. Signed-off-by: Tero Kristo --- Changes in v2: - split out from the main PRM series - added support for am4/omap5 Depends on the v2 PRM series: https://marc.info/?l=linux-omap&m=156697680731569&w=2 arch/arm/mach-omap2/pdata-quirks.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 6c6f8fce854e..4730f8c0cb0e 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "clockdomain.h" #include "common.h" @@ -565,6 +566,12 @@ void omap_pcs_legacy_init(int irq, void (*rearm)(void)) pcs_pdata.rearm = rearm; } +static struct ti_prm_platform_data ti_prm_pdata = { + .clkdm_deny_idle = clkdm_deny_idle, + .clkdm_allow_idle = clkdm_allow_idle, + .clkdm_lookup = clkdm_lookup, +}; + /* * GPIOs for TWL are initialized by the I2C bus and need custom * handing until DSS has device tree bindings. @@ -664,6 +671,11 @@ static struct of_dev_auxdata omap_auxdata_lookup[] = { /* Common auxdata */ OF_DEV_AUXDATA("ti,sysc", 0, NULL, &ti_sysc_pdata), OF_DEV_AUXDATA("pinctrl-single", 0, NULL, &pcs_pdata), + OF_DEV_AUXDATA("ti,omap4-prm-inst", 0, NULL, &ti_prm_pdata), + OF_DEV_AUXDATA("ti,omap5-prm-inst", 0, NULL, &ti_prm_pdata), + OF_DEV_AUXDATA("ti,dra7-prm-inst", 0, NULL, &ti_prm_pdata), + OF_DEV_AUXDATA("ti,am3-prm-inst", 0, NULL, &ti_prm_pdata), + OF_DEV_AUXDATA("ti,am4-prm-inst", 0, NULL, &ti_prm_pdata), { /* sentinel */ }, };