ARM: imx: add a legacy irqdomain for 3ds_debugboard
authorShawn Guo <shawn.guo@linaro.org>
Wed, 13 Jun 2012 08:37:04 +0000 (16:37 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Sun, 1 Jul 2012 13:58:15 +0000 (21:58 +0800)
commitec7828807b14aab647a43c5b4ee2084de273c172
tree9c8152469958e2d5dce30b126517dc6eb0f2cad9
parented4a7fb01a467f5d264fe12f17eb981f21c7bbcd
ARM: imx: add a legacy irqdomain for 3ds_debugboard

Call irq_alloc_descs to get the irq_base for 3ds_debugboard, and add
a legacy irqdomain using the irq_base, so that the mapping between
3ds_debugboard hardware irq and Linux irq number can be dynamically
handled by irqdomain.  As the result, the use of MXC_BOARD_IRQ_START
can be completely removed from 3ds_debugboard.c.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
arch/arm/plat-mxc/3ds_debugboard.c