summaryrefslogtreecommitdiff
path: root/firmware/export/config-ipodvideo.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-08-17 06:45:18 +0000
committerJens Arnold <amiconn@rockbox.org>2007-08-17 06:45:18 +0000
commit0fac492c3da8b46ad1cf5a668e5d851c63443a94 (patch)
tree95fb6637601a4b3c730f4aec1d2e7e7ab78e208b /firmware/export/config-ipodvideo.h
parent12706e4b1d4ce65df441dcf6e2b160657ea3fa38 (diff)
downloadrockbox-0fac492c3da8b46ad1cf5a668e5d851c63443a94.tar.gz
rockbox-0fac492c3da8b46ad1cf5a668e5d851c63443a94.zip
First step of powermanagement rework: * Move target specific stuff into target tree, starting with battery voltage tables and voltage reading. (This revealed some incorrect percent_to_voltage_charging mappings). * Voltage reading on 1st gen ipods is now correct. * Clean up obsolete config #defines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14375 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-ipodvideo.h')
-rw-r--r--firmware/export/config-ipodvideo.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index 0f2da5360a..b792f6f5dc 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -8,9 +8,6 @@
8/* For Rolo and boot loader */ 8/* For Rolo and boot loader */
9#define MODEL_NUMBER 5 9#define MODEL_NUMBER 5
10 10
11/* For battery type (30GB by default, undefine here to use 60/80GB model) */
12#define CONFIG_BATTERY_IPOD_VIDEO_30GB
13
14/* define this if you have recording possibility */ 11/* define this if you have recording possibility */
15#define HAVE_RECORDING 12#define HAVE_RECORDING
16 13
@@ -81,22 +78,16 @@
81 78
82/* Type of mobile power */ 79/* Type of mobile power */
83#if (MEM==32) /* this is the 30GB-model */ 80#if (MEM==32) /* this is the 30GB-model */
84# define CONFIG_BATTERY BATT_LIION400 81# define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */
85# define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */ 82# define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
86# define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */ 83# define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
87# define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
88# define BATTERY_CAPACITY_INC 50 /* capacity increment */
89# define BATTERY_TYPES_COUNT 1 /* only one type */
90# define BATTERY_SCALE_FACTOR 5865
91#else /* these are the 60/80GB-models */ 84#else /* these are the 60/80GB-models */
92# define CONFIG_BATTERY BATT_LIION400 /* FIXME: we assume to have same discharge behaviour as 30GB iPOD */ 85# define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity for the 60/80GB model */
93# define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity for the 60/80GB model */ 86# define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
94# define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ 87# define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
95# define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
96# define BATTERY_CAPACITY_INC 50 /* capacity increment */
97# define BATTERY_TYPES_COUNT 1 /* only one type */
98# define BATTERY_SCALE_FACTOR 5865
99#endif 88#endif
89#define BATTERY_CAPACITY_INC 50 /* capacity increment */
90#define BATTERY_TYPES_COUNT 1 /* only one type */
100 91
101/* Hardware controlled charging with monitoring */ 92/* Hardware controlled charging with monitoring */
102#define CONFIG_CHARGING CHARGING_MONITOR 93#define CONFIG_CHARGING CHARGING_MONITOR