* [U-Boot-Users] How to change MPU frequency in U-Boot?
@ 2006-05-16 18:55 phAntOm yAng
2006-05-16 20:18 ` Wolfgang Denk
0 siblings, 1 reply; 6+ messages in thread
From: phAntOm yAng @ 2006-05-16 18:55 UTC (permalink / raw)
To: u-boot
Dear All:
I changed MPU/XTal/DPLL1 frequency in linux kernel,
and it is valid.
Now, I want to change MPU frequency in U-Boot.
How to do that?
Thanks,
phantom yang
--
____________________________________________________
Get your own Hello Kitty email @ www.sanriotown.com
??????
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] How to change MPU frequency in U-Boot?
2006-05-16 18:55 phAntOm yAng
@ 2006-05-16 20:18 ` Wolfgang Denk
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2006-05-16 20:18 UTC (permalink / raw)
To: u-boot
In message <20060516185540.8E63F7B602@ws5-10.us4.outblaze.com> you wrote:
>
> Now, I want to change MPU frequency in U-Boot.
> How to do that?
Start reading your hardware documentation.
Then please read http://www.catb.org/%7eesr/faqs/smart-questions.html
Then post again, and don't forget to mention whatarchitecture /
processor / board you are talking about.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"If you own a machine, you are in turn owned by it, and spend your
time serving it..." - Marion Zimmer Bradley, _The Forbidden Tower_
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] How to change MPU frequency in U-Boot?
@ 2006-06-05 13:06 phAntOm yAng
2006-06-06 6:06 ` Stefan Roese
0 siblings, 1 reply; 6+ messages in thread
From: phAntOm yAng @ 2006-06-05 13:06 UTC (permalink / raw)
To: u-boot
Dear All:
My platform and environment are U-Boot 1.1.3+Linux 2.6.14-omap1 on omap5912osk.
I try to change the value of MPU MHz, xtal MHz, dpll1 MHz.
After reading the source code, I found two informations:
1)In u-boot-1.1.3/board/omap5912osk/platform.S
VAL_ARM_CKCTL:
.word 0x3000
VAL_DPLL1_CTL:
.word 0x2830
2)in linux-2.6.14/arch/arm/mach-omap1/clock.h
/*-------------------------------------------------------------------------
* Omap1 MPU rate table
*-------------------------------------------------------------------------*/
static struct mpu_rate rate_table[] = {
/* MPU MHz, xtal MHz, dpll1 MHz, CKCTL, DPLL_CTL
* NOTE: Comment order here is different from bits in CKCTL value:
* armdiv, dspdiv, dspmmu, tcdiv, perdiv, lcddiv
*/
#if defined(CONFIG_OMAP_ARM_192MHZ)
{ 192000000, 19200000, 192000000, 0x050f, 0x2510 }, /* 1/1/2/2/8/8 */
{ 192000000, 12000000, 192000000, 0x050f, 0x2810 }, /* 1/1/2/2/8/8 */
{ 96000000, 12000000, 192000000, 0x055f, 0x2810 }, /* 2/2/2/2/8/8 */
{ 48000000, 12000000, 192000000, 0x0baf, 0x2810 }, /* 4/4/4/8/8/8 */
{ 24000000, 12000000, 192000000, 0x0fff, 0x2810 }, /* 8/8/8/8/8/8 */
#endif
#if defined(CONFIG_OMAP_ARM_168MHZ)
{ 168000000, 12000000, 168000000, 0x010f, 0x2710 }, /* 1/1/1/2/8/8 */
#endif
#if defined(CONFIG_OMAP_ARM_120MHZ)
{ 120000000, 12000000, 120000000, 0x010a, 0x2510 }, /* 1/1/1/2/4/4 */
#endif
#if defined(CONFIG_OMAP_ARM_60MHZ)
{ 60000000, 12000000, 60000000, 0x0005, 0x2290 }, /* 1/1/1/1/2/2 */
#endif
#if defined(CONFIG_OMAP_ARM_30MHZ)
{ 30000000, 12000000, 60000000, 0x0555, 0x2290 }, /* 2/2/2/2/2/2 */
#endif
{ 0, 0, 0, 0, 0 },
};
But I can't find a relationship between these informations.
And are VAL_ARM_CKCTL and VAL_DPLL1_CTL the key value?
Thanks,
phantom yang
--
____________________________________________________
Get your own Hello Kitty email @ www.sanriotown.com
??????
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] How to change MPU frequency in U-Boot?
2006-06-05 13:06 [U-Boot-Users] How to change MPU frequency in U-Boot? phAntOm yAng
@ 2006-06-06 6:06 ` Stefan Roese
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Roese @ 2006-06-06 6:06 UTC (permalink / raw)
To: u-boot
Hi Phantom,
On Monday 05 June 2006 15:06, phAntOm yAng wrote:
> My platform and environment are U-Boot 1.1.3+Linux 2.6.14-omap1 on
> omap5912osk.
>
> I try to change the value of MPU MHz, xtal MHz, dpll1 MHz.
> After reading the source code, I found two informations:
>
> 1)In u-boot-1.1.3/board/omap5912osk/platform.S
Don't start working on such an old version of U-Boot. Please use current
top-of-git tree version. Especially for the OMAP5912OSK some important
changes have been incoorporated.
Best regards,
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] How to change MPU frequency in U-Boot?
@ 2006-06-13 7:46 phAntOm yAng
2006-06-13 7:57 ` Hiroki Kaminaga
0 siblings, 1 reply; 6+ messages in thread
From: phAntOm yAng @ 2006-06-13 7:46 UTC (permalink / raw)
To: u-boot
Dear all:
Now, I'm working on OMAP5912OSK with U-Boot 1.1.4-gb1d71358-dirty.
The message of print_cpuinfo() is:
CPU: OMAP1611b at 96.0 MHz (DPLL1=96.0 MHz)
But OMAP5912OSK should work on 192MHz.
How to let OMAP5912 work on 192MHz during U-Boot phase?
I found three reference, but these seem like no direct relationship.
1)OMAP5912OSK Board Support Library
~ti\boards\osk5912\lib\osk5912bsl\osk5912.c
/* -------------------------------------------------------------- *
* Clocking Parameters after initialization *
* DPLL freq: 96 MHz 192 MHz *
* Clock mode: Fully Sync Scalable Sync *
* ARM freq: 96 MHz 192 MHz *
* DSP freq: 96 MHz 192 MHz *
* DSPMMU freq:96 MHz 192 MHz *
* TC freq: 96 MHz 96 MHz *
* LCD freq: 24 MHz 24 MHz *
* PER freq: 24 MHz 24 MHz *
* -------------------------------------------------------------- */
2)Linux kernel 2.6.14 include file
linux/arch/arm/mach-omap1/clock.h
/*---------------------------------------------------------------
* Omap1 MPU rate table
*---------------------------------------------------------------*/
static struct mpu_rate rate_table[] = {
/* MPU MHz, xtal MHz, dpll1 MHz, CKCTL, DPLL_CTL
* NOTE: Comment order here is different from bits in CKCTL value:
* armdiv, dspdiv, dspmmu, tcdiv, perdiv, lcddiv
*/
#if defined(CONFIG_OMAP_ARM_192MHZ)
{ 192000000, 19200000, 192000000, 0x050f, 0x2510 }, /* 1/1/2/2/8/8 */
{ 192000000, 12000000, 192000000, 0x050f, 0x2810 }, /* 1/1/2/2/8/8 */
{ 96000000, 12000000, 192000000, 0x055f, 0x2810 }, /* 2/2/2/2/8/8 */
{ 48000000, 12000000, 192000000, 0x0baf, 0x2810 }, /* 4/4/4/8/8/8 */
{ 24000000, 12000000, 192000000, 0x0fff, 0x2810 }, /* 8/8/8/8/8/8 */
#endif
#if defined(CONFIG_OMAP_ARM_168MHZ)
{ 168000000, 12000000, 168000000, 0x010f, 0x2710 }, /* 1/1/1/2/8/8 */
#endif
#if defined(CONFIG_OMAP_ARM_120MHZ)
{ 120000000, 12000000, 120000000, 0x010a, 0x2510 }, /* 1/1/1/2/4/4 */
#endif
#if defined(CONFIG_OMAP_ARM_60MHZ)
{ 60000000, 12000000, 60000000, 0x0005, 0x2290 }, /* 1/1/1/1/2/2 */
#endif
#if defined(CONFIG_OMAP_ARM_30MHZ)
{ 30000000, 12000000, 60000000, 0x0555, 0x2290 }, /* 2/2/2/2/2/2 */
#endif
{ 0, 0, 0, 0, 0 },
};
3)U-Boot DPLL1 setting
u-boot/board/omap5912osk/lowlevel_init.S
VAL_ARM_CKCTL:
.word 0x2000 /* was: 0x3000, now use CLK_REF for timer input */
VAL_DPLL1_CTL:
.word 0x2830
Best regards,
phantom yang
> From: "Stefan Roese"
> Don't start working on such an old version of U-Boot. Please use
> current top-of-git tree version. Especially for the OMAP5912OSK some
> important changes have been incoorporated.
--
Get your free email from http://www.sanriotown.com
??????
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] How to change MPU frequency in U-Boot?
2006-06-13 7:46 phAntOm yAng
@ 2006-06-13 7:57 ` Hiroki Kaminaga
0 siblings, 0 replies; 6+ messages in thread
From: Hiroki Kaminaga @ 2006-06-13 7:57 UTC (permalink / raw)
To: u-boot
Hi,
From: "phAntOm yAng" <dalalilala@hellokitty.com>
>
> Now, I'm working on OMAP5912OSK with U-Boot 1.1.4-gb1d71358-dirty.
>
> The message of print_cpuinfo() is:
> CPU: OMAP1611b at 96.0 MHz (DPLL1=96.0 MHz)
>
> But OMAP5912OSK should work on 192MHz.
> How to let OMAP5912 work on 192MHz during U-Boot phase?
You might want to check this:
http://linux.omap.com/pipermail/linux-omap-open-source/2006-February/006416.html
Hope this helps.
(Hiroki Kaminaga)
--
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-06-13 7:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-05 13:06 [U-Boot-Users] How to change MPU frequency in U-Boot? phAntOm yAng
2006-06-06 6:06 ` Stefan Roese
-- strict thread matches above, loose matches on Subject: below --
2006-06-13 7:46 phAntOm yAng
2006-06-13 7:57 ` Hiroki Kaminaga
2006-05-16 18:55 phAntOm yAng
2006-05-16 20:18 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox