video: sunxi: fix regression with RGB only monitor

fixes #92, purple colors when using DVI monitor.

Regression is noticed when monitor doesn't support YCbCr colorspace.
This patch is workaround.
To fix this properly, Colorspace must be set according EDID information

Reviewed-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:disp: fix separation issue between dev_disp.h and dev_fb.h

Signed-off-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:disp: track disp initialisation status

A quick fix that stops us from trying to deinit uninitialised stuff.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:disp: make Display_Fb_Release less noisy.

Reorder the fb enable checking to immediately return when the fb has
not been enabled. The warning message there is quite useless.

Also, the fb_id checking is pointless, fb_id is always above 0 as it
is a __u32

Signed-off-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:disp: improve loop in Fb_Exit

Don't bother trying to unregister and release a framebuffer that is
NULL.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:disp: stop passing wrong number to Display_Fb_Release

Nobody used these handles anyway, and Fb_Release uses this argument
to index a table that is 2 large. Amazing that we did not get a segfault
out of this.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:disp: add disp_device_release

This stops a WARN_ON in the device code.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:disp: fix null ptr dereference in BSP_disp_sprite_exit

Signed-off-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:hdmi: add hdmi_device_release

This fixes a WARN_ON.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
video:sunxi:hdmi: make hdmi kthread stoppable

Signed-off-by: Luc Verhaegen <libv@skynet.be>
wireless:rtl8192cu: stfu

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Documentation:sunxi:disp: rename version.c to disp_version.c

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Documentation:sunxi:disp_version: fix whitespace

Bad copy-paster!

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Documentation:sunxi:disp_version: it's /dev/disp that the ioctl failed on.

Spotted by Turl.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Documentation:sunxi:disp_version: fix actual dimensions

If the display is fully initialised, the WIDTH/HEIGHT ioctls return
an actual value. Usually one does not fall over when actual good values
are returned.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Documentation:sunxi:disp_version: handle missing versioning

Signed-off-by: Luc Verhaegen <libv@skynet.be>
sunxi: print friendly chip-id info as early as possible

useful to help people identify their SoC when troubleshooting.
3.4 does the same, but from plat-sunxi

Signed-off-by: Alejandro Mery <amery@geeks.cl>
Revert "arm: sun4i: lower PLL6 clock to fix GPU stalls"

This reverts commit 52f50bbfe5b98e21a64247d17c5bd4e819b0d657.

kills SATA to fix mali, bad idea.

Signed-off-by: Alejandro Mery <amery@geeks.cl>
arm: sun4i: disable USE_PLL6M_REPLACE_PLL4

Given the issues with SATA and Mali that the different clocks caused,
this patch disables USE_PLL6M_REPLACE_PLL4 so PLL6 and PLL4 become
two independent clocks on A10 rev C devices.

This way, we keep SATA working with a PLL6 at 1.2Ghz and PLL4 remains
operational as 960Mhz for video decoding and Mali.

According to Tom, USE_PLL6M_REPLACE_PLL4 was created to work around
a problem with PLL4 on rev C hardware that would cause video
decoding to fail, but I have not experienced any such issues
during my testing on said hardware revision.

Signed-off-by: Emilio López <turl@linux-sunxi.org>
video/sunxi: correct licence statements

Commit 554ca19c83a91fd99f062b8e93c709274f0a818f follow-up.

Cc: Luc Verhaegen <libv@skynet.be>
Signed-off-by: Adrien T?tar <adri-from-59@hotmail.fr>