]> Pileus Git - ~andy/linux/commit
arm: mvebu: avoid hardcoded virtual address in coherency code
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jun 2013 07:04:55 +0000 (09:04 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 13 Jun 2013 17:48:20 +0000 (17:48 +0000)
commit865e0527d2d791083a40555f2ba872da5fbddda8
tree1b4b4af855c606a4acef2ac04f5932632c120160
parentb21dcafea36dd6249df9cf485a48c7337a8987af
arm: mvebu: avoid hardcoded virtual address in coherency code

Now that the coherency_get_cpu_count() function no longer requires a
very early mapping of the coherency unit registers, we can avoid the
hardcoded virtual address in coherency.c. However, the coherency
features are still used quite early, so we need to do the of_iomap()
early enough, at the ->init_timer() level, so we have the call of
coherency_init() at this point.

Unfortunately, at ->init_timer() time, it is not possible to register
a bus notifier, so we add a separate coherency_late_init() function
that gets called as as postcore_initcall(), when bus notifiers are
available.

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/coherency.c