Index: embios/trunk/target/ipodnano3g/s5l8702.h |
— | — | @@ -277,6 +277,8 @@ |
278 | 278 | /////GPIO/////
|
279 | 279 | #define PCON(i) (*((uint32_t volatile*)(0x3cf00000 + ((i) << 5))))
|
280 | 280 | #define PDAT(i) (*((uint32_t volatile*)(0x3cf00004 + ((i) << 5))))
|
| 281 | +#define PUNA(i) (*((uint32_t volatile*)(0x3cf00008 + ((i) << 5))))
|
| 282 | +#define PUNB(i) (*((uint32_t volatile*)(0x3cf0000c + ((i) << 5))))
|
281 | 283 | #define PCON0 (*((uint32_t volatile*)(0x3cf00000)))
|
282 | 284 | #define PDAT0 (*((uint32_t volatile*)(0x3cf00004)))
|
283 | 285 | #define PCON1 (*((uint32_t volatile*)(0x3cf00020)))
|
— | — | @@ -568,6 +570,17 @@ |
569 | 571 | #define ATA_DMA_ADDR (*((void* volatile*)(0x38700088)))
|
570 | 572 |
|
571 | 573 |
|
| 574 | +/////CLICKWHEEL/////
|
| 575 | +#define WHEEL00 (*((uint32_t volatile*)(0x3C200000)))
|
| 576 | +#define WHEEL04 (*((uint32_t volatile*)(0x3C200004)))
|
| 577 | +#define WHEEL08 (*((uint32_t volatile*)(0x3C200008)))
|
| 578 | +#define WHEEL0C (*((uint32_t volatile*)(0x3C20000C)))
|
| 579 | +#define WHEEL10 (*((uint32_t volatile*)(0x3C200010)))
|
| 580 | +#define WHEELINT (*((uint32_t volatile*)(0x3C200014)))
|
| 581 | +#define WHEELRX (*((uint32_t volatile*)(0x3C200018)))
|
| 582 | +#define WHEELTX (*((uint32_t volatile*)(0x3C20001C)))
|
| 583 | +
|
| 584 | +
|
572 | 585 | /////CLOCK GATES/////
|
573 | 586 | #define CLOCKGATE_USB_1 2
|
574 | 587 | #define CLOCKGATE_USB_2 35
|
— | — | @@ -579,6 +592,7 @@ |
580 | 593 | #define IRQ_DMAC(d) 16 + d
|
581 | 594 | #define IRQ_DMAC0 16
|
582 | 595 | #define IRQ_DMAC1 17
|
| 596 | +#define IRQ_WHEEL 23
|
583 | 597 | #define IRQ_ATA 29
|
584 | 598 |
|
585 | 599 |
|
Index: embios/trunk/target/ipodnano3g/target.h |
— | — | @@ -55,8 +55,8 @@ |
56 | 56 |
|
57 | 57 | #define HAVE_HWKEYAES
|
58 | 58 |
|
59 | | -//#define HAVE_BUTTON
|
60 | | -//#define HAVE_CLICKWHEEL
|
| 59 | +#define HAVE_BUTTON
|
| 60 | +#define HAVE_CLICKWHEEL
|
61 | 61 |
|
62 | 62 | #define HAVE_BOOTFLASH
|
63 | 63 |
|
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | //#define CONFIG_STORAGE STORAGE_NAND
|
69 | 69 | //#define SECTOR_SIZE 4096
|
70 | 70 |
|
71 | | -//#define HAVE_TARGETINIT_LATE
|
| 71 | +#define HAVE_TARGETINIT_LATE
|
72 | 72 |
|
73 | 73 |
|
74 | 74 | #endif
|
Index: embios/trunk/target/ipodnano3g/interrupt.c |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | default_interrupt(INT_IRQ20);
|
74 | 74 | default_interrupt(INT_IRQ21);
|
75 | 75 | default_interrupt(INT_IRQ22);
|
76 | | -default_interrupt(INT_IRQ23);
|
| 76 | +default_interrupt(INT_WHEEL);
|
77 | 77 | default_interrupt(INT_IRQ24);
|
78 | 78 | default_interrupt(INT_IRQ25);
|
79 | 79 | default_interrupt(INT_IRQ26);
|
— | — | @@ -178,7 +178,7 @@ |
179 | 179 | {
|
180 | 180 | INT_IRQ0,INT_IRQ1,INT_IRQ2,INT_IRQ3,INT_IRQ4,INT_IRQ5,INT_IRQ6,INT_IRQ7,
|
181 | 181 | INT_TIMER,INT_IRQ9,INT_IRQ10,INT_IRQ11,INT_IRQ12,INT_IRQ13,INT_IRQ14,INT_IRQ15,
|
182 | | - INT_DMAC0,INT_DMAC1,INT_IRQ18,INT_USB_FUNC,INT_IRQ20,INT_IRQ21,INT_IRQ22,INT_IRQ23,
|
| 182 | + INT_DMAC0,INT_DMAC1,INT_IRQ18,INT_USB_FUNC,INT_IRQ20,INT_IRQ21,INT_IRQ22,INT_WHEEL,
|
183 | 183 | INT_IRQ24,INT_IRQ25,INT_IRQ26,INT_IRQ27,INT_IRQ28,INT_ATA,INT_IRQ30,INT_IRQ31,
|
184 | 184 | INT_IRQ32,INT_IRQ33,INT_IRQ34,INT_IRQ35,INT_IRQ36,INT_IRQ37,INT_IRQ38,INT_IRQ39,
|
185 | 185 | INT_IRQ40,INT_IRQ41,INT_IRQ42,INT_IRQ43,INT_IRQ55,INT_IRQ56,INT_IRQ57,INT_IRQ58,
|
Index: embios/trunk/target/ipodclassic/target.h |
— | — | @@ -55,8 +55,8 @@ |
56 | 56 |
|
57 | 57 | #define HAVE_HWKEYAES
|
58 | 58 |
|
59 | | -//#define HAVE_BUTTON
|
60 | | -//#define HAVE_CLICKWHEEL
|
| 59 | +#define HAVE_BUTTON
|
| 60 | +#define HAVE_CLICKWHEEL
|
61 | 61 |
|
62 | 62 | #define HAVE_BOOTFLASH
|
63 | 63 |
|
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | #define CONFIG_STORAGE STORAGE_ATA
|
69 | 69 | #define SECTOR_SIZE 4096
|
70 | 70 |
|
71 | | -//#define HAVE_TARGETINIT_LATE
|
| 71 | +#define HAVE_TARGETINIT_LATE
|
72 | 72 |
|
73 | 73 |
|
74 | 74 | #endif
|
Index: embios/trunk/SOURCES |
— | — | @@ -47,7 +47,9 @@ |
48 | 48 | target/ipodnano3g/bootflash.c
|
49 | 49 | target/ipodnano3g/backlight.c
|
50 | 50 | target/ipodnano3g/hwkeyaes.c
|
| 51 | +target/ipodnano3g/clickwheel.c
|
51 | 52 | target/ipodnano3g/spi.c
|
| 53 | +target/ipodnano3g/targetinit.c
|
52 | 54 | usb/synopsysotg.c
|
53 | 55 | #endif
|
54 | 56 |
|