[PATCH 0/5] ARM: EXYNOS: Add secure firmware support

2012-09-13 Thread Tomasz Figa
Some Exynos-based boards are running with secure firmware running in TrustZone secure world, which changes the way some things have to be initialized. This series adds support for specifying firmware operations, implements some firmware operations for Exynos secure firmware and adds a method of

[PATCH 1/5] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM.

2012-09-13 Thread Tomasz Figa
On TrustZone-enabled boards the non-secure SYSRAM is used for secondary CPU bring-up, so add a mapping for it. Signed-off-by: Tomasz Figa t.f...@samsung.com --- arch/arm/mach-exynos/common.c| 34 arch/arm/mach-exynos/include/mach/map.h | 3 +++

[PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-13 Thread Tomasz Figa
Some boards are running with secure firmware running in TrustZone secure world, which changes the way some things have to be initialized. This patch adds an interface for platforms to specify available firmware operations and call them. A wrapper macro, call_firmware_op(), checks if the

[PATCH 3/5] ARM: EXYNOS: Add support for secure monitor calls

2012-09-13 Thread Tomasz Figa
Some boards use secure monitor calls to communicate with secure firmware. This patch adds exynos_smc function which uses smc assembly instruction to do secure monitor calls. This is a follow-up on the patch by Kyungmin Park: [PATCH v5 2/2] ARM: EXYNOS: SMC instruction (aka firmware) support

[PATCH 4/5] ARM: EXYNOS: Add support for Exynos secure firmware

2012-09-13 Thread Tomasz Figa
Some Exynos-based boards contain secure firmware and must use firmware operations to set up some hardware. This patch adds firmware operations for Exynos secure firmware and a way for board code and device tree to specify that they must be used. Example of use: In board code:

[PATCH 5/5] ARM: EXYNOS: Add secure firmware support to secondary CPU bring-up

2012-09-13 Thread Tomasz Figa
Boards using secure firmware must use different CPU boot registers and call secure firmware to boot the CPU. This is a follow-up on the patch by Kyungmin Park: [PATCH v5 2/2] ARM: EXYNOS: SMC instruction (aka firmware) support

Re: [PATCH 2/5] ARM: Add interface for registering and calling firmware-specific operations

2012-09-13 Thread Tomasz Figa
On Thursday 13 of September 2012 10:13:35 Tomasz Figa wrote: In code using firmware ops: __raw_writel(virt_to_phys(exynos4_secondary_startup), CPU1_BOOT_REG); /* Call Exynos specific smc call */ do_firmware_op(cpu_boot, cpu); Typo, s/do_/call_/ . Best

[RFC] [PATCH 0/2] ARM: EXYNOS4: Add new cpuidle state

2012-09-13 Thread Chander Kashyap
This patchset does following: Patch 1: Segregate and move common code to new function Patch 2: Adds C2 idle state It has been tested on Kukjin's for-next branch on Origen board. Chander Kashyap (2): ARM: Exynos4: CPUIDLE: Add generic function for exynos4 cpuidle ARM: EXYNOS4: CPUIDLE: Add

[RFC] [PATCH 1/2] ARM: Exynos4: CPUIDLE: Add generic function for exynos4 cpuidle

2012-09-13 Thread Chander Kashyap
Moved out the code from exynos4_enter_core0_aftr to a separate function exynos4_do_idle in order to make it usable for other idle states. Also update the wakeup mask without touching reserved bits. Signed-off-by: Inderpal Singh inderpal.si...@linaro.org Signed-off-by: Chander Kashyap

[RFC] [PATCH 2/2] ARM: EXYNOS4: CPUIDLE: Add C2 state

2012-09-13 Thread Chander Kashyap
To enter into c2 state: 1. ARM should be off 2. All local power domains should be off 3. All IPs belonging to TOP domain should not be in use In this state TOP domain remains in retention state. Signed-off-by: Inderpal Singh inderpal.si...@linaro.org Signed-off-by: Chander Kashyap

[PATCH] ARM: SAMSUNG: Add missing variable declaration in s3c64xx_spi1_set_platdata()

2012-09-13 Thread Sylwester Nawrocki
Fixes regression introduced in commit 4d0efdd5889b1c81a62aa07a ARM: SAMSUNG: Modify s3c64xx_spi{0|1|2}_set_platdata function Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/plat-samsung/devs.c | 2 ++ 1 file changed, 2

[PATCH] video: exynos_dp: Add device tree support to DP driver

2012-09-13 Thread Ajay Kumar
This patch enables device tree based discovery support for DP driver. The driver is modified to handle platform data in both the cases: with DT and non-DT. DP-PHY should be regarded as a seperate device node while being passed from device tree list, and device node for DP should contain DP-PHY as

[PATCH] spi: s3c64xx: Don't free controller_data on non-dt platforms

2012-09-13 Thread Sylwester Nawrocki
When s3c64xx-spi is instantiated from device tree an instance of struct s3c64xx_spi_csinfo is dynamically allocated in the driver. For non-dt platform it is passed from board code through spi_register_board_info(). On error path in s3c64xx_spi_setup() function there is an attempt to free this data

[PATCH] s5p-csis: Add transmission errors logging

2012-09-13 Thread Sylwester Nawrocki
Add hardware event/error counters which can be dumped into the kernel log through VIDIOC_LOG_STATUS ioctl. The counters are reset in each s_stream(1) call. Any errors are logged after streaming is turned off. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park

RE: [PATCH 0/2] ARM: EXYNOS: Set the capability of pdm0 and pdm1 as DMA_PRIVATE

2012-09-13 Thread Vinod Koul
On Fri, 2012-09-07 at 14:30 +0900, Kukjin Kim wrote: Vinod Koul wrote: On Wed, 2012-08-29 at 10:16 +0530, Tushar Behera wrote: DMA clients pdma0 and pdma1 are internal to the SoC and are used only by dedicated peripherals. Since they cannot be used for generic purpose, their

Re: [PATCH 0/2] DMA: PL330: Clock and runtime cleanup

2012-09-13 Thread Vinod Koul
On Fri, 2012-09-07 at 12:14 +0530, Inderpal Singh wrote: The controller clock is being managed at AMBA bus level probe/remove and pm_runtime/suspend functions. The existing driver does the clock enable/disable again in the same code paths, which unneccessarily increments the usage count of

RE: [PATCH 0/3] ARM: EXYNOS: Add generic PWM lookup support

2012-09-13 Thread kgene
On Wed, Sep 12, 2012 at 05:03:29PM +0530, Sachin Kamat wrote: This series adds support for generic PWM framework which requires that the board setup code register a static mapping that can be used to match PWM consumers to providers. This series is based on for-next branch of Kukjin's

RE: [PATCH] arch/arm/mach-s3c24xx/mach-h1940.c: delete double assignment

2012-09-13 Thread kgene
Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression i; @@ *i = ...; i = ...; //

Re: [PATCH V2] ARM: EXYNOS5: Add bus clock and set parent clock for FIMD

2012-09-13 Thread Jingoo Han
On Wednesday, September 12, 2012 8:49 PM Leela Krishna Amudala wrote This patch adds the bus clock for FIMD and changes the device name for lcd clock also sets mout_mpll_user as parent clock to fimd Signed-off-by: Leela Krishna Amudala l.kris...@samsung.com ---

RE: [PATCH] spi: s3c64xx: Don't free controller_data on non-dt platforms

2012-09-13 Thread Kukjin Kim
Sylwester Nawrocki wrote: When s3c64xx-spi is instantiated from device tree an instance of struct s3c64xx_spi_csinfo is dynamically allocated in the driver. For non-dt platform it is passed from board code through spi_register_board_info(). On error path in s3c64xx_spi_setup() function

RE: [PATCH] ARM: SAMSUNG: Add missing variable declaration in s3c64xx_spi1_set_platdata()

2012-09-13 Thread Kukjin Kim
Sylwester Nawrocki wrote: Fixes regression introduced in commit 4d0efdd5889b1c81a62aa07a ARM: SAMSUNG: Modify s3c64xx_spi{0|1|2}_set_platdata function Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

Re: [PATCH] ARM: SAMSUNG: Use spin_lock_{irqsave,irqrestore} in clk_set_rate

2012-09-13 Thread Tushar Behera
Ping ! On 09/07/2012 11:38 AM, Tushar Behera wrote: The spinlock clocks_lock can be held during ISR, hence it is not safe to hold that lock with disabling interrupts. It fixes following potential deadlock. = [ INFO: possible irq

Re: [PATCH] ARM: EXYNOS4: Fix soft reboot hang after suspend/resume

2012-09-13 Thread Inderpal Singh
Hi Kukjin, On 15 May 2012 10:01, Inderpal Singh inderpal.si...@linaro.org wrote: Hi Kukjin, On 14 May 2012 19:13, Kukjin Kim kgene@samsung.com wrote: On 05/14/12 17:42, Inderpal Singh wrote: Hi Kukjin, On 14 May 2012 13:45, Kukjin Kimkgene@samsung.com wrote: Inderpal Singh

Re: [PATCH V2] ARM: EXYNOS5: Add bus clock and set parent clock for FIMD

2012-09-13 Thread Leela Krishna Amudala
On Fri, Sep 14, 2012 at 9:57 AM, Jingoo Han jg1@samsung.com wrote: On Wednesday, September 12, 2012 8:49 PM Leela Krishna Amudala wrote This patch adds the bus clock for FIMD and changes the device name for lcd clock also sets mout_mpll_user as parent clock to fimd Signed-off-by: