Skip to content
Snippets Groups Projects
  • Ye Li's avatar
    1fb61cd8
    MLK-14312 mx7ulp: Fix incorrect DTB modification after using USB · 1fb61cd8
    Ye Li authored
    
    u-boot has feature that when booting for mfgtool, the u-boot will modify the DTB
    to disable SD 1.8v switch. But the judgement for mfgtool boot has a problem, it
    only checks whether the USB PHY power status is enabled. When a USB device
    (for example a USB ethernet) is used in u-boot, the power status is also enabled.
    So the u-boot incorrectly disable the SD 1.8v switch.
    
    The patch changes the get_boot_device to use the boot SW info provided by ROM. Only if
    it is a USB boot, we will start the DTB modification for SD.
    
    Signed-off-by: default avatarYe Li <ye.li@nxp.com>
    1fb61cd8
    History
    MLK-14312 mx7ulp: Fix incorrect DTB modification after using USB
    Ye Li authored
    
    u-boot has feature that when booting for mfgtool, the u-boot will modify the DTB
    to disable SD 1.8v switch. But the judgement for mfgtool boot has a problem, it
    only checks whether the USB PHY power status is enabled. When a USB device
    (for example a USB ethernet) is used in u-boot, the power status is also enabled.
    So the u-boot incorrectly disable the SD 1.8v switch.
    
    The patch changes the get_boot_device to use the boot SW info provided by ROM. Only if
    it is a USB boot, we will start the DTB modification for SD.
    
    Signed-off-by: default avatarYe Li <ye.li@nxp.com>