From b729a7d75ec5b2fb73aa67c8f986e2793f8efcaf Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Sun, 11 Oct 2009 18:20:56 +0000 Subject: 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 --- firmware/export/config-ipodnano2g.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'firmware/export/config-ipodnano2g.h') diff --git a/firmware/export/config-ipodnano2g.h b/firmware/export/config-ipodnano2g.h index 5e92ea889a..cca87aabce 100644 --- a/firmware/export/config-ipodnano2g.h +++ b/firmware/export/config-ipodnano2g.h @@ -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 -- cgit v1.2.3