summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2008-04-20 18:28:25 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2008-04-20 18:28:25 +0000
commit850a11250a8c5b6825b080ff843f30fd68cb71f6 (patch)
treed236674a20fccc8002edeafa30d210b5c972327d /firmware/export
parentcea07eb2a4ddb72d084c7085192521613004a997 (diff)
downloadrockbox-850a11250a8c5b6825b080ff843f30fd68cb71f6.tar.gz
rockbox-850a11250a8c5b6825b080ff843f30fd68cb71f6.zip
Adding new setting to System Settings <Accessory Power Supply -- off by default). This setting can be used to enable/disable the power supply for accessories. With this commit implemented for iPods with PCF50605 power controller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17193 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ipod3g.h3
-rw-r--r--firmware/export/config-ipod4g.h3
-rw-r--r--firmware/export/config-ipodcolor.h3
-rw-r--r--firmware/export/config-ipodmini.h3
-rw-r--r--firmware/export/config-ipodmini2g.h3
-rw-r--r--firmware/export/config-ipodnano.h3
-rw-r--r--firmware/export/config-ipodvideo.h3
-rw-r--r--firmware/export/powermgmt.h4
8 files changed, 24 insertions, 1 deletions
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h
index 4644a823a0..d5f403c1a9 100644
--- a/firmware/export/config-ipod3g.h
+++ b/firmware/export/config-ipod3g.h
@@ -63,6 +63,9 @@
63/* Define if the device can wake from an RTC alarm */ 63/* Define if the device can wake from an RTC alarm */
64#define HAVE_RTC_ALARM 64#define HAVE_RTC_ALARM
65 65
66/* Define this if you can switch on/off the accessory power supply */
67#define HAVE_ACCESSORY_SUPPLY
68
66/* Define this if you have a software controlled poweroff */ 69/* Define this if you have a software controlled poweroff */
67#define HAVE_SW_POWEROFF 70#define HAVE_SW_POWEROFF
68 71
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h
index 133b68257b..ad03f41b90 100644
--- a/firmware/export/config-ipod4g.h
+++ b/firmware/export/config-ipod4g.h
@@ -71,6 +71,9 @@
71/* Define if the device can wake from an RTC alarm */ 71/* Define if the device can wake from an RTC alarm */
72#define HAVE_RTC_ALARM 72#define HAVE_RTC_ALARM
73 73
74/* Define this if you can switch on/off the accessory power supply */
75#define HAVE_ACCESSORY_SUPPLY
76
74/* Define this if you have a software controlled poweroff */ 77/* Define this if you have a software controlled poweroff */
75#define HAVE_SW_POWEROFF 78#define HAVE_SW_POWEROFF
76 79
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h
index 5823af17bf..9a7c055d53 100644
--- a/firmware/export/config-ipodcolor.h
+++ b/firmware/export/config-ipodcolor.h
@@ -58,6 +58,9 @@
58/* Define if the device can wake from an RTC alarm */ 58/* Define if the device can wake from an RTC alarm */
59#define HAVE_RTC_ALARM 59#define HAVE_RTC_ALARM
60 60
61/* Define this if you can switch on/off the accessory power supply */
62#define HAVE_ACCESSORY_SUPPLY
63
61/* Define this if you have a software controlled poweroff */ 64/* Define this if you have a software controlled poweroff */
62#define HAVE_SW_POWEROFF 65#define HAVE_SW_POWEROFF
63 66
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h
index 34632fa6a4..6e5fe26d6a 100644
--- a/firmware/export/config-ipodmini.h
+++ b/firmware/export/config-ipodmini.h
@@ -62,6 +62,9 @@
62/* Define if the device can wake from an RTC alarm */ 62/* Define if the device can wake from an RTC alarm */
63#define HAVE_RTC_ALARM 63#define HAVE_RTC_ALARM
64 64
65/* Define this if you can switch on/off the accessory power supply */
66#define HAVE_ACCESSORY_SUPPLY
67
65/* Define this if you have a software controlled poweroff */ 68/* Define this if you have a software controlled poweroff */
66#define HAVE_SW_POWEROFF 69#define HAVE_SW_POWEROFF
67 70
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h
index 124d0db772..c861f5ae13 100644
--- a/firmware/export/config-ipodmini2g.h
+++ b/firmware/export/config-ipodmini2g.h
@@ -62,6 +62,9 @@
62/* Define if the device can wake from an RTC alarm */ 62/* Define if the device can wake from an RTC alarm */
63#define HAVE_RTC_ALARM 63#define HAVE_RTC_ALARM
64 64
65/* Define this if you can switch on/off the accessory power supply */
66#define HAVE_ACCESSORY_SUPPLY
67
65/* Define this if you have a software controlled poweroff */ 68/* Define this if you have a software controlled poweroff */
66#define HAVE_SW_POWEROFF 69#define HAVE_SW_POWEROFF
67 70
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index 6a47247d21..ced2c47b4e 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -58,6 +58,9 @@
58/* Define if the device can wake from an RTC alarm */ 58/* Define if the device can wake from an RTC alarm */
59#define HAVE_RTC_ALARM 59#define HAVE_RTC_ALARM
60 60
61/* Define this if you can switch on/off the accessory power supply */
62#define HAVE_ACCESSORY_SUPPLY
63
61/* Define this if you have a software controlled poweroff */ 64/* Define this if you have a software controlled poweroff */
62#define HAVE_SW_POWEROFF 65#define HAVE_SW_POWEROFF
63 66
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index 364ae65d3f..d15494cfd1 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -58,6 +58,9 @@
58/* Define if the device can wake from an RTC alarm */ 58/* Define if the device can wake from an RTC alarm */
59#define HAVE_RTC_ALARM 59#define HAVE_RTC_ALARM
60 60
61/* Define this if you can switch on/off the accessory power supply */
62#define HAVE_ACCESSORY_SUPPLY
63
61/* Define this if you have a software controlled poweroff */ 64/* Define this if you have a software controlled poweroff */
62#define HAVE_SW_POWEROFF 65#define HAVE_SW_POWEROFF
63 66
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index 56e14b3741..4b8d239974 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -182,5 +182,7 @@ void reset_poweroff_timer(void);
182void cancel_shutdown(void); 182void cancel_shutdown(void);
183void shutdown_hw(void); 183void shutdown_hw(void);
184void sys_poweroff(void); 184void sys_poweroff(void);
185 185#ifdef HAVE_ACCESSORY_SUPPLY
186void accessory_supply_set(bool);
187#endif
186#endif 188#endif