public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] One more patch for the sequoia --- This time to get a fater EBC on newer 666.66 MHz processors
@ 2007-05-08 16:57 Jeff Mann
  2007-05-08 18:56 ` Wolfgang Denk
  2007-05-09  5:40 ` Stefan Roese
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Mann @ 2007-05-08 16:57 UTC (permalink / raw)
  To: u-boot

[PATCH] Because the Sequoia board does not boot with an EBC faster than
66MHz, 
the clock divider are changed after the initial boot process. 
 
This allows for maximum clocking speeds  to be achieved on newer boards.
Sequoia boards with 666.66 MHz processors require that the EBC divider
be set 
to 3 in order to start the initial boot process at a slower EBC speed.
After 
the initial boot process, the divider can be set back to 2, which will
cause the
boards to run at 83.333MHz. This is backward compatible with boards with

533.33 MHz processors, as these boards will already be set with an EBC
divider 
of 2.
 
Signed-off-by: Jeffrey Mann <mannj@embeddedplanet.com>
---
Stefan: how's my formating this time?

 board/amcc/sequoia/sequoia.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 
diff --git a/board/amcc/sequoia/sequoia.c b/board/amcc/sequoia/sequoia.c
index 930fa71..80f2498
--- a/board/amcc/sequoia/sequoia.c
+++ b/board/amcc/sequoia/sequoia.c
@@ -132,6 +132,12 @@ int board_early_init_f(void)
   (0x80000000 >> (28 + CFG_NAND_CS));
  mtsdr(SDR0_CUST0, sdr0_cust0);
 
+ /* Update EBC speed after booting from i2c bootstrap settings *
+  * on newer boards with 33.333 MHZ Clocks                     */
+ if (in8(CFG_BCSR_BASE + 3) & 0x80) {
+  mtdcr(0xc, 0xe0);
+  mtdcr(0xd, 0x02000000);
+ }
  return 0;
 }
 
-- 
1.4.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-11  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-08 16:57 [U-Boot-Users] [PATCH] One more patch for the sequoia --- This time to get a fater EBC on newer 666.66 MHz processors Jeff Mann
2007-05-08 18:56 ` Wolfgang Denk
2007-05-09  5:40 ` Stefan Roese
2007-05-09 13:56   ` [U-Boot-Users] [PATCH] One more patch for the sequoia Jeff Mann
2007-05-11  8:35     ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox