kernel/kernel-mfld-blackbay.git
12 years ago[PORT FROM R2] GFX-Display:fix spurious HDMI plug/unplug messages to audio driver
Shreyas Neerebailoor [Fri, 9 Mar 2012 13:13:51 +0000 (18:43 +0530)]
[PORT FROM R2] GFX-Display:fix spurious HDMI plug/unplug messages to audio driver

BZ: 21584

currently, gfx driver will send HDMI PLUG/UNPLUG message at several
places, one is in hotplug workqueue, the other is in DPMS.

based on analyze, the messgae sended in DPMS is not needed , if
workqueue has make sure send once. so remove it.

Change-Id: Ibe08eca125745de64af992c438b3934c7ab086ec
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/38149
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_mid_pmic: update pmic driver
Shijie Zhang [Mon, 19 Mar 2012 13:18:38 +0000 (21:18 +0800)]
intel_mid_pmic: update pmic driver

BZ: 27883

This driver separates the interface for accessing PMIC device register
function into a independent PMIC driver, making it more clear in logic.

Change-Id: Ib19f6d14911f6f7e8dbcd79d1d8dcc44cadc223e
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/39500
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel-mid: remove WA for smb347 charger
Ramakrishna Pallala [Mon, 26 Mar 2012 08:27:53 +0000 (13:57 +0530)]
intel-mid: remove WA for smb347 charger

BZ: 29047

This patch removes the WA for adding device entry
in intel-mid.c as the latest IFWI support device entry
for smb347 charger.

Change-Id: Ic6ee390ae82c181dc51e1e6080a1a790bf1a4232
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/40758
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: Tardy, Pierre <pierre.tardy@intel.com>
Tested-by: Tardy, Pierre <pierre.tardy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "mfld-pmu: [REVERT ME] Ignoring UART0/1/2 on CVT platform to avoid BT Hang."
Philippe Skowronski [Mon, 19 Mar 2012 13:58:51 +0000 (14:58 +0100)]
Revert "mfld-pmu: [REVERT ME] Ignoring UART0/1/2 on CVT platform to avoid BT Hang."

BZ: 28022

Also remove 2 useless CVT defines (USB_DEVICE_ID, SPI1_DEVICE_ID).

This reverts commit 17c26d156ad40a2347c059b7ac74694df501b00e.

Change-Id: I5618142dc1d2a0813e2e93f22fd949e1bb05df23
Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Reviewed-on: http://android.intel.com:8080/39577
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoREVERT ME: Add D0i2 support in Security driver PCI configuration.
Philippe Skowronski [Mon, 19 Mar 2012 11:57:19 +0000 (12:57 +0100)]
REVERT ME: Add D0i2 support in Security driver PCI configuration.

BZ: 26771

Currently, sep don't have d2_supported flag set in pm capabilities
register, hence the D0i2 to D0i0 transition is prevented by
the pci framework.
PCI configuration for sep should be fixed in IA firmware through BZ24829.

I am re-submitting to make sure theat buildbot does not complain
before I ca approve this patch (M. Allyn 3/21/12)

Change-Id: Ib7349d734dec780afd51903208d62ec271794107
Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Reviewed-on: http://android.intel.com:8080/39571
Reviewed-by: Allyn, Mark A <mark.a.allyn@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAdd Security driver (sep_sec_driver) to CLV.
Philippe Skowronski [Mon, 19 Mar 2012 11:53:11 +0000 (12:53 +0100)]
Add Security driver (sep_sec_driver) to CLV.

BZ: 26771

Re submit to make sure that buildbot okays patch

Change-Id: I072d67944ca75ff65cfb614509a6c3c09604efe8
Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Reviewed-on: http://android.intel.com:8080/39570
Reviewed-by: Allyn, Mark A <mark.a.allyn@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agolm3554: removing compiler warnings from lm3554
Antti Laakso [Wed, 21 Mar 2012 15:43:46 +0000 (17:43 +0200)]
lm3554: removing compiler warnings from lm3554

BZ:26628

Removing compiler warnings from lm3554

Change-Id: I49be41994e400f71cc4de91fc35749dee8a20047
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39997
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: use GFP_KERNEL on CTP when ISP allocates memory
Tuukka Toivonen [Mon, 26 Mar 2012 08:18:48 +0000 (11:18 +0300)]
atomisp: use GFP_KERNEL on CTP when ISP allocates memory

BZ: 27472

On CTP platform, ISP easily runs out of memory. Use GFP flags on
allocation on CTP which allow kernel to wait for other drivers to free
up memory before failing.

Change-Id: I4f12ccfd85f7318db92b199daffe115c8789621e
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/40731
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: add partial support for getting sensor mode data
Tuukka Toivonen [Thu, 22 Mar 2012 10:06:00 +0000 (12:06 +0200)]
ov8830: add partial support for getting sensor mode data

BZ: 27475

Set sensor mode data to camera mipi info. This data can be then
read using the ATOMISP_IOC_G_SENSOR_MODE_DATA private ioctl.
Currently sensor pixel clock, frame length and width (including
blanking times) are returned which allows 3A to calculate exposure
time.

Change-Id: I2d10cab209b231ccfec98d2a66334e930d8e9f3c
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/40164
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: add exposure and gain control
Tuukka Toivonen [Fri, 16 Mar 2012 16:06:19 +0000 (18:06 +0200)]
ov8830: add exposure and gain control

BZ: 27475

Add exposure and gain control. Only the private ioctl
ATOMISP_IOC_S_EXPOSURE is supported for now.

Change-Id: I1021db882ee0b3bc3c7c88df9e99a0ec4af7d61c
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/40163
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "ov8830: adjust manual white balance gains"
Tuukka Toivonen [Tue, 20 Mar 2012 15:52:27 +0000 (17:52 +0200)]
Revert "ov8830: adjust manual white balance gains"

BZ: 27474

This reverts commit fedcb9ef420c8a975fd3932d6280423bbc4f1ee6.

With tuning data, ISP is performing automatic white balance (AWB)
and sensor AWB should be disabled.

Change-Id: Ia27e7711f7ba2b106cfff5ba913a673335e3151f
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/39801
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: fix num_flash_frames logic
Andy Shevchenko [Tue, 13 Mar 2012 07:51:11 +0000 (09:51 +0200)]
atomisp: fix num_flash_frames logic

BZ: 27997

Currently the num_flash_frames is used like a boolean. Let's make it usable on
a sequence of the frames.

A userspace could behave in the same way of following example:
        if (do_use_flash)
video_request_flash(dev, num_flash_frames);
...
do {
do_dqbuf(dev, &buf, ...); /* dequeue buffer */
if (!do_use_flash ||
buf.reserved == ATOMISP_FRAME_STATUS_FLASH_FAILED ||
buf.reserved == ATOMISP_FRAME_STATUS_FLASH_EXPOSED)
break;
do_qbuf(dev, &buf, ...); /* requeue buffer */
} while (1);

This patch also allows to ask for zero flash frames in case when we would like
to abort stalled operation.

Change-Id: I8e693263b7977723fac70769d93d4d90e3ddaaca
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/39568
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:remove mutual exclusion check between codec PCM ports
Ramesh Babu K V [Mon, 19 Mar 2012 06:22:43 +0000 (11:52 +0530)]
audio:remove mutual exclusion check between codec PCM ports

BZ: 24619

Currently the platform driver make sure that either PCM1
or PCM2 is opened at a time. This condition was added to
to make sure that both ports are opened with same
base frequency.

Allow both PCM1 and PCM2 to operate at same time.  However
application has to open both ports with the same base frequency.
If app opens the ports with different base frequency, then
there will be undesirable results.

Driver needs to implement alsa way of handling the frequency constraint
between different dais.

Change-Id: Ic2cc292a0048afac14fea64164f06300eae57653
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/39528
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:enable single channel speaker support
Ramesh Babu K V [Tue, 13 Mar 2012 06:29:36 +0000 (11:59 +0530)]
audio:enable single channel speaker support

BZ: 26689

Enable single channel speaker support for gilligan island
board. Application will play stereo data to sound card.
LPE firmware will downmix the stereo channels to single
channel and send it on left channel.

This patch sends message to LPE indicating that speaker has
only one channel.  LPE will use this message to construct the
speaker pipeline appropriately.

Change-Id: I9f603e96d33b7840d3163162274c3348b3240e2a
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/38785
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Neerebailoor, ShreyasX <shreyasx.neerebailoor@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:langwell_udc: dump endpoint info if dTD error happens
jzhuan5 [Thu, 15 Mar 2012 19:05:00 +0000 (15:05 -0400)]
usb:langwell_udc: dump endpoint info if dTD error happens

BZ: 27693

Dump endpoint info if dTD error happens to track dTD error issue.
The info will be useful to identify the cause of issue.

Change-Id: I32ec8142c22d3f69655d124948cd056f67b09fee
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/40102
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoSet DRM_UNLOCKED flag to TTM synccpu and waitidle ioctl.
Elaine Wang [Thu, 22 Mar 2012 05:42:16 +0000 (13:42 +0800)]
Set DRM_UNLOCKED flag to TTM synccpu and waitidle ioctl.

BZ: 26344

H.264 1080p encoding time is too long, it takes about 30ms to encode one frame.

The graphic sync vblank drm ioctl and video waitidle ioctl might take much time
than others and prevent other drm ioctls from running, which cause encoder performance
drop a lot while decoding a clip and displaying it. This patch set DRM_UNLOCKED flag
to TTM synccpu, waitidle and cmdbuf ioctl and also add reserve buffer object
protection for psb_pl_synccpu_ioctl. The psb_cmdbuf_ioctl function already has
a mutex_lock itself.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Change-Id: I58f7ecd69c7f828b90a49e23383584a59a351a89
Reviewed-on: http://android.intel.com:8080/40105
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Hu, Jason <jason.hu@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: removing compiler warnings from ov8830
Antti Laakso [Wed, 21 Mar 2012 15:42:09 +0000 (17:42 +0200)]
ov8830: removing compiler warnings from ov8830

BZ:26628

Removing compiler warnings from ov8830

Change-Id: I8ab83595857cb8635d9b0acfb2b708d0843a7432
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39996
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9m114: removing compiler warnings from mt9m114
Antti Laakso [Wed, 21 Mar 2012 15:40:28 +0000 (17:40 +0200)]
mt9m114: removing compiler warnings from mt9m114

BZ:26628

Removing compiler warnings from mt9m114

Change-Id: Ib4fdcabc7b49fa096a07781aa8995f3db970d0af
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39995
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9e013: removing compiler warnings from mt9e013
Antti Laakso [Wed, 21 Mar 2012 15:38:25 +0000 (17:38 +0200)]
mt9e013: removing compiler warnings from mt9e013

BZ:26628

Removing compiler warnings from mt9e013

Change-Id: I3983069fe7babaa28ab352cb2b59cc0c32aba888
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39994
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: removing compiler warnings from atomisp
Antti Laakso [Tue, 20 Mar 2012 14:07:22 +0000 (16:07 +0200)]
atomisp: removing compiler warnings from atomisp

BZ:26628

Removing compiler warnings from atomisp

Change-Id: Ic4a6af00668fd4e307cde2b858bc43ad392cf1b3
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39784
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Gupta, Lokesh <lokesh.gupta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: make warnings as errors in atomisp and ov8830
Antti Laakso [Tue, 20 Mar 2012 14:00:42 +0000 (16:00 +0200)]
atomisp: make warnings as errors in atomisp and ov8830

BZ:26628

Enabling -Werror compiler flag to show compiler warnings as errors for atomisp and ov8830 drivers

Change-Id: I4e042cadb8e674eeaaf6013c5b6eec1a32847435
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39783
Reviewed-by: Rose, James <james.rose@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agolm3554: add platform data containing LED flash GPIO numbers
Tuukka Toivonen [Mon, 12 Mar 2012 14:24:01 +0000 (16:24 +0200)]
lm3554: add platform data containing LED flash GPIO numbers

BZ: 21928

lm3554 LED flash driver torch control pin is connected to
different GPIO pin in Black Bay and Red Hook Bay. Create
platform data for the lm3554 containing the correct GPIO pin numbers
and get the GPIO numbers from the SFI table.

Change-Id: I94d041c9c512af32943890b6d9b9e72b8b8c9fc4
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/33751
Reviewed-by: Wood, Brian J <brian.j.wood@intel.com>
Tested-by: Wood, Brian J <brian.j.wood@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Vanhala, JariX <jarix.vanhala@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agormi4: Enable upstream rmi touch driver for Clovertrail
Leo Yan [Tue, 20 Mar 2012 01:19:06 +0000 (09:19 +0800)]
rmi4: Enable upstream rmi touch driver for Clovertrail

BZ: 28085

Enable upstream rmi touch driver for Clovertrail

Change-Id: I8c4c7476e929ef2a653c05c9236aff17771cee1f
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/39682
Reviewed-by: Cai, Stanley W <stanley.w.cai@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agortc alarm: disable alarm by disabling IRQ
Frederic Lardeau [Mon, 19 Mar 2012 13:26:57 +0000 (14:26 +0100)]
rtc alarm: disable alarm by disabling IRQ

BZ: 27941

