get_spare_fuse was calling tegra_apb_readl and passing an
offset, but tegra_apb_readl requires a physical address.
Fix it by calling tegra_fuse_readl instead, which takes
an offset.
Fixes a crash booting on A03 parts, where get_spare_fuse
is used to determine the difference between A03 and A03
prime.
Change-Id: Ie386dc099e1c14eeb36262bfcc882e29a40a8da6
Signed-off-by: Colin Cross <ccross@android.com>
static inline bool get_spare_fuse(int bit)
{
- return tegra_apb_readl(FUSE_SPARE_BIT + bit * 4);
+ return tegra_fuse_readl(FUSE_SPARE_BIT + bit * 4);
}
void tegra_init_fuse(void)