uniphier: prepare uniphier_soc_info() for next SoC
The revision register address will be changed in the next SoC.

The LSI revision is needed in order to know where the revision
register is located, but you need to read out the revision
register for that. This is impossible.

We need to know the revision register address by other means.
Use BL_CODE_BASE, where the base address of the TF image that is
currently running. If it is bigger than 0x80000000 (i.e. the DRAM
base is 0x80000000), we assume it is a legacy SoC.

Change-Id: I9d7f4325fe2085a8a1ab5310025e5948da611256
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 896d684 commit dd53cfe19fdc80af47ca53da8d45e3599b337323
@Masahiro Yamada Masahiro Yamada authored on 3 Feb 2020
Showing 1 changed file
View
plat/socionext/uniphier/uniphier_soc_info.c