aboutsummaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2011-12-26ARM: SAMSUNG: Add pm_caps into platform dataSangwook Lee
Add pm_caps into platform_data. This is power management, usually for SDIO device such as SDIO WLAN. Signed-off-by: Sangwook Lee <sangwook.lee@samsung.com>
2011-12-26ARM: EXYNOS4: Enable Bluetooth on ORIGENSangwook Lee
This patch enables Bluetooth support on ORIGEN board. Signed-off-by: Sangwook <sangwook.lee@linaro.org>
2011-12-26CONFIG: ORIGEN: Enable touchscreen driverSachin Kamat
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
2011-12-26ARM: EXYNOS4: Add touchscreen I2C device information on Origen boardSachin Kamat
Added I2C device information for the touch screen device. Signed-off-by: Fahad Kunnathadi <fahad.k@samsung.com> Signed-off-by: Sachin Kamat <sachin.kamat@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-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-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: 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-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-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: 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: 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-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>
2011-12-26ARM: SAMSUNG: remove struct 's3c24xx_uart_clksrc' and all uses of itThomas Abraham
With clkdev based clock lookup added to samsung serial driver, the use of 'struct s3c24xx_uart_clksrc' to supply clock names in platform data is removed from all the Samsung platform code. Cc: Ben Dooks <ben-linux@fluff.org> Cc: Ramax Lo <ramaxlo@gmail.com> Cc: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26serial: samsung: switch to clkdev based clock lookupThomas Abraham
Instead of using clock names supplied in platform data, use a generic clock name 'clk_uart_baud' to look up clocks. The platform code should register clocks with the name 'clk_uart_baud' which can be used by the baud rate generator. The clock lookup and selection of the best clock as baud rate clock is reworked. Platform code can specify the clocks that can be used as source for the baud clock (as supported previously by passing names of clocks). A new member is added to the platform data 'clk_sel' which holds a bit-field value with each bit representing a baud source clock. If a bit at any bit position is set, that clock is looked up to participate in the selection of the baud clock source. 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: S3C2440: move handling of fclk/n clock to platform codeThomas Abraham
s3c2440 uses fclk/n (fclk divided by n) clock as one of the possible clocks used to generate the baud rate clock. The divider 'n' in this case can be logically represented outside of the uart controller. This patch creates a new clock by name "fclk_n" for s3c2440 based platforms to represent the fclk/n clock in the platform code. This clock provides a get_rate callback that checks the UCON0/1/2 registers to determine the clock rate. The samsung uart driver would receive the "fclk_n" clock name as one of the possible baud rate clock options and the driver need not determine clock rate of fclk/n. Cc: Ben Dooks <ben-linux@fluff.org> Cc: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: EXYNOS: Enable conversion of GIC dt irq specifier to linux virqThomas Abraham
Enable conversion of device tree interrupt specifier to linux virq domain for GIC controller. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: EXYNOS: Add ioremap interceptor for statically remapped regionsThomas Abraham
ioremap() request for statically remapped regions are intercepted and the statically assigned virtual address is returned. For requests for which there are no statically remapped regions, the requests are let through. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26ARM: SAMSUNG: Move timer irq numbers to end of linux irq spaceThomas Abraham
The timer irqs statically mapped from linux irq numbers 11 to 15 are moved to the end of the statically mapped linux irq space. The GIC PPI and SPI interrupts are relocated to start from 16 and 32 of the linux irq space. This is a required to add device tree support for GIC and Interrupt combiner for EXYNOS4. A new macro 'IRQ_TIMER_BASE' specifies a platform specific base of the linux virq number for the timer interrupts. For exynos4, this base is set to end of the linux virq space. For the other S5P platforms, the existing base '11' is retained. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2011-12-26CONFIG: ORIGEN: Enable CPU IdleTushar Behera
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
2011-12-26ARM: exynos4: remove useless code to save/restore L2 and GIC stateInderpal Singh
Following the merge of CPU PM notifiers and L2 resume code, this patch removes useless code to save and restore L2 and GIC registers. This is now automatically covered by suspend calls which integrated CPU PM notifiers and new sleep code that allows to resume L2 before MMU is turned on. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
2011-12-26ARM: exynos4: add L2 early resume codeInderpal Singh
This patch adds code to save L2 register configuration at boot, and to resume L2 before MMU is enabled in suspend and cpuidle resume paths. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
2011-12-26ARM: exynos4: remove useless churn in sleep.SInderpal Singh
This patch cleans up sleep code in preparation for L2 resume code and hotplug functions Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2011-12-26ARM: exynos4: Add support for AFTR mode cpuidle stateInderpal Singh
This patch adds support for AFTR(ARM OFF TOP RUNNING) mode in cpuidle driver for EXYNOS4210. L2 cache keeps their data in this mode. This patch ports the code to the latest interfaces to save/restore CPU state inclusive of CPU PM notifiers, l2 resume and cpu_suspend/resume. Signed-off-by: Jaecheol Lee <jc.lee@samsung.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org> Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
2011-12-26ARM: SAMSUNG: Fix i2c0 device id to match with devnameInderpal Singh
With clkdev, the devname for i2c0 has been fixed to s3c2440-i2c.0 This patch changes the device id to match with devname. Without this patch clk get fails for i2c0 if CONFIG_S3C_DEV_I2C1 is not defined. Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
2011-12-26CONFIG: ORIGEN: Add initial config file for ORIGEN boardTushar Behera
The config file is based on exynos4_defconfig. Following config options were added to enable various options. * Origen board uses UART 2 as the default serial port. * Enable MMC/SDHCI * Enable frame buffer on Origen * Enable PWM * Enable I2C bus controller * Enable regulator support * Enable CONFIG_PRINTK_TIME * Enable gpio-button driver on Origen * Set SD/MMC card as un-removable * Enabled USB EHCI host * Enable USB-host mass storage support * Enable USB ethernet support * Enable Pegasus USB-ethernet dongle support * Enable MOSCHIP usb net dongle * Enable EXT3 and EXT4 file system Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Sangwook Lee <sangwook.lee@linaro.org>
2011-12-26workaround cma highmem brokenAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2011-12-26OMAP: TILER: Expose 1D mapping/unmapping operationsLajos Molnar
Expose kernel methods to map a set of physical pages into TILER 1D (reserve area + pin memory), and free those areas. Signed-off-by: Lajos Molnar <molnar@ti.com>
2011-12-26TILER: Add tiler_virt2phys functionSuman Anna
Move the virt2phys functionality into a common function, and export it so that it can be used by different drivers. Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: Mark Tyler <mark.tyler@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
2011-12-26TILER: Notifier callback mechanism for eventsAngela Stegmaier
This patch adds a tiler notifier callback mechanism for events. This covers file close events. Signed-off-by: Angela Stegmaier <angelabaker@ti.com> Signed-off-by: David Sin <davidsin@ti.com>
2011-12-26TILER: Cleaned up tiler-iface.c and tiler.h, _tiler.hLajos Molnar
Updated comments. Simplified common expression when copying ioctl data. Simplified block_info filling. Removed unused variables, initializers, macros. Fixed issue with registering buffer with no blocks. Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: David Sin <davidsin@ti.com> TILER: Minor comment & code cleanup Updated header comments. Removed extranous headers. Made ssptr_id flag read-only, as it should not be changed once tiler is being used. __analize_area now returns error values. 1D stride is explicitly set to 0 by describe. Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: David Sin <davidsin@ti.com>
2011-12-26TILER: Cleaned up tmm-pat.cLajos Molnar
Removed unnecessary initializations. Simplified page allocation logic by directly allocating pages instead of going through free_page list. Made page and memory allocation global, so that page cache can be shared between PATs. Now deinitialization logic works with multiple PATs. Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: David Sin <davidsin@ti.com> TILER: Simplified dmm.c Removed unnecessary type casting. Updated logic to common bitfield setting macro. Removed unnecessary step-by-step register modifications. Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: David Sin <davidsin@ti.com> TILER: Cleaned up tcm API definitions. Fixed comments. Removed unused methods. Removed AREA_FMT macro that caused a checkpatch failure. Added further error checking to tcm methods. Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: David Sin <davidsin@ti.com>