From: Sascha Hauer <s.hauer@pengutronix.de>
To: Alexander Kurz <akurz@blala.de>
Cc: barebox@lists.infradead.org, eric@eukrea.com
Subject: Re: [PATCH 1/2] eukrea-cpuimx35: Fix wrong clock gating for ESDHC1
Date: Mon, 4 Jul 2016 09:33:17 +0200 [thread overview]
Message-ID: <20160704073317.GE20657@pengutronix.de> (raw)
In-Reply-To: <1467321854-15090-1-git-send-email-akurz@blala.de>
On Thu, Jun 30, 2016 at 11:24:13PM +0200, Alexander Kurz wrote:
> With commit 962d8b89d2ce ("imx35-regs: add defines for USB and SD") the
> shifter argument for the iMX35 ESDHC1 CGR instance has been erroneously
> assigned to CGR1 instead of CGR0. Fix this for the eukrea-cpuimx35 board.
>
> Signed-off-by: Alexander Kurz <akurz@blala.de>
> ---
> arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c | 6 ++++--
> arch/arm/mach-imx/include/mach/imx35-regs.h | 2 +-
> 2 files changed, 5 insertions(+), 3 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c b/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
> index 9c4ea13..8b5514b 100644
> --- a/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
> +++ b/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
> @@ -232,10 +232,12 @@ static int eukrea_cpuimx35_core_init(void)
> {
> u32 reg;
>
> - /* enable clock for I2C1, SDHC1, USB and FEC */
> + /* enable clock for I2C1, ESDHC1, USB and FEC */
> + reg = readl(MX35_CCM_BASE_ADDR + MX35_CCM_CGR0);
> + reg |= 0x3 << MX35_CCM_CGR0_ESDHC1_SHIFT;
> + reg = writel(reg, MX35_CCM_BASE_ADDR + MX35_CCM_CGR0);
> reg = readl(MX35_CCM_BASE_ADDR + MX35_CCM_CGR1);
> reg |= 0x3 << MX35_CCM_CGR1_FEC_SHIFT;
> - reg |= 0x3 << MX35_CCM_CGR1_SDHC1_SHIFT;
> reg |= 0x3 << MX35_CCM_CGR1_I2C1_SHIFT,
> reg = writel(reg, MX35_CCM_BASE_ADDR + MX35_CCM_CGR1);
> reg = readl(MX35_CCM_BASE_ADDR + MX35_CCM_CGR2);
> diff --git a/arch/arm/mach-imx/include/mach/imx35-regs.h b/arch/arm/mach-imx/include/mach/imx35-regs.h
> index 52e209b..6905400 100644
> --- a/arch/arm/mach-imx/include/mach/imx35-regs.h
> +++ b/arch/arm/mach-imx/include/mach/imx35-regs.h
> @@ -150,9 +150,9 @@
> #define MX35_CCM_CGR3 0x38
>
> #define MX35_CCM_CGR0_CSPI1_SHIFT 10
> +#define MX35_CCM_CGR0_ESDHC1_SHIFT 26
> #define MX35_CCM_CGR1_FEC_SHIFT 0
> #define MX35_CCM_CGR1_I2C1_SHIFT 10
> -#define MX35_CCM_CGR1_SDHC1_SHIFT 26
> #define MX35_CCM_CGR2_UART2_SHIFT 18
> #define MX35_CCM_CGR2_USB_SHIFT 22
>
> --
> 2.1.4
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2016-07-04 7:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 21:24 Alexander Kurz
2016-06-30 21:24 ` [PATCH 2/2] imx35-regs: add and use common CGR element shifters Alexander Kurz
2016-07-04 9:48 ` Sascha Hauer
2016-07-04 7:33 ` Sascha Hauer [this message]
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=20160704073317.GE20657@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=akurz@blala.de \
--cc=barebox@lists.infradead.org \
--cc=eric@eukrea.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox