From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 026C8C433EF for ; Mon, 4 Apr 2022 16:32:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E85E781B5C; Mon, 4 Apr 2022 18:32:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="ZjMGaxqP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 595DE804F9; Mon, 4 Apr 2022 18:32:26 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B8FD783928 for ; Mon, 4 Apr 2022 18:32:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A135E60C91; Mon, 4 Apr 2022 16:32:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD5ACC2BBE4; Mon, 4 Apr 2022 16:32:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649089942; bh=BYJnZS/Bs+gWdVY22N7jYTZmYj0Z/WIXeRqWifJ28Vk=; h=From:To:Cc:Subject:Date:From; b=ZjMGaxqPOien9PFVyS4FXQ31NWe+9jdcn/9yAwx/KWIhzCB+bp+sR2CcW6UwHP7Em ykcK+sj4r0PyliBG6JW7prvThVu6UaqMR0C+aYQEbLCuqhWgqYYK2/Oq0Xric3AyuR SO7PVsNz1c5AeGGscK1SRhZtROGOv7C/uDkCsiIqrvaXdULMe+HE31S/EZqvvhUhut xrNri3/WCFdvD/RM5exGgbWiKxTPDGrNVRY4g2en9aJr0umY1pov7ZuzGwtzysQSFE eHFtBu8yAieTC9c3yJW25/RVSVpIKIYDJwHuz8SuQnecY0btUkVkx4Jiy0Ipw1Fa/V LG9LIp0BQ4VCA== Received: by pali.im (Postfix) id 3E372768; Mon, 4 Apr 2022 18:32:19 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Priyanka Jain , Peng Fan Cc: u-boot@lists.denx.de Subject: [PATCH] mmc: fsl_esdhc: Define macro ESDHCCTL_SNOOP for Snoop attribute Date: Mon, 4 Apr 2022 18:32:13 +0200 Message-Id: <20220404163213.5781-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Pali Rohár --- drivers/mmc/fsl_esdhc.c | 2 +- include/fsl_esdhc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 05a6d0ce1562..fdf2cc290e06 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -724,7 +724,7 @@ static void esdhc_enable_cache_snooping(struct fsl_esdhc *regs) setbits_be32(&sysconf->sdhccr, 0x02000000); #else - esdhc_write32(®s->esdhcctl, 0x00000040); + esdhc_write32(®s->esdhcctl, ESDHCCTL_SNOOP); #endif } diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h index f86afe5dad86..7ab1460abc6e 100644 --- a/include/fsl_esdhc.h +++ b/include/fsl_esdhc.h @@ -76,6 +76,7 @@ /* eSDHC control register */ #define ESDHCCTL 0x0002e40c +#define ESDHCCTL_SNOOP (0x00000040) #define ESDHCCTL_PCS (0x00080000) #define ESDHCCTL_FAF (0x00040000) -- 2.20.1