Fix legacy emmc detection issue on 6735

This commit is contained in:
Bjoern Kerler 2023-02-27 09:40:30 +01:00
parent 1b2486dca3
commit 0f8b56ed8b
No known key found for this signature in database
GPG key ID: 52E823BB96A55380

View file

@ -1100,8 +1100,9 @@ class DALegacy(metaclass=LogBase):
if self.read_flash_info():
if self.daconfig.flashtype == "nand":
self.daconfig.flashsize = self.nand.m_nand_flash_size
elif self.daconfig.flashtype == "emmc":
elif self.daconfig.flashtype == "emmc" or self.emmc.m_emmc_ua_size!=0:
self.daconfig.flashsize = self.emmc.m_emmc_ua_size
self.daconfig.flashtype = "emmc"
if self.daconfig.flashsize == 0:
self.daconfig.flashsize = self.sdc.m_sdmmc_ua_size
elif self.daconfig.flashtype == "nor":