From 38ae0d53e834e6538e3820c3fd1977c971a81c15 Mon Sep 17 00:00:00 2001 From: Cástor Muñoz Date: Sat, 6 Dec 2014 22:33:39 +0100 Subject: iPod Classic: implement HAVE_SERIAL Change-Id: I24a861cd45095d858d1a7db39969f6eda17cc563 --- firmware/export/config/ipod6g.h | 2 +- firmware/export/s5l8702.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'firmware/export') diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h index 3eae08edce..a885a11144 100644 --- a/firmware/export/config/ipod6g.h +++ b/firmware/export/config/ipod6g.h @@ -250,7 +250,7 @@ /* Define this if you can switch on/off the accessory power supply */ #define HAVE_ACCESSORY_SUPPLY //#define IPOD_ACCESSORY_PROTOCOL -//#define HAVE_SERIAL +#define HAVE_SERIAL /* Define this, if you can switch on/off the lineout */ #define HAVE_LINEOUT_POWEROFF diff --git a/firmware/export/s5l8702.h b/firmware/export/s5l8702.h index 34b6da874b..1a59d47036 100644 --- a/firmware/export/s5l8702.h +++ b/firmware/export/s5l8702.h @@ -669,11 +669,18 @@ #define I2SCLKDIV (*((volatile uint32_t*)(0x3CA00040))) +/////UART///// +/* UC8702 uart controller */ +#define S5L8702_UART_BASE 0x3cc00000 +#define S5L8702_UART_PORT_MAX 4 + + /////CLOCK GATES///// #define CLOCKGATE_USB_1 2 #define CLOCKGATE_USB_2 35 #define CLOCKGATE_DMAC0 25 #define CLOCKGATE_DMAC1 26 +#define CLOCKGATE_UART 41 /////INTERRUPTS///// @@ -687,6 +694,13 @@ #define IRQ_ATA 29 #define IRQ_MMC 44 +#define IRQ_UART(i) (24+i) +#define IRQ_UART0 24 +#define IRQ_UART1 25 +#define IRQ_UART2 26 +#define IRQ_UART3 27 +#define IRQ_UART4 28 /* obsolete/not implemented on s5l8702 ??? */ + #define IRQ_EXT0 0 #define IRQ_EXT1 1 #define IRQ_EXT2 2 -- cgit v1.2.3