ARM: tegra: use IO_ADDRESS for getting virtual address
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- arch/arm/mach-tegra/apbio.c | 4 ++-- arch/arm/mach-tegra/fuse.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-tegra/apbio.c +2 -2
@@ -293,12 +293,12 @@ static apbio_write_fptr apbio_write;static u32 tegra_apb_readl_direct (unsigned long offset) { -return readl (IO_TO_VIRT (offset)); +return readl (IO_ADDRESS (offset)); }static void tegra_apb_writel_direct (u32 value,unsigned long offset) { -writel (value,IO_TO_VIRT (offset)); +writel (value,IO_ADDRESS (offset)); }void tegra_apb_io_init (void )
arch/arm/mach-tegra/fuse.c +2 -2
@@ -93,9 +93,9 @@ void tegra_init_fuse(void) {u32 id; -u32 reg =readl (IO_TO_VIRT (TEGRA_CLK_RESET_BASE +0x48 )); +u32 reg =readl (IO_ADDRESS (TEGRA_CLK_RESET_BASE +0x48 )); reg |=1 <<28 ; -writel (reg,IO_TO_VIRT (TEGRA_CLK_RESET_BASE +0x48 )); +writel (reg,IO_ADDRESS (TEGRA_CLK_RESET_BASE +0x48 )); reg =tegra_fuse_readl (FUSE_SKU_INFO ); tegra_sku_id = reg &0xFF ;
Signature · 1 line
1.7.1.1
Stephen Warren
AppliedQuoted 5 lines · Laxman Dewangan
Use macro
IO_ADDRESSfor getting virtual address of corresponding physical address to make the consistency with rest of Tegra code-base.
This macro calls theIO_TO_VIRT()which is defined inarch/arm/mach-tegra/include/mach/iomap.h
Thanks, applied to Tegra's for-3.7/fixes.