mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Philips SA9200: 1) reset all devices in system_init, 2) revert an earlier change in the sd driver, 3) properly detect the charger, 4) add lcd register defines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21347 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a61196fd3a
commit
df8f64d3a4
4 changed files with 86 additions and 44 deletions
|
|
@ -97,7 +97,7 @@ unsigned int power_input_status(void)
|
|||
/* GPIOF indicates that the connector is present,
|
||||
GPIOB indicates that there's power there too.
|
||||
Same status bits for both USB and the charger. */
|
||||
if (!(GPIOF_INPUT_VAL & 0x80) && !(GPIOB_INPUT_VAL & 0x80))
|
||||
if (!(GPIOF_INPUT_VAL & 0x80) && (GPIOB_INPUT_VAL & 0x40))
|
||||
status = POWER_INPUT_MAIN_CHARGER;
|
||||
|
||||
return status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue