aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAdam Ford2022-10-22 09:28:23 -0500
committerStefano Babic2022-11-07 22:45:05 +0100
commit3a7943a90c1508a0719f3038b6f5f0662ab9167d (patch)
tree0b8701554121776e2576dbbd7e9e55daab7f2d03 /board
parentb6c8a280905562c3833bb3da994691de60e5fd8d (diff)
imx: imx8mm-beacon: Enable USB booting via SDP
In order to boot over USB, the device tree needs to enable a few extra nodes in SPL. Since the USB driver has the ability to detect host/device, the dr_mode can be removed from the device tree since it needs to act as a device when booting and OTG is the default mode. Add USB boot support to spl_board_boot_device and enable the corresponding config options. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Fabio Estevam <festevam@denx.de>
Diffstat (limited to 'board')
-rw-r--r--board/beacon/imx8mm/spl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/beacon/imx8mm/spl.c b/board/beacon/imx8mm/spl.c
index b0e9d918da9..a5f337aa17c 100644
--- a/board/beacon/imx8mm/spl.c
+++ b/board/beacon/imx8mm/spl.c
@@ -34,6 +34,8 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
case SD3_BOOT:
case MMC3_BOOT:
return BOOT_DEVICE_MMC2;
+ case USB_BOOT:
+ return BOOT_DEVICE_BOARD;
default:
return BOOT_DEVICE_NONE;
}