diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-08-10 09:03:02 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-09-06 13:46:58 -0400 |
commit | f8e798a9e215068e0de3dcc3d61a3dc4b94fde12 (patch) | |
tree | b3a5d4a84e63710a48a9d349b320681b334caabf /arch/arm/mach-tegra/fuse.c | |
parent | 4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff) |
ARM: tegra: use IO_ADDRESS for getting virtual address
Use macro IO_ADDRESS for getting virtual address of
corresponding physical address to make the consistency
with rest of Tegra code-base.
This macro calls the IO_TO_VIRT() which is defined in
arch/arm/mach-tegra/include/mach/iomap.h
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/fuse.c')
-rw-r--r-- | arch/arm/mach-tegra/fuse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/fuse.c b/arch/arm/mach-tegra/fuse.c index f946d129423c..0b7db174a5de 100644 --- a/arch/arm/mach-tegra/fuse.c +++ b/arch/arm/mach-tegra/fuse.c | |||
@@ -93,9 +93,9 @@ void tegra_init_fuse(void) | |||
93 | { | 93 | { |
94 | u32 id; | 94 | u32 id; |
95 | 95 | ||
96 | u32 reg = readl(IO_TO_VIRT(TEGRA_CLK_RESET_BASE + 0x48)); | 96 | u32 reg = readl(IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x48)); |
97 | reg |= 1 << 28; | 97 | reg |= 1 << 28; |
98 | writel(reg, IO_TO_VIRT(TEGRA_CLK_RESET_BASE + 0x48)); | 98 | writel(reg, IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x48)); |
99 | 99 | ||
100 | reg = tegra_fuse_readl(FUSE_SKU_INFO); | 100 | reg = tegra_fuse_readl(FUSE_SKU_INFO); |
101 | tegra_sku_id = reg & 0xFF; | 101 | tegra_sku_id = reg & 0xFF; |