The alarm.c disabled the alarm by setting a disabled alarm in the
past. This is a bad, wrong and inappropriate solution with
the new 3.0 kernel. So, we replace it by a more usual
`rtc_alarm_irq_enable' call. This callback was missing in the RTC mrst
driver so we add it too.

Change-Id: I51a01ae4310479b6d928c7d102ea8c5ede392979
Signed-off-by: Frederic Lardeau <fredericx.lardeau@intel.com>
Reviewed-on: http://android.intel.com:8080/39574
Reviewed-by: Romieu, Benoit <benoit.romieu@intel.com>
Tested-by: Romieu, Benoit <benoit.romieu@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoUSB: gadget: ADB: Add online checking in adb_write function
Liu, DongxingX [Fri, 16 Mar 2012 09:52:55 +0000 (17:52 +0800)]
USB: gadget: ADB: Add online checking in adb_write function

BZ: 26739

If adb write after unbinding, it will be waiting all the time.
So add online checking to exit the blocking. Or else adb write
will return busy at the second time.

Change-Id: I0fd1bae127fc652e92d89121722f92289ca9e70d
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Signed-off-by: Liu, DongxingX <dongxingx.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/39479
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: retry when SD/MMC reading/writing failed
Chuanxiao Dong [Tue, 20 Mar 2012 04:19:44 +0000 (12:19 +0800)]
mmc: retry when SD/MMC reading/writing failed

BZ: 28559

When SD/MMC encounter error during reading/writing, MMC block
layer will reset SD/MMC card and then have a retry with the failed
command. This can improve the stability of the platform.

Change-Id: I4d9b44db75559dfdbc7627742d8c40c8c2ac2865
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/40110
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] [Display]: fix race between gfx_late_resume and psb_dsp_ioctl.[WORKAROUND]
shi yang [Thu, 1 Mar 2012 08:10:23 +0000 (16:10 +0800)]
[PORT FROM R2] [Display]: fix race between gfx_late_resume and psb_dsp_ioctl.[WORKAROUND]

BZ: 24916

Race condition found between gfx_late_resume and psb_dsp_ioctl. psb_dsp_ioctl will
power down display island B directly whild gfx_late_resume will visit these registers.
This fatal error cause Fabric error.
Add power mutex to protect this code to be safe.

Full code change will be made in R3. and then will make logic more stable.

Change-Id: I64c785875e85de8cd835ee545f5d48ebb3ce8ec1
Orig-Change-Id: Ibab806f1149dc2b0fdc6337049c5ecfccbaed9a8
signed-off-by: He Bo <bo.he@intel.com>
Signed-off-by: shi yang <yang.a.shi@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/40288
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphic: Critical Klocwork issues for GRAPHICS domain
luliuhui [Wed, 21 Mar 2012 06:29:56 +0000 (14:29 +0800)]
Graphic: Critical Klocwork issues for GRAPHICS domain

BZ: 23906

Revise kw issue in round 51 scan in kernel.

Change-Id: I8094b0054d0a91ae37eef89d2c95561eac84c2c7
Signed-off-by: luliuhui <liuhui.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/39901
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphic: fix mutex starvation issue when changing live wallpaper many times.
Pan Zhenjie [Tue, 20 Mar 2012 04:57:16 +0000 (12:57 +0800)]
Graphic: fix mutex starvation issue when changing live wallpaper many times.

BZ: 26394

PVRSRV_BridgeDispatchKM and PVRDRMUnprivCmd have mutex protection in themselves.
So should use DRM_UNLOCKED.
Wallpaper and surfaceflinger will call drm_ioctl.
If do not use DRM_UNLOCKED, PVRSRV_BridgeDispatchKM will be protected by another mutex.
And it will cause mutex starvation issue.

Change-Id: I060f78db4bfeede32cabe581cd86634ac208091f
Signed-off-by: Pan Zhenjie <zhenjie.pan@intel.com>
Reviewed-on: http://android.intel.com:8080/39710
Reviewed-by: Shi, Yang A <yang.a.shi@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomisc/apds990x: Abandon ps/als state once
jli127 [Thu, 22 Mar 2012 06:19:17 +0000 (14:19 +0800)]
misc/apds990x: Abandon ps/als state once

BZ: 27931

PS sensor driver only reports sensor
data if new state is different from
old state. After disable/enable PS sensor
the old state becomes invalid. This patch
abandon ps old state and make driver
reporting data at every interrupt.

Change-Id: If4e402e01e1fe69354175f1180ec4e6e11a50d03
Signed-off-by: jli127 <jian.d.li@intel.com>
Reviewed-on: http://android.intel.com:8080/40106
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] mid_pmu: emergency pmu interrupt enable request
Illyas Mansoor [Thu, 15 Mar 2012 08:37:02 +0000 (14:07 +0530)]
[PORT FROM R2] mid_pmu: emergency pmu interrupt enable request

BZ: 24993

There is a deadlock condition arising because of D0ix completion
interrupt not being handled in OS, because it is currently in Watch
dog timer interrupt handler and the d0ix completion interrupt handler
is masked and cannot execute.

This causes the SCU PMU interrupt to be disabled until EOI interrupt
for d0ix completion is not reached.

Meanwhile OS has issued another PM command and times out because SCU
didn't handle it, and SCU is waiting for PM EOI interrupt to enable
PM interrupts.

We fix this by having a simple protocol between SCU and PMU driver
to write a special command into a specified location that is periodically
checked by SCU, if the command is set SCU will enalbe PM interrupts
thus resolving the deadlock.

Acknoweldgements:
Onkalo, Samu <samu.onkalo@intel.com>, for root causing this issue and proposing
a solution.

Change-Id: I5d39558be03affe8e3900ff7985bfb25a54f4f68
Orig-Change-Id: I28fa561fd9a87251b3a10fcba77739ccdf72829b
Reported-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Tested-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/39447
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] mid_pmu: remove sram save/restore from pmu
Illyas Mansoor [Fri, 17 Feb 2012 03:21:29 +0000 (08:51 +0530)]
[PORT FROM R2] mid_pmu: remove sram save/restore from pmu

BZ: 24157

Removing sram save/restore from PMU driver code, since
now it is taken care in SCU itself.

Change-Id: Ic98d68506bfaf39ed478de5d2511a4e1cbe30004
Orig-Change-Id: Ib144c060bf9a321e4329083cc85f9279357ea59c
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/39428
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_idle: Power traces should trace sleep state entry
John Mathew [Fri, 16 Mar 2012 13:31:23 +0000 (15:31 +0200)]
intel_idle: Power traces should trace sleep state entry

BZ: 27776

Currently the power traces use the value of dev->last_state
variable which is updated after the sleep state is exited.
Move the traces to before sleep entry, so that the total
time spent in a sleep state can be displayed correclty by
tools like pytimechart.

Change-Id: If518e63a6018fdb7aa552bcdfe5d8f61aa974164
Signed-off-by: John Mathew <john.mathew@intel.com>
Reviewed-on: http://android.intel.com:8080/39420
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoremove SPI1 runtime PM workaround
Bin Yang [Thu, 22 Mar 2012 07:49:41 +0000 (15:49 +0800)]
remove SPI1 runtime PM workaround

BZ: 25894

Runtime PM issues of SPI1 had been fixed already. Remove
this workaround.

Change-Id: Ib0dc7b47f39dddc98b9806e015df0514e31ea5a4
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/39367
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoKeep SPI power on during booting
Bin Yang [Thu, 22 Mar 2012 07:47:54 +0000 (15:47 +0800)]
Keep SPI power on during booting

BZ: 25894

if SPI UART is set as default console and earlyprintk is enabled,
it cannot shutdown SPI controller during booting.

Change-Id: If8d305cbc276ce26fe0f15ad5265e859b24388ad
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/40121
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomisc/apds990x: Add interrupt threshold to ALS sensor
jli127 [Fri, 16 Mar 2012 07:08:09 +0000 (15:08 +0800)]
misc/apds990x: Add interrupt threshold to ALS sensor

BZ: 27698

ALS sensor reports interrupt even no output
data change. This patch add interrupt threshold
to ALS sensor, so sensor only reports interrupt
when report data changes.

Change-Id: I3d3cbb11ff0a8b36e1ba2f759b4adcefae6dbb10
Signed-off-by: jli127 <jian.d.li@intel.com>
Reviewed-on: http://android.intel.com:8080/39361
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBinder: Fix crashes when sharing a binder file between processes
Fei Yang [Tue, 20 Mar 2012 20:42:29 +0000 (13:42 -0700)]
Binder: Fix crashes when sharing a binder file between processes

BZ:28299

Opening the binder driver and sharing the file returned with
other processes (e.g. by calling fork) can crash the kernel.
Prevent these crashes with the following changes:
- Add a mutex to protect against two processes mmapping the
  same binder_proc.
- After locking mmap_sem, check that the vma we want to access
  (still) points to the same mm_struct.
- Use proc->tsk instead of current to get the files struct since
  this is where we get the rlimit from.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I53c779fb14e3fb257e12b672229037969f99d19d
Reviewed-on: http://android.intel.com:8080/39850
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMMAP min address setting
sathyanarayanan kuppuswamy [Tue, 20 Mar 2012 20:36:05 +0000 (13:36 -0700)]
MMAP min address setting

BZ:27880

Some application that contains ARM executable like Skype will
require to map the address at 0x8000 which will be refused under
the config 65536.So changing it back to 4096.

Change-Id: Ie8c99e9b80b7d64b6f2b5204d77679b22b251eb9
Signed-off-by: sathyanarayanan kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-on: http://android.intel.com:8080/39835
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoboard-redridge.c: Enable compass
Laurent FERT [Wed, 21 Mar 2012 17:15:09 +0000 (18:15 +0100)]
board-redridge.c: Enable compass

BZ: 28474

Align board-redridge.c with board-blackbay.c to enable compass.

Change-Id: I9fe253ea7aface76e7990a1529a5b1c2d6bc9ef8
Signed-off-by: Laurent FERT <laurentx.fert@intel.com>
Reviewed-on: http://android.intel.com:8080/40007
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: Wood, Brian J <brian.j.wood@intel.com>
Reviewed-by: Chotard, Celine <celine.chotard@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: Enable CABC on TMD panel
Anand Bodas [Mon, 19 Mar 2012 05:22:19 +0000 (10:52 +0530)]
GFX-Display: Enable CABC on TMD panel

BZ: 13624

Enable CABC on TMD by setting appropriate panel registers.

Change-Id: I8a0ff0b72ee2363fbb2af2204ee819b4498b2b54
Signed-off-by: Anand Bodas <anand.v.bodas@intel.com>
Reviewed-on: http://android.intel.com:8080/39501
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Ouyang, Lily <lily.ouyang@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2]audio: sn95029: Fix headset detect issue in a calling
lizhuangzhi [Thu, 1 Mar 2012 06:43:34 +0000 (14:43 +0800)]
[PORT FROM R2]audio: sn95029: Fix headset detect issue in a calling

BZ: 16131

Case1: cancel_delayed_work in sn95031_jack_wq will casue some useful work
removed when insert headset,it will lose the last headset status update and
report to headsetObserver sometimes.

Case2: Clear the jack_wq->intr_id flag also will cause headset detect error,
when jack detect wq running,the last interrupt occur and schedule the work
queue, then jack_wq->intr_id was cleared by current wq,after 250ms passed,
the wq will first check the jack_wq->intr_id=0, then report headset remove
event to user space.

Fix Case1&Case2 issues.

Change-Id: Ibb719ff0074031cacd97cc4af527582c53f1063e
old-Change-Id: I7f90d877cf308f7accbb3f1c13bb975e56afb351
Signed-off-by: Zhuangzhi Li <zhuangzhi.li@intel.com>
Reviewed-on: http://android.intel.com:8080/39712
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoctp_config: enable USB charging when bus is in suspend state.
Wu, Hao [Mon, 12 Mar 2012 10:23:55 +0000 (18:23 +0800)]
ctp_config: enable USB charging when bus is in suspend state.

BZ: 27047

Same as mfld behavior, enable USB charging when bus is in suspend
state for better user experience.

Change-Id: I6e388834bc592bab81ea1d630f2530b720c583f7
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/38338
Reviewed-by: Li, Wenji <wenji.li@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb: add OTG descriptor for android gadget
Wu, Hao [Thu, 15 Mar 2012 13:09:09 +0000 (21:09 +0800)]
usb: add OTG descriptor for android gadget

BZ: 27547

Add USB OTG Descriptor for android gadget, as we need to
support USB OTG function (Both USB Host and Device mode).

Change-Id: I56c6543745777f7e851f77b78eea3e909844f42c
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/39255
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Wang, Feng A <feng.a.wang@intel.com>
Reviewed-by: Li, Wenji <wenji.li@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: init eMMC card in sync mode
Chuanxiao Dong [Fri, 16 Mar 2012 09:36:22 +0000 (17:36 +0800)]
mmc: init eMMC card in sync mode

BZ: 27738

Since adb device ID is depends on eMMC CID, let MMC driver init
eMMC card in sync mode can make sure eMMC CID be got by USB driver
correctly.
In the meanwhile, it is also can make sure before IPC send command
to SCU to access eMMC card, eMMC card is initliazed already.

Change-Id: Ieb3ab0335c1bfe36f4478ae674b889f4f3dfaa6d
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/39384
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[LOG] Add log level bypass support for logcat console
Christophe Guerard [Tue, 6 Mar 2012 15:20:11 +0000 (16:20 +0100)]
[LOG] Add log level bypass support for logcat console

BZ: 25924

To collect all the kernel logs and ignore the log level set in the
kernel command line for one specific console, a new console setting
is created named CON_IGNORELEVEL meaning that all the logs whatever its level
is displayed on this console. With this granularity, the consoles impacting
power consumption do not set CON_IGNORELEVEL and the one used to save kernel logs
into the file system (named logk) could set CON_IGNORELEVEL

Change-Id: If9b7a0918ddd189ffabdf87d7ad5b8a0f5281d86
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/37736
Reviewed-by: Rocher, JeremyX <jeremyx.rocher@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: Tardy, Pierre <pierre.tardy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomfld-pmu: remove USB from hang device list of RTPM
Wu, Hao [Fri, 16 Mar 2012 12:33:46 +0000 (20:33 +0800)]
mfld-pmu: remove USB from hang device list of RTPM

BZ: 24239

Remove USB from the hang device list of RTPM.

Change-Id: If25f1d1797d95adb2672aff27bba2ae4bc1850d7
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/39414
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Singh, Youvedeep <youvedeep.singh@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopci_quirks: add d1_support for clv usb otg
Wu, Hao [Tue, 28 Feb 2012 08:17:59 +0000 (16:17 +0800)]
pci_quirks: add d1_support for clv usb otg

BZ: 24239

currently USB OTG in clv doesn't have d1_supported flag set in pci
pm cap register. Same as mfld, mid_pmu driver uses PCI_D1 for pci
power states transition, and need this quirk until we got pm cap
fixed in fw.

Change-Id: I07a5d63a02386d92c06c926d4f65a9a0f62408c9
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/36829
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agotty: hold lock across tty buffer finding and buffer filling
Xiaobing Tu [Fri, 16 Mar 2012 15:20:06 +0000 (11:20 -0400)]
tty: hold lock across tty buffer finding and buffer filling

BZ:27313

tty_buffer_request_room is well protected, but while after it returns,
it releases the port->lock. tty->buf.tail might be modified
by either irq handler or other threads. The patch adds more protection
by holding the lock across tty buffer finding and buffer filling.
Signed-off-by: Xiaobing Tu <xiaobing.tu@intel.com>
Change-Id: Iffbfc2d7e6400807abe6d791e5f8a48e150be5e4
Reviewed-on: http://android.intel.com:8080/38961
Reviewed-by: Tu, Xiaobing <xiaobing.tu@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomid_pmu: add shutdown calback and remove BUG in set_power_state
Illyas Mansoor [Thu, 15 Mar 2012 19:21:29 +0000 (00:51 +0530)]
mid_pmu: add shutdown calback and remove BUG in set_power_state

BZ: 26505

Added .shutdown() callback to PMU driver, to know shutdown has
started.

Also removed BUG shutdown_started in pci_set_power_state()
because there are geniune cases where drivers will call pci_set_power_state
even after shutdown has started, example delayed suspend.

We wait for shutdown to complete, else d0ix completion interrupts will
stop and we may BUG in wait_for_completion.

Change-Id: Ie806b3c230069b8f7cb5e15f941fd467fdd75820
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/39298
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agogfx-pvr: enhanced IMG swap chain to support Post2 flippings.
Jackie Li [Thu, 15 Mar 2012 18:15:34 +0000 (02:15 +0800)]
gfx-pvr: enhanced IMG swap chain to support Post2 flippings.

BZ: 22616

This is 1/3 patch for sprite tearing issue after fully enabling
bypass composition.

Sprite plane flipping need sync up with 3D renderer, or the flickering
issue would happen if 3D renderer and sprite plane access the same buffer.

This patch removed original sprite plane flipped code, and reimplemented
a new way to flip sprite plane based on IMG swap chain. Since IMG swap
chain implementation would do sychronization check before flip a buffer
it can avoid the buffer contention happen

Change-Id: Ib998ce78dad4a49a89717336ec411e15e23ff5e3
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Reviewed-on: http://android.intel.com:8080/39294
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomfld redridge: platform support changes for smb347 charger
Ramakrishna Pallala [Thu, 15 Mar 2012 00:25:22 +0000 (05:55 +0530)]
mfld redridge: platform support changes for smb347 charger

BZ: 27533

This patch adds the platform support code for smb347 charger driver.

Change-Id: I6b4ad72a31d4b53ac92d940cc743587eec81a169
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/39214
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Reviewed-by: Patel, Chintan M <chintan.m.patel@intel.com>
Tested-by: Gugwad, SantoshX <santoshx.gugwad@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosmb347 charger: Added support for SMB347 charger driver support
Ramakrishna Pallala [Thu, 15 Mar 2012 00:19:32 +0000 (05:49 +0530)]
smb347 charger: Added support for SMB347 charger driver support

BZ: 27533

This patch adds the support for Summit SMB347 charger driver for
MFLD DV10 platfroms.

Change-Id: I6631435b8699b9192a8a156da78cc62ee0246a39
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/39213
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Patel, Chintan M <chintan.m.patel@intel.com>
Reviewed-by: B M, Shravan K <shravan.k.b.m@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Gugwad, SantoshX <santoshx.gugwad@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: enable DDR50 for CLV v2.0 host controller
Chuanxiao Dong [Thu, 8 Mar 2012 03:43:45 +0000 (11:43 +0800)]
mmc: enable DDR50 for CLV v2.0 host controller

BZ: 27376

Clovertrail+ platform has a v2.0 host controller which can support
DDR50 mode. Since silicon still have bugs on this feature, driver
also has to add a bit workaround.

Change-Id: I1c399d0a014b61ffeca4bc30bcac4c5aa178984d
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/38965
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_ipc: calculate divisor properly for osc clk
Tuukka Toivonen [Fri, 9 Mar 2012 14:41:45 +0000 (16:41 +0200)]
intel_scu_ipc: calculate divisor properly for osc clk

BZ: 26932

intel_scu_ipc_osc_clk() calculates incorrectly the clock divisor.
This affects at least camera with 9.6 MHz clock in Clovertrail.
Fix it.

Change-Id: Ib35fa790346cb316288e5244f0d65d3b2accfcc4
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/38189
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBattery: Add support for max17050 FG chip
Ramakrishna Pallala [Thu, 15 Mar 2012 09:05:41 +0000 (14:35 +0530)]
Battery: Add support for max17050 FG chip

BZ: 24846

This patch adds the support for max17050 FG chip in
MSIC charger driver.

Change-Id: I4d4d8fc06cf3f03387f911988c9fef9856aa4132
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/39281
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: Gugwad, SantoshX <santoshx.gugwad@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomax17042: Added support for max17050 chip
Ramakrishna Pallala [Thu, 15 Mar 2012 08:32:32 +0000 (14:02 +0530)]
max17042: Added support for max17050 chip

BZ: 24846

This patch adds the support for max17050 chip to the existing
max17042 fuel gauge driver.

Change-Id: Idd88d1989884fee5990db393699f8654d021a16c
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/39278
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: Gugwad, SantoshX <santoshx.gugwad@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMax17050 : Add Max17050 support in board file
Asutosh Pathak [Fri, 16 Mar 2012 01:17:36 +0000 (18:17 -0700)]
Max17050 : Add Max17050 support in board file

BZ: 27610

In GI SFI table new entry for Max17050 have been added - hence this
patch is needed while parsing the SFI table

Change-Id: I557cbf13aad7d76d0e9bca506f3c7822cdc96ba5
Signed-off-by: Asutosh Pathak <asutosh.pathak@intel.com>
Signed-off-by: Eric Seibel <eric.seibel@intel.com>
Reviewed-on: http://android.intel.com:8080/39268
Reviewed-by: Ponnusamy, Siva Prasath <siva.prasath.ponnusamy@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Tested-by: Gugwad, SantoshX <santoshx.gugwad@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:gadget: drain ep0 when reset config
jzhuan5 [Tue, 13 Mar 2012 06:18:00 +0000 (02:18 -0400)]
usb:gadget: drain ep0 when reset config

BZ: 25477

gadgets such as RNDIS, ACM and MTP use ep0 for command control. Thus, when resetting
config, it's necessary to make sure request pending on ep0 is drained.

rndis_command_complete doesn't check req->status before further processing, it's corrected
in the patch.

fix a NULL pointer issue of is_in macro in function ep_set_halt

Change-Id: I1d40dd45ebcb6f4bfeeaaceb58167e09a43ed85f
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/38773
Reviewed-by: Li, Wenji <wenji.li@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio: Add Support for MIC1 and MIC2 routing based on the board type
KP, Jeeja [Fri, 16 Mar 2012 16:45:58 +0000 (22:15 +0530)]
audio: Add Support for MIC1 and MIC2 routing based on the board type

BZ: 27733

Analog MIC on CLV VV board use MIC1 path and on PR boards it used MIC2.
This patch added support Mic routing based on board Type.

Change-Id: Ia9b3796cae2ea2d0a88f93bac6111e3f1e117db4
Signed-off-by: KP, Jeeja <jeeja.kp@intel.com>
Signed-off-by: Arulselvan M <arulselvan.m@intel.com>
Reviewed-on: http://android.intel.com:8080/39380
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:asoc machine driver for gilligan island board
Ramesh Babu K V [Thu, 8 Mar 2012 11:05:53 +0000 (16:35 +0530)]
audio:asoc machine driver for gilligan island board

BZ: 26074

This patch adds new asoc machine driver for gilligan
island board.  Gilligan island board has on board AMIC
and doesn't have any DMIC.
This patch disables the pins that are not connected on
the board.

Change-Id: I8261661cd66911e035c77bde57936f8c856be6ed
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/38008
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:[WORKAROUND]swap amic bias in codec driver
Ramesh Babu K V [Thu, 8 Mar 2012 11:01:24 +0000 (16:31 +0530)]
audio:[WORKAROUND]swap amic bias in codec driver

BZ: 26685

This patch is a work around fix for a HW bug in GI PR1.x boards.
The GI boards has amic bias lines are swapped.
Bug 26790 is used to track the HW fix for this issue.

This patch should be reverted once the HW bug is fixed.

Change-Id: Id999445ef66c9f82661acb4a961e61221182a55b
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/38007
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio: Correct mapping for VSP right MUX
Vaibhav Agarwal [Thu, 15 Mar 2012 13:23:32 +0000 (18:53 +0530)]
Audio: Correct mapping for VSP right MUX

BZ: 27435

Incorrect mapping exist for VSP right mux. This caused uplink
not working with Headset plugged-in

The solution is to modify these mapping to correct ones.

Change-Id: I823eb8bd075c2584e6b1d4fa83b2d2ee9b4429a6
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@intel.com>
Reviewed-on: http://android.intel.com:8080/39256
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAndroidKernel.mk: Make kernel build dep on minigzip
Pierre Tardy [Wed, 14 Mar 2012 08:52:26 +0000 (09:52 +0100)]
AndroidKernel.mk: Make kernel build dep on minigzip

BZ: 26498

minigzip has better performance related to incrementatl image generation

Change-Id: I63af0b848967857fadc4ce670f3586f03f2db4b8
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
Reviewed-on: http://android.intel.com:8080/38987
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio: Enable Vibra for CTP
KP, Jeeja [Mon, 12 Mar 2012 23:25:33 +0000 (04:55 +0530)]
audio: Enable Vibra for CTP

BZ: 27048

Added Vibra Driver for enabling Vibra on CTP.
PWM generator is in the Cloverview SOC. Before turn off clock for audio
fabric the PWM generator must be disabled.
Vibra driver will be registered as the PCI device for Handling the PM.Currently
the PCI_ID for vibra driver is not yet released.
This patch will have workaround to configure the PWM generator as part of
SST driver. This will be Fixed when IFWI with PCI for vibra is released.

Change-Id: I65d77dd2d87bc9373926b39943c5193fc438ca62
Signed-off-by: KP, Jeeja <jeeja.kp@intel.com>
Reviewed-on: http://android.intel.com:8080/38378
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agohwmon/ltr502als: add shutdown method
Hong Liu [Tue, 6 Mar 2012 09:04:29 +0000 (17:04 +0800)]
hwmon/ltr502als: add shutdown method

BZ: 10605

Shutdown the device during system reboot, in some circumstances if system
is doing reboot while device is power on, the device may enter into unknown
state, not acking any i2c transactions. Shutdowning the device seems help
to avoid this issue.

Change-Id: I2b6b6b5924a8aeffba06cabd32ac92984b1249e8
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/37762
Reviewed-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2]audio: sn95031: modify PCM2 enabling sequence
Ramesh Babu K V [Fri, 10 Feb 2012 17:15:50 +0000 (22:45 +0530)]
[PORT FROM R2]audio: sn95031: modify PCM2 enabling sequence

BZ: 24696

PCM2 port enabling sequence is changed.  PCM2 port is enabled after enabling
the DMIC clock and other widgets.
Also converted some msleep() to usleep_range() since msleeps below 20 ms are not
guaranteed.

Change-Id: I565172acdabd1934a50dd178e086231a659ed8bc
old-Change-Id: Ic3bd318c9a10d102e2c818429e4c63eb5ff2290a
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/38989
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio: Fix concurrency issues while calling snd_soc_dapm_sync()
Omair Mohammed Abdullah [Tue, 6 Mar 2012 11:02:09 +0000 (16:32 +0530)]
audio: Fix concurrency issues while calling snd_soc_dapm_sync()

BZ: 20570

A list structure in the ASoC core was getting corrupted resulting in kernel
panic. This was due to concurrent access to the list data structure from two
code locations.

Calls to snd_soc_dapm_sync() which accesses this data structure were not
protected. Added proper locking to fix the issue.

Change-Id: Ibb344d5a1070bc08bd200b15e9d6f99fc8d415f9
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/37687
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: R, Dharageswari <dharageswari.r@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:add support for mono speaker
Ramesh Babu K V [Tue, 28 Feb 2012 15:36:40 +0000 (21:06 +0530)]
audio:add support for mono speaker

BZ: 23041

This patch adds support for mono speaker configuration
using runtime sst params.

If particular board has mono speaker, kernel config
SND_MFLD_MONO_SPEAKER_SUPPORT needs to selected to enable
the mono speaker support.

Change-Id: I3084772106669c129c426981c140b60afe658d41
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/36911
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] atomisp: CSS/FW release from Synergy baseline of 07Mar2012
Lokesh Gupta [Wed, 7 Mar 2012 17:02:44 +0000 (17:02 +0000)]
[PORT FROM R2] atomisp: CSS/FW release from Synergy baseline of 07Mar2012

BZ: 27375

This release of CSS/FW addresses the following issues:
  - Enable MACC in preview
  - New 3A statistics for R2

Change-Id: I6109898ccefc6bfb0e2d0bf44d2958e412afadf2
Orig-Change-Id: Id0e3db83b9173af0f396104456d528cbb8f6250e
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/38974
Reviewed-by: Sutic, Aleksandar <aleksandar.sutic@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] sh_css: fix improper bayerorder cropping
Robert Jong-A-Lock [Thu, 8 Mar 2012 23:47:16 +0000 (00:47 +0100)]
[PORT FROM R2] sh_css: fix improper bayerorder cropping

BZ: 27375

bayer order is matched to the isp's native bayer order by
cropping off a line or column or both dependant on the
bayer pattern chosen. This cropping was not done properly.

Change-Id: I6f267758943eb8948cabc373c1918e015271b5e9
Orig-Change-Id: Ieca6672f8db70084f5c59d596007960b3e33a35c
Reviewed-on: http://android.intel.com:8080/38973
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomax11871: add firmware update logic
Hong Liu [Wed, 14 Mar 2012 06:06:26 +0000 (14:06 +0800)]
max11871: add firmware update logic

BZ: 27410

New driver drop from Maxim to add firmware update code during driver
init phase.

Change-Id: I8c43f004fc5ae82534d545725acbf8ced4cdda76
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/37918
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoltr502als.c: Change the ALS's first interrupt delay
Leo Yan [Wed, 14 Mar 2012 09:17:33 +0000 (17:17 +0800)]
ltr502als.c: Change the ALS's first interrupt delay

BZ: 26367

In a dim environment, ALS need much more time to trigger the first
interrupt than in a bright environment when it's enabled. So we need
to increase the delay time to avert that delayed work reports a zero
if the device is not in a dark environment.

Change-Id: Ie45b8731d2b9a23a4512eb4a8150106008cbe079
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/38788
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoltr502als.c: Modify the way to change the config register
Leo Yan [Tue, 13 Mar 2012 05:39:07 +0000 (13:39 +0800)]
ltr502als.c: Modify the way to change the config register

BZ: 26351

When change the device mode, we need to set the CONFIG REG to idle mode
first to disable interrupt. Otherwise, some interrupts may be triggered
abnormally during the mode switch.

Change-Id: I67792fce52fc1377aed9b5316b84a122451c7fde
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/38779
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: Set backlight duty factor to 127 for DV10
Geng Xiujun [Thu, 23 Feb 2012 06:10:31 +0000 (14:10 +0800)]
GFX-Display: Set backlight duty factor to 127 for DV10

BZ: 24890

From panel spec, we don't found exact saying about maximum value of backlight
duty, but per the debug resust, when set it to 127 instead of 255, it can work.

Change-Id: Ide08eb912f1e6e4882db4630c68ef181b815ed12
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/36338
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: change GI PWM frequnce to 1KHZ.
Ke Ai [Fri, 9 Mar 2012 01:18:33 +0000 (09:18 +0800)]
GFX-Display: change GI PWM frequnce to 1KHZ.

BZ: 26690

the orginal is 20KHZ, which cause backlight to
filker when display not at 100%.

Num of PWM / 1frame = (BCFRQSEL + 1) * 2 ^ BL_DIMM_STEP

here set BCFRQSEL = 16 ==> 00010000
BL_DIMM_STEP = 1 ==> 000

Change-Id: Ia9329f8bbbe3b72d887366a9af89fbacd7feb523
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/38042
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoPort a bunch of patches from R2
Tong, Bo [Wed, 14 Mar 2012 04:54:28 +0000 (12:54 +0800)]
Port a bunch of patches from R2

BZ: 17008

This patch includes below bug fixing

0001-HDMI-Fix-the-unnecessary-encoder_restore-action.patch: BZ: 20187
0002-GFX-Display-Fix-charging-screen-mess-issue.patch:     BZ: 19361
0003-GFX-DISPLAY-fix-lock-screen-flip-issue-when-audio-is.patch: BZ: 20293
0004-GFX-Display-Add-support-for-some-modes-in-video-data.patch: BZ: 22978
0005-GFX-DISPLAY-improve-mipi-panel-init-stability.patch: BZ: 23028
0006-Display-HDMI-do-audio-busy-check-in-psb_runtime_susp.patch: BZ: 19448

0001-Revert-GFX-display-Audio-can-t-play-on-hdmi-after-su.patch: Orig-patch: 32311

Change-Id: Iab06b59e4b6bd0e895658278fbd81f350ed5a3f1
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/35365
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg: stop ULPI polling when in test mode
Wu, Hao [Mon, 12 Mar 2012 08:36:03 +0000 (16:36 +0800)]
usb/penwell_otg: stop ULPI polling when in test mode

BZ: 26716

ULPI Polling will fail and cause HW/SW reset once entered test
mode, so when it entered test mode, then notify penwell_otg to
stop ULPI polling.

Change-Id: I477b39ac9cd01a4baf8f848c323f703a3c6a114a
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/38322
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Li, Wenji <wenji.li@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg: extend ulpi access timeout value
Wu, Hao [Thu, 8 Mar 2012 12:36:31 +0000 (20:36 +0800)]
usb/penwell_otg: extend ulpi access timeout value

BZ: 26396

This patch extends the ulpi access timeout to 2ms, as we found sometime
the ulpi access response is slow and cause unexpected timeout event.
The unexpected timeout event will cause USB HW/SW stack reset and make
some compliance test failed due to reset.

Change-Id: I03a54e9f8329ae116d81f18954130b9da64847f2
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/37985
Reviewed-by: Li, Wenji <wenji.li@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[Kernel] Kobject_uevent: Fix Netlink error handling
Durgadoss R [Mon, 5 Mar 2012 10:52:54 +0000 (16:22 +0530)]
[Kernel] Kobject_uevent: Fix Netlink error handling

BZ: 26259

kobject_uevent() uses a multicast socket and should ignore
if one of listeners cannot handle messages or nobody is
listening at all. The upstream commit id is:
ebf4127cd677e9781b450e44dfaaa1cc595efcaa

Change-Id: I51f3375e7b286200d41002bdca54cb080bcd0e62
Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Reviewed-on: http://android.intel.com:8080/37545
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopci_quirks: adding D0i1 support for HSU on CLV. [REVERT ME]
Philippe Skowronski [Mon, 12 Mar 2012 13:06:27 +0000 (14:06 +0100)]
pci_quirks: adding D0i1 support for HSU on CLV. [REVERT ME]

BZ: 26448

Change-Id: I0f3028ecd5be07490ecf6d0e6e90add1e946e802
Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Reviewed-on: http://android.intel.com:8080/38354
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2]Battery : Program PWRSRCLMT based on SFI Table
santosh [Wed, 14 Mar 2012 14:36:35 +0000 (10:36 -0400)]
[PORT FROM R2]Battery : Program PWRSRCLMT based on SFI Table

BZ: 23370

Program PWRSRCLMT based on SFI table value and report NOT CHARGING if
temperature is greater than the allowed thresholds and charger is
connected

Change-Id: I2689766fb620ee2e5159a23bab96c8c049acdb91
Orig-Change-Id: I43a19e809ed6b354b5c4ce9b74c587e0964b01b5
Signed-off-by: debalina <debalinax.mitra@intel.com>
Signed-off-by: santosh <santoshx.gugwad@intel.com>
Reviewed-on: http://android.intel.com:8080/38991
Reviewed-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2]max17042: To fix fuel gauge reporting full @ 72%
santosh [Wed, 14 Mar 2012 12:32:54 +0000 (08:32 -0400)]
[PORT FROM R2]max17042: To fix fuel gauge reporting full @ 72%

BZ: 24327

This patch sets the cycles parameter to restored value to avoid wrong
learncfg configuration. Changes suggested in new implementation guide
for calculating remaining capacity are also  present.

Change-Id: I4f34cebcb01cb69d3b572397e1bfd6a510f398d7
Orig-Change-Id: I40ef4be0013cc7e4799bcaa28efd4d2239c0b7c2
Signed-off-by: yashodhan kurtadkar <yashodhan.kurtadkar@intel.com>
Signed-off-by: santosh <santoshx.gugwad@intel.com>
Reviewed-on: http://android.intel.com:8080/38963
Reviewed-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: fixes Klocwork issues
Lassi Väätämöinen [Tue, 13 Mar 2012 12:47:40 +0000 (14:47 +0200)]
atomisp: fixes Klocwork issues

BZ: 24562

Fixes Klockwork issue #114398, which are under atomisp driver.
The case #114393 is a false positive, and is omitted.
The case #114433 is under V4L2 subsystem, and should not be
addressed by us.

Change-Id: I20a1370c600ce63e25a5ba9e9fc2958c6adbf9ec
Signed-off-by: Lassi Väätämöinen <lassix.vtminen@intel.com>
Reviewed-on: http://android.intel.com:8080/36576
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Sutic, Aleksandar <aleksandar.sutic@intel.com>
Reviewed-by: Mandy, Arnaud <arnaud.mandy@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: Make sure acceleration fw gets freed when closing the device
Ilkka Koskinen [Fri, 2 Mar 2012 13:36:42 +0000 (15:36 +0200)]
atomisp: Make sure acceleration fw gets freed when closing the device

BZ: 15864

In the case the client has requested to load acceleration firmware but
hasn't asked to unload it before closing the device, the resources
reserved for the fw haven't been released.

Change-Id: I23a9832167392dea4b2c4211202a8c95b36d3251
Signed-off-by: Ilkka Koskinen <ilkka.koskinen@intel.com>
Reviewed-on: http://android.intel.com:8080/36863
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: lock isp_lock when access to ACC FW container
Andy Shevchenko [Fri, 24 Feb 2012 14:17:58 +0000 (16:17 +0200)]
atomisp: lock isp_lock when access to ACC FW container

BZ: 25527

This patch does following things.

It protects the ACC FW container by setting isp_lock everywhere. Unfortunately
we need to hold a global lock (isp_lock) during access and handling the ACC FW
item, because __acc_fw_free() invalidates a FW as well. In the future we need
to split container lock and the item locks.

It moves lock outside atomisp_acc_fw_alloc() and renames it to
__acc_fw_alloc().

Change-Id: If8ce9cedf381954d0dffd566c325f5ca5592e79b
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36869
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: display an error message if ISP power cycling fails
Tuukka Toivonen [Wed, 29 Feb 2012 11:53:21 +0000 (13:53 +0200)]
atomisp: display an error message if ISP power cycling fails

BZ: 25735

AtomISP driver resets ISP by power cycling it. This patch encapsulates
the resetting into a new function which checks if the power management
functions failed, and if so, displays an error message.

Change-Id: I248fe7eeeaf8c363e09e17287a812e9aab82463c
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/37223
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD_DV10: Camera sensor GPIO and SFI touchscreen change
Brian Wood [Tue, 6 Mar 2012 22:33:37 +0000 (14:33 -0800)]
MFLD_DV10: Camera sensor GPIO and SFI touchscreen change

BZ: 27297

This commit has changes for camera sensor GPIO needed
that differ from PRx phones in their IFWI SFI table.
This is contains the removal of the touchscreen manual
enablement that is now in latest IFWI.

Change-Id: Ideafded12f854230b33ae907b724a2ffdd9a9580
Signed-off-by: Brian Wood <brian.j.wood@intel.com>
Reviewed-on: http://android.intel.com:8080/37757
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2]Fix spinlock holes in tty_buffer.c
Xu, Feng [Fri, 9 Mar 2012 08:48:55 +0000 (16:48 +0800)]
[PORT FROM R2]Fix spinlock holes in tty_buffer.c

BZ: 26164

The tty_buffer_request_room is well protected, while after it return,
it release the port->lock, so the buf.tail is not protected.

Change-Id: I302f78b42c297e16ccf3b93a78254cc3f900326f
Orig-Change-Id: I0e5571803993a436316702b39cf987af1d2a2415
Signed-off-by: Even Xu <feng.xu@intel.com>
Reviewed-on: http://android.intel.com:8080/38084
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2]HSU Driver: fix possible memory leak
Xu, Feng [Fri, 9 Mar 2012 07:35:29 +0000 (15:35 +0800)]
[PORT FROM R2]HSU Driver: fix possible memory leak

BZ: 26435

In hsu_startup function, DMA buffer was allocated. while in
hsu_shutdown function, the allocated buffer is not free. So
potentially this will cause memory leak.

Change-Id: I706eab1dafcc728a77f38fca8b3253e6b46bd37f
Orig-Change-Id: I85a03246fcaa6a85b8ba8d254b8b4684036355f6
Signed-off-by: Even Xu <feng.xu@intel.com>
Reviewed-on: http://android.intel.com:8080/38074
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "Revert "Graphic: Critical Klocwork issues for ICS kernel""
Protat, RemyX [Tue, 13 Mar 2012 15:37:46 +0000 (08:37 -0700)]
Revert "Revert "Graphic: Critical Klocwork issues for ICS kernel""

BZ: 23906

This reverts commit bf34e28aebd941e61fb080674a77a30f13e9a848

Change-Id: Ic05ad95627d2a541f493bb5a27a124ea463bd19b
Signed-off-by: Remy Protat <remyx.protat@intel.com>
Reviewed-on: http://android.intel.com:8080/38876

12 years agoRevert "Graphic: Critical Klocwork issues for ICS kernel"
Protat, RemyX [Mon, 12 Mar 2012 15:34:30 +0000 (08:34 -0700)]
Revert "Graphic: Critical Klocwork issues for ICS kernel"

BZ: 23906

This reverts commit dbdd38c317a0754ea95129e974780c952028bb61

Change-Id: Ia84b6aeffdaf8e1ff7d324ebb6b7d5df74bd8190
Signed-off-by Protat, RemyX<remyx.protat@intel.com>
Reviewed-on: http://android.intel.com:8080/38372
Reviewed-by: Protat, RemyX <remyx.protat@intel.com>
Tested-by: Protat, RemyX <remyx.protat@intel.com>
12 years agoBattery: Fix for reporting charger health DEAD when VBUS is low
Gurumurthy Gowdar [Thu, 8 Mar 2012 17:57:00 +0000 (23:27 +0530)]
Battery: Fix for reporting charger health DEAD when VBUS is low

BZ: 22487

This patch reports charger health as DEAD,when VBUS voltage is low
connected through DCP using external power supply

Change-Id: I4e8039fad2ecc6716d83d303a4baa091eb89d0b3
Signed-off-by: Gurumurthy Gowdar <gurumurthyx.gowdar@intel.com>
Reviewed-on: http://android.intel.com:8080/37981
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Gugwad, SantoshX <santoshx.gugwad@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agolangwell_udc: STALL the bad setFeature/clearFeature request
Li Wenji [Fri, 2 Mar 2012 03:52:06 +0000 (11:52 +0800)]
langwell_udc: STALL the bad setFeature/clearFeature request

BZ: 26747

As the USB spec request, a SetFeature() or ClearFeature() that
references a feature that cannot be set or that does not exist
should causes STALL to be returned in the Status stage of the
request.

Change-Id: I118d32bd7e5f4e66f4c23d109c9186c8898657a7
Signed-off-by: Li Wenji <wenji.li@intel.com>
Reviewed-on: http://android.intel.com:8080/37939
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoREVERT-ME [DV10] TS is not available
Christophe Continente [Mon, 12 Mar 2012 12:44:48 +0000 (13:44 +0100)]
REVERT-ME [DV10] TS is not available

BZ: 27092

till IFWI_04 delivery, TS must be hardcoded into the board-redridge.c file.

Change-Id: If9d1790b5eb1a65cc1ad15ed234b89100ab9a664
Signed-off-by: Christophe Continente <christophe.continente@intel.com>
Reviewed-on: http://android.intel.com:8080/38350
Reviewed-by: Seibel, Eric <eric.seibel@intel.com>
Tested-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: adjust exposure time to prevent over-exposure in office
Tuukka Toivonen [Wed, 7 Mar 2012 09:18:08 +0000 (11:18 +0200)]
ov8830: adjust exposure time to prevent over-exposure in office

BZ: 26645

Adjust exposure time for typical office day environment.

Change-Id: Iba071287c26cd40c047f08abf28f54d3ad7f03b4
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/37843
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: adjust manual white balance gains
Tuukka Toivonen [Wed, 7 Mar 2012 12:36:29 +0000 (14:36 +0200)]
ov8830: adjust manual white balance gains

BZ: 26645

Adjust white balance gains to red: 1.43 green: 1.0 blue: 1.56

Change-Id: I869f4ead72f0164be17d74c0f501ec6ac4972bea
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/37842
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: enlarge maximum resolution by using dummy pixels
Tuukka Toivonen [Wed, 7 Mar 2012 11:41:31 +0000 (13:41 +0200)]
ov8830: enlarge maximum resolution by using dummy pixels

BZ: 26638

The nominal 8 Mpix resolution for ov8830 is 3264x2448. However,
the ISP is cropping some pixels away from this which makes
the maximum resolution visible to application less than the
nominal resolution. This patch increases the maximum resolution
mode for ov8830 by 16 pixels by including dummy pixels around
the active image area so that the nominal resolution is maintained
after ISP cropping.

Change-Id: I9ff9d75ebb31f972512463ca69e725ea3a9d9a4e
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/37838
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: fix the maximum resolution
Tuukka Toivonen [Tue, 6 Mar 2012 11:34:26 +0000 (13:34 +0200)]
ov8830: fix the maximum resolution

BZ: 26431

Fix the maximum resolution that the sensor driver reports

Change-Id: Ie3b036a32e72861f210058f9fed093ced0d5e03a
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/37719
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: adjust ov8830_mode_1600 PLL settings from 24 MHz to 19.2 MHz
Tuukka Toivonen [Thu, 23 Feb 2012 09:36:54 +0000 (11:36 +0200)]
ov8830: adjust ov8830_mode_1600 PLL settings from 24 MHz to 19.2 MHz

BZ: 25738

Change-Id: I3e67c027e8d34f0473cc49ed9c67f2da6470edbb
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/37225
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: add sensor mode 1600x1200 with binning
Tuukka Toivonen [Thu, 23 Feb 2012 09:13:21 +0000 (11:13 +0200)]
ov8830: add sensor mode 1600x1200 with binning

BZ: 25738

Add mode 1600x1200. The mode assumes 24 MHz clock which is wrong.
Correct this in later patches.

Change-Id: I930c41b111da9b6bc1343e4ecdfed0d16c3086d8
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/37224
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>