summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ipodnano.h15
-rw-r--r--firmware/export/config-ipodvideo.h28
-rw-r--r--firmware/export/config.h2
-rw-r--r--firmware/export/powermgmt.h14
4 files changed, 42 insertions, 17 deletions
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index 37935786b7..edf7f2dea2 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -70,8 +70,6 @@
70/* We can fade the backlight by using PWM */ 70/* We can fade the backlight by using PWM */
71#define HAVE_BACKLIGHT_PWM_FADING 71#define HAVE_BACKLIGHT_PWM_FADING
72 72
73#define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
74
75#ifndef SIMULATOR 73#ifndef SIMULATOR
76 74
77/* Define this if you have a PortalPlayer PP5022 */ 75/* Define this if you have a PortalPlayer PP5022 */
@@ -81,12 +79,13 @@
81#define CONFIG_I2C I2C_PP5020 79#define CONFIG_I2C I2C_PP5020
82 80
83/* Type of mobile power */ 81/* Type of mobile power */
84#define CONFIG_BATTERY BATT_LIPOL1300 82#define CONFIG_BATTERY BATT_LIION300
85#define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ 83#define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */
86#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ 84#define BATTERY_CAPACITY_MIN 200 /* min. capacity selectable */
87#define BATTERY_CAPACITY_INC 50 /* capacity increment */ 85#define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */
88#define BATTERY_TYPES_COUNT 1 /* only one type */ 86#define BATTERY_CAPACITY_INC 20 /* capacity increment */
89#define BATTERY_SCALE_FACTOR 5865 87#define BATTERY_TYPES_COUNT 1 /* only one type */
88#define BATTERY_SCALE_FACTOR 5840
90 89
91/* Hardware controlled charging? FIXME */ 90/* Hardware controlled charging? FIXME */
92//#define CONFIG_CHARGING CHARGING_SIMPLE 91//#define CONFIG_CHARGING CHARGING_SIMPLE
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index e954859eb0..419a49135f 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -8,6 +8,9 @@
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
11/* define this if you have recording possibility */ 14/* define this if you have recording possibility */
12#define HAVE_RECORDING 15#define HAVE_RECORDING
13 16
@@ -70,8 +73,6 @@
70/* We can fade the backlight by using PWM */ 73/* We can fade the backlight by using PWM */
71#define HAVE_BACKLIGHT_PWM_FADING 74#define HAVE_BACKLIGHT_PWM_FADING
72 75
73#define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */
74
75#ifndef SIMULATOR 76#ifndef SIMULATOR
76 77
77/* Define this if you have a PortalPlayer PP5022 */ 78/* Define this if you have a PortalPlayer PP5022 */
@@ -81,12 +82,23 @@
81#define CONFIG_I2C I2C_PP5020 82#define CONFIG_I2C I2C_PP5020
82 83
83/* Type of mobile power */ 84/* Type of mobile power */
84#define CONFIG_BATTERY BATT_LIPOL1300 85#if (MEM==32) /* this is the 30GB-model */
85#define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */ 86# define CONFIG_BATTERY BATT_LIION400
86#define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */ 87# define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */
87#define BATTERY_CAPACITY_INC 50 /* capacity increment */ 88# define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
88#define BATTERY_TYPES_COUNT 1 /* only one type */ 89# define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
89#define BATTERY_SCALE_FACTOR 5865 90# define BATTERY_CAPACITY_INC 50 /* capacity increment */
91# define BATTERY_TYPES_COUNT 1 /* only one type */
92# define BATTERY_SCALE_FACTOR 5865
93#else /* these are the 60/80GB-models */
94# define CONFIG_BATTERY BATT_LIION400 /* FIXME: we assume to have same discharge behaviour as 30GB iPOD */
95# define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity for the 60/80GB model */
96# define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
97# define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
98# define BATTERY_CAPACITY_INC 50 /* capacity increment */
99# define BATTERY_TYPES_COUNT 1 /* only one type */
100# define BATTERY_SCALE_FACTOR 5865
101#endif
90 102
91/* Hardware controlled charging with monitoring */ 103/* Hardware controlled charging with monitoring */
92#define CONFIG_CHARGING CHARGING_MONITOR 104#define CONFIG_CHARGING CHARGING_MONITOR
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 056b9857bc..a47eee1b6a 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -80,6 +80,8 @@
80#define BATT_BP009 820 /* iriver H10 5/6Gb - iriver BP009 */ 80#define BATT_BP009 820 /* iriver H10 5/6Gb - iriver BP009 */
81#define BATT_LIION830 830 /* Toshiba Gigabeat Fxx and Xxx series MK11-2740 */ 81#define BATT_LIION830 830 /* Toshiba Gigabeat Fxx and Xxx series MK11-2740 */
82#define BATT_LIION750 750 /* Sansa e200 LiIon 3,7V */ 82#define BATT_LIION750 750 /* Sansa e200 LiIon 3,7V */
83#define BATT_LIION400 400 /* iPOD 5G/5.5G Video 30GB LiIon 400mAh */
84#define BATT_LIION300 300 /* iPOD nano LiIon 300mAh */
83#define BATT_1AA 333 /* iRiver iFP: Alkaline, NiHM */ 85#define BATT_1AA 333 /* iRiver iFP: Alkaline, NiHM */
84 86
85/* CONFIG_CHARGING */ 87/* CONFIG_CHARGING */
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index d42cc30154..77764b5a31 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -103,7 +103,19 @@ extern charger_input_state_type charger_input_state;
103# define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */ 103# define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */
104# define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */ 104# define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
105# define CURRENT_RECORD 110 /* additional current while recording */ 105# define CURRENT_RECORD 110 /* additional current while recording */
106#else /* Not iriver H1x0, H3x0, nor Archos Ondio */ 106#elif defined(IPOD_ARCH) && (MODEL_NUMBER==4) /* iPOD Nano */
107# define CURRENT_NORMAL 35 /* 8.5-9.0h playback out of 300mAh battery from IpodRuntime */
108# define CURRENT_BACKLIGHT 20 /* FIXME: estimation took over from iPOD Video */
109#if defined(HAVE_RECORDING)
110# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
111#endif
112#elif defined(IPOD_ARCH) && (MODEL_NUMBER==5) /* iPOD Video */
113# define CURRENT_NORMAL 50 /* 8h out of 400mAh battery (30GB) or 11h out of 600mAh (60GB) from IpodRuntime */
114# define CURRENT_BACKLIGHT 20 /* estimation calculated from IpodRuntime measurement */
115#if defined(HAVE_RECORDING)
116# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
117#endif
118#else /* Not iriver H1x0, H3x0, nor Archos Ondio, nor iPODVideo */
107# define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */ 119# define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */
108# define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */ 120# define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */
109#if defined(HAVE_RECORDING) 121#if defined(HAVE_RECORDING)