]> git.karo-electronics.de Git - karo-tx-linux.git/commit
m68knommu: make ColdFire 5249 MBAR2 register definitions absolute addresses
authorGreg Ungerer <gerg@uclinux.org>
Fri, 14 Sep 2012 13:57:39 +0000 (23:57 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Thu, 27 Sep 2012 13:33:53 +0000 (23:33 +1000)
commit041a89a41993e6023f110bf0cbbda847173e795c
tree761458b32cc26ec9afb0c8f26236c4f7ffc252f8
parentd72a5abb7edfccde54776b2600f735c4e10234a6
m68knommu: make ColdFire 5249 MBAR2 register definitions absolute addresses

Make the ColdFire 5249 MBAR peripheral register definitions absolute
addresses, instead of offsets into the region.

The various ColdFire parts use different methods to address the internal
registers, some are absolute, some are relative to peripheral regions
which can be mapped at different address ranges (such as the MBAR and IPSBAR
registers). We don't want to deal with this in the code when we are
accessing these registers, so make all register definitions the absolute
address - factoring out whether it is an offset into a peripheral region.

This makes them all consistently defined, and reduces the occasional bugs
caused by inconsistent definition of the register addresses.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/m5249sim.h
arch/m68k/platform/coldfire/intc-5249.c
arch/m68k/platform/coldfire/m5249.c