summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/backlight.c6
-rw-r--r--firmware/drivers/lcd-ipod.c5
-rw-r--r--firmware/export/config.h3
-rw-r--r--firmware/usb.c3
4 files changed, 16 insertions, 1 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index daf987791d..0049f78607 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -236,6 +236,9 @@ static void __backlight_on(void)
236 236
237 /* set port b bit 3 on */ 237 /* set port b bit 3 on */
238 outl(((0x100 | 1) << 3), 0x6000d824); 238 outl(((0x100 | 1) << 3), 0x6000d824);
239#elif CONFIG_BACKLIGHT==BL_IPODMINI
240 /* set port B03 on */
241 outl(((0x100 | 1) << 3), 0x6000d824);
239#elif CONFIG_BACKLIGHT==BL_IPODNANO 242#elif CONFIG_BACKLIGHT==BL_IPODNANO
240 /* set port B03 on */ 243 /* set port B03 on */
241 outl(((0x100 | 1) << 3), 0x6000d824); 244 outl(((0x100 | 1) << 3), 0x6000d824);
@@ -287,6 +290,9 @@ static void __backlight_off(void)
287 GPIO3_CLR = 1; 290 GPIO3_CLR = 1;
288#elif CONFIG_BACKLIGHT==BL_IPOD3G 291#elif CONFIG_BACKLIGHT==BL_IPOD3G
289 lcd_enable(false); 292 lcd_enable(false);
293#elif CONFIG_BACKLIGHT==BL_IPODMINI
294 /* set port B03 off */
295 outl(((0x100 | 0) << 3), 0x6000d824);
290#endif 296#endif
291} 297}
292 298
diff --git a/firmware/drivers/lcd-ipod.c b/firmware/drivers/lcd-ipod.c
index d1d63b9911..4df47f9f20 100644
--- a/firmware/drivers/lcd-ipod.c
+++ b/firmware/drivers/lcd-ipod.c
@@ -105,8 +105,13 @@ static void lcd_cmd_and_data(int cmd, int data_lo, int data_hi)
105 * LCD init 105 * LCD init
106 **/ 106 **/
107void lcd_init_device(void){ 107void lcd_init_device(void){
108#ifdef APPLE_IPODMINI
109 lcd_cmd_and_data(0x1, 0x0, 0xd);
110#else
108 /* driver output control - 160x128 */ 111 /* driver output control - 160x128 */
109 lcd_cmd_and_data(0x1, 0x1, 0xf); 112 lcd_cmd_and_data(0x1, 0x1, 0xf);
113#endif
114
110 lcd_cmd_and_data(0x5, 0x0, 0x10); 115 lcd_cmd_and_data(0x5, 0x0, 0x10);
111 116
112#ifdef APPLE_IPOD4G 117#ifdef APPLE_IPOD4G
diff --git a/firmware/export/config.h b/firmware/export/config.h
index b1cca7b288..0e673cb988 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -98,6 +98,7 @@
98#define BL_IPOD3G 7 /* Apple iPod 3g with dock */ 98#define BL_IPOD3G 7 /* Apple iPod 3g with dock */
99#define BL_IRIVER_H300 8 /* IRiver PWM */ 99#define BL_IRIVER_H300 8 /* IRiver PWM */
100#define BL_IRIVER_IFP7XX 9 /* IRiver GPIO */ 100#define BL_IRIVER_IFP7XX 9 /* IRiver GPIO */
101#define BL_IPODMINI 10 /* Apple iPod Mini */
101 102
102/* CONFIG_I2C */ 103/* CONFIG_I2C */
103#define I2C_PLAYREC 0 /* Archos Player/Recorder style */ 104#define I2C_PLAYREC 0 /* Archos Player/Recorder style */
@@ -159,6 +160,8 @@
159#include "config-ipod4g.h" 160#include "config-ipod4g.h"
160#elif defined(IRIVER_IFP7XX) 161#elif defined(IRIVER_IFP7XX)
161#include "config-ifp7xx.h" 162#include "config-ifp7xx.h"
163#elif defined(IPOD_MINI)
164#include "config-ipodmini.h"
162#else 165#else
163/* no known platform */ 166/* no known platform */
164#endif 167#endif
diff --git a/firmware/usb.c b/firmware/usb.c
index 5157eeec63..f98bfa39b1 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -172,7 +172,8 @@ void usb_enable(bool on)
172 if (on) 172 if (on)
173 { 173 {
174 /* The following code is copied from ipodlinux */ 174 /* The following code is copied from ipodlinux */
175#if defined (APPLE_IPODCOLOR) || defined(APPLE_IPOD3G) || defined(APPLE_IPOD4G) 175#if defined(APPLE_IPODCOLOR) || defined(APPLE_IPOD3G) || \
176 defined(APPLE_IPOD4G) || defined(APPLE_IPODMINI)
176 unsigned char* storage_ptr = (unsigned char *)0x40017F00; 177 unsigned char* storage_ptr = (unsigned char *)0x40017F00;
177#elif defined(APPLE_IPODNANO) || defined(APPLE_IPODVIDEO) 178#elif defined(APPLE_IPODNANO) || defined(APPLE_IPODVIDEO)
178 unsigned char* storage_ptr = (unsigned char *)0x4001FF00; 179 unsigned char* storage_ptr = (unsigned char *)0x4001FF00;