Index: firmware/export/config-e200v2.h =================================================================== --- firmware/export/config-e200v2.h (revision 19440) +++ firmware/export/config-e200v2.h (working copy) @@ -9,7 +9,6 @@ #define HW_SAMPR_CAPS (SAMPR_CAP_44) -#if 0 /* define this if you have recording possibility */ #define HAVE_RECORDING @@ -20,7 +19,6 @@ /* Define bitmask of input sources - recordable bitmask can be defined explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -#endif /* define this if you have a bitmap LCD display */ #define HAVE_LCD_BITMAP @@ -99,7 +97,7 @@ #define AB_REPEAT_ENABLE 1 /* FM Tuner - suspected to be the SI4702 */ -//#define CONFIG_TUNER SI4700 +#define CONFIG_TUNER SI4700 /* #define HAVE_TUNER_PWR_CTRL */ /* Define this for LCD backlight available */ @@ -107,11 +105,11 @@ #define HAVE_BACKLIGHT_BRIGHTNESS /* define this if the unit uses a scrollwheel for navigation */ -#define HAVE_SCROLLWHEEL +//#define HAVE_SCROLLWHEEL /* define from which rotation speed [degree/sec] on the acceleration starts */ -#define WHEEL_ACCEL_START 540 +//#define WHEEL_ACCEL_START 540 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */ -#define WHEEL_ACCELERATION 1 +//#define WHEEL_ACCELERATION 1 /* define this if you have a flash memory storage */ #define HAVE_FLASH_STORAGE Index: firmware/SOURCES =================================================================== --- firmware/SOURCES (revision 19440) +++ firmware/SOURCES (working copy) @@ -1087,6 +1087,8 @@ target/arm/as3525/sansa-e200v2/button-e200v2.c target/arm/as3525/backlight-e200v2-fuze.c #ifndef BOOTLOADER +drivers/generic_i2c.c +target/arm/as3525/fmradio-i2c-as3525.c target/arm/as3525/powermgmt-as3525.c #endif /* !BOOTLOADER */ #endif /* !SIMULATOR */ Index: firmware/target/arm/as3525/fmradio-i2c-as3525.c =================================================================== --- firmware/target/arm/as3525/fmradio-i2c-as3525.c (revision 19440) +++ firmware/target/arm/as3525/fmradio-i2c-as3525.c (working copy) @@ -43,6 +43,12 @@ #define I2C_SCL_PIN 7 #define I2C_SDA_PIN 6 +#elif defined(SANSA_E200V2) +#define I2C_GPIO(x) GPIOA_PIN(x) +#define I2C_GPIO_DIR GPIOA_DIR +#define I2C_SCL_PIN 6 +#define I2C_SDA_PIN 7 + #elif #error no FM I2C GPIOPIN defines #endif @@ -109,7 +115,7 @@ /* interface towards the generic i2c driver */ static struct i2c_interface fm_i2c_interface = { -#if defined(SANSA_CLIP) +#if defined(SANSA_CLIP) || defined(SANSA_E200V2) .address = 0x10 << 1, #elif defined(SANSA_M200V4) .address = 0xC0,