* [U-Boot] MPC8280 Clock configuration for U-boot
@ 2009-08-06 18:56 GurumurthyGowdar
2009-08-06 19:49 ` Wolfgang Denk
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: GurumurthyGowdar @ 2009-08-06 18:56 UTC (permalink / raw)
To: u-boot
Dear all,
i have an issue with the clock configuration for MPC8280 for U-boot 1.3.1,
the following is the message when u-boot booted.
U-Boot 1.3.1 (Jul 27 2009 - 17:27:10)
MPC8260 Reset Status: External Soft, External Hard
MPC8260 Clock Configuration
- Bus-to-Core Mult 3x, VCO Div 4, 60x Bus Freq 16-50 , Core Freq 50-150
- dfbrg 1, corecnf 0x10, busdf 4, cpmdf 1, plldf 0, pllmf 4, pcidf 3
- vco_out 500000000, scc_clk 125000000, brg_clk 31250000
- cpu_clk 300000000, cpm_clk 250000000, bus_clk 100000000
CPU: MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at 300 MHz
Board: MPC8280 Based Remote IO CARD.SLN Technologies Pvt Ltd.
I2C: ready
DRAM: 512 MB
FLASH: 256.5 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: FCC2 ETHERNET
RIO->
in terms of hardware i have configured as per the clock configuration but if we see the
above message i have a doubt regarding the 60x Bus Freq 16-50 --> but i have set 100
MHZ, Core Freq 50-150 , i have set for 300 MHZ by checking the MPC8280EC i have
configured the clock settings.
please let me know whether i am doing anything wrong or it is correct. but why it is
printing wrong in u-boot message.
also i checked speed.c ,
if anyone ported U-boot 1.3.1 on MPC8280 send me the u-boot messages when booted or
power on.
With Regards,
Gurumurthy G.M.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] MPC8280 Clock configuration for U-boot
2009-08-06 18:56 [U-Boot] MPC8280 Clock configuration for U-boot GurumurthyGowdar
@ 2009-08-06 19:49 ` Wolfgang Denk
2009-08-06 19:57 ` Scott Wood
2009-08-06 20:25 ` Jerry Van Baren
2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2009-08-06 19:49 UTC (permalink / raw)
To: u-boot
Dear "GurumurthyGowdar",
In message <20090806185644.1388.qmail@f4mail-234-237.rediffmail.com> you wrote:
>
> i have an issue with the clock configuration for MPC8280 for U-boot 1.3.1,
...
> in terms of hardware i have configured as per the clock configuration but if we see the
> above message i have a doubt regarding the 60x Bus Freq 16-50 --> but i have set 100
> MHZ, Core Freq 50-150 , i have set for 300 MHZ by checking the MPC8280EC i have
> configured the clock settings.
Has this not been discusses in length before?
> please let me know whether i am doing anything wrong or it is correct. but why it is
> printing wrong in u-boot message.
You do not provide any new factrs about your hardware and/or your
configurations, so why do you expect any additional help from us?
> if anyone ported U-boot 1.3.1 on MPC8280 send me the u-boot messages when booted or
> power on.
It makes zero sense to re-post the very same question again and
again. Nobody can help you based on the little information you give.
All we can say is that you have some hardware and/or software miscon-
figuration.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There's an old proverb that says just about whatever you want it to.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] MPC8280 Clock configuration for U-boot
2009-08-06 18:56 [U-Boot] MPC8280 Clock configuration for U-boot GurumurthyGowdar
2009-08-06 19:49 ` Wolfgang Denk
@ 2009-08-06 19:57 ` Scott Wood
2009-08-06 20:25 ` Jerry Van Baren
2 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2009-08-06 19:57 UTC (permalink / raw)
To: u-boot
GurumurthyGowdar wrote:
> MPC8260 Clock Configuration
> - Bus-to-Core Mult 3x, VCO Div 4, 60x Bus Freq 16-50 , Core Freq 50-150
> - dfbrg 1, corecnf 0x10, busdf 4, cpmdf 1, plldf 0, pllmf 4, pcidf 3
> - vco_out 500000000, scc_clk 125000000, brg_clk 31250000
> - cpu_clk 300000000, cpm_clk 250000000, bus_clk 100000000
>
> CPU: MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at 300 MHz
> Board: MPC8280 Based Remote IO CARD.SLN Technologies Pvt Ltd.
> I2C: ready
> DRAM: 512 MB
> FLASH: 256.5 MB
> *** Warning - bad CRC, using default environment
>
> In: serial
> Out: serial
> Err: serial
> Net: FCC2 ETHERNET
> RIO->
>
> in terms of hardware i have configured as per the clock configuration but if we see the
> above message i have a doubt regarding the 60x Bus Freq 16-50 --> but i have set 100
> MHZ, Core Freq 50-150 , i have set for 300 MHZ by checking the MPC8280EC i have
> configured the clock settings.
It looks like the strings such as 16-50, 50-150, etc. are redundant (the
computed value using clkin is also shown), unhelpful (it's not obvious
that it's supposed to be a range -- and what is the range really
supposed to tell you?), and just wrong (it assumes certain possible clkins).
Look at cpu_clk and bus_clk instead, which have the values you're expecting.
> if anyone ported U-boot 1.3.1 on MPC8280 send me the u-boot messages when booted or
> power on.
Why use such old code?
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] MPC8280 Clock configuration for U-boot
2009-08-06 18:56 [U-Boot] MPC8280 Clock configuration for U-boot GurumurthyGowdar
2009-08-06 19:49 ` Wolfgang Denk
2009-08-06 19:57 ` Scott Wood
@ 2009-08-06 20:25 ` Jerry Van Baren
2 siblings, 0 replies; 4+ messages in thread
From: Jerry Van Baren @ 2009-08-06 20:25 UTC (permalink / raw)
To: u-boot
GurumurthyGowdar wrote:
> Dear all,
> i have an issue with the clock configuration for MPC8280 for U-boot 1.3.1,
>
> the following is the message when u-boot booted.
>
> U-Boot 1.3.1 (Jul 27 2009 - 17:27:10)
>
> MPC8260 Reset Status: External Soft, External Hard
>
> MPC8260 Clock Configuration
> - Bus-to-Core Mult 3x, VCO Div 4, 60x Bus Freq 16-50 , Core Freq 50-150
> - dfbrg 1, corecnf 0x10, busdf 4, cpmdf 1, plldf 0, pllmf 4, pcidf 3
> - vco_out 500000000, scc_clk 125000000, brg_clk 31250000
> - cpu_clk 300000000, cpm_clk 250000000, bus_clk 100000000
>
> CPU: MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at 300 MHz
OK, your bus clock is 100MHz, your multiplier is 3x, and your corecnf is
0x10.
[snip]
> in terms of hardware i have configured as per the clock configuration but if we see the
> above message i have a doubt regarding the 60x Bus Freq 16-50 --> but i have set 100
> MHZ, Core Freq 50-150 , i have set for 300 MHZ by checking the MPC8280EC i have
> configured the clock settings.
[snip]
grep says this is coming from cpu/mpc8260/speed.c. The only entry that
matches the power on print out is:
{ _3x, 4, " 16-50 ", " 50-150" }, /* 0x10 */
The 0x10 matches your corecnf and this is where the printout comes from.
It also is *WRONG.*
You want the corecnf of 0x08, which is *ALSO* a 3x multiplier, but for
the 100MHz/300MHz configuration that you are running.
{ _3x, 2, " 33-100", "100-300" }, /* 0x08 */
See the MPC8260 (MPC8280) User's Manual chapter 10.
You should also verify that your XFC (external filter capacitor) the
correct value (probably OK, but would cause issues). When it comes to
hardware folks, trust, but verify! ;-)
From speed.c:
typedef struct {
int b2c_mult;
int vco_div;
char *freq_60x;
char *freq_core;
} corecnf_t;
/*
* this table based on "Errata to MPC8260 PowerQUICC II User's Manual",
* Rev. 1, 8/2000, page 10.
*/
corecnf_t corecnf_tab[] = {
{ _1_5x, 4, " 33-100", " 33-100" }, /* 0x00 */
{ _1x, 4, " 50-150", " 50-150" }, /* 0x01 */
{ _1x, 8, " 25-75 ", " 25-75 " }, /* 0x02 */
{ _byp, -1, " ?-? ", " ?-? " }, /* 0x03 */
{ _2x, 2, " 50-150", "100-300" }, /* 0x04 */
{ _2x, 4, " 25-75 ", " 50-150" }, /* 0x05 */
{ _2_5x, 2, " 40-120", "100-240" }, /* 0x06 */
{ _4_5x, 2, " 22-65 ", "100-300" }, /* 0x07 */
{ _3x, 2, " 33-100", "100-300" }, /* 0x08 */ <---- GOOD
{ _5_5x, 2, " 18-55 ", "100-300" }, /* 0x09 */
{ _4x, 2, " 25-75 ", "100-300" }, /* 0x0A */
{ _5x, 2, " 20-60 ", "100-300" }, /* 0x0B */
{ _1_5x, 8, " 16-50 ", " 16-50 " }, /* 0x0C */
{ _6x, 2, " 16-50 ", "100-300" }, /* 0x0D */
{ _3_5x, 2, " 30-85 ", "100-300" }, /* 0x0E */
{ _off, -1, " ?-? ", " ?-? " }, /* 0x0F */
{ _3x, 4, " 16-50 ", " 50-150" }, /* 0x10 */ <---- BAD
{ _2_5x, 4, " 20-60 ", " 50-120" }, /* 0x11 */
{ _6_5x, 2, " 15-46 ", "100-300" }, /* 0x12 */
{ _byp, -1, " ?-? ", " ?-? " }, /* 0x13 */
{ _7x, 2, " 14-43 ", "100-300" }, /* 0x14 */
{ _2x, 4, " 25-75 ", " 50-150" }, /* 0x15 */
{ _7_5x, 2, " 13-40 ", "100-300" }, /* 0x16 */
{ _4_5x, 2, " 22-65 ", "100-300" }, /* 0x17 */
{ _unk, -1, " ?-? ", " ?-? " }, /* 0x18 */
{ _5_5x, 2, " 18-55 ", "100-300" }, /* 0x19 */
{ _4x, 2, " 25-75 ", "100-300" }, /* 0x1A */
{ _5x, 2, " 20-60 ", "100-300" }, /* 0x1B */
{ _8x, 2, " 12-38 ", "100-300" }, /* 0x1C */
{ _6x, 2, " 16-50 ", "100-300" }, /* 0x1D */
{ _3_5x, 2, " 30-85 ", "100-300" }, /* 0x1E */
{ _off, -1, " ?-? ", " ?-? " }, /* 0x1F */
};
Good luck,
gvb
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-06 20:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 18:56 [U-Boot] MPC8280 Clock configuration for U-boot GurumurthyGowdar
2009-08-06 19:49 ` Wolfgang Denk
2009-08-06 19:57 ` Scott Wood
2009-08-06 20:25 ` Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox