summaryrefslogtreecommitdiffstats
path: root/drivers/staging/board/board.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-06-17 10:38:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-17 21:42:51 -0700
commit72ee8626eeb121587d2e3a57d06611d2e0c3cc1b (patch)
tree24a95465485463aee30f985b4170d4aa7ce8173e /drivers/staging/board/board.h
parentb0c750f74e10fd30a363bfa3467639f12954effa (diff)
downloadlinux-stable-72ee8626eeb121587d2e3a57d06611d2e0c3cc1b.tar.gz
linux-stable-72ee8626eeb121587d2e3a57d06611d2e0c3cc1b.tar.bz2
linux-stable-72ee8626eeb121587d2e3a57d06611d2e0c3cc1b.zip
staging: board: Add support for translating hwirq to virq numbers
As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain."), GIC IRQ numbers are virtual, breaking hardcoded hardware IRQ numbers in platform device resources. Add support for translating hardware IRQ numbers to virtual IRQ numbers, and fixing up platform device resources with hardcoded IRQ numbers. Add a copyright header, including the original author. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/board/board.h')
-rw-r--r--drivers/staging/board/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/board/board.h b/drivers/staging/board/board.h
index e9c914985d4a..3af6dbe22f91 100644
--- a/drivers/staging/board/board.h
+++ b/drivers/staging/board/board.h
@@ -1,10 +1,15 @@
#ifndef __BOARD_H__
#define __BOARD_H__
+
#include <linux/init.h>
#include <linux/of.h>
+struct resource;
+
bool board_staging_dt_node_available(const struct resource *resource,
unsigned int num_resources);
+int board_staging_gic_setup_xlate(const char *gic_match, unsigned int base);
+void board_staging_gic_fixup_resources(struct resource *res, unsigned int nres);
#define board_staging(str, fn) \
static int __init runtime_board_check(void) \