All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Moon <linux.amoon@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] mmc: meson-gx: Fix tx phase in the tuning process
Date: Tue, 26 Nov 2019 21:12:03 +0000	[thread overview]
Message-ID: <20191126211206.4537-2-linux.amoon@gmail.com> (raw)
In-Reply-To: <20191126211206.4537-1-linux.amoon@gmail.com>

odroid n2 eMMC module would failed to boot up,
because of TX phase clk failure, fix the typo in
TX phase macro to help tune correct clk freqency.

Before these changes.
  clock is enabled (380953Hz)
  clock is enabled (25000000Hz)
after these changes
  clock is enabled (380953Hz)
  clock is enabled (25000000Hz)
  clock is enabled (52000000Hz)
  clock is enabled (52000000Hz)
  clock is enabled (52000000Hz)

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
Tested on
new orange - eMMC AJNB4R 14.6 GiB MMC 5.1
old back   - eMMC CGND3R 58.2 GiB MMC 5.0
---
 drivers/mmc/meson_gx_mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c
index 031cc79ccb..87bea2888b 100644
--- a/drivers/mmc/meson_gx_mmc.c
+++ b/drivers/mmc/meson_gx_mmc.c
@@ -53,7 +53,7 @@ static void meson_mmc_config_clock(struct mmc *mmc)
 	meson_mmc_clk |= CLK_CO_PHASE_180;
 
 	/* 180 phase tx clock */
-	meson_mmc_clk |= CLK_TX_PHASE_000;
+	meson_mmc_clk |= CLK_TX_PHASE_180;
 
 	/* clock settings */
 	meson_mmc_clk |= clk_src;
-- 
2.24.0

WARNING: multiple messages have this Message-ID (diff)
From: Anand Moon <linux.amoon@gmail.com>
To: Neil Armstrong <narmstrong@baylibre.com>,
	Peng Fan <peng.fan@nxp.com>,
	u-boot-amlogic@groups.io, u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] mmc: meson-gx: Fix tx phase in the tuning process
Date: Tue, 26 Nov 2019 21:12:03 +0000	[thread overview]
Message-ID: <20191126211206.4537-2-linux.amoon@gmail.com> (raw)
In-Reply-To: <20191126211206.4537-1-linux.amoon@gmail.com>

odroid n2 eMMC module would failed to boot up,
because of TX phase clk failure, fix the typo in
TX phase macro to help tune correct clk freqency.

Before these changes.
  clock is enabled (380953Hz)
  clock is enabled (25000000Hz)
after these changes
  clock is enabled (380953Hz)
  clock is enabled (25000000Hz)
  clock is enabled (52000000Hz)
  clock is enabled (52000000Hz)
  clock is enabled (52000000Hz)

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
Tested on
new orange - eMMC AJNB4R 14.6 GiB MMC 5.1
old back   - eMMC CGND3R 58.2 GiB MMC 5.0
---
 drivers/mmc/meson_gx_mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c
index 031cc79ccb..87bea2888b 100644
--- a/drivers/mmc/meson_gx_mmc.c
+++ b/drivers/mmc/meson_gx_mmc.c
@@ -53,7 +53,7 @@ static void meson_mmc_config_clock(struct mmc *mmc)
 	meson_mmc_clk |= CLK_CO_PHASE_180;
 
 	/* 180 phase tx clock */
-	meson_mmc_clk |= CLK_TX_PHASE_000;
+	meson_mmc_clk |= CLK_TX_PHASE_180;
 
 	/* clock settings */
 	meson_mmc_clk |= clk_src;
-- 
2.24.0


  reply	other threads:[~2019-11-26 21:12 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 21:12 [U-Boot] [PATCH 0/4] Odroid n2 using eMMC would fail to boot up Anand Moon
2019-11-26 21:12 ` Anand Moon
2019-11-26 21:12 ` Anand Moon [this message]
2019-11-26 21:12   ` [U-Boot] [PATCH 1/4] mmc: meson-gx: Fix tx phase in the tuning process Anand Moon
2019-11-27 13:00   ` Neil Armstrong
2019-11-27 13:00     ` Neil Armstrong
2019-11-27 14:42     ` Anand Moon
2019-11-27 14:42       ` Anand Moon
2019-12-04  9:26       ` Neil Armstrong
2019-12-04  9:26         ` Neil Armstrong
2019-12-20 10:10         ` Neil Armstrong
2019-12-20 10:10           ` Neil Armstrong
2019-12-20 18:58           ` Anand Moon
2019-12-20 18:47             ` Anand Moon
2019-12-20 19:23               ` Jerome Brunet
2019-12-21 11:30                 ` Anand Moon
2019-11-26 21:12 ` [U-Boot] [PATCH 2/4] configs: meson64: enable GIC support for G12A/G12B Anand Moon
2019-11-26 21:12   ` Anand Moon
2019-11-27 12:56   ` Neil Armstrong
2019-11-27 12:56     ` Neil Armstrong
2019-11-26 21:12 ` [U-Boot] [PATCH 3/4] board: amlogic: select PWRSEQ for all amlogic platform Anand Moon
2019-11-26 21:12   ` Anand Moon
2019-11-27 12:56   ` Neil Armstrong
2019-11-27 12:56     ` Neil Armstrong
2019-11-26 21:12 ` [U-Boot] [PATCH 4/4] board: amlogic: Add missing config option Anand Moon
2019-11-26 21:12   ` Anand Moon
2019-11-27 12:55   ` Neil Armstrong
2019-11-27 12:55     ` Neil Armstrong
2019-11-27 14:43     ` Anand Moon
2019-11-27 14:43       ` Anand Moon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191126211206.4537-2-linux.amoon@gmail.com \
    --to=linux.amoon@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.