summaryrefslogtreecommitdiff
path: root/board/kontron/sl-mx6ul/sl-mx6ul-common.h
diff options
context:
space:
mode:
authorFrieder Schrempf <frieder.schrempf@kontron.de>2022-08-23 17:29:13 +0300
committerStefano Babic <sbabic@denx.de>2022-10-20 18:35:51 +0300
commit93935acc6f1d5b928f8552e767638e94a82793da (patch)
tree221602edf0fe35c9bc35acc894a0e0adf80e2d12 /board/kontron/sl-mx6ul/sl-mx6ul-common.h
parent234b3be98efe21d04f623b0a67eead321a3da6c1 (diff)
downloadu-boot-93935acc6f1d5b928f8552e767638e94a82793da.tar.xz
imx: imx6ul: kontron-sl-mx6ul: Select correct boot and env device
Instead of checking both, SPI NOR and MMC for loading U-Boot proper and the environment, implement a way to detect the actual boot device even if the BootROM doesn't report it and we can't rely solely on the fuse settings, as by default we use MMC as primary boot device and boot from SPI NOR via the secondary fallback device (EEPROM Recovery Mode). Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Diffstat (limited to 'board/kontron/sl-mx6ul/sl-mx6ul-common.h')
-rw-r--r--board/kontron/sl-mx6ul/sl-mx6ul-common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/kontron/sl-mx6ul/sl-mx6ul-common.h b/board/kontron/sl-mx6ul/sl-mx6ul-common.h
new file mode 100644
index 0000000000..58a0e77a8b
--- /dev/null
+++ b/board/kontron/sl-mx6ul/sl-mx6ul-common.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2022 Kontron Electronics GmbH
+ */
+
+#ifndef __SL_MX6UL_COMMON_H
+#define __SL_MX6UL_COMMON_H
+
+bool sl_mx6ul_is_spi_nor_boot(void);
+
+#endif // __SL_MX6UL_COMMON_H