diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-05 18:25:41 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-05 18:25:41 +0000 |
commit | 2924a48ca55e0207d939998307d82e4b7f4502f8 (patch) | |
tree | 5271d5b8917a5db9778a2cce6b35fe578c75b02b /firmware/export | |
parent | 75a60fbf69fb7d7be5839b35efc8253d682a1c7d (diff) | |
download | rockbox-2924a48ca55e0207d939998307d82e4b7f4502f8.tar.gz rockbox-2924a48ca55e0207d939998307d82e4b7f4502f8.zip |
Create config file for iPod 4G greyscale and various iPod 3G/4G greyscale fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8585 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-ipod4g.h | 95 | ||||
-rw-r--r-- | firmware/export/config.h | 2 |
2 files changed, 97 insertions, 0 deletions
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h new file mode 100644 index 0000000000..de0388dbb1 --- /dev/null +++ b/firmware/export/config-ipod4g.h | |||
@@ -0,0 +1,95 @@ | |||
1 | /* | ||
2 | * This config file is for the Apple iPod Color/Photo | ||
3 | */ | ||
4 | #define APPLE_IPOD4G 1 | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 8 | ||
8 | |||
9 | /* define this if you have recording possibility */ | ||
10 | /*#define HAVE_RECORDING 1*/ | ||
11 | |||
12 | /* define this if you have a bitmap LCD display */ | ||
13 | #define HAVE_LCD_BITMAP 1 | ||
14 | |||
15 | /* LCD dimensions */ | ||
16 | #define LCD_WIDTH 160 | ||
17 | #define LCD_HEIGHT 128 | ||
18 | #define LCD_DEPTH 2 /* 4 colours - 2bpp */ | ||
19 | |||
20 | #define CONFIG_KEYPAD IPOD_4G_PAD | ||
21 | |||
22 | /* Define this if you do software codec */ | ||
23 | #define CONFIG_CODEC SWCODEC | ||
24 | |||
25 | /* define this if you have a real-time clock */ | ||
26 | #ifndef BOOTLOADER | ||
27 | #define CONFIG_RTC RTC_PCF50605 | ||
28 | #endif | ||
29 | |||
30 | /* Define this if you have a software controlled poweroff */ | ||
31 | #define HAVE_SW_POWEROFF | ||
32 | |||
33 | /* The number of bytes reserved for loadable codecs */ | ||
34 | #define CODEC_SIZE 0x80000 | ||
35 | |||
36 | /* The number of bytes reserved for loadable plugins */ | ||
37 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
38 | |||
39 | /* Define this if you have the WM8975 audio codec */ | ||
40 | #define HAVE_WM8975 | ||
41 | |||
42 | /* Define this for LCD backlight available */ | ||
43 | #define CONFIG_BACKLIGHT BL_IPOD4G /* port controlled */ | ||
44 | |||
45 | #ifndef SIMULATOR | ||
46 | |||
47 | /* Define this if you have a PortalPlayer PP5020 */ | ||
48 | #define CONFIG_CPU PP5020 | ||
49 | |||
50 | /* Define this if you want to use the PP5020 i2c interface */ | ||
51 | #define CONFIG_I2C I2C_PP5020 | ||
52 | |||
53 | /* Type of mobile power */ | ||
54 | //#define CONFIG_BATTERY BATT_LIPOL1300 | ||
55 | |||
56 | #define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */ | ||
57 | |||
58 | /* Define this if the platform can charge batteries */ | ||
59 | //#define HAVE_CHARGING 1 | ||
60 | |||
61 | /* define this if the hardware can be powered off while charging */ | ||
62 | //#define HAVE_POWEROFF_WHILE_CHARGING | ||
63 | |||
64 | /* The start address index for ROM builds */ | ||
65 | #define ROM_START 0x00000000 | ||
66 | |||
67 | /* Define this to the CPU frequency */ | ||
68 | #define CPU_FREQ 11289600 | ||
69 | |||
70 | #define CONFIG_LCD LCD_IPOD2BPP | ||
71 | |||
72 | /* Offset ( in the firmware file's header ) to the file length */ | ||
73 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | ||
74 | |||
75 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
76 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
77 | |||
78 | /* Offset ( in the firmware file's header ) to the real data */ | ||
79 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
80 | |||
81 | #define USB_IPODSTYLE | ||
82 | |||
83 | /* define this if the unit can be powered or charged via USB */ | ||
84 | #define HAVE_USB_POWER | ||
85 | |||
86 | /* Virtual LED (icon) */ | ||
87 | #define CONFIG_LED LED_VIRTUAL | ||
88 | |||
89 | /* Define this if you have adjustable CPU frequency */ | ||
90 | //#define HAVE_ADJUSTABLE_CPU_FREQ | ||
91 | |||
92 | #define BOOTFILE_EXT "ipod" | ||
93 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
94 | |||
95 | #endif | ||
diff --git a/firmware/export/config.h b/firmware/export/config.h index f451173d06..22352f5e53 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -153,6 +153,8 @@ | |||
153 | #include "config-ipodvideo.h" | 153 | #include "config-ipodvideo.h" |
154 | #elif defined(IPOD_3G) | 154 | #elif defined(IPOD_3G) |
155 | #include "config-ipod3g.h" | 155 | #include "config-ipod3g.h" |
156 | #elif defined(IPOD_4G) | ||
157 | #include "config-ipod4g.h" | ||
156 | #elif defined(IRIVER_IFP7XX) | 158 | #elif defined(IRIVER_IFP7XX) |
157 | #include "config-ifp7xx.h" | 159 | #include "config-ifp7xx.h" |
158 | #else | 160 | #else |