[PATCH 5/6] qi-change-boot-speed-200MHz.patch

Andy Green andy at openmoko.com
Wed Oct 15 14:45:37 CEST 2008


Part of the effort to save power during booting so we can do it inside the
500mW budget from un-enumerated USB connection.

Signed-off-by: Andy Green <andy at openmoko.com>
---

 src/gta02/gta02.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/gta02/gta02.c b/src/gta02/gta02.c
index cc33ea1..df4fe48 100644
--- a/src/gta02/gta02.c
+++ b/src/gta02/gta02.c
@@ -92,9 +92,11 @@ static const struct board_variant board_variants[] = {
 
 void port_init_gta02(void)
 {
+#if 0
 	unsigned int * MPLLCON = (unsigned int *)0x4c000004;
 	unsigned int * UPLLCON = (unsigned int *)0x4c000008;
 	unsigned int * CLKDIVN = (unsigned int *)0x4c000014;
+#endif
 	int n;
 
 	//CAUTION:Follow the configuration order for setting the ports.
@@ -224,7 +226,7 @@ void port_init_gta02(void)
 		i2c_write_sync(&bb_s3c24xx, PCF50633_I2C_ADS,
 			       pcf50633_init[n].index, pcf50633_init[n].value);
 
-
+#if 0
 	/* change CPU clocking to 400MHz 1:4:8 */
 
 	/* clock divide 1:4:8 - do it first */
@@ -246,6 +248,9 @@ void port_init_gta02(void)
 
 	/* get debug UART working at 115kbps */
 	serial_init_115200_s3c24xx(GTA02_DEBUG_UART, 50 /* 50MHz PCLK */);
+#else
+	serial_init_115200_s3c24xx(GTA02_DEBUG_UART, 33 /* 33MHz PCLK */);
+#endif
 
 	/* we're going to use Glamo for SD Card access, so we need to init the
 	 * evil beast




More information about the openmoko-kernel mailing list