mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
iPod Nano 2G PMU rework, added backlight brightness setting and USB charging speed setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23114 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4ecc5a1e9b
commit
b729a7d75e
8 changed files with 112 additions and 59 deletions
|
|
@ -104,7 +104,7 @@
|
|||
|
||||
/* Define this for LCD backlight available */
|
||||
#define HAVE_BACKLIGHT
|
||||
/* #define HAVE_BACKLIGHT_BRIGHTNESS - not yet */
|
||||
#define HAVE_BACKLIGHT_BRIGHTNESS
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
|
@ -138,6 +138,8 @@
|
|||
/* I2C interface */
|
||||
#define CONFIG_I2C I2C_S5L8700
|
||||
|
||||
#define HAVE_USB_CHARGING_ENABLE
|
||||
|
||||
/* The size of the flash ROM */
|
||||
#define FLASH_SIZE 0x400000
|
||||
|
||||
|
|
@ -187,9 +189,9 @@
|
|||
#define MIN_CONTRAST_SETTING 1
|
||||
#define MAX_CONTRAST_SETTING 30
|
||||
#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
|
||||
#endif
|
||||
|
||||
/* Main LCD backlight brightness range and defaults */
|
||||
#define MIN_BRIGHTNESS_SETTING 0
|
||||
#define MAX_BRIGHTNESS_SETTING 31
|
||||
#define DEFAULT_BRIGHTNESS_SETTING 20
|
||||
#endif
|
||||
#define MIN_BRIGHTNESS_SETTING 1
|
||||
#define MAX_BRIGHTNESS_SETTING 0x2e
|
||||
#define DEFAULT_BRIGHTNESS_SETTING 0x20
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue