Commit 03319a1a authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Jason Cooper

irqchip: spear_shirq: Reorder the spear320 ras blocks

Order the ras blocks in the order of interrupts not alphabetically.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20140619212713.310591579@linutronix.deAcked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent c5d1d857
...@@ -138,20 +138,22 @@ static struct spear_shirq *spear310_shirq_blocks[] = { ...@@ -138,20 +138,22 @@ static struct spear_shirq *spear310_shirq_blocks[] = {
#define SPEAR320_INT_CLR_MASK_REG 0x04 #define SPEAR320_INT_CLR_MASK_REG 0x04
#define SPEAR320_INT_ENB_MASK_REG 0x08 #define SPEAR320_INT_ENB_MASK_REG 0x08
static struct spear_shirq spear320_shirq_ras1 = { static struct spear_shirq spear320_shirq_ras3 = {
.offset = 7, .offset = 0,
.nr_irqs = 3, .nr_irqs = 7,
.disabled = 1,
.regs = { .regs = {
.enb_reg = -1, .enb_reg = SPEAR320_INT_ENB_MASK_REG,
.reset_to_enb = 1,
.status_reg = SPEAR320_INT_STS_MASK_REG, .status_reg = SPEAR320_INT_STS_MASK_REG,
.clear_reg = SPEAR320_INT_CLR_MASK_REG, .clear_reg = SPEAR320_INT_CLR_MASK_REG,
.reset_to_clear = 1, .reset_to_clear = 1,
}, },
}; };
static struct spear_shirq spear320_shirq_ras2 = { static struct spear_shirq spear320_shirq_ras1 = {
.offset = 10, .offset = 7,
.nr_irqs = 1, .nr_irqs = 3,
.regs = { .regs = {
.enb_reg = -1, .enb_reg = -1,
.status_reg = SPEAR320_INT_STS_MASK_REG, .status_reg = SPEAR320_INT_STS_MASK_REG,
...@@ -160,13 +162,11 @@ static struct spear_shirq spear320_shirq_ras2 = { ...@@ -160,13 +162,11 @@ static struct spear_shirq spear320_shirq_ras2 = {
}, },
}; };
static struct spear_shirq spear320_shirq_ras3 = { static struct spear_shirq spear320_shirq_ras2 = {
.offset = 0, .offset = 10,
.nr_irqs = 7, .nr_irqs = 1,
.disabled = 1,
.regs = { .regs = {
.enb_reg = SPEAR320_INT_ENB_MASK_REG, .enb_reg = -1,
.reset_to_enb = 1,
.status_reg = SPEAR320_INT_STS_MASK_REG, .status_reg = SPEAR320_INT_STS_MASK_REG,
.clear_reg = SPEAR320_INT_CLR_MASK_REG, .clear_reg = SPEAR320_INT_CLR_MASK_REG,
.reset_to_clear = 1, .reset_to_clear = 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment