diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2014-12-06 22:33:39 +0100 |
---|---|---|
committer | Cástor Muñoz <cmvidal@gmail.com> | 2015-10-07 06:15:03 +0200 |
commit | 38ae0d53e834e6538e3820c3fd1977c971a81c15 (patch) | |
tree | 9e7d8568350fc7f40178cf2d8202ba537b942556 /firmware/export | |
parent | 9f27dc210337e015113776dd5a24b96aabefd70c (diff) | |
download | rockbox-38ae0d53e834e6538e3820c3fd1977c971a81c15.tar.gz rockbox-38ae0d53e834e6538e3820c3fd1977c971a81c15.zip |
iPod Classic: implement HAVE_SERIAL
Change-Id: I24a861cd45095d858d1a7db39969f6eda17cc563
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config/ipod6g.h | 2 | ||||
-rw-r--r-- | firmware/export/s5l8702.h | 14 |
2 files changed, 15 insertions, 1 deletions
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 @@ | |||
250 | /* Define this if you can switch on/off the accessory power supply */ | 250 | /* Define this if you can switch on/off the accessory power supply */ |
251 | #define HAVE_ACCESSORY_SUPPLY | 251 | #define HAVE_ACCESSORY_SUPPLY |
252 | //#define IPOD_ACCESSORY_PROTOCOL | 252 | //#define IPOD_ACCESSORY_PROTOCOL |
253 | //#define HAVE_SERIAL | 253 | #define HAVE_SERIAL |
254 | 254 | ||
255 | /* Define this, if you can switch on/off the lineout */ | 255 | /* Define this, if you can switch on/off the lineout */ |
256 | #define HAVE_LINEOUT_POWEROFF | 256 | #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 @@ | |||
669 | #define I2SCLKDIV (*((volatile uint32_t*)(0x3CA00040))) | 669 | #define I2SCLKDIV (*((volatile uint32_t*)(0x3CA00040))) |
670 | 670 | ||
671 | 671 | ||
672 | /////UART///// | ||
673 | /* UC8702 uart controller */ | ||
674 | #define S5L8702_UART_BASE 0x3cc00000 | ||
675 | #define S5L8702_UART_PORT_MAX 4 | ||
676 | |||
677 | |||
672 | /////CLOCK GATES///// | 678 | /////CLOCK GATES///// |
673 | #define CLOCKGATE_USB_1 2 | 679 | #define CLOCKGATE_USB_1 2 |
674 | #define CLOCKGATE_USB_2 35 | 680 | #define CLOCKGATE_USB_2 35 |
675 | #define CLOCKGATE_DMAC0 25 | 681 | #define CLOCKGATE_DMAC0 25 |
676 | #define CLOCKGATE_DMAC1 26 | 682 | #define CLOCKGATE_DMAC1 26 |
683 | #define CLOCKGATE_UART 41 | ||
677 | 684 | ||
678 | 685 | ||
679 | /////INTERRUPTS///// | 686 | /////INTERRUPTS///// |
@@ -687,6 +694,13 @@ | |||
687 | #define IRQ_ATA 29 | 694 | #define IRQ_ATA 29 |
688 | #define IRQ_MMC 44 | 695 | #define IRQ_MMC 44 |
689 | 696 | ||
697 | #define IRQ_UART(i) (24+i) | ||
698 | #define IRQ_UART0 24 | ||
699 | #define IRQ_UART1 25 | ||
700 | #define IRQ_UART2 26 | ||
701 | #define IRQ_UART3 27 | ||
702 | #define IRQ_UART4 28 /* obsolete/not implemented on s5l8702 ??? */ | ||
703 | |||
690 | #define IRQ_EXT0 0 | 704 | #define IRQ_EXT0 0 |
691 | #define IRQ_EXT1 1 | 705 | #define IRQ_EXT1 1 |
692 | #define IRQ_EXT2 2 | 706 | #define IRQ_EXT2 2 |