From patchwork Mon Aug 21 16:02:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9913131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2E73F602A0 for ; Mon, 21 Aug 2017 16:03:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25DE6287B3 for ; Mon, 21 Aug 2017 16:03:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AA3B287B7; Mon, 21 Aug 2017 16:03:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A6233287B3 for ; Mon, 21 Aug 2017 16:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=L5C51WxFfMFbuuYO+G9Ya6OPPDn5d3VafXqc2GuYkzM=; b=GA1qBN4iA29F0TunE2B0we9x3N jxMkPHMXn1eosjCeWC7WPtgGWBpssk6QRlXE6Co//QWyndPPsFUXUY83iCrOGISFyXhRQlHEcncwX TaPLKWyLd0TgteqoboZUq1+zUb/Z4Diw/JC+TByncY1htzMxcYnuVe2R+SkxZTi8C1R0NUaHuzxuq 1r5htVor8sEqPy4lpEX/OjTleg177uRMEbkGbYsj/Dx0zRC5v5HDbuNyRcdCCBH9ubcG57C67MAJu pK3MgiYzvkc0Mn8+T/tvwN+kQ4I6U2DmAAJWrPfo03DDrHKiuDzsLV1YLiN5u1boqRXaVXJr1IH1k 9T5vGzJg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1djpAu-0001P6-L1; Mon, 21 Aug 2017 16:03:36 +0000 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1djpAn-0001Ey-0n for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2017 16:03:31 +0000 Received: by mail-wr0-x232.google.com with SMTP id z91so101572364wrc.4 for ; Mon, 21 Aug 2017 09:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v2tkjLCmvtPUcXAXid7lD2gkivw1BrIsDeU4rrNjMuU=; b=pcoCdDysjHq98vqK6tNuJ+LKgVePstHsRynnrAqDKdeD7217bOrkwlayQzGzt+8A0X qwk6bHXQ76/Ucx5Hlg85QasvncML09L3VsU5tEWouubdJaXY586dIpXvrGjsHEY78UMd lx3k0iwjKYlpx8dzl2Xech9jBY56TrrHWK3ITpiS0uy+DNPupLmyhlE/XJ2KMGhzjM15 aOcD27haVOB0DmWNHqBRskYpOE8E7udJ8Wbd9HeIjwC4qGnULH/zr+yQzjAS1r4PUI6d OsQLIEGXIN5LMPGH1w2kU5+OLBdZAHhsF6DfuABH1F+s/xP6T1+U96mqscFY/DWo4Mcb deqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v2tkjLCmvtPUcXAXid7lD2gkivw1BrIsDeU4rrNjMuU=; b=nt+oODlxkJdwh6xCbdWyrK/it8Jzc9CsdADiq2KdE8peTyleOTb9Jm4GHZx0Ch9DAb Ot9l+hOlu1JMLwLuKHE+aw5r/+P5WACJW1mFxhNCMM33OeCnBPhK9wO4EblR3IYy3epX BvEmpiwVxDF9d2sOZb1e5STM4ZDDgAfBHOZFDrpvtsR7xewB5b3v7GXGgOFubkIOEADT pdiNDmQTzF/Uyo6N4iE4mTOJy4LYOX78Ou+6uTIRNTIaWkx+TakRu04786ShwCgdPVDh 2yTHI2aq6y9IMAC9olCm14GcDyG+I9sC0XWxQo+p2HPiL1HEwq22nlDGcNDu7PPP6yAD NHGw== X-Gm-Message-State: AHYfb5h1bJuMaebY9bEJmLdx3dRKGX1kgwZpAS6Sha4xc+am/vNJOXTI pflSJNdSTN7SwckP X-Received: by 10.223.161.77 with SMTP id r13mr10856101wrr.53.1503331388642; Mon, 21 Aug 2017 09:03:08 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 63sm8120063wra.30.2017.08.21.09.03.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 09:03:08 -0700 (PDT) From: Jerome Brunet To: Ulf Hansson , Kevin Hilman , Carlo Caione Subject: [PATCH v2 03/16] mmc: meson-gx: clean up some constants Date: Mon, 21 Aug 2017 18:02:48 +0200 Message-Id: <20170821160301.21899-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170821160301.21899-1-jbrunet@baylibre.com> References: <20170821160301.21899-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170821_090329_279378_08A86B9E X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unused clock rate defines. These should not be defined but requested from the clock framework. Also correct typo on the DELAY register Reviewed-by: Kevin Hilman Signed-off-by: Jerome Brunet --- drivers/mmc/host/meson-gx-mmc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index d480a8052a06..8a74a048db88 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -45,9 +45,7 @@ #define CLK_DIV_MAX 63 #define CLK_SRC_MASK GENMASK(7, 6) #define CLK_SRC_XTAL 0 /* external crystal */ -#define CLK_SRC_XTAL_RATE 24000000 #define CLK_SRC_PLL 1 /* FCLK_DIV2 */ -#define CLK_SRC_PLL_RATE 1000000000 #define CLK_CORE_PHASE_MASK GENMASK(9, 8) #define CLK_TX_PHASE_MASK GENMASK(11, 10) #define CLK_RX_PHASE_MASK GENMASK(13, 12) @@ -57,7 +55,7 @@ #define CLK_PHASE_270 3 #define CLK_ALWAYS_ON BIT(24) -#define SD_EMMC_DElAY 0x4 +#define SD_EMMC_DELAY 0x4 #define SD_EMMC_ADJUST 0x8 #define SD_EMMC_CALOUT 0x10 #define SD_EMMC_START 0x40