From patchwork Thu Dec 12 13:05:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 181472 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp744101och; Thu, 12 Dec 2019 05:06:26 -0800 (PST) X-Google-Smtp-Source: APXvYqy0nhd17yJYrRl4dug2SfFW8hybndEGraItREtba1+a4Y8tqeMx0wzIPbNMhrh1Lfx4VaZq X-Received: by 2002:a05:6808:b1c:: with SMTP id s28mr5076933oij.2.1576155986795; Thu, 12 Dec 2019 05:06:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576155986; cv=none; d=google.com; s=arc-20160816; b=BsJtX8Pa86nBp3WBo1RfvGAWo2v3xZpQp8iewd39PK+Jhy1syD4wnWxfB4lcm5K2w6 SH1RReGdHdk3opD8aIxcwMqRtRC68o0A40uX/qYzoec8ZWS+pue1F03btYGFOpjmRRQx v6SiJsnVMHooMLPVM8erIy2PWjDoZHxb8Z/JXVb4K43sh53lALdBKlXqZyMvr/2jY+VN U1j+aAHNeWw89QUIQfhcm7FVAa0L443QkAza3Cg7BPj1UPWpInnhOZxEu9LBRxaqK2WW WIchTYn3/647IHWqV9YhkFfpvmWvCejM+uWbbu2zcyaJFDDBDeESHHaV8G9xa0OaDVpM v67Q== 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=uFUNbB1DEpEuyWqLCJZY6Li5FRxlCr7qLzhPkUcN9WQ=; b=OTmQ5EFoP4JLoniMiwDmJzkjmGltrJeKMq53NrzZh6Ieu6+jesaaOY7lZt/ssE+Uiq 3V3H7YJtXrqGspltyhFXpXeen8SEuWVXqj+RnTdn0xCw+fg9vaj5+AIWlk7Eu/UVsQQh 0dfz1GBtePQrWPfG46wz0T1WR1Idc06H/xNRcoqHr0zHwkMnwO6mfMhzxKRjqEWbyIbP aJJLcbksxEaswTse8z/1Q/l7kQb7BaTPqY3QFOUoWyN7Uf+oTfRG4t+XHPOYSaCd3dlQ t+59EyVtqzRPo4/8hgi//ef7vOa+vYAA4ZFyU7Eh8/MsCc5ayVY+El2vimnu+f0r4A2T qyrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="IE3Y8/ne"; 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 w64si2830708oif.51.2019.12.12.05.06.22; Thu, 12 Dec 2019 05:06:26 -0800 (PST) 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="IE3Y8/ne"; 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 S1729292AbfLLNGP (ORCPT + 4 others); Thu, 12 Dec 2019 08:06:15 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:34574 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729297AbfLLNGP (ORCPT ); Thu, 12 Dec 2019 08:06:15 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBCD6Anr046806; Thu, 12 Dec 2019 07:06:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576155970; bh=uFUNbB1DEpEuyWqLCJZY6Li5FRxlCr7qLzhPkUcN9WQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=IE3Y8/nec+mAFU50uyhzgdyMAgpP2nPVIHFx+BU4jpmP2qqa5LM4CQSlltkjLQO9R rx7JkyKfITsiq7kRJ71UFQ7l3VrweD/FA0duMUpMQgQ6gacEZPK4xdXj1R9aXbpZEZ JJpkkUKZptsoN5/Q+L+KWZo4S6uNpfb/QU0ySU8E= 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 xBCD6ADd052216 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Dec 2019 07:06:10 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) 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.1847.3; Thu, 12 Dec 2019 07:06:09 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 12 Dec 2019 07:06:09 -0600 Received: from sokoban.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBCD66KC069503; Thu, 12 Dec 2019 07:06:08 -0600 From: Tero Kristo To: , CC: , Subject: [PATCH 1/5] ARM: OMAP2+: pdata-quirks: add PRM data for reset support Date: Thu, 12 Dec 2019 15:05:37 +0200 Message-ID: <20191212130541.3657-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191212130541.3657-1-t-kristo@ti.com> References: <20191212130541.3657-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 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 Acked-by: Tony Lindgren --- arch/arm/mach-omap2/pdata-quirks.c | 8 ++++++++ 1 file changed, 8 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 ca52271de5a8..d8260e61ef92 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "clockdomain.h" #include "common.h" @@ -408,6 +409,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. @@ -510,6 +517,7 @@ 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,omap-prm-inst", 0, NULL, &ti_prm_pdata), { /* sentinel */ }, };