From patchwork Fri Aug 4 17:43:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9881807 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 C228360375 for ; Fri, 4 Aug 2017 17:45:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF38928964 for ; Fri, 4 Aug 2017 17:45:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3CF72896F; Fri, 4 Aug 2017 17:45:31 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE 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 493B428964 for ; Fri, 4 Aug 2017 17:45:31 +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=Y9WyrNnRxYNmAFMQ+H2ly8cesCfwdqAi/SWf/HWlh4U=; b=Elew97Q1G9C+aM0ikrXugto7fI 8HoX0n+Dz91I62elYseWX+vs+7GC84F1qFUL7WLJ04K7Ek7NlNpNzvaM76fpyKsYU2w3h/s7vKMnV yy2lPzpvbsJUOBWyTKElSbnbW9FLgIScfIgIDChrJTvHhxoo6nNH9b1w1M15bTCt7lzADaqV3szdd X8qMhBWEhMvHsDg1JVKF0TH9eTpraGz+CqFD61amz4egn2J5NnDP9z8hCI6ya41xc3Dmc1GBzmXL1 K+bCROyeVq89PfHjnhkR/lZ7BpGLPPCLRRAatuivFLovw4r/Ql1CoEXEpDmeshFuXgDurzxAP/oi9 ZT2oWEWA==; 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 1ddgf9-0008Re-WF; Fri, 04 Aug 2017 17:45:28 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddge8-0005n2-I4 for linux-arm-kernel@lists.infradead.org; Fri, 04 Aug 2017 17:44:34 +0000 Received: by mail-wm0-x22f.google.com with SMTP id t201so25436064wmt.0 for ; Fri, 04 Aug 2017 10:44:05 -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=vXuD6EkA4LYGCEepaOW3qXnJBS7H92D5eZD84FsJSRU=; b=EUJVMjJ5hx3APXQkwWscWFy9U+4E4FEZ7whjkW/3TyE76Vx4XG3eMMto8SyBm1zqe1 8dL3E6kSIb/DE+cod+SDCHvcspSrzKiaGXMThhSpsLCR8LXvEtZOgBFmEfoCJ2Y0iT3P Gcze0MCHG1zuI7vYmlmn/LnaxucKWR0+HREDXlTpzV96GqJTKKesifIWY/Esq2KAXZpQ d8grIKelYmMdobL57CZkAN/Vjhfb3yWFzsOMr/Kms+OxyCzF4a2+9ZnjOR8IfWEe67Cv +gGObYU+uLEavEWzo+hismZMMFiaaSvoEMceSp7bqPGdKzI5EceAmhmd4rltu3iMb3Sw MlCQ== 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=vXuD6EkA4LYGCEepaOW3qXnJBS7H92D5eZD84FsJSRU=; b=Yy25F9TxL/i2Ww/y1QJiM5EiwWw/ohQpdocsPnw1pPT5H6xI6iE8bXkQvmtQYWx8gy bt8lBeHaMsLfiHLSkv9oYa1/uHhTQr8w912qGAAFv0xE9FEul+5KF88FtgceH3TJIr4m Q8OAsXd0F1T/FmfGpgqqbZHuiqiZwcS8WcKgzNHYFZDhOk5hrjhnm5qvKt9Kb/iiL0Ze hKo8juPOmE1WL3wEk1AxfXhu0ELEm3x2ZIwjz25FofDRFryXScQWgC3z161oJCzXLFco NXw2gK7TbPuQb5nlPeWdSBxBnQxIas2A8NaOgKSHPvajSOQpE4rDVoJUbopZUI/d6F6A iLow== X-Gm-Message-State: AHYfb5jHSWpSG5Yk+FnNaaRbRqm/ZTvU9X+3sh6hH6JTpa2vavPq8l0w kWzc1r/Mxc7XGv6S X-Received: by 10.28.154.211 with SMTP id c202mr1755116wme.91.1501868643893; Fri, 04 Aug 2017 10:44:03 -0700 (PDT) Received: from localhost.localdomain (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id p17sm996082wma.45.2017.08.04.10.44.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Aug 2017 10:44:03 -0700 (PDT) From: Jerome Brunet To: Ulf Hansson , Kevin Hilman , Carlo Caione Subject: [PATCH 03/14] mmc: meson-gx: clean up some constants Date: Fri, 4 Aug 2017 19:43:42 +0200 Message-Id: <20170804174353.16486-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170804174353.16486-1-jbrunet@baylibre.com> References: <20170804174353.16486-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170804_104425_223967_350003E0 X-CRM114-Status: UNSURE ( 7.79 ) 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 useless clock rate defines. These should not be defined but equested from the clock framework. Also correct typo on the DELAY register Signed-off-by: Jerome Brunet Reviewed-by: Kevin Hilman --- 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