board: freescale: p1_p2_rdb_pc: Detect both P2020 SD switch configurations
As written in comment, P2020 has two possible SD switch configurations. Extend code to detect both of them. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
committed by
Priyanka Jain
parent
ccad59dc5c
commit
4aceaec585
@@ -216,6 +216,10 @@ int checkboard(void)
|
||||
puts("rom_loc: ");
|
||||
if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD) {
|
||||
puts("sd");
|
||||
#ifdef __SW_BOOT_SD2
|
||||
} else if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD2) {
|
||||
puts("sd");
|
||||
#endif
|
||||
#ifdef __SW_BOOT_SPI
|
||||
} else if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SPI) {
|
||||
puts("spi");
|
||||
|
||||
Reference in New Issue
Block a user