board: freescale: p1_p2_rdb_pc: Move boot reset macros to p1_p2_bootsrc.h
authorPali Rohár <pali@kernel.org>
Thu, 26 May 2022 08:52:27 +0000 (10:52 +0200)
committerPeng Fan <peng.fan@nxp.com>
Mon, 20 Jun 2022 07:52:45 +0000 (15:52 +0800)
commit676f682bad2ed93a20fcf35dd5af5163d11c126f
tree471a5d145eeb771cdf1eca155c0ecc6f5105ed65
parent3acf0be4e6f78feec53df9ab897bf0b26c6fe7c3
board: freescale: p1_p2_rdb_pc: Move boot reset macros to p1_p2_bootsrc.h

Code for changing boot source is platform generic and can be used by any
P1* and P2* compatible RDB board. Not only by boards which use config
header file p1_p2_rdb_pc.h.

So move this code from p1_p2_rdb_pc.h to p1_p2_bootsrc.h and cleanup macros
for generating boot source env variables in CONFIG_EXTRA_ENV_SETTINGS.

This allows to use code for resetting board and rebooting to other boot
source also by other boards in future.

Signed-off-by: Pali Rohár <pali@kernel.org>
include/configs/p1_p2_bootsrc.h [new file with mode: 0644]
include/configs/p1_p2_rdb_pc.h