Commit 4b906e58 authored by Sutharsan Ramamoorthy's avatar Sutharsan Ramamoorthy Committed by Greg Kroah-Hartman

Staging: Westbridge: added ioremap_nocache instead of phys_to_virt

This patch removes phys_to_virt() and adds ioremap_nocache() for
memory mapping the GPMC registers.
Signed-off-by: default avatarSutharsan Ramamoorthy <srmt@cypress.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 90441beb
...@@ -347,11 +347,8 @@ static int cy_as_hal_gpmc_init(void) ...@@ -347,11 +347,8 @@ static int cy_as_hal_gpmc_init(void)
u32 tmp32; u32 tmp32;
int err; int err;
struct gpmc_timings timings; struct gpmc_timings timings;
/*
* get GPMC i/o registers base(already been i/o mapped gpmc_base = (u32)ioremap_nocache(OMAP34XX_GPMC_BASE, BLKSZ_4K);
* in kernel, no need for separate i/o remap)
*/
gpmc_base = phys_to_virt(OMAP34XX_GPMC_BASE);
DBGPRN(KERN_INFO "kernel has gpmc_base=%x , val@ the base=%x", DBGPRN(KERN_INFO "kernel has gpmc_base=%x , val@ the base=%x",
gpmc_base, __raw_readl(gpmc_base) gpmc_base, __raw_readl(gpmc_base)
); );
......
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