From c71e0567d60af8e409ede4034d72e8accf98cb87 Mon Sep 17 00:00:00 2001 From: andypotter Date: Tue, 19 Nov 2013 21:04:43 +0000 Subject: Add IAP support to iPod Mini 1G. Tested on iPod Mini 1G. Change-Id: I67ac9b7ed84c34533107136d0aa72e5ce3bcc5bc Reviewed-on: http://gerrit.rockbox.org/668 Reviewed-by: Frank Gevaerts --- firmware/export/config/ipodmini1g.h | 9 +++++++++ firmware/target/arm/pp/uart-pp.c | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/firmware/export/config/ipodmini1g.h b/firmware/export/config/ipodmini1g.h index 238c3a66d7..3faf6930df 100644 --- a/firmware/export/config/ipodmini1g.h +++ b/firmware/export/config/ipodmini1g.h @@ -18,6 +18,8 @@ /* define this if you have recording possibility */ /*#define HAVE_RECORDING*/ +#define INPUT_SRC_CAPS (SRC_CAP_FMRADIO) + /* define the bitmask of hardware sample rates */ #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) @@ -156,6 +158,10 @@ * if USB/MAIN power is discernable and hardware doesn't compel charging */ #define HAVE_USB_CHARGING_ENABLE +/* Define Apple remote tuner */ +#define CONFIG_TUNER IPOD_REMOTE_TUNER +#define HAVE_RDS_CAP + /* Define this if you have a PortalPlayer PP5020 */ #define CONFIG_CPU PP5020 @@ -209,6 +215,9 @@ #define ICODE_ATTR_TREMOR_NOT_MDCT +#define IPOD_ACCESSORY_PROTOCOL +#define HAVE_SERIAL + #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ diff --git a/firmware/target/arm/pp/uart-pp.c b/firmware/target/arm/pp/uart-pp.c index 612ffdf77c..069ae596a0 100644 --- a/firmware/target/arm/pp/uart-pp.c +++ b/firmware/target/arm/pp/uart-pp.c @@ -48,9 +48,9 @@ void serial_setup (void) { int tmp; -#if defined(IPOD_COLOR) || defined(IPOD_4G) || defined(IPOD_MINI2G) +#if defined(IPOD_COLOR) || defined(IPOD_4G) || defined(IPOD_MINI) || defined(IPOD_MINI2G) - /* Route the Tx/Rx pins. 4G Ipod, ser1, dock connector */ + /* Route the Tx/Rx pins. 4G Ipod, MINI & MINI2G ser1, dock connector */ GPIO_CLEAR_BITWISE(GPIOD_ENABLE, 0x6); GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_EN, 0x6); -- cgit v1.2.3