summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-10-12 16:55:57 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-10-12 16:55:57 +0000
commit2cc85bc346ba224253a9a1be2d9605dbc79940d9 (patch)
tree5fb8eab97e9990ceb8491b9b3ff8f1386f34c234 /bootloader
parent2ca30a0c745f0b50fe969fe0763816497289fa3e (diff)
downloadrockbox-2cc85bc346ba224253a9a1be2d9605dbc79940d9.tar.gz
rockbox-2cc85bc346ba224253a9a1be2d9605dbc79940d9.tar.bz2
rockbox-2cc85bc346ba224253a9a1be2d9605dbc79940d9.zip
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
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/meizu_m3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bootloader/meizu_m3.c b/bootloader/meizu_m3.c
index c88494448c..8e3a7f64c8 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