summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVencislav Atanasov <user890104@freemyipod.org>2024-11-20 14:05:20 +0200
committerSolomon Peachy <pizza@shaftnet.org>2024-11-21 20:03:32 -0500
commit1c7fddad5b7525b1d5edbd6d775ef529ef2a2c7c (patch)
tree78b96cce8de829b13d6eff6593d94a7a38f9ed4b
parente6f49e47e33785774d13f95817808ee15c3bb30a (diff)
downloadrockbox-1c7fddad5b.tar.gz
rockbox-1c7fddad5b.zip
Add the remaining iPod Nano SoCs to config
Currently only S5L8701 (Nano 2G) and S5L8702 (Classic/6G, Nano 3G) are defined. This change adds the remaining to CONFIG_CPU, as a preparation for porting to these platforms. It also defines the RTC types for Nano 3G and Nano 4G. New CONFIG_CPU options: S5L8720 - iPod Nano 4G S5L8730 - iPod Nano 5G S5L8723 - iPod Nano 6G S5L8760 - iPod Nano 7G Change-Id: I4e9e00163c0d0d5a5303f9eee428f9be47a48359
-rw-r--r--firmware/export/config.h15
-rw-r--r--firmware/export/config/ipod6g.h2
2 files changed, 13 insertions, 4 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index d6195aef26..0db793d82d 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -72,6 +72,10 @@
#define S5L8700 8700
#define S5L8701 8701
#define S5L8702 8702
+#define S5L8720 8720
+#define S5L8723 8723
+#define S5L8730 8730
+#define S5L8740 8740
#define JZ4732 4732
#define JZ4760B 47602
#define AS3525 3525
@@ -246,7 +250,7 @@
#define LCD_MINI2440 37 /* as used by the Mini2440 */
#define LCD_HDD6330 38 /* as used by the Philips HDD6330 */
#define LCD_VIBE500 39 /* as used by the Packard Bell Vibe 500 */
-#define LCD_IPOD6G 40 /* as used by the iPod Nano 2nd Generation */
+#define LCD_IPOD6GNANO3G4G 40 /* as used by the iPod Classic, Nano 3G and Nano 4G */
#define LCD_FUZEPLUS 41
#define LCD_SPFD5420A 42 /* rk27xx */
#define LCD_CLIPZIP 43 /* as used by the Sandisk Sansa Clip Zip */
@@ -350,6 +354,8 @@ Lyre prototype 1 */
#define RTC_JZ4760 22 /* Ingenic Jz4760 */
#define RTC_X1000 23 /* Ingenic X1000 */
#define RTC_CONNECT 24 /* Sansa Connect AVR */
+#define RTC_NANO3G 25 /* Dialog Semiconductor D1671 ??? */
+#define RTC_NANO4G 26 /* Dialog Semiconductor D1759 ??? */
/* USB On-the-go */
#define USBOTG_M66591 6591 /* M:Robe 500 */
@@ -667,7 +673,10 @@ Lyre prototype 1 */
#endif
/* define for all cpus from S5L87XX family */
-#if (CONFIG_CPU == S5L8700) || (CONFIG_CPU == S5L8701) || (CONFIG_CPU == S5L8702)
+#if (CONFIG_CPU == S5L8700) || (CONFIG_CPU == S5L8701) \
+ || (CONFIG_CPU == S5L8702) || (CONFIG_CPU == S5L8720) \
+ || (CONFIG_CPU == S5L8723) || (CONFIG_CPU == S5L8730) \
+ || (CONFIG_CPU == S5L8740)
#define CPU_S5L87XX
#endif
@@ -963,7 +972,7 @@ Lyre prototype 1 */
/* Priority in bootloader is wanted */
#define HAVE_PRIORITY_SCHEDULING
-#if (CONFIG_CPU == S5L8702)
+#if (CONFIG_CPU == S5L8702) || (CONFIG_CPU == S5L8720)
#define USB_DRIVER_CLOSE
#else
#define USB_STATUS_BY_EVENT
diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h
index 9c024bcd7d..9858ddcdfc 100644
--- a/firmware/export/config/ipod6g.h
+++ b/firmware/export/config/ipod6g.h
@@ -119,7 +119,7 @@
/* Define if the device can wake from an RTC alarm */
//#define HAVE_RTC_ALARM
-#define CONFIG_LCD LCD_IPOD6G
+#define CONFIG_LCD LCD_IPOD6GNANO3G4G
/* Define the type of audio codec */
#define HAVE_CS42L55