diff options
author | Michal Simek <monstr@monstr.eu> | 2010-01-14 15:16:31 +0100 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-03-11 13:59:28 +0100 |
commit | c6ba01a4c7806d134c8d483525997559071d0990 (patch) | |
tree | 07fcff3b237903424d5c7e11497c575d6301e323 /arch/microblaze/kernel/irq.c | |
parent | a84642a339235020e6dccc022de27055f1fa9340 (diff) | |
download | kernel_samsung_smdk4412-c6ba01a4c7806d134c8d483525997559071d0990.zip kernel_samsung_smdk4412-c6ba01a4c7806d134c8d483525997559071d0990.tar.gz kernel_samsung_smdk4412-c6ba01a4c7806d134c8d483525997559071d0990.tar.bz2 |
microblaze: Add irq_create_{of_,}mapping functions
Support function for PCI. We don't use any advance mapping mechanism
that's why implementation is simple.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/irq.c')
-rw-r--r-- | arch/microblaze/kernel/irq.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/irq.c b/arch/microblaze/kernel/irq.c index 0f06034..6f39e2c 100644 --- a/arch/microblaze/kernel/irq.c +++ b/arch/microblaze/kernel/irq.c @@ -93,3 +93,18 @@ skip: } return 0; } + +/* MS: There is no any advance mapping mechanism. We are using simple 32bit + intc without any cascades or any connection that's why mapping is 1:1 */ +unsigned int irq_create_mapping(struct irq_host *host, irq_hw_number_t hwirq) +{ + return hwirq; +} +EXPORT_SYMBOL_GPL(irq_create_mapping); + +unsigned int irq_create_of_mapping(struct device_node *controller, + u32 *intspec, unsigned int intsize) +{ + return intspec[0]; +} +EXPORT_SYMBOL_GPL(irq_create_of_mapping); |