Skip to content

Commit

Permalink
Staging: Westbridge: added ioremap_nocache instead of phys_to_virt
Browse files Browse the repository at this point in the history
This patch removes phys_to_virt() and adds ioremap_nocache() for
memory mapping the GPMC registers.

Signed-off-by: Sutharsan Ramamoorthy <srmt@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Sutharsan Ramamoorthy authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent 90441be commit 4b906e5
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,8 @@ static int cy_as_hal_gpmc_init(void)
u32 tmp32;
int err;
struct gpmc_timings timings;
/*
* get GPMC i/o registers base(already been i/o mapped
* in kernel, no need for separate i/o remap)
*/
gpmc_base = phys_to_virt(OMAP34XX_GPMC_BASE);

gpmc_base = (u32)ioremap_nocache(OMAP34XX_GPMC_BASE, BLKSZ_4K);
DBGPRN(KERN_INFO "kernel has gpmc_base=%x , val@ the base=%x",
gpmc_base, __raw_readl(gpmc_base)
);
Expand Down

0 comments on commit 4b906e5

Please sign in to comment.