]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm: mvebu: don't hardcode the physical address for mvebu-mbus
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jun 2013 07:04:59 +0000 (09:04 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 13 Jun 2013 17:48:46 +0000 (17:48 +0000)
commitd834d26ae250783a24abaac3e906a6e563a7018f
tree831e7fa96ec758e9baa527520eae03a5a3232b4b
parent580ff0eea15c341d17d564f7e5c519df37033d8e
arm: mvebu: don't hardcode the physical address for mvebu-mbus

Since the mvebu-mbus driver doesn't yet have a DT binding (and this DT
binding may not necessarily be ready for 3.11), the physical address
of the mvebu-mbus registers are currently hardcoded. This doesn't play
well with the fact that the internal registers base address may be
different depending on the bootloader.

In order to have only one central place for the physical address of
the internal registers, we now use of_translate_address() to translate
the mvebu-mbus register offsets into the real physical address, by
using DT-based address translation. This will go away once the
mvebu-mbus driver gains a proper DT binding.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/armada-370-xp.c
arch/arm/mach-mvebu/armada-370-xp.h