]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit15c495dce610f2256b489dd405528ebf39c8b5d1
tree9e21d3d28f0ca477206e8396563781a24046ded2
parent49d65c51d37863a5395aec5d24f964ff9576dc97
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