| Message ID | 20200524164315.124527-1-jagan@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBRWIVL3AKGQEDH5LITI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3D7773F06D for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 24 May 2020 18:43:52 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id n23sf13621061pjv.2 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 24 May 2020 09:43:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590338630; cv=pass; d=google.com; s=arc-20160816; b=EM5YBdhi3iTpAPx3SZMsmJEMgCJiIXhaM5LXambrckvqEBjCmMT9ldubbBqXOZgsss VpD1TL087eEPnmZd5wc7HhQP9gDed+ox4UKjNK3tQF6eO9kkew7NeIz8kvcufJ6606kD M15JlfmFvTagfh8bPbOIte3j3nmi0Jqjddhs1C+/y1XeLMPOR6AA0tJxCdEH8jqlCg60 AtJQMiiF4BGdcc3FB/2huJHvB3aq/vgT/TbcfihZN3ZVQ9NZkcbPYLMF3xFDPRcB4/uj ysByXfVkN8IpNrh3pu1XX+bu9NxOXBtqVmtlBsX794Wf+wjMFtvsqhKnzLRUdhjOAu6T tGFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=8ZCSRLhGaHOvQQnclsdhQWS0tHGhHNVJxliTpQZfhys=; b=WKXAxk6JJzwJN0pYZPXRql4/NqIrXJa9j80i7RRMjAbqUxPB8ItqsbwO1Yd9vhaFdi Vvkaje4/45sfHz7GXDjIyTEQgLobG1urPBtY074/9MWyoOu7bxZcjs1HkSp2Fl1Rmha3 sMEmDjQJHc+V2csxfmbWhVTjOxhIIF4f27M+9LlzdWUiv3TfynCmxvmk5zhz3QUsP8wE FeUfZ2M1F/lplad1t4vwDE4CUfRpa0ReP8A8dDYuUn5DNJ88Jzv2IZPSpQAL/m/g0ock EDYRnZd0fgUOQ4mOMinzcQhkqOz49Kf/4SlaV1xQZ+hPfnHYI3nbqjl6ST+PygBmo59C 0OVA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Uv0PxqnE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=8ZCSRLhGaHOvQQnclsdhQWS0tHGhHNVJxliTpQZfhys=; b=X8SWAJyaogJMAI3U03fq6T/DP0xWw+fg98LpSAzPsaLvQ2CfpqClhXny7rx/mnTf7r iv1k2fpvNwYWGPEyzxUlHeRnAJxXYUP3qYnwbHGTWAfrqQGzJpgE/cKN+ZDRGQ9MYfSy LzSuLHfaNqp3ibpY3V3zFBFmtpPlzy9tn3hdQ= 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:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=8ZCSRLhGaHOvQQnclsdhQWS0tHGhHNVJxliTpQZfhys=; b=KOFzxJT0CBwNAxzOVpPeA4dGij91BHsc42rrq0h4GgzlxiiV55JcE1UITIpbzGo4gQ 5VcNqsxRJHDQqGLl0w4wdqkjgaehX6kKVAzDvZ3Kt9kAWuwcpq6y09FeMfyEpaz/ghUA mrWWcDUUz8d0y5w1XQrEyzxHSQ0YJFv7jdWMo1Is+mRIo9+j/EvFiweRd/gMbyiCo6o3 wDFYVu3aJC2XbspQM0fN97S2FFUHR1/zz/Y+kPBtZTIYM+JkpzUC5ayypG5oUlbTsEhr ij4DSC6wEb5peUKYsu7FQ7lNHnfU47vxAx+fnqRF96Q/rEWKURSJo9AQGDRw8vAFNjuC mAUw== X-Gm-Message-State: AOAM533kHUPqCLdonAEvXJCukIXKl54aK4fcpn2l21dJIsCa8/hMh+cR iTS96MMJSZNwghQw2HHw4lSBBMI9 X-Google-Smtp-Source: ABdhPJwwO+p7hxlgYmtVcg617f2LXmjLunSbizxsKZd53SCH7CCx2gGhrAZbh8srxNvKQAzBkek99A== X-Received: by 2002:a17:90a:23e7:: with SMTP id g94mr17035701pje.210.1590338630367; Sun, 24 May 2020 09:43:50 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d90e:: with SMTP id c14ls2904259plz.0.gmail; Sun, 24 May 2020 09:43:50 -0700 (PDT) X-Received: by 2002:a17:90b:3704:: with SMTP id mg4mr2820964pjb.84.1590338629857; Sun, 24 May 2020 09:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590338629; cv=none; d=google.com; s=arc-20160816; b=mob5jon2zUJ+YiMIeQwlStUxsNLYbT0bUw5qZXONY5TIpcy7QaVDXO42LMrdd6/VS5 5XIUI1qrQ/5tPfeWedKs3feozoZY2z3qb0ZoS7+MOBB/EIx3w4V7eYnjulOigZ6xparw 7Fg8a8fj4qiwAekyiZmJsrEPFz/WpR5JPElz+O06rJYP/qzWx71Qvofrl1CJ0S9tD6mr QyrIx6RU2F6ploYbusi4wlQHG7SvL9ErTO7dUAzbT3I11GQu26jiKcwf9n1dkpstN5hO nDEYSnQaPax1PJqh5ZpRLE1RxU6dNO7Q80zWYtg7AU/Q91hQkueE1r96Gm6rYj8sm0xv 0M9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=FA/llXXYQQgDMCzvrQnEJDXZmoLqmKvTJ8JGdYOa/Q4=; b=qyVFS90Z2TdaVcvD42MKrr+Pn3+Vza9pDs3dHzXr0Iuo9cQD4OGbH57M96rp2GXSyi CJ0mQgqkJpKm5gx0U+xuL5y4mx5RScvcJyCAUQ3wjhpUO6LWa8l+c4X/GoWH0cQ1P4v6 2jogEVR/iBCxetDHN11ffhy9MEEVMIU9WB72qh3XqyMhNQTPYqL0kV7G3e7n5w5TVEWL q10VdVpULmTdSqqU4LrU4eQhca0lgKDh2EVcxaD92JyjxKIBJ4ubtIhSqRxEw7TBvD38 Mv+dyPdMcEpnDh6ChwQsAbKCU3067/FJN2HUPKkYrgoQ18wGRxhu7gim4OspqITkZKwY tpPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Uv0PxqnE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id a14sor20157924pju.7.2020.05.24.09.43.49 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 24 May 2020 09:43:49 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:8c0c:: with SMTP id a12mr16327527pjo.149.1590338628792; Sun, 24 May 2020 09:43:48 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9b1:856c:6c2b:bde7]) by smtp.gmail.com with ESMTPSA id k2sm11575344pfd.108.2020.05.24.09.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 09:43:47 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Kever Yang <kever.yang@rock-chips.com>, Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH] clk: rk3399: Fix eMMC get_clk reg offset Date: Sun, 24 May 2020 22:13:15 +0530 Message-Id: <20200524164315.124527-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Uv0PxqnE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
clk: rk3399: Fix eMMC get_clk reg offset
|
|
Commit Message
Jagan Teki
May 24, 2020, 4:43 p.m. UTC
Actual eMMC get_clk register is clksel_con22 instead of
clksel_con21.
Fix it.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
drivers/clk/rockchip/clk_rk3399.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 2020/5/25 上午12:43, Jagan Teki wrote: > Actual eMMC get_clk register is clksel_con22 instead of > clksel_con21. > > Fix it. > > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Thanks, - Kever > --- > drivers/clk/rockchip/clk_rk3399.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c > index 6a78837619..4caf3b5617 100644 > --- a/drivers/clk/rockchip/clk_rk3399.c > +++ b/drivers/clk/rockchip/clk_rk3399.c > @@ -728,7 +728,7 @@ static ulong rk3399_mmc_get_clk(struct rockchip_cru *cru, uint clk_id) > div = 2; > break; > case SCLK_EMMC: > - con = readl(&cru->clksel_con[21]); > + con = readl(&cru->clksel_con[22]); > div = 1; > break; > default:
diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 6a78837619..4caf3b5617 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -728,7 +728,7 @@ static ulong rk3399_mmc_get_clk(struct rockchip_cru *cru, uint clk_id) div = 2; break; case SCLK_EMMC: - con = readl(&cru->clksel_con[21]); + con = readl(&cru->clksel_con[22]); div = 1; break; default: