From ecaa40166000e3d6b49542d42804127c0a6079e2 Mon Sep 17 00:00:00 2001 From: andypotter Date: Mon, 15 Apr 2013 20:09:39 +0100 Subject: Add Serial Port 1 support for iPod Photo/Color/4G/Mini2G Based on FS#9920 by Ryan Press with changes to selection logic so that it works on my iPod Photo. Should also work on iPod Color/4G and Mini2G. Moved all target specific code from firmware/drivers/serial.c into new file firmware/target/arm/pp/uart-pp.c in the same manner as other target specific uart code. Update to fix build error on ipodmini2g by adding defines in config file. Removed unwanted whitespace Tested on iPod Photo. Change-Id: Ia5539563966198e06372d70b5adf2ef78882f863 Reviewed-on: http://gerrit.rockbox.org/455 Reviewed-by: andypotter Tested-by: andypotter Reviewed-by: Marcin Bukat --- firmware/export/config/ipodmini2g.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'firmware/export/config/ipodmini2g.h') diff --git a/firmware/export/config/ipodmini2g.h b/firmware/export/config/ipodmini2g.h index 12f63f9e11..5e4731679f 100644 --- a/firmware/export/config/ipodmini2g.h +++ b/firmware/export/config/ipodmini2g.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,11 @@ * 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 PP5022 */ #define CONFIG_CPU PP5022 @@ -166,7 +173,7 @@ #define HAVE_ATA_POWER_OFF /* define this if the hardware can be powered off while charging */ -//#define HAVE_POWEROFF_WHILE_CHARGING +/*#define HAVE_POWEROFF_WHILE_CHARGING */ /* The start address index for ROM builds */ #define ROM_START 0x00000000 @@ -212,8 +219,10 @@ #define ICODE_ATTR_TREMOR_NOT_MDCT -#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ +#define IPOD_ACCESSORY_PROTOCOL +#define HAVE_SERIAL +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ /* DMA is used only for reading on PP502x because although reads are ~8x faster * writes appear to be ~25% slower. -- cgit v1.2.3