summaryrefslogtreecommitdiff
path: root/firmware/export/config/ipodmini2g.h
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/config/ipodmini2g.h
parent354c9894062886443e1c53cc4dc5669a1d72a5f4 (diff)
downloadrockbox-ecaa40166000e3d6b49542d42804127c0a6079e2.tar.gz
rockbox-ecaa40166000e3d6b49542d42804127c0a6079e2.zip
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/config/ipodmini2g.h')
-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 @@
18/* define this if you have recording possibility */ 18/* define this if you have recording possibility */
19/*#define HAVE_RECORDING*/ 19/*#define HAVE_RECORDING*/
20 20
21#define INPUT_SRC_CAPS (SRC_CAP_FMRADIO)
22
21/* define the bitmask of hardware sample rates */ 23/* define the bitmask of hardware sample rates */
22#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ 24#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
23 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) 25 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
@@ -156,6 +158,11 @@
156 * if USB/MAIN power is discernable and hardware doesn't compel charging */ 158 * if USB/MAIN power is discernable and hardware doesn't compel charging */
157#define HAVE_USB_CHARGING_ENABLE 159#define HAVE_USB_CHARGING_ENABLE
158 160
161
162/* Define Apple remote tuner */
163#define CONFIG_TUNER IPOD_REMOTE_TUNER
164#define HAVE_RDS_CAP
165
159/* Define this if you have a PortalPlayer PP5022 */ 166/* Define this if you have a PortalPlayer PP5022 */
160#define CONFIG_CPU PP5022 167#define CONFIG_CPU PP5022
161 168
@@ -166,7 +173,7 @@
166#define HAVE_ATA_POWER_OFF 173#define HAVE_ATA_POWER_OFF
167 174
168/* define this if the hardware can be powered off while charging */ 175/* define this if the hardware can be powered off while charging */
169//#define HAVE_POWEROFF_WHILE_CHARGING 176/*#define HAVE_POWEROFF_WHILE_CHARGING */
170 177
171/* The start address index for ROM builds */ 178/* The start address index for ROM builds */
172#define ROM_START 0x00000000 179#define ROM_START 0x00000000
@@ -212,8 +219,10 @@
212 219
213#define ICODE_ATTR_TREMOR_NOT_MDCT 220#define ICODE_ATTR_TREMOR_NOT_MDCT
214 221
215#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ 222#define IPOD_ACCESSORY_PROTOCOL
223#define HAVE_SERIAL
216 224
225#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
217 226
218/* DMA is used only for reading on PP502x because although reads are ~8x faster 227/* DMA is used only for reading on PP502x because although reads are ~8x faster
219 * writes appear to be ~25% slower. 228 * writes appear to be ~25% slower.