summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-04-07 12:16:15 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2022-04-26 17:18:39 +0530
commit4aceaec585d925eed468c3bd25fdcdfd7568033e (patch)
treebe91a541fce69ead05034f91a03e1613950aab0f /board/freescale
parentccad59dc5cc5f4ba5151a0f9aac2df7f441fb7b2 (diff)
downloadu-boot-4aceaec585d925eed468c3bd25fdcdfd7568033e.tar.gz
u-boot-4aceaec585d925eed468c3bd25fdcdfd7568033e.tar.bz2
u-boot-4aceaec585d925eed468c3bd25fdcdfd7568033e.zip
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>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
index 1e6dfe87d8..dde0c1dcd2 100644
--- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
+++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
@@ -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");