Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117920
b: refs/heads/master
c: a9c2aa1
h: refs/heads/master
v: v3
  • Loading branch information
Shinya Kuribayashi authored and Ralf Baechle committed Oct 27, 2008
1 parent 7d7f68e commit c728066
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ae9fd79af28d6488e97311a3b60379b59ff4c90
refs/heads/master: a9c2aa17a8b8b7a813d31e66da5d31cfdd006f4b
17 changes: 0 additions & 17 deletions trunk/arch/mips/emma/markeins/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <asm/irq_cpu.h>
#include <asm/system.h>
#include <asm/mipsregs.h>
#include <asm/debug.h>
#include <asm/addrspace.h>
#include <asm/bootinfo.h>

Expand Down Expand Up @@ -67,7 +66,6 @@ void ll_emma2rh_irq_enable(int emma2rh_irq)
(emma2rh_irq / 32);
reg_value = emma2rh_in32(reg_index);
reg_bitmask = 0x1 << (emma2rh_irq % 32);
db_assert((reg_value & reg_bitmask) == 0);
emma2rh_out32(reg_index, reg_value | reg_bitmask);
}

Expand All @@ -82,7 +80,6 @@ void ll_emma2rh_irq_disable(int emma2rh_irq)
(emma2rh_irq / 32);
reg_value = emma2rh_in32(reg_index);
reg_bitmask = 0x1 << (emma2rh_irq % 32);
db_assert((reg_value & reg_bitmask) != 0);
emma2rh_out32(reg_index, reg_value & ~reg_bitmask);
}

Expand Down Expand Up @@ -118,9 +115,6 @@ void ll_emma2rh_sw_irq_enable(int irq)
{
u32 reg;

db_assert(irq >= 0);
db_assert(irq < NUM_EMMA2RH_IRQ_SW);

reg = emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN);
reg |= 1 << irq;
emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, reg);
Expand All @@ -130,9 +124,6 @@ void ll_emma2rh_sw_irq_disable(int irq)
{
u32 reg;

db_assert(irq >= 0);
db_assert(irq < 32);

reg = emma2rh_in32(EMMA2RH_BHIF_SW_INT_EN);
reg &= ~(1 << irq);
emma2rh_out32(EMMA2RH_BHIF_SW_INT_EN, reg);
Expand Down Expand Up @@ -170,9 +161,6 @@ void ll_emma2rh_gpio_irq_enable(int irq)
{
u32 reg;

db_assert(irq >= 0);
db_assert(irq < NUM_EMMA2RH_IRQ_GPIO);

reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK);
reg |= 1 << irq;
emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg);
Expand All @@ -182,9 +170,6 @@ void ll_emma2rh_gpio_irq_disable(int irq)
{
u32 reg;

db_assert(irq >= 0);
db_assert(irq < NUM_EMMA2RH_IRQ_GPIO);

reg = emma2rh_in32(EMMA2RH_GPIO_INT_MASK);
reg &= ~(1 << irq);
emma2rh_out32(EMMA2RH_GPIO_INT_MASK, reg);
Expand Down Expand Up @@ -314,8 +299,6 @@ void __init arch_init_irq(void)
{
u32 reg;

db_run(printk("markeins_irq_setup invoked.\n"));

/* by default, interrupts are disabled. */
emma2rh_out32(EMMA2RH_BHIF_INT_EN_0, 0);
emma2rh_out32(EMMA2RH_BHIF_INT_EN_1, 0);
Expand Down

0 comments on commit c728066

Please sign in to comment.