diff options
author | Colin Cross <ccross@android.com> | 2011-02-26 16:45:47 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-02-26 16:47:37 -0800 |
commit | 86714b70a1532b1056d4c4560cccff4b2395c96b (patch) | |
tree | 85e6274d95868dcd5a68f8949cff57c54c37bfe3 | |
parent | 1249163215ede23cb139a6da9f69e19a393e70f4 (diff) |
ARM: tegra: fuse: Fix bug in get_spare_fuse
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>
-rw-r--r-- | arch/arm/mach-tegra/fuse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/fuse.c b/arch/arm/mach-tegra/fuse.c index 869860c0d41d..101af0a2de15 100644 --- a/arch/arm/mach-tegra/fuse.c +++ b/arch/arm/mach-tegra/fuse.c @@ -49,7 +49,7 @@ void tegra_fuse_writel(u32 value, unsigned long offset) 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) |