Hello,
we are using an MIMX8MQ6DVAJZAA / ...AB. Currently we are switching from the 0N14W mask to 2N14W. During the U-Boot adaption for the new mask one of the developers working on the project noted that there are some problems:
At the moment we tried to use the following check:
rom_version = readl((void __iomem *)ROM_VERSION_B0);
if (rom_version == CHIP_REV_2_0)
reg = CHIP_REV_2_0;
But it seems that the content for rom_version isn't always CHIP_REV_2_0 (0x20) but on some boards it is 0x1020. Would it be correct to check for the following instead:
((rom_version & 0xFF) == CHIP_REV_2_0)
Is there some official documentation how to correctly detect the different chip masks? How to make sure that a future mask (for example 3N14W) would be detected as the newest one?
Best regards
Christian