aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-12-26Input: unidisplay_ts: Add Pixcir touchscreen driverFahad Kunnathadi
Pixcir touchscreen driver is used on Origen board. Signed-off-by: Kyuho Choi <kh.choi@insignal.co.kr> [Code cleanup] Signed-off-by: Fahad Kunnathadi <fahad.k@samsung.com> [fixed IRQ unbalance issue after suspend/resume] Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> [pankaj.dubey: Fixed kernel panic] Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> [Use macro for jiffies conversion] Signed-off-by: Angus Ainslie <angus.ainslie@linaro.org>
2011-12-26ARM: EXYNOS4: Remove redundant code for setting clock rate of xusbxtiPankaj
Since now xusbxti clock's default rate is set in clock.c file, there is no need to set it again in the machine file. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26ARM: S5P: Set default rate of xusbxti clockPankaj
It has been observed that xusbxti clock's default value is not set because of which there is a divide by zero error in kernel when ASV driver is trying to set clock rate. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26CONFIG: ORIGEN: Enable USB gadget support for origenPankaj
Enabled USB gadget support in origen_defconfig. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26ARM: EXYNOS4: Add support of UDC for origen boardPankaj
Added USB device controller support on origen machine file. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
2011-12-26ARM: EXYNOS: Add support for USB Gadget DeviceBhuvana Kakunoori
Signed-off-by: Bhuvana Kakunoori <bhuvana.kakunoori@linaro.org> Signed-off-by: Pankaj Dubey <pankaj.dubey@samung.com> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26ARM: EXYNOS: Update USB PHY controller for gadget deviceTushar Behera
Also updated the init and exit calls to remove redundant function calls. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26ARM: S5P: Add platform device definition for USB Gadget DeviceBhuvana Kakunoori
This patch adds USB Gadget Device definition for Samsung S5P series platform. Signed-off-by: Bhuvana Kakunoori <bhuvana.kakunoori@linaro.org> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26usb: gadget: u_ether: Fix added for USB ethernet gadgetPankaj
Since Samsung UDC controller in DMA mode needs double word aligned buffer. We need to update u_ether.c accordingly. This patch is based on the patch applied on C110 nexus S kernel. - S5PC11X: USB: Add USB u_ether patch for USB tethering Add USB u_ether aligned bufffer patch for using C11X DMA mode. This patch is needed for use USB tethering. Change-Id: Id47666eec388ec144fda5e0abf638d3336f0bbff Signed-off-by: sb223.kang <sb223.kang@samsung.com> Signed-off-by: Mike Lockwood <lockwood@google.com> - Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
2011-12-26usb: gadget: s3c_udc_otg: Update as per new architecturePankaj
UDC gadget driver code is updated as per new architecture. Also the printk statements are changed to pr_ statements. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26usb: gadget: s3c_udc_otg: Handle USB connection event in ISRPankaj
In UDC ISR usb handled USB connection event so that android platform can update notification accordingly. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26usb: gadget: s3c_udc_otg: Keep enabling USB device phy powered onPankaj
Since we do not have any mechanism other than USB device controller ISR itself to detect USB cable insertion, we need to keep powered on USB device PHY powered on, during bootup even if USB cable is not connected. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26usb: gadget: s3c_udc_otg: Change as per ep_matches API modificationTushar Behera
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26usb: gadget: s3c_udc_otg: Changed hooks for probe and unregister functionsTushar Behera
USB gadget probe and unregister functions are removed from individual drivers and moved to udc-core file. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26usb: gadget: s3c_udc_otg: Add driver for Samsung OTG BlockBhuvana Kakunoori
This patch adds driver support for the USB Device Controller on the S5P series SoCs. USB power management related code is commented out as USB voltage regulator support is not present. It can be uncommneted, once the support is added in kernel. Signed-off-by: Bhuvana Kakunoori <bhuvana.kakunoori@linaro.org> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26CONFIG: ORIGEN: Enable USB OHCI host supportPankaj
Enabled USB OHCI host support in origen_defconfig. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26ARM: EXYNOS4: Add USB-OHCI support for OrigenPankaj
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26ARM: S5P: Add USB OHCI platform device definitionBhuvana Kakunoori
This patch adds support for OHCI device definition on Samsung S5P series platforms Signed-off-by: Bhuvana Kakunoori <bhuvana.kakunoori@linaro.org> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26ARM: EXYNOS4: Add physical address macros for USB OHCITushar Behera
Signed-off-by: Bhuvana Kakunoori <bhuvana.kakunoori@linaro.org> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26usb: ohci-s5p: Removed checkpatch errors/warningsTushar Behera
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26usb: ohci-s5p: Fix OHCI suspend/resume issuePankaj
Since now phy controller initialization will not control usb host clock, individual driver has to take care for clock gating. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26usb: ohci-s5p: Fixed USB OHCI shutdown and suspend hang issuePankaj
It has been observed that during system reboot or suspend/resume system hangs. Further debugging showed that during shutdown/suspend call OHCI driver was not able to access any of OHCI registers failing which it was hanging. As after observing idle condition over the bus OHCI host core controller (HW) is turning off 12 and 48MHz clocks internally, and since during shutdown/suspend these clocks are OFF driver is not able to access any of OHCI registers. So as per guidlines given on data-sheet and Synopsys website, we need to manually enable to clocks for completion of ohci shutdown/suspend function. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26usb: ohci-s5p: Add support to handle host clockPankaj
1: Added support to handle USB host clock. 2: As part of code rework made probe and remove function from static to __devinit and __devexit. 3: As part of code rework modified initialization code sequence in ohci_hcd_s5pv210_drv_probe function and added proper error handling. 4: Modified and corrected ohci_s5pv210_start function. 5: Added reset and shutdown handling function. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
2011-12-26usb: ohci-s5p: Add support for S5P OHCI driverBhuvana Kakunoori
This patch adds support for OHCI driver for samsung S5P series. Signed-off-by: Bhuvana Kakunoori <bhuvana.kakunoori@linaro.org> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
2011-12-26video: s3c-fb: Use generic clock namesTushar Behera
The clock names to the framebuffer driver are now passed through clkdev lookup. Instead of using SoC-specific clocks, framebuffer driver will be using generic clock names and related clkdev mapping would be done in the SoC specific clock file. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26ARM: EXYNOS4: Register FB clocks through clkdevTushar Behera
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26ARM: EXYNOS4: Setup consistent dma size at boot timeTushar Behera
Some of the boards under mach-exynos4 initialize frame-buffers for which the memory requirement is more than 2MB, hence the default dma pool allocation size of 2MB is not sufficient. The consistent dma size is hence increased to successfully allocate memory for those boards. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26ARM: EXYNOS: Fix for suspend/resume hangInderpal Singh
While resuming from suspend, the system hangs due to some spurious uart interrupts. This patch temporarily masks uart interrupts during reset_port to solve this problem. Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
2011-12-26ARM: EXYNOS: Enable RTC as wake up sourceInderpal Singh
Enable RTC as wake up source. Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
2011-12-26ARM: dts: Add intial dts file for EXYNOS4210 SoC, SMDKV310 and ORIGENThomas Abraham
Add initial dts file for EXYNOS4210 SoC. This dts file describes the SoC specific devices and properties. Along with this, add dts file for Samsung's SMDKV310 board and Insignal's ORIGEN board which uses the EXYNOS4210 dts file and extends it to describe the board specific properties. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: EXYNOS: Add Exynos4 device tree enabled board fileThomas Abraham
Add a new EXYNOS4 compatible device tree enabled board file. Boards based on the EXYNOS4 family of SoC's can use this as the machine/board file. When using this machine fike, a corresponding device tree blob which describes the board's properties should be supplied at boot time to the kernel. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26rtc: rtc-s3c: Add device tree supportThomas Abraham
Add device tree based discovery support for Samsung's rtc controller. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26input: samsung-keypad: Add device tree supportThomas Abraham
Add device tree based discovery support for Samsung's keypad controller. Cc: Joonyoung Shim <jy0922.shim@samsung.com> Cc: Donghwa Lee <dh09.lee@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26input: samsung-keypad: Add HAVE_SAMSUNG_KEYPAD config optionThomas Abraham
For platforms using device tree, the static keypad device instances are not required and SAMSUNG_DEV_KEYPAD is not selected. Since, samsung keypad driver has dependency on SAMSUNG_DEV_KEYPAD config option, the driver is left out of the compilation for dt enabled platforms. An additional config option 'HAVE_SAMSUNG_KEYPAD' is added which the device tree based platforms can select. This config option is added as an alternative dependency for keypad driver. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: S5PV210: Modify platform data for pl330 driverThomas Abraham
With the 'struct dma_pl330_peri' removed, the platfrom data for dma driver can be simplified to a simple list of peripheral request ids. Cc: Jassi Brar <jassisinghbrar@gmail.com> Acked-by: Boojin Kim <boojin.kim@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: S5PC100: Modify platform data for pl330 driverThomas Abraham
With the 'struct dma_pl330_peri' removed, the platfrom data for dma driver can be simplified to a simple list of peripheral request ids. Cc: Jassi Brar <jassisinghbrar@gmail.com> Acked-by: Boojin Kim <boojin.kim@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: S5P64x0: Modify platform data for pl330 driverThomas Abraham
With the 'struct dma_pl330_peri' removed, the platfrom data for dma driver can be simplified to a simple list of peripheral request ids. Cc: Jassi Brar <jassisinghbrar@gmail.com> Cc: Boojin Kim <boojin.kim@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: EXYNOS: Add a alias for pdma clocksThomas Abraham
PDMA controllers when instantiated from device tree are registered using amba_device_register(). The registration process enables clock to the controllers to read the peripheral id of the PDMA amba device. In case of Exynos4, the clocks to the PDMA controllers are named as 'dma' but amba_device_register() looks up the clock using the name 'apb_pclk'. Hence, alias clocks with name 'apb_pclk' clock are created for clocks with name 'dma'. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: EXYNOS: Limit usage of pl330 device instance to non-dt buildThomas Abraham
The pl330 device instances and associated platform data is required only for non-device-tree builds. With device tree enabled, the data about the platform is obtained from the device tree. For images that include both dt and non-dt platforms, an addditional check is added to ensure that static amba device registrations is applicable to only non-dt platforms. Cc: Kukjin Kim <kgene.kim@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: SAMSUNG: Add device tree support for pl330 dma engine wrappersThomas Abraham
A new dma request id 'DMACH_DT_PROP' is introduced for client drivers requesting a dma channel. This request indicates that a device tree node property represting the dma channel is available in 'struct samsung_dma_info'. The dma channel request wrapper uses the node property value as the value for the filter parameter. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26DMA: PL330: Add device tree supportThomas Abraham
For PL330 dma controllers instantiated from device tree, the channel lookup is based on phandle of the dma controller and dma request id specified by the client node. During probe, the private data of each channel of the controller is set to point to the device node of the dma controller. The 'chan_id' of the each channel is used as the dma request id. Client driver requesting dma channels specify the phandle of the dma controller and the request id. The pl330 filter function converts the phandle to the device node pointer and matches that with channel's private data. If a match is found, the request id from the client node and the 'chan_id' of the channel is matched. A channel is found if both the values match. Acked-by: Jassi Brar <jassisinghbrar@gmail.com> Acked-by: Boojin Kim <boojin.kim@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Reviewed-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: EXYNOS: Modify platform data for pl330 driverThomas Abraham
With the 'struct dma_pl330_peri' removed, the platfrom data for dma driver can be simplified to a simple list of peripheral request ids. Cc: Jassi Brar <jassisinghbrar@gmail.com> Acked-by: Boojin Kim <boojin.kim@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26DMA: PL330: Infer transfer direction from transfer request instead of ↵Thomas Abraham
platform data The transfer direction for a channel can be inferred from the transfer request and the need for specifying transfer direction in platfrom data can be eliminated. So the structure definition 'struct dma_pl330_peri' is no longer required. The channel's private data is set to point to a channel id specified in the platform data (instead of an instance of type 'struct dma_pl330_peri'). The filter function is correspondingly modified to match the channel id. With the 'struct dma_pl330_peri' removed from platform data, the dma controller transfer capabilities cannot be inferred any more. Hence, the dma controller capabilities is specified using platform data. Acked-by: Jassi Brar <jassisinghbrar@gmail.com> Acked-by: Boojin Kim <boojin.kim@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26DMA: PL330: move filter function into driverThomas Abraham
The dma channel selection filter function is moved from plat-samsung into the pl330 driver. In additon to that, a check is added in the filter function to ensure that the channel on which the filter has been invoked is pl330 channel instance (and avoid any incorrect access of chan->private in a system with multiple types of DMA drivers). Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Jassi Brar <jassisinghbrar@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26serial: samsung: Fix build for non-Exynos4210 devicesMark Brown
exynos4120_serial_drv_data is only defined when building with support for Exynos4210 so use the already provided define to ensure that we don't reference it when building for other SoCs. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> [kgene.kim@samsung.com: Fixed build warning] Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26serial: samsung: add device tree supportThomas Abraham
Add device tree based discovery support for Samsung's uart controller. Cc: Ben Dooks <ben-linux@fluff.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26serial: samsung: merge probe() function from all SoC specific extensionsThomas Abraham
With reset port, set clock and get clock functions in SoC specific extentions being removed, only the driver probe is left over in these extensions. The probe function itself can be merged into one and moved into the samsung common serial driver. With driver probe also moved, all the SoC specific extentions are no longer required and they are deleted. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26serial: samsung: merge all SoC specific port reset functionsThomas Abraham
The port reset function in each of the platform specific extension performs the same operations and hence all the reset port functions can be merged into one and moved into the common samsung uart driver. The SoC specific port reset functions are removed from SoC extensions. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: SAMSUNG: register uart clocks to clock lookup listThomas Abraham
Samsung uart driver lookups the clock using the connection id 'clk_uart_baud'. The uart clocks for all Samsung platforms are reorganized to register them with the lookup name as required by the uart driver. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26serial: samsung: remove all uses of get_clksrc and set_clksrcThomas Abraham
With clkdev based clock lookup support, the clock set and get operation using clock names communicated between the samsung uart driver and the SoC specific extension can be removed. In addition to that, for each platform specific extension, add the default clock selection, number of clock options for uart baud generator, clock selection bit mask and shift values which is required by the clkdev support in samsung uart driver. The default clock selection value 'def_clk_sel' specifies the default clock to be used as the source clock for baud rate generator in case the platform code does not specify the same. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>