]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: am642: Define NAND boot device
authorRoger Quadros <rogerq@kernel.org>
Thu, 11 Jan 2024 13:19:20 +0000 (15:19 +0200)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Mon, 15 Jan 2024 07:58:24 +0000 (08:58 +0100)
AM642 SoC supports booting from GPMC NAND device.
Define boot device for it.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Link: https://www.mail-archive.com/u-boot@lists.denx.de/msg499180.html
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
arch/arm/mach-k3/am642_init.c
arch/arm/mach-k3/include/mach/am64_spl.h

index 6085379f1db1f32c92fff870622a5f80c4edb457..ddf47ef0a9bc038d933772b9700356393d9c760b 100644 (file)
@@ -348,6 +348,9 @@ static u32 __get_primary_bootmedia(u32 main_devstat)
        case BOOT_DEVICE_EMMC:
                return BOOT_DEVICE_MMC1;
 
+       case BOOT_DEVICE_NAND:
+               return BOOT_DEVICE_NAND;
+
        case BOOT_DEVICE_MMC:
                if ((bootmode_cfg & MAIN_DEVSTAT_PRIMARY_MMC_PORT_MASK) >>
                     MAIN_DEVSTAT_PRIMARY_MMC_PORT_SHIFT)
index b4f396b2c0a248009facdd3f0b929e377feb458c..a0a517019cbe1c8df026eb7b1c71039ddb4d84c6 100644 (file)
@@ -22,6 +22,7 @@
 
 #define BOOT_DEVICE_USB                        0x2A
 #define BOOT_DEVICE_DFU                        0x0A
+#define BOOT_DEVICE_NAND               0x0B
 #define BOOT_DEVICE_GPMC_NOR           0x0C
 #define BOOT_DEVICE_PCIE               0x0D
 #define BOOT_DEVICE_XSPI               0x0E