Skip to contentSkip to conversation

gpmc timing configuration west bridge related

PATCH In review Sutharsan 2 participants 2 messages Dec 15, 2010

Subsystems (5)
lore
Share & tools
lore

Sutharsan

author
#0 lore raw

PATCH 1/1 gpmc timing configuration west bridge related

Hi,

This patch adds gpmc configuration functions(./arch/arm/mach-omap2/usb-cywb-pnand.c) needed by cypress westbridge device controller driver. West bridge device controller driver is updated to use gpmc configuration functions instead of modifying gpmc registers directly.

Please let us know your comments.

Thanks&Regards,
Sutharsan.

---

arch/arm/mach-omap2/Makefile +1 -0
diff -uprN -X linux-2.6.37_vanilla/Documentation/dontdiff linux-2.6.37_vanilla/arch/arm/mach-omap2/Makefile kernel-cywb/arch/arm/mach-omap2/Makefile
@@ -182,6 +182,7 @@ obj-y					+= $(usbfs-m) $(usbfs-y)
 obj-y					+= usb-musb.o
 obj-$(CONFIG_MACH_OMAP2_TUSB6010)	+= usb-tusb6010.o
 obj-y					+= usb-ehci.o
+obj-$(CONFIG_WESTBRIDGE_ASTORIA)        += usb-cywb-pnand.o
 
 onenand-$(CONFIG_MTD_ONENAND_OMAP2)	:= gpmc-onenand.o
 obj-y					+= $(onenand-m) $(onenand-y)
arch/arm/mach-omap2/usb-cywb-pnand.c +182 -0

182 lines not on this page · raw message

drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c +11 -149

203 lines not on this page · raw message

drivers/staging/westbridge/astoria/arch/arm/plat-omap/include/mach/westbridge/westbridge-omap3-pnand-hal/cyasomapdev_kernel.h +8 -0
diff -uprN -X linux-2.6.37_vanilla/Documentation/dontdiff linux-2.6.37_vanilla/drivers/staging/westbridge/astoria/arch/arm/plat-omap/include/mach/westbridge/westbridge-omap3-pnand-hal/cyasomapdev_kernel.h kernel-cywb/drivers/staging/westbridge/astoria/arch/arm/plat-omap/include/mach/westbridge/westbridge-omap3-pnand-hal/cyasomapdev_kernel.h
@@ -38,6 +38,12 @@
  */
 #define CY_AS_OMAP_KERNEL_HAL_SIG		(0x1441)
 
+/*
+ * following macros are used in ./arch/arm/mach-omap2/usb-cywb-pnand.c
+ * so move them to common header
+ */
+#define GPMC_16BIT_MODE 0
+#define GPMC_RETIME     1
 
 /*
  * Data structures
@@ -67,6 +73,8 @@ typedef struct cy_as_omap_dev_kernel {
 	struct completion dma_complete;
 } cy_as_omap_dev_kernel;
 
+extern int cywb_pnand_platform_retime(int action, bool dbus16_enabled);
+
 #endif
 
 /*[]*/

---------------------------------------------------------------
This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.
---------------------------------------------------------------

#1 lore raw
Quoted 6 lines · Sutharsan

Hi,

This patch adds gpmc configuration functions(./arch/arm/mach-omap2/usb-cywb-pnand.c) needed by cypress westbridge device controller driver. West bridge device controller driver is updated to use gpmc configuration functions instead of modifying gpmc registers directly.

Please let us know your comments.

Care to send it in a format which I can apply it in? (hint, read Documentation/SubmittingPatches please, specifically the section about the Signed-off-by: mark)

thanks,

greg k-h