From 2cc85bc346ba224253a9a1be2d9605dbc79940d9 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 12 Oct 2008 16:55:57 +0000 Subject: Fix LCD timings on the older meizu M3 variant, so it works with a fast clock. (FS#9484, by Denes Balatoni) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18784 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/meizu_m3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bootloader') diff --git a/bootloader/meizu_m3.c b/bootloader/meizu_m3.c index c884944..8e3a7f6 100644 --- a/bootloader/meizu_m3.c +++ b/bootloader/meizu_m3.c @@ -106,15 +106,15 @@ void main(void) char mystring[64]; int tmpval; - /* set clock to 200 MHz */ - #if 0 + /* set fclk = 200MHz, hclk = 100MHz, pclk = 50MHz, others off */ CLKCON = 0x00800080; - CLKCON2= 0x00; + PLLCON = 0; PLL0PMS = 0x1ad200; + PLL0LCNT = 8100; PLLCON = 1; while (!(PLLLOCK & 1)) ; - CLKCON = 0x20802080; - #endif + CLKCON2= 0x80; + CLKCON = 0x20803180; /* mask all interrupts this is done, because the lcd framebuffer -- cgit v1.1