All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlo Caione <carlo@caione.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] rk3288: Disable JTAG function from sdmmc0 IO
Date: Thu,  7 Jun 2018 13:39:17 +0100	[thread overview]
Message-ID: <20180607123918.15245-3-carlo@caione.org> (raw)
In-Reply-To: <20180607123918.15245-1-carlo@caione.org>

From: Carlo Caione <carlo@endlessm.com>

The GRF_SOC_CON0.grf_force_jtag bit is automatically set at boot and it
is preventing the SDMMC to work correctly. Disable the JTAG function on
the assumption that a working SD has higher priority over JTAG.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
---
 arch/arm/mach-rockchip/rk3288-board.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-rockchip/rk3288-board.c b/arch/arm/mach-rockchip/rk3288-board.c
index 0365793009..7499201b73 100644
--- a/arch/arm/mach-rockchip/rk3288-board.c
+++ b/arch/arm/mach-rockchip/rk3288-board.c
@@ -307,6 +307,7 @@ U_BOOT_CMD(
 	""
 );
 
+#define GRF_SOC_CON0 0xff770244
 #define GRF_SOC_CON2 0xff77024c
 
 int board_early_init_f(void)
@@ -339,5 +340,8 @@ int board_early_init_f(void)
 	}
 	rk_setreg(GRF_SOC_CON2, 1 << 0);
 
+	/* Disable JTAG */
+	rk_clrreg(GRF_SOC_CON0, 1 << 12);
+
 	return 0;
 }
-- 
2.17.1

  parent reply	other threads:[~2018-06-07 12:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07 12:39 [U-Boot] [PATCH 0/3] rk3288: veyron: Enable SDMMC when booting from SPI Carlo Caione
2018-06-07 12:39 ` [U-Boot] [PATCH 1/3] rk3288: veyron: Init boot-on regulators Carlo Caione
2018-06-08 21:59   ` Simon Glass
2018-06-07 12:39 ` Carlo Caione [this message]
2018-06-08 21:59   ` [U-Boot] [PATCH 2/3] rk3288: Disable JTAG function from sdmmc0 IO Simon Glass
2018-06-07 12:39 ` [U-Boot] [PATCH 3/3] rockchip: veyron: Set vcc33_sd regulator value Carlo Caione
2018-06-08 21:59   ` Simon Glass

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=20180607123918.15245-3-carlo@caione.org \
    --to=carlo@caione.org \
    --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.