diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-04-01 08:21:21 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-04-01 08:21:21 +0000 |
commit | b79ca5919469efaac3b4b53a545b61f78a2d5315 (patch) | |
tree | 9a25d1627c25ce9b2390ced957f3c07f95a92559 /firmware/target/arm/as3525/system-as3525.c | |
parent | 910e93cd2af220eb7e97d0a7d55f4731c54d872f (diff) |
Try to fix problems on Clip+ (not sure why they appear randomly)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25421 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 55c309ed44..0d91d9cad4 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -255,7 +255,13 @@ void system_init(void) TIC (Test Interface Controller) > DMA > USB > IDE > ARM */ CGU_PROC = 0; /* fclk 24 MHz */ +#if CONFIG_CPU == AS3525v2 + /* pclk is always based on PLLA, since we don't know the current PLLA speed, + * avoid having pclk too fast and hope it's not too low */ + CGU_PERI |= 0xf << 2; /* pclk lowest */ +#else CGU_PERI &= ~0x7f; /* pclk 24 MHz */ +#endif /* bits 31:30 should be set to 0 in arm926-ejs */ asm volatile( |