Skip to content

Commit 976376a

Browse files
kettenisjannau
authored andcommitted
env: apple: Enable ENV_IS_IN_FAT
Now that we have a way to find the appropriate EFI system partition on the internal NVMe storage, store the U-Boot environment there. Signed-off-by: Mark Kettenis <[email protected]>
1 parent 7b2fe0b commit 976376a

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

arch/arm/mach-apple/board.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,16 @@ static char *asahi_esp_devpart(void)
827827
return devpart;
828828
}
829829

830+
const char *env_fat_get_intf(void)
831+
{
832+
return blk_get_uclass_name(UCLASS_NVME);
833+
}
834+
835+
char *env_fat_get_dev_part(void)
836+
{
837+
return asahi_esp_devpart();
838+
}
839+
830840
#define KERNEL_COMP_SIZE SZ_128M
831841

832842
#define lmb_alloc(size, addr) lmb_alloc_mem(LMB_MEM_ALLOC_ANY, SZ_2M, addr, size, LMB_NONE)

env/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ config ENV_IS_IN_EEPROM
109109
config ENV_IS_IN_FAT
110110
bool "Environment is in a FAT filesystem"
111111
depends on !CHAIN_OF_TRUST
112+
default y if ARCH_APPLE
112113
default y if ARCH_BCM283X
113114
default y if ARCH_SUNXI && MMC
114115
default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS

0 commit comments

Comments
 (0)