* [PATCH] Staging: Westbridge: added ioremap_nocache instead of phys_to_virt
@ 2011-02-02 6:45 Sutharsan
0 siblings, 0 replies; only message in thread
From: Sutharsan @ 2011-02-02 6:45 UTC (permalink / raw)
To: greg; +Cc: linux-kernel, linux-omap, linux-usb, david.cross, srmt
From: Sutharsan Ramamoorthy <srmt@cypress.com>
This patch removes phys_to_virt() and adds ioremap_nocache() for
memory mapping the GPMC registers.
Signed-off-by: Sutharsan Ramamoorthy <srmt@cypress.com>
---
diff -uprN -X linux-2.6.37_vanilla/Documentation/dontdiff linux-2.6.37_vanilla/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c linux-2.6.37-ptov/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
--- linux-2.6.37_vanilla/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c 2010-11-29 20:42:04.000000000 -0800
+++ linux-2.6.37-ptov/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c 2011-02-01 16:00:31.214861085 -0800
@@ -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)
);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-02 6:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02 6:45 [PATCH] Staging: Westbridge: added ioremap_nocache instead of phys_to_virt Sutharsan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®