Skip to content
Snippets Groups Projects
  • Patrick Wildt's avatar
    6a4b07e0
    imx8m: fix rom version check to unbreak some B0 chips · 6a4b07e0
    Patrick Wildt authored
    
    Recently the version check was improved to be able to determine that
    we're running on SoC revision 2.1.  A check for B0 was tightened so
    that it now must equal 0x20 instead of being bigger than 0x20.  On
    some B0 chips the value returned is 0x1020 instead of 0x20.  This
    means even though it's B0, the check will fail and code relying on
    the correct chip revision will make wrong decisions.  There is no
    documentation of those bits, but it seems that NXP always uses a
    byte to encode the revision.  Thus remove the upper bits to fix the
    regression.
    
    Signed-off-by: default avatarPatrick Wildt <patrick@blueri.se>
    6a4b07e0
    History
    imx8m: fix rom version check to unbreak some B0 chips
    Patrick Wildt authored
    
    Recently the version check was improved to be able to determine that
    we're running on SoC revision 2.1.  A check for B0 was tightened so
    that it now must equal 0x20 instead of being bigger than 0x20.  On
    some B0 chips the value returned is 0x1020 instead of 0x20.  This
    means even though it's B0, the check will fail and code relying on
    the correct chip revision will make wrong decisions.  There is no
    documentation of those bits, but it seems that NXP always uses a
    byte to encode the revision.  Thus remove the upper bits to fix the
    regression.
    
    Signed-off-by: default avatarPatrick Wildt <patrick@blueri.se>