diff options
author | Oleksij Rempel <linux@rempel-privat.de> | 2015-10-12 21:15:33 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-10-14 09:37:47 +0200 |
commit | 25e34b44313b61d7a87819498ccfd0129441604a (patch) | |
tree | 06c4e9632efdda8e1122bba41fde5a0069a8fb82 /net/mpls | |
parent | e59a8451be1162d5a10a33e40092f1796cb8fdca (diff) | |
download | linux-25e34b44313b61d7a87819498ccfd0129441604a.tar.bz2 |
irqchip/mxs: Prepare driver for hardware with different offsets
Alphascale asm9260 has similar functionality but different register
offsets. To support asm9260 in the mxs driver we need to rework the
hardcoded access mechanisms.
- Define SET_REG and CLR_REG. These controllers support seperate CLR and
SET offsets for each register.
- Reimplement HW_ICOLL_INTERRUPT with SET_REG and CLR_REG to make it
usable for both cases.
- Instead of using icoll_base and adding the offsets at runtime,
create a new data structure which contains base pointers to all
required regitsters and use it.
- Split out functionality, which is required for the init code of mxs
and asm9260, into helper functions
[ tglx: Massaged changelog and moved the return value change to the
previous patch ]
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Tested-by: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: marc.zyngier@arm.com
Cc: jason@lakedaemon.net
Link: http://lkml.kernel.org/r/1444677334-12242-5-git-send-email-linux@rempel-privat.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'net/mpls')
0 files changed, 0 insertions, 0 deletions