From patchwork Thu Mar 15 08:54:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huang lin X-Patchwork-Id: 10284119 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 5E55C60291 for ; Thu, 15 Mar 2018 08:54:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F668286EB for ; Thu, 15 Mar 2018 08:54:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40F31286F3; Thu, 15 Mar 2018 08:54:59 +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 autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 BAC96286EB for ; Thu, 15 Mar 2018 08:54:58 +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: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:In-Reply-To: References:List-Owner; bh=2/LcApBDQgP8C6X+SsANbbz6Tb4EUKaohGD0NrX7jIg=; b=unb g+KVCPJKD4iMkTpmSdl2Bei+LmGtmKO/vFU+Gmnes/rlqEUlryv0jPKAbdWZePnBjo86Ab8gXTuWQ NcfWLvT97MwX8+/l0eAkPf+0hhxH7hAlRGZFAOHu0DTDowbNnRXfyaH/lYdJoMTBg9PX5HQUFrOyX D3dxFIVGTEu4HyXenURxURrqm+o/Ktnf0oGubOUwdKQQG56xjPKr1alhNPe47vpWL8xh1sJrxALru HGgsbGc/FsA3C6ouf1Pf7FvUYm0T2wwQkCGgUwN+EJs6ebQIspp9NSwL6kXOJtoNJp+cJDIOdL9+y 5EuIZgKxWiX5jmyRXPN0mibAdDReszQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewOf2-000307-N9; Thu, 15 Mar 2018 08:54:56 +0000 Received: from mail-pl0-f65.google.com ([209.85.160.65]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewOez-0002yK-09 for linux-rockchip@lists.infradead.org; Thu, 15 Mar 2018 08:54:54 +0000 Received: by mail-pl0-f65.google.com with SMTP id k22-v6so2513856pls.6 for ; Thu, 15 Mar 2018 01:54:40 -0700 (PDT) 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; bh=c6rGU1Xh7p1ExrpSaznNJ4i4zxwEU1GyiJErodNzTOE=; b=DlDU1A5X7SulEXK+Sqvl8sTNAsEmP1HKDeVa3nZtFNNuAyj89wPz0tglEzbh7Jy43V wYcaTEgIkrX3cl9JDWtknJ3yRKomrTexiBQPgIYdxSAMoaY9ydLb92xmXoOoihQLso4v kHBZPT6Q9Od1hVkq8ZVyFFpivHzXrjuTi25b0ArH/TdY973X6uAWBYnJspbvtQcjJY0X 6TnYwq8n0ALMfVYHO10EOkb+3eAWZmN8La8PgmA4g9d2O5+MenLKD88ZqHewofvwVYLR PV2uXLwygwCDiBS4reoGwqrpsoejCS0bEFAOWgMCpi7IUOw0FWBx/TUQvupsAE7pO9xW YHEg== X-Gm-Message-State: AElRT7EutaeL/L3bxg3I9qDoik2msfbqUCeu2vj9IBwhinj4Jm4G7xAo jie5w19PnWDBHCnQxIPOBz8= X-Google-Smtp-Source: AG47ELt4e+476Qus3jIrPRVGPpHGzXdFhWvlsjA4GWhHs+U4pzmIv/1FbqU5DNwUu/NyUtPkgy4jzg== X-Received: by 2002:a17:902:8c83:: with SMTP id t3-v6mr7229701plo.310.1521104079973; Thu, 15 Mar 2018 01:54:39 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id f186sm9954710pfc.86.2018.03.15.01.54.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Mar 2018 01:54:38 -0700 (PDT) From: Lin Huang To: heiko@sntech.de Subject: [PATCH] clk: rockchip: assign correct id for pclk_ddr and hclk_sd in rk3399 Date: Thu, 15 Mar 2018 16:54:31 +0800 Message-Id: <1521104071-19595-1-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180315_015453_167750_B96ED844 X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dbasehore@chromium.org, Lin Huang , briannorris@chromium.org, diander@chromium.ogr, linux-rockchip@lists.infradead.org, linux-clk@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Assign id PCLK_DDR to pclk_ddr, id HCLK_SD to hclk_sd, so we can assign frequency for them in dts. Change-Id: I6c4d15d37ddabe4ed34e2351cf26e660672ae9ee Signed-off-by: Lin Huang Reviewed-by: Douglas Anderson Reviewed-by: Shawn Lin --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 6847120..a29c99e 100644 --- a/drivers/clk/rockchip/clk-rk3399.c +++ b/drivers/clk/rockchip/clk-rk3399.c @@ -670,7 +670,7 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = { RK3399_CLKGATE_CON(9), 7, GFLAGS, &rk3399_uart3_fracmux), - COMPOSITE(0, "pclk_ddr", mux_pll_src_cpll_gpll_p, CLK_IGNORE_UNUSED, + COMPOSITE(PCLK_DDR, "pclk_ddr", mux_pll_src_cpll_gpll_p, CLK_IGNORE_UNUSED, RK3399_CLKSEL_CON(6), 15, 1, MFLAGS, 8, 5, DFLAGS, RK3399_CLKGATE_CON(3), 4, GFLAGS), @@ -886,7 +886,7 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = { RK3399_CLKGATE_CON(31), 8, GFLAGS), /* sdio & sdmmc */ - COMPOSITE(0, "hclk_sd", mux_pll_src_cpll_gpll_p, 0, + COMPOSITE(HCLK_SD, "hclk_sd", mux_pll_src_cpll_gpll_p, 0, RK3399_CLKSEL_CON(13), 15, 1, MFLAGS, 8, 5, DFLAGS, RK3399_CLKGATE_CON(12), 13, GFLAGS), GATE(HCLK_SDMMC, "hclk_sdmmc", "hclk_sd", 0,