mirror of
https://github.com/drasko/codezero.git
synced 2026-01-20 14:53:16 +01:00
Changes since April
Clean up of build directories. Simplifications to capability model.
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
#define IRQS_MAX 96
|
||||
#endif
|
||||
|
||||
/* Range of IRQ numbers used by this platform */
|
||||
#define IRQ_RANGE_START 0
|
||||
#define IRQ_RANGE_END IRQS_MAX
|
||||
|
||||
/*
|
||||
* Interrupt Distribution:
|
||||
* 0-31: Used as SI provided by distributed interrupt controller
|
||||
@@ -44,9 +48,14 @@
|
||||
#define EB_IRQ_AACI (EB_GIC_IRQ_OFFSET + 19) /* Advanced Audio codec */
|
||||
#define EB_IRQ_KMI0 (EB_GIC_IRQ_OFFSET + 20) /* Keyboard */
|
||||
#define EB_IRQ_KMI1 (EB_GIC_IRQ_OFFSET + 21) /* Mouse */
|
||||
#define EB_IRQ_LCD (EB_GIC_IRQ_OFFSET + 20) /* Character LCD */
|
||||
#define EB_IRQ_DMAC (EB_GIC_IRQ_OFFSET + 20) /* DMA Controller */
|
||||
|
||||
/*
|
||||
* We have 3 IRQs for CLCD
|
||||
* 23 - clcd display
|
||||
* 30, 31 for touch screen pen interrupt
|
||||
*/
|
||||
#define EB_IRQ_CLCD (EB_GIC_IRQ_OFFSET + 23)
|
||||
|
||||
/* Interrupt Sources to ARM 11 MPCore or EB+A9 MPCore GIC */
|
||||
#define MPCORE_GIC_IRQ_AACI (EB_GIC_IRQ_OFFSET + 0)
|
||||
@@ -59,6 +68,7 @@
|
||||
#define MPCORE_GIC_IRQ_KMI0 (EB_GIC_IRQ_OFFSET + 7)
|
||||
#define MPCORE_GIC_IRQ_KMI1 (EB_GIC_IRQ_OFFSET + 8)
|
||||
#define MPCORE_GIC_IRQ_ETH (EB_GIC_IRQ_OFFSET + 9)
|
||||
#define MPCORE_GIC_IRQ_CLCD (EB_GIC_IRQ_OFFSET + 23)
|
||||
|
||||
/* Interrupt from GIC1 on Base board */
|
||||
#define MPCORE_GIC_IRQ_EB_GIC1 (EB_GIC_IRQ_OFFSET + 10)
|
||||
@@ -69,13 +79,15 @@
|
||||
#if defined (CONFIG_CPU_ARM11MPCORE) || defined (CONFIG_CPU_CORTEXA9)
|
||||
#define IRQ_TIMER0 MPCORE_GIC_IRQ_TIMER01
|
||||
#define IRQ_TIMER1 MPCORE_GIC_IRQ_TIMER23
|
||||
#define IRQ_KEYBOARD0 MPCORE_GIC_IRQ_TIMER01
|
||||
#define IRQ_KEYBOARD0 MPCORE_GIC_IRQ_KMI0
|
||||
#define IRQ_MOUSE0 MPCORE_GIC_IRQ_KMI1
|
||||
#define IRQ_CLCD0 MPCORE_GIC_IRQ_CLCD
|
||||
#else
|
||||
#define IRQ_TIMER0 EB_IRQ_TIMER01
|
||||
#define IRQ_TIMER1 EB_IRQ_TIMER23
|
||||
#define IRQ_KEYBOARD0 EB_IRQ_KMI0
|
||||
#define IRQ_MOUSE0 EB_IRQ_KMI1
|
||||
#define IRQ_CLCD0 EB_IRQ_CLCD
|
||||
#endif
|
||||
|
||||
#endif /* __PLATFORM_IRQ_H__ */
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <l4/platform/realview/offsets.h>
|
||||
|
||||
/* Device offsets in physical memory */
|
||||
#define PLATFORM_CLCD0_BASE 0x10020000 /* CLCD0 */
|
||||
#define PLATFORM_GIC1_BASE 0x10040000 /* GIC 1 */
|
||||
#define PLATFORM_GIC2_BASE 0x10050000 /* GIC 2 */
|
||||
#define PLATFORM_GIC3_BASE 0x10060000 /* GIC 3 */
|
||||
|
||||
Reference in New Issue
Block a user