diff options
author | Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> | 2008-10-23 12:33:10 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-27 12:18:30 -0400 |
commit | a9c2aa17a8b8b7a813d31e66da5d31cfdd006f4b (patch) | |
tree | 8ab2d7e464c707bd844b47a86f58cb2a710c4e30 | |
parent | 9ae9fd79af28d6488e97311a3b60379b59ff4c90 (diff) |
MIPS: Markeins: Remove runtime debug prints
Remove runtime db_* macros as we don't need them any more. In general,
such helpers are useful for initial porting, but once approved, they are
not indispensable.
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/emma/markeins/irq.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/mips/emma/markeins/irq.c b/arch/mips/emma/markeins/irq.c index ada33d8f6edf..03a663a372f5 100644 --- a/arch/mips/emma/markeins/irq.c +++ b/arch/mips/emma/markeins/irq.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <asm/irq_cpu.h> | 32 | #include <asm/irq_cpu.h> |
33 | #include <asm/system.h> | 33 | #include <asm/system.h> |
34 | #include <asm/mipsregs.h> | 34 | #include <asm/mipsregs.h> |
35 | #include <asm/debug.h> | ||
36 | #include <asm/addrspace.h> | 35 | #include <asm/addrspace.h> |
37 | #include <asm/bootinfo.h> | 36 | #include <asm/bootinfo.h> |
38 | 37 | ||
@@ -67,7 +66,6 @@ void ll_emma2rh_irq_enable(int emma2rh_irq) | |||
67 | (emma2rh_irq / 32); | 66 | (emma2rh_irq / 32); |
68 | reg_value = emma2rh_in32(reg_index); | 67 | reg_value = emma2rh_in32(reg_index); |
69 | reg_bitmask = 0x1 << (emma2rh_irq % 32); | 68 | reg_bitmask = 0x1 << (emma2rh_irq % 32); |
70 | db_assert((reg_value & reg_bitmask) == 0); | ||
71 | emma2rh_out32(reg_index, reg_value | reg_bitmask); | 69 | emma2rh_out32(reg_index, reg_value | reg_bitmask); |
72 | } | 70 | } |
73 | 71 | ||
@@ -82,7 +80,6 @@ void ll_emma2rh_irq_disable(int emma2rh_irq) | |||
82 | (emma2rh_irq / 32); | 80 | (emma2rh_irq / 32); |
83 | reg_value = emma2rh_in32(reg_index); | 81 | reg_value = emma2rh_in32(reg_index); |
84 | reg_bitmask = 0x1 << (emma2rh_irq % 32); | 82 | reg_bitmask = 0x1 << (emma2rh_irq % 32); |
85 | db_assert((reg_value & reg_bitmask) != 0); | ||
86 | emma2rh_out32(reg_index, reg_value & ~reg_bitmask); | 83 | emma2rh_out32(reg_index, reg_value & ~reg_bitmask); |
87 | } | 84 | } |
88 | 85 | ||
@@ -118,9 +115,6 @@ void ll_emma2rh_sw_irq_enable(int irq) | |||
118 | { | 115 | { |
119 | u32 reg; | 116 | u32 reg; |
120 | 117 | ||
121 | db_assert(irq >= 0); | ||
122 | db_assert(irq < NUM_EMMA2RH_IRQ_SW); | ||
123 | |||
124 | reg = emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN); | 118 | reg = emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN); |
125 | reg |= 1 << irq; | 119 | reg |= 1 << irq; |
126 | emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, reg); | 120 | emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, reg); |
@@ -130,9 +124,6 @@ void ll_emma2rh_sw_irq_disable(int irq) | |||
130 | { | 124 | { |
131 | u32 reg; | 125 | u32 reg; |
132 | 126 | ||
133 | db_assert(irq >= 0); | ||
134 | db_assert(irq < 32); | ||
135 | |||
136 | reg = emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN); | 127 | reg = emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN); |
137 | reg &= ~(1 << irq); | 128 | reg &= ~(1 << irq); |
138 | emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, reg); | 129 | emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, reg); |
@@ -170,9 +161,6 @@ void ll_emma2rh_gpio_irq_enable(int irq) | |||
170 | { | 161 | { |
171 | u32 reg; | 162 | u32 reg; |
172 | 163 | ||
173 | db_assert(irq >= 0); | ||
174 | db_assert(irq < NUM_EMMA2RH_IRQ_GPIO); | ||
175 | |||
176 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK); | 164 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK); |
177 | reg |= 1 << irq; | 165 | reg |= 1 << irq; |
178 | emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg); | 166 | emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg); |
@@ -182,9 +170,6 @@ void ll_emma2rh_gpio_irq_disable(int irq) | |||
182 | { | 170 | { |
183 | u32 reg; | 171 | u32 reg; |
184 | 172 | ||
185 | db_assert(irq >= 0); | ||
186 | db_assert(irq < NUM_EMMA2RH_IRQ_GPIO); | ||
187 | |||
188 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK); | 173 | reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK); |
189 | reg &= ~(1 << irq); | 174 | reg &= ~(1 << irq); |
190 | emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg); | 175 | emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg); |
@@ -314,8 +299,6 @@ void __init arch_init_irq(void) | |||
314 | { | 299 | { |
315 | u32 reg; | 300 | u32 reg; |
316 | 301 | ||
317 | db_run(printk("markeins_irq_setup invoked.\n")); | ||
318 | |||
319 | /* by default, interrupts are disabled. */ | 302 | /* by default, interrupts are disabled. */ |
320 | emma2rh_out32(EMMA2RH_BHIF_INT_EN_0, 0); | 303 | emma2rh_out32(EMMA2RH_BHIF_INT_EN_0, 0); |
321 | emma2rh_out32(EMMA2RH_BHIF_INT_EN_1, 0); | 304 | emma2rh_out32(EMMA2RH_BHIF_INT_EN_1, 0); |