ARM: brcmstb: Add earlyprintk support using run-time checks
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 28 Jun 2016 19:18:51 +0000 (12:18 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 8 Aug 2016 18:14:09 +0000 (11:14 -0700)
commitd0cf9d8a3c78cf70e3a78e898fdc1b2adea0e6dd
tree8a2d8e6918cd143da39bdb3953ffe5a853fc751b
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
ARM: brcmstb: Add earlyprintk support using run-time checks

The SUN_TOP_CTRL_FAMILY_ID register  is at a fixed absolute address for
all of our supported chips, so utilize its value to determine what the
UARTA base address should be based on the value we read.

Since the code is called both during decompressor when the MMU is off,
and after the MMU has been turned on in the kernel, and we want to do
the lookup only once, we use the same technique as tegra.S and have a
shared storage location between the decompressor and the kernel.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/Kconfig.debug
arch/arm/include/debug/brcmstb.S [new file with mode: 0644]
arch/arm/mach-bcm/brcmstb.c