diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2007-02-20 05:52:01 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-20 05:52:43 -0500 |
commit | e80a0e6e7ccdf64575d4384cb4172860422f5b81 (patch) | |
tree | 8960fa71eb73d0f1185e893192411cb873362738 /arch/arm/mach-iop32x | |
parent | 3b0eb4a195a124567cd0dd6f700f8388def542c6 (diff) | |
parent | 3668b45d46f777b0773ef5ff49531c1144efb6dd (diff) |
[ARM] Merge remaining IOP code
Conflicts:
include/asm-arm/arch-at91rm9200/entry-macro.S
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-iop32x')
-rw-r--r-- | arch/arm/mach-iop32x/glantank.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/iq31244.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/iq80321.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/irq.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/n2100.c | 5 |
5 files changed, 13 insertions, 14 deletions
diff --git a/arch/arm/mach-iop32x/glantank.c b/arch/arm/mach-iop32x/glantank.c index b9b765057dbe..45f4f13ae11b 100644 --- a/arch/arm/mach-iop32x/glantank.c +++ b/arch/arm/mach-iop32x/glantank.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <asm/mach/time.h> | 31 | #include <asm/mach/time.h> |
32 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
33 | #include <asm/page.h> | 33 | #include <asm/page.h> |
34 | #include <asm/arch/time.h> | ||
34 | 35 | ||
35 | /* | 36 | /* |
36 | * GLAN Tank timer tick configuration. | 37 | * GLAN Tank timer tick configuration. |
@@ -38,12 +39,12 @@ | |||
38 | static void __init glantank_timer_init(void) | 39 | static void __init glantank_timer_init(void) |
39 | { | 40 | { |
40 | /* 33.333 MHz crystal. */ | 41 | /* 33.333 MHz crystal. */ |
41 | iop3xx_init_time(200000000); | 42 | iop_init_time(200000000); |
42 | } | 43 | } |
43 | 44 | ||
44 | static struct sys_timer glantank_timer = { | 45 | static struct sys_timer glantank_timer = { |
45 | .init = glantank_timer_init, | 46 | .init = glantank_timer_init, |
46 | .offset = iop3xx_gettimeoffset, | 47 | .offset = iop_gettimeoffset, |
47 | }; | 48 | }; |
48 | 49 | ||
49 | 50 | ||
diff --git a/arch/arm/mach-iop32x/iq31244.c b/arch/arm/mach-iop32x/iq31244.c index be4aedfa0de6..571ac35bc2c7 100644 --- a/arch/arm/mach-iop32x/iq31244.c +++ b/arch/arm/mach-iop32x/iq31244.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <asm/mach-types.h> | 36 | #include <asm/mach-types.h> |
37 | #include <asm/page.h> | 37 | #include <asm/page.h> |
38 | #include <asm/pgtable.h> | 38 | #include <asm/pgtable.h> |
39 | 39 | #include <asm/arch/time.h> | |
40 | 40 | ||
41 | /* | 41 | /* |
42 | * The EP80219 and IQ31244 use the same machine ID. To find out | 42 | * The EP80219 and IQ31244 use the same machine ID. To find out |
@@ -56,16 +56,16 @@ static void __init iq31244_timer_init(void) | |||
56 | { | 56 | { |
57 | if (is_80219()) { | 57 | if (is_80219()) { |
58 | /* 33.333 MHz crystal. */ | 58 | /* 33.333 MHz crystal. */ |
59 | iop3xx_init_time(200000000); | 59 | iop_init_time(200000000); |
60 | } else { | 60 | } else { |
61 | /* 33.000 MHz crystal. */ | 61 | /* 33.000 MHz crystal. */ |
62 | iop3xx_init_time(198000000); | 62 | iop_init_time(198000000); |
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | static struct sys_timer iq31244_timer = { | 66 | static struct sys_timer iq31244_timer = { |
67 | .init = iq31244_timer_init, | 67 | .init = iq31244_timer_init, |
68 | .offset = iop3xx_gettimeoffset, | 68 | .offset = iop_gettimeoffset, |
69 | }; | 69 | }; |
70 | 70 | ||
71 | 71 | ||
diff --git a/arch/arm/mach-iop32x/iq80321.c b/arch/arm/mach-iop32x/iq80321.c index 1f37b5501888..361c70c0f64c 100644 --- a/arch/arm/mach-iop32x/iq80321.c +++ b/arch/arm/mach-iop32x/iq80321.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
34 | #include <asm/page.h> | 34 | #include <asm/page.h> |
35 | #include <asm/pgtable.h> | 35 | #include <asm/pgtable.h> |
36 | #include <asm/arch/time.h> | ||
36 | 37 | ||
37 | /* | 38 | /* |
38 | * IQ80321 timer tick configuration. | 39 | * IQ80321 timer tick configuration. |
@@ -40,12 +41,12 @@ | |||
40 | static void __init iq80321_timer_init(void) | 41 | static void __init iq80321_timer_init(void) |
41 | { | 42 | { |
42 | /* 33.333 MHz crystal. */ | 43 | /* 33.333 MHz crystal. */ |
43 | iop3xx_init_time(200000000); | 44 | iop_init_time(200000000); |
44 | } | 45 | } |
45 | 46 | ||
46 | static struct sys_timer iq80321_timer = { | 47 | static struct sys_timer iq80321_timer = { |
47 | .init = iq80321_timer_init, | 48 | .init = iq80321_timer_init, |
48 | .offset = iop3xx_gettimeoffset, | 49 | .offset = iop_gettimeoffset, |
49 | }; | 50 | }; |
50 | 51 | ||
51 | 52 | ||
diff --git a/arch/arm/mach-iop32x/irq.c b/arch/arm/mach-iop32x/irq.c index 8b0ac5590ae4..82598dc18d80 100644 --- a/arch/arm/mach-iop32x/irq.c +++ b/arch/arm/mach-iop32x/irq.c | |||
@@ -23,16 +23,12 @@ static u32 iop32x_mask; | |||
23 | 23 | ||
24 | static inline void intctl_write(u32 val) | 24 | static inline void intctl_write(u32 val) |
25 | { | 25 | { |
26 | iop3xx_cp6_enable(); | ||
27 | asm volatile("mcr p6, 0, %0, c0, c0, 0" : : "r" (val)); | 26 | asm volatile("mcr p6, 0, %0, c0, c0, 0" : : "r" (val)); |
28 | iop3xx_cp6_disable(); | ||
29 | } | 27 | } |
30 | 28 | ||
31 | static inline void intstr_write(u32 val) | 29 | static inline void intstr_write(u32 val) |
32 | { | 30 | { |
33 | iop3xx_cp6_enable(); | ||
34 | asm volatile("mcr p6, 0, %0, c4, c0, 0" : : "r" (val)); | 31 | asm volatile("mcr p6, 0, %0, c4, c0, 0" : : "r" (val)); |
35 | iop3xx_cp6_disable(); | ||
36 | } | 32 | } |
37 | 33 | ||
38 | static void | 34 | static void |
diff --git a/arch/arm/mach-iop32x/n2100.c b/arch/arm/mach-iop32x/n2100.c index 966aa51aee09..5f07344d96f3 100644 --- a/arch/arm/mach-iop32x/n2100.c +++ b/arch/arm/mach-iop32x/n2100.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <asm/mach-types.h> | 37 | #include <asm/mach-types.h> |
38 | #include <asm/page.h> | 38 | #include <asm/page.h> |
39 | #include <asm/pgtable.h> | 39 | #include <asm/pgtable.h> |
40 | #include <asm/arch/time.h> | ||
40 | 41 | ||
41 | /* | 42 | /* |
42 | * N2100 timer tick configuration. | 43 | * N2100 timer tick configuration. |
@@ -44,12 +45,12 @@ | |||
44 | static void __init n2100_timer_init(void) | 45 | static void __init n2100_timer_init(void) |
45 | { | 46 | { |
46 | /* 33.000 MHz crystal. */ | 47 | /* 33.000 MHz crystal. */ |
47 | iop3xx_init_time(198000000); | 48 | iop_init_time(198000000); |
48 | } | 49 | } |
49 | 50 | ||
50 | static struct sys_timer n2100_timer = { | 51 | static struct sys_timer n2100_timer = { |
51 | .init = n2100_timer_init, | 52 | .init = n2100_timer_init, |
52 | .offset = iop3xx_gettimeoffset, | 53 | .offset = iop_gettimeoffset, |
53 | }; | 54 | }; |
54 | 55 | ||
55 | 56 | ||