board: samsung: e850-96: Load LDFW from EFI partition
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 16 Jan 2025 23:01:28 +0000 (17:01 -0600)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 5 Feb 2025 10:15:12 +0000 (19:15 +0900)
commit4d8ccb938d580638aac48d0e432d6699ed3cc4b8
tree4dcda1b0979d04bec82e6d8579d9f674fdeebb54
parent30404063281e08e9faaa125d2aa09db2beee408d
board: samsung: e850-96: Load LDFW from EFI partition

In case when EFI System Partition is present it can be used to store
firmware binaries, instead of keeping those on separate dedicated
partitions. That simplifies the partition table and makes it more
standard. Rework the firmware loader code to look for LDFW binary at
/EFI/firmware/ldfw.bin on ESP first, and if either the partition or the
file doesn't exist -- fallback to reading it from 'ldfw' partition. This
way backward compatibility can be kept, and Android partition tables
without ESP partition can be handled too.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/e850-96/fw.c