mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 06:32:34 -05:00
Improved CPU clock setup for PP502x. PP5020 and PP5022 are not register compatible here, so define the PP5022 targets properly, and introduce a CPU_PP502x macro for easier family check. Improves stability on PP5020 (less freezing, tested with Mini G1) and reduces clock change penalty (500us on PP5020; uses the relock bit on PP5022).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13763 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36de1a4d08
commit
fe23dc8f15
14 changed files with 100 additions and 68 deletions
|
|
@ -41,7 +41,7 @@ static inline bool timer_check(int clock_start, int usecs)
|
|||
#if CONFIG_CPU == PP5002
|
||||
#define IPOD_LCD_BASE 0xc0001000
|
||||
#define IPOD_LCD_BUSY_MASK 0x80000000
|
||||
#else /* PP5020 */
|
||||
#else /* PP502x */
|
||||
#define IPOD_LCD_BASE 0x70003000
|
||||
#define IPOD_LCD_BUSY_MASK 0x00008000
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue