Commit c71f213f authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding

soc/tegra: fuse: Warn if straps are not ready

Now both Chip ID and HW straps are becoming available at the same time,
thus we could simply check the availability of the ID in order to check
the availability of the straps. We couldn't check straps for 0x0 because
it could be a correct value.

This change didn't uncover any problems, but anyways it is nicer to have
straps verified for consistency with the Chip ID verification.
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 221c057a
......@@ -27,7 +27,7 @@ static u32 chipid;
u32 tegra_read_chipid(void)
{
WARN(!chipid, "Tegra Chip ID not yet available\n");
WARN(!chipid, "Tegra ABP MISC not yet available\n");
return chipid;
}
......@@ -39,6 +39,8 @@ u8 tegra_get_chip_id(void)
u32 tegra_read_straps(void)
{
WARN(!chipid, "Tegra ABP MISC not yet available\n");
return strapping;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment