summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorandypotter <liveboxandy@gmail.com>2013-04-15 20:09:39 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2013-04-25 21:02:09 +0200
commitecaa40166000e3d6b49542d42804127c0a6079e2 (patch)
tree35ce073fb6d63f90fa3be39aa7433907327b8998 /firmware/export
parent354c9894062886443e1c53cc4dc5669a1d72a5f4 (diff)
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 <liveboxandy@gmail.com> Tested-by: andypotter <liveboxandy@gmail.com> Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/ipodmini2g.h13
1 files changed, 11 insertions, 2 deletions
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.