From 8bf5130ffde4f3c9ff3d4fc2d3f7998f4f527329 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 2 Feb 2005 21:45:26 +0000 Subject: create and use a new config type for the i2c and the battery in the h100 and disable usb (for now) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5740 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-h100.h | 10 ++++++++-- firmware/export/config.h | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index f4ada149fc..01012cde3c 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h @@ -18,8 +18,12 @@ /* Define this if you have a Motorola SCF5249 */ #define CONFIG_CPU MCF5249 -/* Type of mobile power, FIXME: probably different, make new type */ -#define CONFIG_BATTERY BATT_LIION2200 +#define CONFIG_I2C I2C_H100 + +/* Type of mobile power */ +#define CONFIG_BATTERY BATT_IRIVER + +#define BATTERY_SCALE_FACTOR 6465 /* FIX: this value is picked at random */ /* Define this if the platform can charge batteries */ #define HAVE_CHARGING 1 @@ -44,4 +48,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 +#define USB_NONE /* FIX: USB temorarily disabled */ + #endif diff --git a/firmware/export/config.h b/firmware/export/config.h index 64694af794..5528f93d09 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -48,6 +48,7 @@ #define BATT_LIION2200 2200 /* FM/V2 recorder type */ #define BATT_4AA_NIMH 1500 #define BATT_3AAA 1000 /* Ondio */ +#define BATT_IRIVER 2 /* the type used in iRiver h1x0 models */ /* CONFIG_LCD */ #define LCD_GMINI100 0 @@ -65,6 +66,7 @@ #define I2C_PLAYREC 0 /* Archos Player/Recorder style */ #define I2C_ONDIO 1 /* Ondio style */ #define I2C_GMINI 2 /* Gmini style */ +#define I2C_H100 3 /* iRiver h100 style */ /* now go and pick yours */ #if defined(ARCHOS_PLAYER) -- cgit v1.2.3