HDD6330: fix the behavior of the lcd during shutdown (fading out), disable poweroff while charging for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30520 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
036c5fef46
commit
dad541a391
2 changed files with 4 additions and 1 deletions
|
@ -157,7 +157,7 @@
|
|||
#define CONFIG_I2C I2C_PP5020
|
||||
|
||||
/* define this if the hardware can be powered off while charging */
|
||||
#define HAVE_POWEROFF_WHILE_CHARGING
|
||||
/* #define HAVE_POWEROFF_WHILE_CHARGING */
|
||||
|
||||
/* The start address index for ROM builds */
|
||||
#define ROM_START 0x00000000
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "power.h"
|
||||
#include "logf.h"
|
||||
#include "usb.h"
|
||||
#include "backlight-target.h"
|
||||
#include "synaptics-mep.h"
|
||||
|
||||
void power_init(void)
|
||||
|
@ -110,6 +111,8 @@ bool ide_powered(void)
|
|||
|
||||
void power_off(void)
|
||||
{
|
||||
_backlight_off();
|
||||
|
||||
/* power off bit */
|
||||
GPIOB_ENABLE |= 0x80;
|
||||
GPIOB_OUTPUT_VAL &= ~0x80;
|
||||
|
|
Loading…
Reference in a new issue