Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp241014pxf; Wed, 10 Mar 2021 05:27:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9KaO/lAjfT18LNhN2vOCK/SjNkyG8lHIsvDEY+1mbvZnFUL8uKzfVGU30jEPHIumzv36/ X-Received: by 2002:a05:6402:b85:: with SMTP id cf5mr3334779edb.248.1615382846944; Wed, 10 Mar 2021 05:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382846; cv=none; d=google.com; s=arc-20160816; b=vcTvQvjAcbH4TpVcHW4ImFLVpZrq46vTS5jv5QsGCl4BzMzKy+1QtYaEfTpSR8HdGs cDPEq9NUeyDto8lwUMihwZjmY1pB1j/+haoEwmHkQRp8sm1mzqPnBaWZItOiXUOdMi+x kgKynollh4reQQPVoN2aopOx7pA2V/VGLOe3j2JVLwnBjGEn+Oa4prMgqcs3hVT3mVgy 3iTr1hihXt0XvQTiJqaAZPGss0Hcqxa8G0ls1cmx0nvxv0+B6Pc3QSXiwaMk2hT2ZATY Vi5itpmqzQJ5+oyyJEmHgVmRTwGF8eLQafXJIDa6/YcfOiKr8HCCz9+J1t0VvfpCZKuh J4rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VWaX4SJNhgZgjlTh7pRBV19nTDdp/FWd0ZHuDmSRJH4=; b=mz4MZl0INN734uEMUOtWBxpe1lWT3PBnYXh1DDrGWrXLB1aRUe5tJmfTkH5opViyaz 7GqnHmOSxNMJTD2M1TDktpZXjSMmDwFpsBlbB4MzKH/l/OIUpT9G9LhE6xVO2fTAxK2v 8UThE8zgjrM7sQJJnld++eSAh47QiOBSLybU7Mis3TU9c05S7EMAkYmdO7wp//qvb126 6+zvP3qbtUubWTn2/Uh43n1lYLcSDz0AH6+fIgYFxU2JfJOKW+ffA3q54trts/Z0Tvaz y4qZe2UN0MVf8bgmFpYTZbHcN8hD9vCOto05gq3gOnjm5a6aEPzqbh4riEzjwFJZ4t9H qpNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lPgymjPp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si11336355edm.494.2021.03.10.05.27.03; Wed, 10 Mar 2021 05:27:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lPgymjPp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233352AbhCJNZ0 (ORCPT + 99 others); Wed, 10 Mar 2021 08:25:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:45660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232830AbhCJNYa (ORCPT ); Wed, 10 Mar 2021 08:24:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7C6BF64FE8; Wed, 10 Mar 2021 13:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382670; bh=1M1m0uH2q7uBqF/WhqQItDLmoETowGVwj1uW41Switk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lPgymjPpNUvbd47jx3rm+6abqPEzyea0nboXnkM2QCTSuV2dFFyl+KKVzyecJU8gN QfOY+Vla24BvMrUexUgYPAerBO1OpYFBH2GFnR9UdfzFXHjNr+p6hy7SwxaHWchSMv 0pMjy0TSvIose9jr4ilem97YMeq/HUxlyGZDy16g= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Sasha Levin Subject: [PATCH 5.10 13/49] bus: ti-sysc: Implement GPMC debug quirk to drop platform data Date: Wed, 10 Mar 2021 14:23:24 +0100 Message-Id: <20210310132322.383450855@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Tony Lindgren [ Upstream commit cfeeea60af2f01c13b94d57a9bb1291e7bc181da ] We need to enable no-reset-on-init quirk for GPMC if the config option for CONFIG_OMAP_GPMC_DEBUG is set. Otherwise the GPMC driver code is unable to show the bootloader configured timings. Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- drivers/bus/ti-sysc.c | 10 ++++++++++ include/linux/platform_data/ti-sysc.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 92ecf1a78ec7..45f5530666d3 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1379,6 +1379,8 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { SYSC_QUIRK_CLKDM_NOAUTO), SYSC_QUIRK("dwc3", 0x488c0000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff, SYSC_QUIRK_CLKDM_NOAUTO), + SYSC_QUIRK("gpmc", 0, 0, 0x10, 0x14, 0x00000060, 0xffffffff, + SYSC_QUIRK_GPMC_DEBUG), SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50030200, 0xffffffff, SYSC_QUIRK_OPT_CLKS_NEEDED), SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x00000006, 0xffffffff, @@ -1814,6 +1816,14 @@ static void sysc_init_module_quirks(struct sysc *ddata) return; } +#ifdef CONFIG_OMAP_GPMC_DEBUG + if (ddata->cfg.quirks & SYSC_QUIRK_GPMC_DEBUG) { + ddata->cfg.quirks |= SYSC_QUIRK_NO_RESET_ON_INIT; + + return; + } +#endif + if (ddata->cfg.quirks & SYSC_MODULE_QUIRK_I2C) { ddata->pre_reset_quirk = sysc_pre_reset_quirk_i2c; ddata->post_reset_quirk = sysc_post_reset_quirk_i2c; diff --git a/include/linux/platform_data/ti-sysc.h b/include/linux/platform_data/ti-sysc.h index 240dce553a0b..fafc1beea504 100644 --- a/include/linux/platform_data/ti-sysc.h +++ b/include/linux/platform_data/ti-sysc.h @@ -50,6 +50,7 @@ struct sysc_regbits { s8 emufree_shift; }; +#define SYSC_QUIRK_GPMC_DEBUG BIT(26) #define SYSC_MODULE_QUIRK_ENA_RESETDONE BIT(25) #define SYSC_MODULE_QUIRK_PRUSS BIT(24) #define SYSC_MODULE_QUIRK_DSS_RESET BIT(23) -- 2.30.1