04 Dec, 2011
12 commits
-
This patch fixes the checkpatch errors listed below:
ERROR: do not initialise statics to 0 or NULL
WARNING: Use #include instead of
WARNING: braces {} are not necessary for single statement blocks
WARNING: braces {} are not necessary for any arm of this statement
WARNING: static char array declaration should probably be static const char
WARNING: line over 80 characters
WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txtSigned-off-by: Jingoo Han
Signed-off-by: Florian Tobias Schandinat -
The s3c-fb driver has separate runtime and system PM functions but the
implementations are identical so far as I can tell so unify them for
simplicity.Signed-off-by: Mark Brown
Acked-by: Jingoo Han
Signed-off-by: Florian Tobias Schandinat -
This patch converts the drivers in drivers/video/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.Cc: Ben Dooks
Cc: Manuel Lauss
Signed-off-by: Axel Lin
Acked-by: Wan ZongShun
Acked-by: Sascha Hauer
Acked-by: Lennert Buytenhek
Acked-by: Alexey Charkov
Acked-by: Damian Hobson-Garcia
Acked-by: Jingoo Han
Signed-off-by: Florian Tobias Schandinat -
In ancient times it was necessary to manually initialize the bus field of an
spi_driver to spi_bus_type. These days this is done in spi_driver_register(),
so we can drop the manual assignment.The patch was generated using the following coccinelle semantic patch:
//
@@
identifier _driver;
@@
struct spi_driver _driver = {
.driver = {
- .bus = &spi_bus_type,
},
};
//Signed-off-by: Lars-Peter Clausen
Acked-by: Tomi Valkeinen
Cc: linux-fbdev@vger.kernel.org
Cc: linux-omap@vger.kernel.org
Signed-off-by: Florian Tobias Schandinat -
Use framebuffer_alloc() instead of static fb_info and currentpar variables.
Also sanitize the error path and cleanup code (e.g. missing free_irq()).Signed-off-by: Geert Uytterhoeven
Signed-off-by: Florian Tobias Schandinat -
Else the Copper may start executing random instructions
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Florian Tobias Schandinat -
The static fb_info will go away soon.
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Florian Tobias Schandinat -
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Florian Tobias Schandinat -
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Florian Tobias Schandinat -
No functional changes
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Florian Tobias Schandinat -
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Florian Tobias Schandinat -
- indentation
- spacing around binary operatorsNo functional changes
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Florian Tobias Schandinat
22 Nov, 2011
22 commits
-
Fixed a brace coding style issue.
Signed-off-by: Zac Storer
Signed-off-by: Florian Tobias Schandinat -
Fixed a brace coding style issue.
Signed-off-by: Zac Storer
Signed-off-by: Florian Tobias Schandinat -
While the OLPC display appears to be able to handle either positive
or negative sync, the Display Controller only recognises positive sync.This brings viafb (for XO-1.5) in line with lxfb (for XO-1) and
fixes a recent regression where the XO-1.5 DCON could no longer be
frozen. Thanks to Florian Tobias Schandinat for helping identify
the fix.Test case: from a vt,
echo 1 > /sys/devices/platform/dcon/freeze
should cause the current screen contents to freeze, rather than garbage being
displayed.Signed-off-by: Daniel Drake
Signed-off-by: Florian Tobias Schandinat
Cc: stable@kernel.org -
Patch follows the disable and software reset sequence specified
in version2 to LCDC functional specification.
Without this flicker is observed on re-enabling the LCDC.Signed-off-by: Manjunathappa, Prakash
Signed-off-by: Florian Tobias Schandinat -
DSICTRL should be called after all mipi settings
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
SYSCONF should be set after PHYCTRL
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
sh_mipi_setup() should be called after setting of CPG
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
SH MIPI manual explains the calculation method of HBP/HFP.
it is based on HSbyteCLK settings.
SH73a0 chip can use HS6divCLK/HS4divCLK for it.
This patch has compatibility to SH7372 mipiSigned-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
Dot clock of SH MIPI are depends on each platform board.
This patch adds set_dot_clock() function for it.Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
VMLEN1/VMLEN2 needs blanking length which is calculated from
video image size.The calculation methods are explained on
[SH MIPI] - [Video Mode] - [Blanking Packet setting]
But HFPLEN (= VMLEN2) is un-understandable.For example, if SH-MIPI input was RGB888 (3byte),
output was RGB888 (3byte)
and 3lane connection, the date goes straight.But if SH-MIPI input was RGB888 (3byte),
output was RGB565 (2byte)
and 4lane connection, it needs delay in HFPLEN.
Then (input cycle - output cycle) * lane is necessary the delaySigned-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
SH MIPI DSI can use 0-4 lane
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
VMCTR2 parameter will be supported more in the future.
1 << xx style is easy to understand.Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
dsipck clock is controled by CLKDEV_ICK_ID() in clock-shxxx.
dsi0p_clk/dsi1p_clk naming is not needed.Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat -
LDHAJR register will be broken by hsync_pos without this patch
Signed-off-by: Kuninori Morimoto
Acked-by: Magnus Damm
Signed-off-by: Florian Tobias Schandinat
18 Nov, 2011
3 commits
-
Current code calculates scaling factors for video overlays even when the
overlays are not scaled. Change the code to skip calculations when not
scaling.This optimizes the code a bit, but also fixes a problem when configuring
an overlay for a disabled display: if the display is disabled we don't
necessarily know the pixel clock used when the display is enabled, and
in some cases (like HDMI) the pixel clock is set to zero until a proper
video mode is set later. A wrong pixel clock will mess up the
scaling calculations, causing an error like:omapdss DISPC error: failed to set up scaling, required fclk rate = 0
Hz, current fclk rate = 170666666 HzA proper fix would be to check later whether the clocks are enough for the
scaling, at the point when the overlay or display is actually enabled,
but this patch removes the problem for now.Signed-off-by: Tomi Valkeinen
-
Fix warnings similar to this by including module.h:
drivers/video/omap/dispc.c:276:1: warning: data definition has no type
or storage class
drivers/video/omap/dispc.c:276:1: warning: type defaults to 'int' in
declaration of 'EXPORT_SYMBOL'Signed-off-by: Tomi Valkeinen
-
hdmi_get_pixel_clock() returns the pixel clock in Hz, but the pck is
stored as kHz. This means the return value has to be multiplied by 1000,
not by 10000 as the code did.Signed-off-by: Tomi Valkeinen
16 Nov, 2011
3 commits
-
* 'iommu/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
iommu: omap: Fix compile failure -
* 'fixes' of git://git.linaro.org/people/triad/linux-pinctrl:
pinctrl: hide subsystem from the populace
pinctrl: fix "warning: 'struct pinctrl_dev' declared inside parameter list"