]> git.baikalelectronics.ru Git - uboot.git/commit
imx: move get_boot_device to common file
authorPeng Fan <peng.fan@nxp.com>
Tue, 26 Jul 2022 08:40:37 +0000 (16:40 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 Jul 2022 09:29:00 +0000 (11:29 +0200)
commit171388d571d36d78e3c54bdce4532070aa3da483
treef009dc6d615c610143b44f3350b5c482f27d82d3
parent0aa818b393676ee340f64cab6603b6aa504ccf65
imx: move get_boot_device to common file

i.MX8MN/P/ULP supports ROM API, they have almost same get_boot_device
implementation, so move to a common file. And when support i.MX9,
no need to include the other function copy.

Since sys_proto.h is included in imx_romapi.c, there will be build
warning for i.MX8M because wdog_regs not defined, so include imx-regs.h
in i.MX8M sys_proro.h

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx8m/sys_proto.h
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/imx8m/soc.c
arch/arm/mach-imx/imx8ulp/soc.c
arch/arm/mach-imx/romapi.c