[U-Boot-Users] [patch] Fix UPLL configuration for S3C2410 cpu

Martin Krause Martin.Krause at tqs.de
Thu Mar 22 13:28:36 CET 2007


Fix UPLL configuration for S3C2410 cpu.

Use the values recommended by the datasheet for the UPLL configuration on boards
with S3C2410 cpu (the UPLL delivers the 48 MHz USB clock).

Signed-off-by: Martin Krause <martin.krause at tqs.de>

---
commit c520bc3dc8e03b87be0d1f865bb30339be3fbbfb
tree 0663277a7ff648a51aa656d867f9bc4bfdeecb27
parent 79395729d87768c5484bdf5f388a64873d82b068
author Martin Krause <martin.krause at tqs.de> Mon, 15 Jan 2007 14:50:57 +0100
committer Martin Krause <martin.krause at tqs.de> Mon, 15 Jan 2007 14:50:57 +0100

 cpu/arm920t/s3c24x0/usb_ohci.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/cpu/arm920t/s3c24x0/usb_ohci.c b/cpu/arm920t/s3c24x0/usb_ohci.c
index 869ca79..789892f 100644
--- a/cpu/arm920t/s3c24x0/usb_ohci.c
+++ b/cpu/arm920t/s3c24x0/usb_ohci.c
@@ -1596,10 +1596,15 @@ int usb_lowlevel_init(void)
 	S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO();
 
 	/*
-	 * Set the 48 MHz UPLL clocking. Values are taken from
-	 * "PLL value selection guide", 6-23, s3c2400_UM.pdf.
+	 * Set the 48 MHz UPLL clocking. Values are taken from "PLL value
+	 * selection guide", 6-23, s3c2400_UM.pdf and "PLL value selection
+	 * table", 7-20, um_s3c2410a_manual_r10.pdf.
 	 */
+#if defined(CONFIG_S3C2400)
 	clk_power->UPLLCON = ((40 << 12) + (1 << 4) + 2);
+#elif defined(CONFIG_S3C2410)
+	clk_power->UPLLCON = ((120 << 12) + (2 << 4) + 3);
+#endif
 	gpio->MISCCR |= 0x8; /* 1 = use pads related USB for USB host */
 
 	/*
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-upll-configuration-for-s3c2410-cpu-.patch
Type: application/octet-stream
Size: 1481 bytes
Desc: fix-upll-configuration-for-s3c2410-cpu-.patch
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070322/8069d15f/attachment.obj 


More information about the U-Boot mailing list