From: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] 83xx: correctly set encryption and I2C bus 0 clock
Date: Fri, 13 Mar 2009 08:58:14 +0100 [thread overview]
Message-ID: <49BA1216.3030506@aimvalley.nl> (raw)
In-Reply-To: <20090312100612.1CE57832E8B8@gemini.denx.de>
OK, no problem.
Eventually I'll get it right :-)
3rd (and hopefully final) attempt:
This patch makes sure the correct mask is applied when setting
the encryption and I2C bus 0 clock in SCCR.
Failing to do so may lead to ENCCM being 0 in which case I2C bus 0
won't function.
diff --git a/cpu/mpc83xx/cpu_init.c b/cpu/mpc83xx/cpu_init.c
index 491c2e5..8e9c875 100644
--- a/cpu/mpc83xx/cpu_init.c
+++ b/cpu/mpc83xx/cpu_init.c
@@ -106,7 +106,7 @@ void cpu_init_f (volatile immap_t * im)
#ifdef CONFIG_SYS_SCCR_ENCCM
/* Encryption clock mode */
im->clk.sccr = (im->clk.sccr & ~SCCR_ENCCM) |
- (CONFIG_SYS_SCCR_ENCCM << SCCR_PCICM_SHIFT);
+ (CONFIG_SYS_SCCR_ENCCM << SCCR_ENCCM_SHIFT);
#endif
#ifdef CONFIG_SYS_SCCR_PCICM
--
1.5.2.2
Signed-off-by: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
Wolfgang Denk wrote:
> Dear Norbert van Bolhuis,
>
> In message <49B8B26B.4090104@aimvalley.nl> you wrote:
>> Yes I just cut-n-pasted it.
>> I hope it's better now.
>
> No, it is not better.
>
> Patches should be sent inline, and not as attachments. It would be
> best if you used git-send-email to post the patch.
>
> Also, your Signed-off-by: line is missing in the patch.
>
> And it would be better if you used git-format-patch to create the
> patch.
>
>
> Sorry for the trouble for a one-line-fix, but I think it is important
> to learn these things right in the beginning - the less efforts will
> be there when it comes to real work.
>
> Best regards,
>
> Wolfgang Denk
>
next prev parent reply other threads:[~2009-03-13 7:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-11 7:27 [U-Boot] [PATCH] 83xx: correctly set encryption and I2C bus 0 clock Norbert van Bolhuis
2009-03-11 8:33 ` Heiko Schocher
2009-03-11 17:57 ` Kim Phillips
2009-03-11 18:22 ` Scott Wood
2009-03-11 20:05 ` Kim Phillips
2009-03-12 6:57 ` Norbert van Bolhuis
2009-03-12 10:06 ` Wolfgang Denk
2009-03-13 7:58 ` Norbert van Bolhuis [this message]
2009-03-14 23:01 ` Kim Phillips
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=49BA1216.3030506@aimvalley.nl \
--to=nvbolhuis@aimvalley.nl \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox