forked from Minki/linux
81eb669b95
This is a driver for the Cypress West Bridge companion chip. Its function is analogous to the North/South Bridges of PC environments applied to embedded devices, in that it expands I/O and storage capabilities of an embedded processor. The Astoria version, which this driver applies to, functions as a USB, embedded memory and SDIO controller. The kernel that this patch was applied to is linux-2.6.35, although it was tested using the android kernel 2.6.29 running on the Zoom 2 platform. In this system, it was used primarily as a sideloading accelerator enabling direct data transfers between a USB host PC and embedded memory without system overheads. Minor modifications were also made to the kernel for this patch. These include changes such as EXPORTing of fat_get_block in the kernel code. Another function, mpage_cleardirty was also added to the memory management code. This function is used to clear the dirty pages from a specific inode. This allows for direct, file based DMA. None of these changes are believed to have any negative impact on the kernel and may provide additional benefit for other developers and drivers. The driver, as submitted, was placed into the drivers/staging/westbridge folder as the directory structure it will eventually reside in is not yet defined. The driver, as placed in staging is divided into four parts: 1) gadget - this implements a gadget peripheral controller and includes IOCTLs for MTP transfers 2) block -this implements a generic block device driver to enable access to embedded memory 3) api -this is the Cypress SDK, and includes USB and Storage specific functions. In addition, it includes common code for low level routines such as message passing and common data transfer routines 4) hal - this should likely be included in the arch directory as it needs to be modified for a given platform. The directory structure in the staging area is meant to reflect the eventual location of where this code likely should be. It is platform specific. In this case, the HAL included is for the Android Zoom 2 platform. Here, West Bridge is connected to the GPMC (general purpose memory controller) of the OMAP3. Specific timing needs to be enabled to ensure reliable communication. Many thanks to Greg KH for conducting initial reviews and providing pointers. Please contact david.cross@cypress.com for questions, concerns or feedback. Signed-off-by: David Cross <david.cross@cypress.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
61 lines
2.1 KiB
Makefile
61 lines
2.1 KiB
Makefile
# Makefile for staging directory
|
|
|
|
# fix for build system bug...
|
|
obj-$(CONFIG_STAGING) += staging.o
|
|
|
|
obj-$(CONFIG_ET131X) += et131x/
|
|
obj-$(CONFIG_SLICOSS) += slicoss/
|
|
obj-$(CONFIG_VIDEO_GO7007) += go7007/
|
|
obj-$(CONFIG_VIDEO_CX25821) += cx25821/
|
|
obj-$(CONFIG_VIDEO_TM6000) += tm6000/
|
|
obj-$(CONFIG_LIRC_STAGING) += lirc/
|
|
obj-$(CONFIG_USB_IP_COMMON) += usbip/
|
|
obj-$(CONFIG_W35UND) += winbond/
|
|
obj-$(CONFIG_PRISM2_USB) += wlan-ng/
|
|
obj-$(CONFIG_ECHO) += echo/
|
|
obj-$(CONFIG_OTUS) += otus/
|
|
obj-$(CONFIG_RT2860) += rt2860/
|
|
obj-$(CONFIG_RT2870) += rt2870/
|
|
obj-$(CONFIG_COMEDI) += comedi/
|
|
obj-$(CONFIG_ASUS_OLED) += asus_oled/
|
|
obj-$(CONFIG_PANEL) += panel/
|
|
obj-$(CONFIG_R8187SE) += rtl8187se/
|
|
obj-$(CONFIG_RTL8192U) += rtl8192u/
|
|
obj-$(CONFIG_RTL8192E) += rtl8192e/
|
|
obj-$(CONFIG_R8712U) += rtl8712/
|
|
obj-$(CONFIG_SPECTRA) += spectra/
|
|
obj-$(CONFIG_TRANZPORT) += frontier/
|
|
obj-$(CONFIG_DREAM) += dream/
|
|
obj-$(CONFIG_POHMELFS) += pohmelfs/
|
|
obj-$(CONFIG_IDE_PHISON) += phison/
|
|
obj-$(CONFIG_LINE6_USB) += line6/
|
|
obj-$(CONFIG_USB_SERIAL_QUATECH2) += serqt_usb2/
|
|
obj-$(CONFIG_USB_SERIAL_QUATECH_USB2) += quatech_usb2/
|
|
obj-$(CONFIG_OCTEON_ETHERNET) += octeon/
|
|
obj-$(CONFIG_VT6655) += vt6655/
|
|
obj-$(CONFIG_VT6656) += vt6656/
|
|
obj-$(CONFIG_FB_UDL) += udlfb/
|
|
obj-$(CONFIG_HYPERV) += hv/
|
|
obj-$(CONFIG_VME_BUS) += vme/
|
|
obj-$(CONFIG_MRST_RAR_HANDLER) += memrar/
|
|
obj-$(CONFIG_IIO) += iio/
|
|
obj-$(CONFIG_ZRAM) += zram/
|
|
obj-$(CONFIG_WLAGS49_H2) += wlags49_h2/
|
|
obj-$(CONFIG_WLAGS49_H25) += wlags49_h25/
|
|
obj-$(CONFIG_BATMAN_ADV) += batman-adv/
|
|
obj-$(CONFIG_SAMSUNG_LAPTOP) += samsung-laptop/
|
|
obj-$(CONFIG_FB_SM7XX) += sm7xx/
|
|
obj-$(CONFIG_VIDEO_DT3155) += dt3155v4l/
|
|
obj-$(CONFIG_CRYSTALHD) += crystalhd/
|
|
obj-$(CONFIG_CXT1E1) += cxt1e1/
|
|
obj-$(CONFIG_TI_ST) += ti-st/
|
|
obj-$(CONFIG_ADIS16255) += adis16255/
|
|
obj-$(CONFIG_FB_XGI) += xgifb/
|
|
obj-$(CONFIG_TOUCHSCREEN_MRSTOUCH) += mrst-touchscreen/
|
|
obj-$(CONFIG_MSM_STAGING) += msm/
|
|
obj-$(CONFIG_EASYCAP) += easycap/
|
|
obj-$(CONFIG_SOLO6X10) += solo6x10/
|
|
obj-$(CONFIG_TIDSPBRIDGE) += tidspbridge/
|
|
obj-$(CONFIG_ACPI_QUICKSTART) += quickstart/
|
|
obj-$(CONFIG_WESTBRIDGE_ASTORIA) += westbridge/astoria/
|