diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-01-06 18:59:26 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-01-15 03:10:14 -0500 |
commit | 5b39be4637bb795b2133dbee0eadbcc08bdd4134 (patch) | |
tree | f55baa4bf30212075ba45d89b78ccf2e265467bc /arch/arm/plat-s3c64xx | |
parent | 51022cf6591ae2945960d034788bdeffa28cde13 (diff) |
ARM: Add common entry code for system with two VICs
Add a common entry-macro-vic2.S for systems where there are two VICs
so that the machine or platform directories just need to setup the
correct information before including <asm/entry-macro-vic2.S> into
their own entry-macro.S file.
Since this code is from the S3C64XX project, we update the S3C64XX
machine entry code to use this new header.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c64xx')
-rw-r--r-- | arch/arm/plat-s3c64xx/cpu.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-s3c64xx/include/plat/irqs.h | 8 | ||||
-rw-r--r-- | arch/arm/plat-s3c64xx/irq.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/plat-s3c64xx/cpu.c b/arch/arm/plat-s3c64xx/cpu.c index 49796d2db86d..c0e6f2a45154 100644 --- a/arch/arm/plat-s3c64xx/cpu.c +++ b/arch/arm/plat-s3c64xx/cpu.c | |||
@@ -78,12 +78,12 @@ static struct map_desc s3c_iodesc[] __initdata = { | |||
78 | .length = SZ_4K, | 78 | .length = SZ_4K, |
79 | .type = MT_DEVICE, | 79 | .type = MT_DEVICE, |
80 | }, { | 80 | }, { |
81 | .virtual = (unsigned long)S3C_VA_VIC0, | 81 | .virtual = (unsigned long)VA_VIC0, |
82 | .pfn = __phys_to_pfn(S3C64XX_PA_VIC0), | 82 | .pfn = __phys_to_pfn(S3C64XX_PA_VIC0), |
83 | .length = SZ_16K, | 83 | .length = SZ_16K, |
84 | .type = MT_DEVICE, | 84 | .type = MT_DEVICE, |
85 | }, { | 85 | }, { |
86 | .virtual = (unsigned long)S3C_VA_VIC1, | 86 | .virtual = (unsigned long)VA_VIC1, |
87 | .pfn = __phys_to_pfn(S3C64XX_PA_VIC1), | 87 | .pfn = __phys_to_pfn(S3C64XX_PA_VIC1), |
88 | .length = SZ_16K, | 88 | .length = SZ_16K, |
89 | .type = MT_DEVICE, | 89 | .type = MT_DEVICE, |
diff --git a/arch/arm/plat-s3c64xx/include/plat/irqs.h b/arch/arm/plat-s3c64xx/include/plat/irqs.h index 7956fd3bb194..176fe15a61d6 100644 --- a/arch/arm/plat-s3c64xx/include/plat/irqs.h +++ b/arch/arm/plat-s3c64xx/include/plat/irqs.h | |||
@@ -24,8 +24,8 @@ | |||
24 | 24 | ||
25 | #define S3C_IRQ(x) ((x) + S3C_IRQ_OFFSET) | 25 | #define S3C_IRQ(x) ((x) + S3C_IRQ_OFFSET) |
26 | 26 | ||
27 | #define S3C_VIC0_BASE S3C_IRQ(0) | 27 | #define IRQ_VIC0_BASE S3C_IRQ(0) |
28 | #define S3C_VIC1_BASE S3C_IRQ(32) | 28 | #define IRQ_VIC1_BASE S3C_IRQ(32) |
29 | 29 | ||
30 | /* UART interrupts, each UART has 4 intterupts per channel so | 30 | /* UART interrupts, each UART has 4 intterupts per channel so |
31 | * use the space between the ISA and S3C main interrupts. Note, these | 31 | * use the space between the ISA and S3C main interrupts. Note, these |
@@ -59,8 +59,8 @@ | |||
59 | 59 | ||
60 | /* VIC based IRQs */ | 60 | /* VIC based IRQs */ |
61 | 61 | ||
62 | #define S3C64XX_IRQ_VIC0(x) (S3C_VIC0_BASE + (x)) | 62 | #define S3C64XX_IRQ_VIC0(x) (IRQ_VIC0_BASE + (x)) |
63 | #define S3C64XX_IRQ_VIC1(x) (S3C_VIC1_BASE + (x)) | 63 | #define S3C64XX_IRQ_VIC1(x) (IRQ_VIC1_BASE + (x)) |
64 | 64 | ||
65 | /* VIC0 */ | 65 | /* VIC0 */ |
66 | 66 | ||
diff --git a/arch/arm/plat-s3c64xx/irq.c b/arch/arm/plat-s3c64xx/irq.c index b98451e8ee24..67a145d440f3 100644 --- a/arch/arm/plat-s3c64xx/irq.c +++ b/arch/arm/plat-s3c64xx/irq.c | |||
@@ -54,8 +54,8 @@ void __init s3c64xx_init_irq(u32 vic0_valid, u32 vic1_valid) | |||
54 | printk(KERN_DEBUG "%s: initialising interrupts\n", __func__); | 54 | printk(KERN_DEBUG "%s: initialising interrupts\n", __func__); |
55 | 55 | ||
56 | /* initialise the pair of VICs */ | 56 | /* initialise the pair of VICs */ |
57 | vic_init(S3C_VA_VIC0, S3C_VIC0_BASE, vic0_valid, 0); | 57 | vic_init(VA_VIC0, IRQ_VIC0_BASE, vic0_valid, 0); |
58 | vic_init(S3C_VA_VIC1, S3C_VIC1_BASE, vic1_valid, 0); | 58 | vic_init(VA_VIC1, IRQ_VIC1_BASE, vic1_valid, 0); |
59 | 59 | ||
60 | /* add the timer sub-irqs */ | 60 | /* add the timer sub-irqs */ |
61 | 61 | ||