Re: [PATCH] omap3isp: Don't include plat/cpu.h

2013-01-06 Thread Mauro Carvalho Chehab
Em Thu, 3 Jan 2013 14:55:41 -0800 Tony Lindgren t...@atomide.com escreveu: * Laurent Pinchart laurent.pinch...@ideasonboard.com [130103 13:24]: The plat/*.h headers are not available to drivers in multiplatform kernels. As the header isn't needed, just remove it. Please consider merging

RE: Querry on UART wakeup on Linux 3.8-rc1

2013-01-06 Thread Madhusudhan.Gowda
Hi, Could someone point me if it has been working in any of the releases ? Thanks, Gowda -Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-ow...@vger.kernel.org] Sent: 01. tammikuuta 2013 22:08 To: linux-omap@vger.kernel.org Subject: Querry on UART wakeup on

Re: [PATCH] OMAP: add pwm driver using dmtimers.

2013-01-06 Thread NeilBrown
On Thu, 13 Dec 2012 11:07:25 -0600 Jon Hunter jon-hun...@ti.com wrote: On 12/12/2012 09:06 PM, NeilBrown wrote: + +#if CONFIG_PM +static int omap_pwm_suspend(struct platform_device *pdev, pm_message_t state) +{ + struct omap_chip *omap = platform_get_drvdata(pdev); + /* No

Common clock framework: mutex recursion when calling clk_prepare from prepare handler

2013-01-06 Thread Laurent Pinchart
Hello, I ran into a mutex recursion issue while trying to port the OMAP3 ISP driver (drivers/media/platform/omap3isp) over to the common clock framework. The OMAP3 ISP generates two programmable clocks named xclka and xclkb that are routed out of the SoC. My goal is to expose them as common

Re: [PATCH] omap3isp: Don't include plat/cpu.h

2013-01-06 Thread Laurent Pinchart
Hi Mauro, On Sunday 06 January 2013 11:10:39 Mauro Carvalho Chehab wrote: Em Thu, 3 Jan 2013 14:55:41 -0800 Tony Lindgren escreveu: * Laurent Pinchart laurent.pinch...@ideasonboard.com [130103 13:24]: The plat/*.h headers are not available to drivers in multiplatform kernels. As the

[PATCH v2 00/10] video: da8xx-fb: runtime timing configuration

2013-01-06 Thread Afzal Mohammed
Hi, This series makes da8xx-fb driver (device found on DaVinci and AM335x) capable of handling runtime timing configuration by adding fb_set_par. The last change adds actual fb_set_par support. Other preceeding changes makes the way clear for it as well as does certain cleanup's on the way.

[PATCH v2 01/10] video: da8xx-fb: fb_check_var enhancement

2013-01-06 Thread Afzal Mohammed
Check whether struct fb_var_screeninfo fields are sane, if not update it to be within allowed limits. If user sends down buggy var values, this will bring those within allowable limits. And fb_set_par is not supposed to change var values, fb_check_var has to ensure that values are proper.

[PATCH v2 03/10] video: da8xx-fb: use modedb helper to update var

2013-01-06 Thread Afzal Mohammed
modedb structure is now used to store panel information, run modedb helper over it for initial update of var information instead of equating each fields. While at it, remove redundant update of bits_per_pixel. Note: pixclock is overridden with proper value using an existing code as currently

[PATCH v2 05/10] video: da8xx-fb: store current display information

2013-01-06 Thread Afzal Mohammed
store current videomode and controller data so that reconfiguring can be done easily. Reconfiguring would be required in fb_set_par, which is going to be added soon. If these details are not stored, the work probe does to retrieve these information would have to repeated at the place of

[PATCH v2 10/10] video: da8xx-fb: fb_set_par support

2013-01-06 Thread Afzal Mohammed
fb_set_par helps in runtime configuration of lcd controller like changing resolution, pixel clock etc. (eg. using fbset utility) Reconfigure lcd controller based on information passed by framework. Enable raster back if it was already enabled. As fb_set_par would get invoked indirectly from

[PATCH v2 08/10] video: da8xx-fb: store struct device *

2013-01-06 Thread Afzal Mohammed
store struct device pointer so that dev_dbg/err can be used outside of probe. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 19ee560..663b3c5 100644 ---

[PATCH v2 02/10] video: da8xx-fb: simplify lcd_reset

2013-01-06 Thread Afzal Mohammed
lcd_reset function doesn't require any arguement, remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 89446aa..c8e97de 100644 ---

[PATCH v2 04/10] video: da8xx-fb: remove unneeded var initialization

2013-01-06 Thread Afzal Mohammed
modedb helper now updates var information based on the detected panel, remove the unnecessary initialization. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/video/da8xx-fb.c

[PATCH v2 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ

2013-01-06 Thread Afzal Mohammed
store lcd clk rate always, i.e. irrespective of whether CPUFREQ is enabled or not. This can be used to get clk rate directly instead of enquiring with clock framework with clk handle every time. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c |4 +--- 1 file changed,

[PATCH v2 07/10] video: da8xx-fb: pix clk and clk div handling cleanup

2013-01-06 Thread Afzal Mohammed
Use the new modedb field to store pix clk. Reorganize existing clock divider functions with names now corresponding to what they do, add common function prefix. Fix existing panel modedb pixclock to be in ps instead of Hz. This needed a change in the way clock divider is calculated. As modedb

[PATCH v2 09/10] video: da8xx-fb: report correct pixclock

2013-01-06 Thread Afzal Mohammed
Update var pixclock with the value that is configurable in hardware. This lets user know the actual pixclock. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/video/da8xx-fb.c

[PATCH 00/10] video: da8xx-fb: DT support

2013-01-06 Thread Afzal Mohammed
Hi, This series adds DT support to da8xx-fb driver (device found on DaVinci and AM335x SoC's). It does certain cleanup's in the process. This makes use of Steffen Trumtrar's v16 of display timing DT support. Testing has been done on AM335x SoC based boards like AM335x EVM and AM335x EVM-SK. It

[PATCH 02/10] video: da8xx-fb: enable sync lost intr for v2 ip

2013-01-06 Thread Afzal Mohammed
interrupt handler is checking for sync lost interrupt, but it was not enabled, enable it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index

[PATCH 04/10] video: da8xx-fb: ensure non-null cfg in pdata

2013-01-06 Thread Afzal Mohammed
Ensure that platform data contains pointer for lcd_ctrl_config. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index e119ec8..32ce385 100644 ---

[PATCH 10/10] video: da8xx-fb: setup struct lcd_ctrl_config for dt

2013-01-06 Thread Afzal Mohammed
strcut lcd_ctrl_config information required for driver is currently obtained via platform data. To handle DT probing, create lcd_ctrl_config and populate it with default values, these values are sufficient for the panels so far used with this controller to work. Signed-off-by: Afzal Mohammed

[PATCH 08/10] video: da8xx-fb: obtain fb_videomode info from dt

2013-01-06 Thread Afzal Mohammed
Obtain fb_videomode details for the connected lcd panel using the display timing details present in DT. Signed-off-by: Afzal Mohammed af...@ti.com --- .../devicetree/bindings/video/fb-da8xx.txt | 20 drivers/video/da8xx-fb.c | 16

[PATCH 09/10] video: da8xx-fb: ensure pdata only for non-dt

2013-01-06 Thread Afzal Mohammed
This driver is DT probe-able, hence ensure presence of platform data only for non-DT boot. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index

[PATCH 01/10] video: da8xx-fb: fix 24bpp raster configuration

2013-01-06 Thread Afzal Mohammed
From: Manjunathappa, Prakash prakash...@ti.com Set only LCD_V2_TFT_24BPP_MODE bit for 24bpp and LCD_V2_TFT_24BPP_UNPACK bit along with LCD_V2_TFT_24BPP_MODE for 32bpp configuration. Patch is tested on am335x-evm for 24bpp and da850-evm for 16bpp configurations. Signed-off-by: Manjunathappa,

[PATCH 03/10] video: da8xx-fb: use devres

2013-01-06 Thread Afzal Mohammed
Replace existing resource handling in the driver with managed device resource. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/drivers/video/da8xx-fb.c

[PATCH 06/10] video: da8xx-fb: minimal dt support

2013-01-06 Thread Afzal Mohammed
Driver is provided a means to have the probe triggered by DT. Signed-off-by: Afzal Mohammed af...@ti.com --- .../devicetree/bindings/video/fb-da8xx.txt | 16 drivers/video/da8xx-fb.c |7 +++ 2 files changed, 23 insertions(+) create

[PATCH 05/10] video: da8xx-fb: reorganize panel detection

2013-01-06 Thread Afzal Mohammed
Move panel detection to a separate function, this helps in readability as well as makes DT support cleaner. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git

[PATCH 07/10] video: da8xx-fb: invoke platform callback safely

2013-01-06 Thread Afzal Mohammed
Ensure that platform data is present before checking whether platform callback is present (the one used to control backlight). So far this was not an issue as driver was purely non-DT triggered, but now DT support has been added. Signed-off-by: Afzal Mohammed af...@ti.com ---

[PATCH 0/5] ARM: dts: AM33XX: lcdc support

2013-01-06 Thread Afzal Mohammed
Hi, This series add DT sources for AM335x SoC as well as AM335x based boards. As pinmux is an SoC specific detail rather than IP specific one, addition of pin control has been done in a separate patch from the one in which display timings are added. Also it may aid in debugging in case of any

[PATCH 4/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc panel timings

2013-01-06 Thread Afzal Mohammed
Update lcdc node with panel timings (typical) for AM335X-EVMSK. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am335x-evmsk.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts

[PATCH 1/5] ARM: dts: AM33XX: Add lcdc node

2013-01-06 Thread Afzal Mohammed
Add lcdc node. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index c2f14e8..432d4bb8 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++

[PATCH 2/5] ARM: dts: AM33XX: Add am335x-evm lcdc panel timings

2013-01-06 Thread Afzal Mohammed
Update lcdc node with panel timings (typical) for AM335X-EVM. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index

[PATCH 3/5] ARM: dts: AM33XX: Add am335x-evm lcdc pincontrol info

2013-01-06 Thread Afzal Mohammed
Update pin mux information for lcd panel on AM335X-EVM Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am335x-evm.dts

[PATCH 5/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc pincontrol info

2013-01-06 Thread Afzal Mohammed
Update pin mux information for lcd panel on AM335X-EVMSK. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am335x-evmsk.dts | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts