imx8: cpu: restrict checking ROM passover info for revA
authorPeng Fan <peng.fan@nxp.com>
Fri, 18 Jan 2019 08:58:38 +0000 (08:58 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 28 Jan 2019 19:55:46 +0000 (20:55 +0100)
commit9382f73bb036b36f08675f3eba3072c47a1e602f
tree9e21d3d28f0ca477206e8396563781a24046ded2
parentd8bbf362f3dc87326597217b8bab083516cf534f
imx8: cpu: restrict checking ROM passover info for revA

Passover info only for revA.

move get_cpu_rev out of CONFIG_CPU to avoid build failure when using
get_cpu_rev in SPL.
Add a CONFIG_SPL_BUILD for passover usage, no need to execute it again
in normal U-Boot stage. Also if still checking passover info in normal
U-Boot stage, need to make the passover code executed after
arch_cpu_init_dm.
So to make it easy and clean, only execute the code for SPL stage.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8/cpu.c