summaryrefslogtreecommitdiff
path: root/firmware/export/config-ipodvideo.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config-ipodvideo.h')
-rw-r--r--firmware/export/config-ipodvideo.h28
1 files changed, 20 insertions, 8 deletions
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