OSDN Git Service

ARM: OMAP2+: hwmod: fix clkctrl address translation logic
authorTero Kristo <t-kristo@ti.com>
Fri, 4 Aug 2017 14:41:50 +0000 (17:41 +0300)
committerTero Kristo <t-kristo@ti.com>
Mon, 4 Dec 2017 09:35:21 +0000 (11:35 +0200)
commit6e83ecaa453d0e574723cc94f46eae74e3820a41
tree70153e96d47f97e18fd3c30ec3052593dcde7507
parent1055d92ccfee2751605cfe32ed2a4f4d6c64c101
ARM: OMAP2+: hwmod: fix clkctrl address translation logic

There are cases where clkctrl clock offsets do not match the corresponding
clockdomain, and this case the existing mapping functionality will fail.
Fix this by adding the whole address range for a clkctrl provider and
matching the actual clkctrl registers against these ranges.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
arch/arm/mach-omap2/omap_hwmod.c