Fix FB screen info
Correct bootlogo format

Use rgb8888 format for bootlogo
Code from samsung d2 kernel

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I365db2ac599b6fb1e3d734b3e770470847a2ae45
defconfigs: Enable wl128x FM driver

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Iaceea77e99bd5f26461d4852947766641d36247b
wl12xx: Move firmware location to system

Also fix minimum needed firmware

Change-Id: I851fe8acc046350367c4872dd75f485e8a1792c6
wl12xx: Don't build BlueDroid as a module

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: If3f17520e13fc631ead690fc6efe9208324bf639
[Media:Radio] WiLink: Add support for FM TX RDS

This patch adds support for following FM TX RDS features,
     1. Radio Text
     2. PS Name
     3. PI Code
     4. PTY Code.

Along with above this patch fixes few other minor issues(like
fm tx get frequency, unnecessary error messages, corrects FM
command names used and etc).

Change-Id: Iff51ef3d495af00d135546a00bc717c375e41fad
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Add sysfs based support for new features

This patch adds support for below features via sysfs file system
	1) FM Band selection (US/Europe or Japan)
	2) FM RDS AF turn ON/OFF
	3) FM RSSI level set/get

Change-Id: I479cac8dae194bf6e6bc85d3cbbc75d18e931feb
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Add FM TX AF support via sysfs entries

This patch adds support for FM TX Alternate Frequency set via below
ysfs entry "/sys/class/video4linux/radio0/fmtx_rds_af"

User has to write required frequency to this sysfs entry so that
driver will enable the FM TX RDS AF feature and starts transmitting in
both primary frequency and alternate frequency at the same time.

Also this patch fixes below minor issues
1) In fmdrv_tx.c for AF sending correct AF command to FM chip
2) Using sysfs attribute names dipicting FM RX or FM TX functionality.
3) Macros replacing magic numbers.

Change-Id: Idc553eaf80f3db4bf3ced8e5774400a44403db2c
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Miscellaneous fixes for FM Receiver

This patch fixes below small issues with FM RX,
	1) Enables the support for FM Alternate Frequency
	2) Modifies Wrap_Seek such that seek will try for one time
           and if it didn't get a good station within, then returns
	   the default frequency according to band.
	3) Adding correct default value for V4L2_CID_AUDIO_MUTE CID.
	4) Macros replacing magic numbers
	5) Corrects the volume gain settings
	6) Corrects the mute mode values according to V4L2
	   specifications.
	7) Corrects FM command names used

Change-Id: I2e23c6b0b6d22a11895a465679d0b26cbf70d0b2
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Add support for Russian Band

This patch adds support for russian band (frequency range
65.8 MHz to 74 MHz).

This frequency range comes under OIRT FM broadcast band which is
currently used by Russia,Belarus,Moldova and Ukraine.

User app has to write "2" to "/sys/class/video4linux/radio0/fmrx_band"
to switch to Russian/OIRT band.

Change-Id: I1cc7f82296dd2967ab6cf952e2624062dc71f575
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Add suppport for De-emphasis filter set.

The FM transmitting station uses a pre-emphasis filter to
provide better S/N ratio, and the receiver uses a de-emphasis
filter corresponding to the transmitter to restore the original
audio. This varies percountry. Therefore the host has to know
the country it is in and set the BRF6350 for the correct de-emphasis.

Change-Id: Idd580bcabbe7bf69ffb96fc43ea8c65b190aa011
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Add support for Weather band

A weather radio service is a broadcast service that airs weather
reports.

This patch adds support for weather band(NOAA frequency range
162.4 MHz to 162.55 MHz).

This frequency range comes under NOAA FM broadcast band which is
currently used by United States, Canada and Bermuda.

User app has to write "3" to "/sys/class/video4linux/radio0/fmrx_band"
to switch to Weather band.

Change-Id: Id4d7b8656d31f4d50de575a0913a0ebca267f76a
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: code style cleanup

Change-Id: I5a044b97901cbc4e0322a13647f86592c8f60dcc
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Add support for complete scan

This patch adds support for complete scan feature.

To start/stop/read complete scan user has to write to
'/sys/class/video4linux/radio0/fmrx_comp_scan'

After complete scan read on /dev/radio will give the
scanned results

Change-Id: I38703e02f8f91a23f4388afdc349e2e9dc3a6b62
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
WiLink: Fix for overflow while getting irq status

->dlen is 8 bit long and so while memcpy there is a chance
that fmdev->irq_info.flag will overflow.

So this patch removes memcpy and instead copies the 16bit flag
register value from skb->data to fmdev->irq_info.flag directly.

Change-Id: I887c9ede3b67189e5cc534150ab95a5676a719ad
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
[Media:Radio] WiLink: Fix for wrong russian band complete scan

This patch fixes fraquencies after complete scan
according to FM Host API 10 for wilink8.

Change-Id: I55c5e76e0f2c8be755005a3e0db6aa5a2efc6d51
Signed-off-by: Igor Serbai <Igor.Serbai@ti.com>
ti-st: fix chip_asleep/awake & wake-ack everytime

chip_awake platform hook needs to be invoked from TI shared transport driver
when both the chip sends wake-indication intending to wake up and also when
host intends to wake up the chip.
Also, fix the function parameters sent across in these platform hooks,
although the parameters are for purely for future reference & currently not
made use of.

This patch also sends across wake acknowlegment even when there is a collision
of wake-indication, since this is pretty much ignored by the chip.
However, this is useful when UART for varying reasons drops the wake-ack &
chip retries the wake-indication.

Change-Id: I690247afb80eb1aca24f79feaaddce85d8473a05
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
ti-st: use msleep_interruptible instead of mdelay

Be nice to CPU and use msleep_interruptible instead of msleep which chops the
CPU up into a spin loop.
Used for all delays > 20ms.

Change-Id: I8f84ff34d9191e8fde9af28f81681470571c0b51
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers: misc: ti-st: Add missing carriage returns in print-functions calls

Due to missing carriage returns in print-functions calls
sometimes it's hard to read kernel log.
Fix this so now kernel log reading is more easy.

Change-Id: I0fa89456d299437666d13b23cdc167bf31c738a9
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
drivers:misc:ti-st: protect against bad packets

We encounter situations where we got bad packet type from the
UART (probably due to platform problem or UART driver issues)
which caused us out of boundary array access,
which eventually led to kernel panic.

Ported from:
	p-android-omap-3.0:89b502674ca [Amir Ayun <amira@ti.com>]

Change-Id: I6f0f13168c69e46260c5abb7d7c0b854c61cab7d
Signed-off-by: Amir Ayun <amira@ti.com>
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Leonid Iziumtsev <x0153368@ti.com>