ARM: 8334/1: amba: tegra-ahb: detect and correct bogus base address
authorPaul Walmsley <[email protected]>
Thu, 26 Mar 2015 07:56:35 +0000 (08:56 +0100)
committerRussell King <[email protected]>
Thu, 2 Apr 2015 09:03:55 +0000 (10:03 +0100)
commitce7a10b0ff3db63a43d2d7885aa0f43dc8c96419
tree42760730e01f1bfe7f2209675d77fd45e0930edd
parent049e4b3f801778569c619324a36b4518d955dba4
ARM: 8334/1: amba: tegra-ahb: detect and correct bogus base address

amba: tegra-ahb: detect and correct bogus base address

From a hardware SoC integration point of view, the starting address of
this IP block in the existing Tegra SoC DT files is off by 4 bytes
from the actual base address.  Since we attempt to make old DT files
forward-compatible with newer kernels, we cannot fix the IP block base
address in old DT data. This patch works around the problem by
detecting the four byte base address offset in the driver code, and
correcting it if it's detected.  (In general, IP block base addresses
almost always have a null low byte.)

Future SoC DT data for Tegra AHB should use the correct Tegra AHB base
address, in cases where there is no DT data backward compatibility
requirement.

This patch is a revision of the patch originally titled
"amba: tegra-ahb: use correct base address for future chip support".
This revision implements changes requested by Russell King:

http://marc.info/?l=linux-tegra&m=142658851825062&w=2
http://marc.info/?l=linux-tegra&m=142658873925178&w=2

Signed-off-by: Paul Walmsley <[email protected]>
Cc: Paul Walmsley <[email protected]>
Cc: Alexandre Courbot <[email protected]>
Cc: Hiroshi DOYU <[email protected]>
Cc: Stephen Warren <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: [email protected]
Acked-by: Stephen Warren <[email protected]>
Signed-off-by: Russell King <[email protected]>
drivers/amba/tegra-ahb.c