mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
iPod Classic: Enable boosting by switching the CPU between 1x and 2x AHB clock
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
acf54bed55
commit
44870b7415
6 changed files with 30 additions and 16 deletions
|
|
@ -53,12 +53,12 @@ void cscodec_power(bool state)
|
|||
|
||||
void cscodec_reset(bool state)
|
||||
{
|
||||
if (state) PDAT(3) &= ~8;
|
||||
else PDAT(3) |= 8;
|
||||
if (state) PDAT(3) &= ~8;
|
||||
else PDAT(3) |= 8;
|
||||
}
|
||||
|
||||
void cscodec_clock(bool state)
|
||||
{
|
||||
if (state) CLKCON0C &= ~0xffff;
|
||||
else CLKCON0C |= 0x8000;
|
||||
if (state) CLKCON3 &= ~0xffff;
|
||||
else CLKCON3 |= 0x8000;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ int pmu_read_battery_voltage(void)
|
|||
/* milliamps */
|
||||
int pmu_read_battery_current(void)
|
||||
{
|
||||
//TODO: Figure out how to read the battery current
|
||||
// return pmu_read_adc(2);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue