kernel/kernel-mfld-blackbay.git
12 years agosdhci: Fix missing runtime_pm get/put.
Aymen Zayet [Mon, 21 Nov 2011 18:16:18 +0000 (19:16 +0100)]
sdhci: Fix missing runtime_pm get/put.

BZ: 15061

make sure that card is powered on / off when required.

Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Change-Id: I3c6183fa5ac85caf64f61048447ed2880c6c4828
Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Reviewed-on: http://android.intel.com:8080/25378
Reviewed-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Tested-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agokernel: Adding FLAGS required by the wifi.
Aymen Zayet [Mon, 21 Nov 2011 18:04:11 +0000 (19:04 +0100)]
kernel: Adding FLAGS required by the wifi.

BZ: 15061

Actually, the wifi driver is based on compat wireless modules that
requires WL12XX_PLATFORM_DATA to be enabled within the kernel. So
it shall be enabled by default with WL12XX.

The wifi uses two AON gpios and thus the wifi interrupt handler is
forwarded by the GPIO driver. So to prevent losing wifi interrupts,
HARDIRQS_SW_RESEND shall be used.

Change-Id: Ic61fd84cc2ef849e7b97bb90164e53b9f0ba944d
Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Reviewed-on: http://android.intel.com:8080/25377
Reviewed-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Tested-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomrst: Initialize wl12xx platform data.
Aymen Zayet [Mon, 21 Nov 2011 16:29:42 +0000 (17:29 +0100)]
mrst: Initialize wl12xx platform data.

BZ: 15061

Perform Wifi platform data initialization.

Change-Id: I71f7bde84dcff44fb587c0c69bc021dd07264f6d
Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Reviewed-on: http://android.intel.com:8080/25376
Reviewed-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Tested-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosdhci: Adding new Quirk for the sdhci controller.
Aymen Zayet [Mon, 21 Nov 2011 13:33:05 +0000 (14:33 +0100)]
sdhci: Adding new Quirk for the sdhci controller.

BZ: 15061

The SDHCI controller is not able to perform a soft reset on resume.
So SDHCI_QUIRK_CANNOT_KEEP_POWERCTL is added to reset completely the
sdhci controller rather than resetting CMD / DATA.

Without this quirk, the reset on resume  will never complete and the
system hangs.

Change-Id: I00f46558624b5a65deb7f49cceec6dc2af7b37b4
Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Reviewed-on: http://android.intel.com:8080/25375
Reviewed-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Tested-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio: Headset detection.
Deng BingX [Tue, 8 Mar 2011 01:22:39 +0000 (09:22 +0800)]
Audio: Headset detection.

Change-Id: I8245b11b2df3af3f2a0bca3eec6c1c3d4bdb185b
Signed-off-by: bdeng3X <bingx.deng@intel.com>
Reviewed-on: http://android.intel.com:8080/25152
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoAudio: Add headset detcetion module config in i386_mfld_cdk_android_defconfig.
Deng BingX [Tue, 8 Mar 2011 01:24:45 +0000 (09:24 +0800)]
Audio: Add headset detcetion module config in i386_mfld_cdk_android_defconfig.

Change-Id: Id4c4afe0565cdaa0c5a3d6eeef36fc700b760842
Signed-off-by: bdeng3X <bingx.deng@intel.com>
Reviewed-on: http://android.intel.com:8080/25153
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
12 years agogfx-gtt: enhanced GTT memory manager to support different buffer types.
Jackie Li [Wed, 23 Nov 2011 15:00:06 +0000 (23:00 +0800)]
gfx-gtt: enhanced GTT memory manager to support different buffer types.

This is patch 2/5 of HWC enabling.

Added three interfaces to GTT memory manager to support follow buffers:
1) all kinds of PVR meminfo
2) BCD buffer
3) user mode allocated buffer.

Change-Id: I9bdcd4f18cf01ab58976c495d51b0aa0a3d27583
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Reviewed-on: http://android.intel.com:8080/25090
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoPort I2C driver from current driver to k30
Bin Yang [Mon, 21 Nov 2011 16:36:02 +0000 (16:36 +0000)]
Port I2C driver from current driver to k30

BZ: 15206

1. some differences of runtime PM implementation, including
auto runtime suspend.
2. one bug fixing in ISR.
3. add dump function for debugging.
4. correct clock setting.

Change-Id: Ib3d82e91333aa33bd319d5fed88389b15bd698fc
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/25164
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agodw_spi_pci: add spi1 probing support for cloverview
Leonard Mai [Tue, 22 Nov 2011 19:46:57 +0000 (11:46 -0800)]
dw_spi_pci: add spi1 probing support for cloverview

BZ: 15092

Cloverview SOC use different PCI Device ID for SPIs hence existing
SPI driver won't be initialized on Cloverview SOC.

This patch adds SPI1 probing support for enabling Cloverview SOC.
Also, 0x0800 is the PCI device ID for SPI controller 1 on Penwell (not 0)
hence corrected the comment.

Change-Id: Ie0db4da6cf4f72f1ddb0ae4f53f029eec44f0f0d
Signed-off-by: Leonard D Mai <leonard.mai@intel.com>
Reviewed-by: Pierre Tardy <pierre.tardy@intel.com>
Tested-by: Siva Prasath Ponnusamy <siva.prasath.ponnusamy@intel.com>
Reviewed-on: http://android.intel.com:8080/25028
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agopti: add pti probing support for cloverview
Leonard Mai [Tue, 22 Nov 2011 20:00:54 +0000 (12:00 -0800)]
pti: add pti probing support for cloverview

BZ: 15091

Cloverview SOC use different PCI Device ID for PTI hence existing PTI
driver won't be loaded on Cloverview SOC.

This patch adds PTI probing support for Cloverview SOC

Change-Id: I16e5770e8019cb7357bd430809abf11e3e9b8ba5
Signed-off-by: Leonard D Mai <leonard.mai@intel.com>
Reviewed-by: Pierre Tardy <pierre.tardy@intel.com>
Tested-by: Siva Prasath Ponnusamy <siva.prasath.ponnusamy@intel.com>
Reviewed-on: http://android.intel.com:8080/25027
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agogpio: add cloverview probing support
Leonard Mai [Tue, 22 Nov 2011 20:05:43 +0000 (12:05 -0800)]
gpio: add cloverview probing support

BZ: 15089

Cloverview SOC use different PCI Device ID for GPIO hence existing Medfield
GPIO driver won't be initialized on Cloverview SOC.

This patch add GPIO probing support for Cloverview SOC.

Change-Id: Ibc46a51605726ff9ddd8ffccf793bece3beb4949
Signed-off-by: Leonard D Mai <leonard.mai@intel.com>
Reviewed-by: Pierre Tardy <pierre.tardy@intel.com>
Tested-by: Siva Prasath Ponnusamy <siva.prasath.ponnusamy@intel.com>
Reviewed-on: http://android.intel.com:8080/25026
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoPort from k35: camera drivers updated to ww46
Tao Jing [Tue, 22 Nov 2011 06:30:12 +0000 (14:30 +0800)]
Port from k35: camera drivers updated to ww46

including the following patche:

http://android.intel.com:8080/#change,23169
http://android.intel.com:8080/#change,22968
http://android.intel.com:8080/#change,22967
http://android.intel.com:8080/#change,23022
http://android.intel.com:8080/#change,22679
http://android.intel.com:8080/#change,22832
http://android.intel.com:8080/#change,22073
http://android.intel.com:8080/#change,22984
http://android.intel.com:8080/#change,22895

Change-Id: I1b795471f52a791f9ef16ef34da75dee16f36f23
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24970
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoPort from k35: camera drivers updated to ww45
Tao Jing [Tue, 22 Nov 2011 04:45:25 +0000 (12:45 +0800)]
Port from k35: camera drivers updated to ww45

including the following patches:

http://android.intel.com:8080/#change,22630
http://android.intel.com:8080/#change,22612
http://android.intel.com:8080/#change,22755
http://android.intel.com:8080/#change,22396
http://android.intel.com:8080/#change,21860
http://android.intel.com:8080/#change,22699

Change-Id: Iec91a5eb24d5bd3b7090a0f55170ce1d7064e237
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24969
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoEnable hardware composer, kernel driver
Yong Yao [Tue, 22 Nov 2011 16:00:19 +0000 (00:00 +0800)]
Enable hardware composer, kernel driver

Change-Id: I8c8364484c97d0b1a3d63a1b98d83ab4072d45dc
Reviewed-on: http://android.intel.com:8080/24914
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agousb/penwell_otg: update USB charger type detection flow
Wu, Hao [Mon, 21 Nov 2011 22:27:30 +0000 (06:27 +0800)]
usb/penwell_otg: update USB charger type detection flow

BZ: 14936

2 patches missed, which can cause USB Host PC can not be
detected by penwell correctly.

Change-Id: Ie1dd3d4be2e5afa9924c3cb7c3be95ee942adde7
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/24844
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoavoid boot time warning from the back light driver
mgross [Mon, 21 Nov 2011 06:37:09 +0000 (14:37 +0800)]
avoid boot time warning from the back light driver

Change-Id: I0db6b3218e5fb846dc521441228fefa9db98d937
Reviewed-on: http://android.intel.com:8080/24660
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agovideo config: add for camera part
Tao Jing [Fri, 18 Nov 2011 10:06:29 +0000 (18:06 +0800)]
video config: add for camera part

adding for lm3554, mt9e013, mt9m114

Change-Id: Ibfe770c1371f2b9a1cd294e4347737e87bac91c3
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24504
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24691

12 years agolm3554: porting driver
Tao Jing [Thu, 17 Nov 2011 14:35:42 +0000 (22:35 +0800)]
lm3554: porting driver

make necessary changes fit for new 3.0 kernel

Change-Id: Ide71921c2cbf93eba44f77432e8f4913caf6d288
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24493
Reviewed-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24690

12 years agomrst.c: add for camera part
Tao Jing [Fri, 18 Nov 2011 10:06:01 +0000 (18:06 +0800)]
mrst.c: add for camera part

adding for lm3554, mt9m114, mt9e013

Change-Id: I40faa51404f8738eecb02b7de5a6455d566683af
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24503
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24689

12 years agoatomisp: porting driver
Tao Jing [Fri, 18 Nov 2011 10:03:34 +0000 (18:03 +0800)]
atomisp: porting driver

make necessary changes fit for new 3.0 kernel

known issue:
1: SSE3 is not enabled in kernel, so use memcpy instead. will
change back once enabled.
2: tpg does not have mbus interface but obselete set_fmt... interface
which is not supported in new 3.0 kernel. So currently tpg is not
enabled. Will add it later.

Change-Id: I2c8f12ba27ae2e0aae7e98a66cd807e5920725a4
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24501
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24688

12 years agoatomisp: adding atomisp driver from r2 branch
Tao Jing [Thu, 17 Nov 2011 14:16:23 +0000 (22:16 +0800)]
atomisp: adding atomisp driver from r2 branch

uploaded origin driver:
78646f18af816f8aee68cb6acb1003bffc8fdf8d

This fit for 0930 CSS FW

Change-Id: I8a7095375eca284edf78771d363723e879822d76
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24500
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24687

12 years agomt9m114: porting driver
Tao Jing [Thu, 17 Nov 2011 14:55:27 +0000 (22:55 +0800)]
mt9m114: porting driver

make necessary changes fit for new 3.0 kernel

Change-Id: I0193abdf4ba998f8813c6a48584536b6db50e570
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24499
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24686

12 years agoi386_mfld_defconfig: add multimedia and camera part
Tao Jing [Fri, 18 Nov 2011 10:07:01 +0000 (18:07 +0800)]
i386_mfld_defconfig: add multimedia and camera part

Change-Id: I6430b5d4196db560f726a805ad484596b2f6c605
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24505
Reviewed-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24685

12 years agomt9m114: adding mt9m114 driver from r2 branch
Tao Jing [Thu, 17 Nov 2011 14:15:44 +0000 (22:15 +0800)]
mt9m114: adding mt9m114 driver from r2 branch

uploaded origin driver:
43d3c045cae032b0a33fb48e211845c88a2ab432

Change-Id: Iae2787016cde415d36a7244cf8ebe656fe6524fc
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24498
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24684

12 years agomt9e013: porting driver
Tao Jing [Thu, 17 Nov 2011 15:02:48 +0000 (23:02 +0800)]
mt9e013: porting driver

make necessary changes fit for new 3.0 kernel

Change-Id: I776f20018bba03e17f8fe65f433a4cbba70a3e74
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24497
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24683

12 years agomt9e013: adding mt9e013 driver from r2 branch
Tao Jing [Thu, 17 Nov 2011 14:15:24 +0000 (22:15 +0800)]
mt9e013: adding mt9e013 driver from r2 branch

uploaded origin driver:
d46a8f7fe77cbac3c3fd0377a9fc48c8b7f2ddcd

Change-Id: I211bed3fae556c7d2adaee45bdf95eae50ccf340
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24496
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24682

12 years agolm3554: adding lm3554 driver from r2 branch
Tao Jing [Thu, 17 Nov 2011 14:14:56 +0000 (22:14 +0800)]
lm3554: adding lm3554 driver from r2 branch

uploaded origin driver:
65274f990540a8688cb1c0da4ea4ee1a407e822f

Change-Id: Ibf62c7cf24f27a380d36488f2fc27f590e575830
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/24492
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/24681

12 years agointel_idle: add support for cloverview atom processor
Leonard Mai [Sat, 19 Nov 2011 14:47:05 +0000 (06:47 -0800)]
intel_idle: add support for cloverview atom processor

BZ: 14868

Cloverview SOC has introduced new x86_model = 0x35 which currently not yet
supported in the intel_idle driver.

This patch adds a new variant x86_model = 0x35 for enabling Cloverview Atom
proccessor.

Change-Id: Ib437e5a0f8e512ea276d64e43fb517e3815a73e1
Signed-off-by: Leonard D Mai <leonard.mai@intel.com>
Reviewed-by: Pierre Tardy <pierre.tardy@intel.com>
Tested-by: Prabu Renganathan <prabu.renganathan@intel.com>
Tested-by: Sujith Thomas <sujith.thomas@intel.com>
Reviewed-on: http://android.intel.com:8080/24635
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoTelephony Port to Linux 3.0: Mux Driver configuration file
Marc Blassin [Fri, 18 Nov 2011 16:11:18 +0000 (17:11 +0100)]
Telephony Port to Linux 3.0: Mux Driver configuration file

BZ 14841

This patch enabled the N_GSM mux driver.

Change-Id: I8a0fe21bdcd38fd0c7d281d6ff6f9309b35aec9a
Signed-off-by: Marc Blassin <marcx.blassin@intel.com>
Reviewed-on: http://android.intel.com:8080/24614
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoTelephony Port to Linux 3.0: Mux Driver
Marc Blassin [Fri, 18 Nov 2011 09:20:35 +0000 (10:20 +0100)]
Telephony Port to Linux 3.0: Mux Driver

BZ 14734

This is port for the telephony MUX driver from linux 2.6 to linux 3.0
As n_gsm.c was already existing in the linux 3.0 tree, this is mainly a patch
containing the differences between the 2 versions plus the fix shown
by checkpatch.pl tools.

Change-Id: I518edf602c4101ff18baf57b1e9659d2404d9f1b
Signed-off-by: Marc Blassin <marcx.blassin@intel.com>
Reviewed-on: http://android.intel.com:8080/24613
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoTelephony Port to Linux 3.0: HSI Kernel config
Marc Blassin [Tue, 15 Nov 2011 13:14:30 +0000 (14:14 +0100)]
Telephony Port to Linux 3.0: HSI Kernel config

BZ: 14473

This patch enable the HSI protocol driver in the kernel config.

Signed-off-by: Marc Blassin <marcx.blassin@intel.com>
modified:   arch/x86/configs/i386_mfld_defconfig

Change-Id: I058ed3a3638ea1b8182e37756fdb1532f02243cb
Reviewed-on: http://android.intel.com:8080/24612
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoTelephony port to Linux 3.0: HSI driver.
Marc Blassin [Mon, 14 Nov 2011 17:15:42 +0000 (18:15 +0100)]
Telephony port to Linux 3.0: HSI driver.

BZ: 14450

This is HSI part for the telephony port from linux 2.6 to linux 3.0
This patch contains:
- the HSI driver files (controller and client) written by Olivier Stoltz-Douchet and
the related include files.
- the required changes for the kernel configuration files to enable/disable the HSI in the
default mfld kernel configuration.
- the required changes to enable the HSI hardware in the platform data (already took care about the
necessary changes to have the itp working correctly).

modified:   arch/x86/platform/mrst/mrst.c
modified:   drivers/Kconfig
modified:   drivers/Makefile
new file:   drivers/hsi/Kconfig
new file:   drivers/hsi/Makefile
new file:   drivers/hsi/clients/Kconfig
new file:   drivers/hsi/clients/Makefile
new file:   drivers/hsi/clients/cmt_speech.c
new file:   drivers/hsi/clients/hsi_char.c
new file:   drivers/hsi/clients/hsi_ffl_tty.c
new file:   drivers/hsi/clients/ssi_protocol.c
new file:   drivers/hsi/controllers/Kconfig
new file:   drivers/hsi/controllers/Makefile
new file:   drivers/hsi/controllers/hsi_arasan.h
new file:   drivers/hsi/controllers/hsi_dwahb_dma.h
new file:   drivers/hsi/controllers/intel_mid_hsi.c
new file:   drivers/hsi/controllers/omap_ssi.c
new file:   drivers/hsi/hsi.c
new file:   include/linux/hsi/hsi.h
new file:   include/linux/hsi/hsi_char.h
new file:   include/linux/hsi/hsi_ffl_tty.h
new file:   include/linux/hsi/intel_mid_hsi.h
new file:   include/linux/hsi/omap_ssi_hack.h
new file:   include/linux/hsi/ssip_slave.h

Change-Id: I4f89ac2b8482403301c84dd018bd285b812214f0
Signed-off-by: Marc Blassin <marcx.blassin@intel.com>
Reviewed-on: http://android.intel.com:8080/24611
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agonfc: Add pn544 driver from GB R2 K2.6.35
Sebastian Niciarz [Fri, 18 Nov 2011 09:32:52 +0000 (10:32 +0100)]
nfc: Add pn544 driver from GB R2 K2.6.35

BZ 14096

This is the NFC controller driver (PN544) from K2.6.35 with a small
adaptation to new ioctl API in K3.0.

Change-Id: I9e6c1cef0d99405d2a013e223bde903a6c077852
Signed-off-by: Sebastian Niciarz <sebastian.niciarz@gmail.com>
Reviewed-on: http://android.intel.com:8080/24610
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoAudio: Audience kernel driver migration to k308
Cyril Germond [Tue, 15 Nov 2011 07:11:35 +0000 (08:11 +0100)]
Audio: Audience kernel driver migration to k308

BZ: 14425

Integration of Audience driver in k3.08 kernel.
Rebase of latest Audeince driver on initial import.

Change-Id: Iaead5b2e15ddfbe42c5f32a32103311d8536bd9a
Signed-off-by: Cyril Germond <cyril.germond@intel.com>
Reviewed-on: http://android.intel.com:8080/24609
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoMFLD Power off support:
sathya [Wed, 16 Nov 2011 23:30:12 +0000 (15:30 -0800)]
MFLD Power off support:

Merged changes from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git

commit 9281a8b9e1ce267b74e5b73fa6ac822f5c1a8aa4
Author: Pavan <pavan.kumar.s@intel.com>
Date:   Thu Sep 15 16:23:50 2011 +0100

    mid_pmu: implement mfld_shutdown to send S5 pmu command

    BZ: 5512

    mfld_shutdown function is implemented to issue S5 pmu command
    This will be invoked from mrst.c to enter into S5. S5 sequence is
    necessary to sync vRTC to RTC

    Change-Id: Ie31291a24fdd1437b9ab6711907ce90aff08a65b
Signed-off-by: Pavan <pavan.kumar.s@intel.com>
    Orig-Change-Id: Ifb39bcc457c59aaa9865559e45b7429327edf05e
    Reviewed-on: http://android.intel.com:8080/19746
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Change-Id: I83f74c2c8a172ae19b06bc79b2cd51f661d66008
Reviewed-on: http://android.intel.com:8080/24608
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agointel_mid_powerbtn: use shared SRAM to read Powerbutton state
Zhifeng Wang [Fri, 18 Nov 2011 05:33:27 +0000 (13:33 +0800)]
intel_mid_powerbtn: use shared SRAM to read Powerbutton state

BZ: 8874

switch power button read access from IPC to shared SRAM to help
reduce latency introduced by IPC call.

Change-Id: I158b6ffa5cc28f7db527e0740fb1b54d40082cf0
Signed-off-by: Zhifeng Wang <zhifeng.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/24607
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoEM/BCU: Port Medfield BCU Driver to k3.0
Durgadoss R [Fri, 18 Nov 2011 09:28:03 +0000 (14:58 +0530)]
EM/BCU: Port Medfield BCU Driver to k3.0

BZ: 14769

This patch ports the existing BCU Driver to K3.0.
This driver is a platform driver, that is new to K3.0.
So, this patch just adds the file(intel_mid_ocd.c) to K3.0
and the appropriate configurations.

Change-Id: I9b256ac47fee02dda278934dc92c43563542ad63
Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Reviewed-on: http://android.intel.com:8080/24606
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agogfx: enabling video encode/decode in 3.0 kernel
Vishwesh M Rudramuni [Sat, 5 Aug 2006 04:51:45 +0000 (10:21 +0530)]
gfx: enabling video encode/decode in 3.0 kernel

Change-Id: Ibf8679b462e9f2b12e873ee13da27224495d3396
Signed-off-by: Vishwesh Rudramuni <vishwesh.m.rudramuni@intel.com>
Reviewed-on: http://android.intel.com:8080/24605
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoIntel MDF battery support: Config file update
sathya [Fri, 18 Nov 2011 04:31:18 +0000 (20:31 -0800)]
Intel MDF battery support: Config file update

Change-Id: If20f3b7c81e67ffdbefe1edc36b17672c4466865
Reviewed-on: http://android.intel.com:8080/24604
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoFixing config file issues:
sathya [Fri, 18 Nov 2011 04:25:02 +0000 (20:25 -0800)]
Fixing config file issues:

Config file update sequence is not followed correctly in previous edits. So syncing it with make menuconfig output.

Change-Id: If2585ab693e940fe62c7baeaaa07feb880f6000f
Reviewed-on: http://android.intel.com:8080/24603
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoIntel MDF battery support
sathya [Wed, 9 Nov 2011 21:22:02 +0000 (13:22 -0800)]
Intel MDF battery support

Fork lifted the battery driver (intel_mdf_battery) from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git

On top of that following 3.0 fixes are added.

1. 3.0 runtime pm fixes.
2. In kerenl 3.0, kfifo architechture is modified to support elements. So Irq kfifo in intel_mdf_battery.c is modified to use Int elements.

Change-Id: I650661992d062ad531ae8999432c4b3b7cae57c8
Reviewed-on: http://android.intel.com:8080/24602
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
12 years agoAsynchronous initcall support:
sathya [Thu, 17 Nov 2011 00:13:20 +0000 (16:13 -0800)]
Asynchronous initcall support:

Merged changes from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git

commit c8b0c2b4b610ae7018015df2ce2e7988bb7f9b5b
Author: Pierre Tardy <pierre.tardy@intel.com>
Date:   Tue Jun 28 16:13:36 2011 +0200

    async: add some macro to factorize asynchronous initcalls

    BZ:  4092

    If one wants to asynchronize its module initcalls, he has to make a few
    callbacks that are always the same. make a handful macro to factorize this.

    These macro should only be used if the module has no dependant modules on it.

    Change-Id: Ibc373a5ab6577a141028af6571092be6905e3843
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
Change-Id: I7f03f4b259e010e73de72865f41862c30f458bad
Reviewed-on: http://android.intel.com:8080/24601
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agogfx: fixing the runtime pm api's usage in gfx driver for 3.0
Vishwesh M Rudramuni [Thu, 10 Aug 2006 19:03:51 +0000 (00:33 +0530)]
gfx: fixing the runtime pm api's usage in gfx driver for 3.0

With kernel 3.0 there were some changes done to runtime pm
framework. we should no longer do pm_runtime_set_active & pm_runtime_enable
at probe & should be replaced with pm_runtime_put_noidle(). similarly
at remove function should replace pm_runtime_disable()/
pm_runtime_set_suspended() with pm_runtime_get_noresume(). Without
this change pm_runtime_suspend would not work because of change
in usage count.

Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Change-Id: Icfe0759fcaf1746c87ddbd28e2e2f3baf7ac5e08
Reviewed-on: http://android.intel.com:8080/24088
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Monroy, German <german.monroy@intel.com>
13 years agousb/langwell_udc: use pm_runtime_get/put instead of sync functions in atmoic context
Wu, Hao [Sun, 13 Nov 2011 18:04:46 +0000 (02:04 +0800)]
usb/langwell_udc: use pm_runtime_get/put instead of sync functions in atmoic context

BZ: 14275

As we can not put runtime_suspend/runtime_resume into atmoic context, so it
should not be safe to invoke pm_runtime_get/put_sync in atmoic context

Change-Id: I06ebe6c0635e15c16ea765b7b14c538dda91575c
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/23995
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoved/vec: Base ved/vec driver to recent GB R2 version
Li Zeng [Wed, 9 Nov 2011 12:40:32 +0000 (20:40 +0800)]
ved/vec: Base ved/vec driver to recent GB R2 version

BZ 14096

    commit aadc57bad641e43dd9f5b07a5c5654f5f3a2cafc
    Author: Elaine Wang <elaine.wang@intel.com>
    Date:   Fri Oct 21 17:45:09 2011 +0800

        Fix MPEG4 encoding corruption issue.

        BZ: 11720

        The video screen display mosaic when playing a video on the low(30m) or low QVGA mode.

        Some pr2s can't reproduce this issue and some can reproduce this issue consistently.
        Suspect it's caused by Intra16 Bias Table and Inter Bias Table lost during D0i3. Similar
        issue had been observed on H264 dual-core encoding on iCDK B0. To fix this problem, video
        driver saves the bias table and writes them to TopazSC after resume from D0i3.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Change-Id: Ia1431b1abeeb2e96386ab9d34c8c22300e0462cf
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/23889
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoGFX: suspicious: workaround video drm authentification issue on Android
Li Zeng [Fri, 4 Nov 2011 08:02:41 +0000 (16:02 +0800)]
GFX: suspicious: workaround video drm authentification issue on Android

BZ 14096

This is current solution in GB kernel 2.6

Change-Id: I1fd2954d79b7fe5a3314ba750c316883fa86090e
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/23714
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoved/vec: Add video decode/encode driver, move to K3.0 TTM interface
Li Zeng [Thu, 3 Nov 2011 01:57:22 +0000 (09:57 +0800)]
ved/vec: Add video decode/encode driver, move to K3.0 TTM interface

BZ 14096

Change-Id: Ib562ec93ff19e4363e8e3004202b4a626a91a70f
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/23713
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agogpio: add set_wake callback
Bin Yang [Wed, 22 Jun 2011 09:18:10 +0000 (17:18 +0800)]
gpio:  add set_wake callback

BZ: 14180

set_irq_wake function will check desc->chip->set_wake callback.
It will be failed to set IRQ as wake without this callback.

Change-Id: Ib0811a87973853fe024ecb91eeacc9985165a8b8
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/23785
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoPM: stop using deprecated pm framework
Fei Yang [Wed, 9 Nov 2011 22:49:34 +0000 (14:49 -0800)]
PM: stop using deprecated pm framework

BZ: 14180

struct pci_driver->suspend, ->suspend_late, ->resume, and ->resume_early
are deprecated. These are being replaced by struct dev_pm_ops->suspend
and ->resume. PCI driver would trigger kernel warning and stack dump if
the driver is using legacy suspend/resume while struct dev_pm_ops is also
defined.

Change-Id: Iaac0e0a7b16f5768bec3531d395033b105e04b07
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/23784
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agousb/android_gadget: disconnect from host when disabling android_gadget
Wu, Hao [Wed, 9 Nov 2011 23:04:54 +0000 (07:04 +0800)]
usb/android_gadget: disconnect from host when disabling android_gadget

BZ: 13984

This patch adds gadget_disconnect() the first time disabling android_gadget via
userspace interface /sys/class/android_usb/android0/enable. This will ensure the
host can enumerate correctly when it is enabled next time.

Change-Id: Ib4c6c0fb7d72b7a1bcb2120ac0a4d23e7da6ec4b
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/23757
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agocherry-pick clean up betwen the new AOSP android-3.0 and our tree
mgross [Wed, 9 Nov 2011 21:31:15 +0000 (13:31 -0800)]
cherry-pick clean up betwen the new AOSP android-3.0 and our tree

Change-Id: I70ae3e1fb39faaf653f95bf05cd0b00da4fcf850

13 years agoGFX: Enable Panel Backlight and Framebuffer driver
Hitesh K. Patel [Wed, 9 Nov 2011 01:05:48 +0000 (17:05 -0800)]
GFX: Enable Panel Backlight and Framebuffer driver

Enable Graphics backlight so the screen get's turned off
during OSPM.

Enable Framebuffer driver which is needed by Android.

Change-Id: Ife74753e8ba7ecbb9b25971ba3f78b0c498e9ecb
Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
Reviewed-on: http://android.intel.com:8080/23641
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoFork lifted the following commit from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardwa...
sathya [Tue, 8 Nov 2011 23:33:53 +0000 (15:33 -0800)]
Fork lifted the following commit from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git

commit 5e46481b899c2b71f28920387bec8a450ea8c34d
Author: Gilles Rimauro <gilles.rimauro@intel.com>
Date:   Wed Oct 19 13:28:11 2011 +0200

    arch/x86: Workaround to support PR3-PnP board

    BZ: 12576

    This is a workaround in kernel to support Medfield PR3-PnP boards. Without this
    patch, I2C_0 (touchscreen) and I2C_5 (sensors and Audience) are not registered.

    Implementation follows what is currently done for CDK and PRx to provide quick
    support. However, mrst.c and blackbay_pr2.c code has to be cleaned to remove
    hard-coded configurations and rely on SFI table instead. Current SFI table
    already contains most of the needed configurations.

    Change-Id: I1b043d0d10337282c86788b67c1fc85075d82fd4
Signed-off-by: Gilles Rimauro <gilles.rimauro@intel.com>
    Reviewed-on: http://android.intel.com:8080/22020
Reviewed-by: Tardy, Pierre <pierre.tardy@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Change-Id: I7071b5e52bb8228a3b6dddbaefc62f1efe210e24
Reviewed-on: http://android.intel.com:8080/23639
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoAdding accl,compass,als,baro,gyro sensor support
sathya [Tue, 8 Nov 2011 22:35:17 +0000 (14:35 -0800)]
Adding accl,compass,als,baro,gyro sensor support

Change-Id: I680aaec36ec6d045c1060eeae477066c019583a3
Reviewed-on: http://android.intel.com:8080/23632
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoAmbient light sensor support: Fork lifted ltr502als from git://jfumg-gcrmirror.jf...
sathya [Fri, 4 Nov 2011 23:09:37 +0000 (16:09 -0700)]
Ambient light sensor support: Fork lifted ltr502als from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git

Change-Id: I01e5b452a823d49aab584c69563e4b2fc21ea64b
Reviewed-on: http://android.intel.com:8080/23345
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoSupport for baro sensor: fork lifted ms5607 driver from git://jfumg-gcrmirror.jf...
sathya [Fri, 4 Nov 2011 21:32:53 +0000 (14:32 -0700)]
Support for baro sensor: fork lifted ms5607 driver from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git

Change-Id: If05236ef565fbd51641ea322bdcc810cf52d3034
Reviewed-on: http://android.intel.com:8080/23344
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoAdded Gyro sensor driver:
sathya [Fri, 4 Nov 2011 20:33:46 +0000 (13:33 -0700)]
Added Gyro sensor driver:
Fork lifted mpu3050 driver from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git

Change-Id: I82992c5870c3d9327d321d3b4781822eba5354e3
Reviewed-on: http://android.intel.com:8080/23222
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agocompass driver support:
sathya [Tue, 8 Nov 2011 22:17:55 +0000 (14:17 -0800)]
compass driver support:
hmc5883 driver fork lifted from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git

Change-Id: I7013d0930a0eda017da9588d9f2b2df525da3a40
Reviewed-on: http://android.intel.com:8080/23220
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoAdding board based initialization support.
sathya [Tue, 8 Nov 2011 21:27:52 +0000 (13:27 -0800)]
Adding board based initialization support.

Change-Id: I5dcecea2b701a1cd4297e80c29eada81434fef15
Reviewed-on: http://android.intel.com:8080/23631
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoAdding bypass path for PR2 I2c devices.I2c devices in bus 0 & 5 are handeled in black...
sathya [Tue, 8 Nov 2011 21:23:44 +0000 (13:23 -0800)]
Adding bypass path for PR2 I2c devices.I2c devices in bus 0 & 5 are handeled in blackbay_pr2.c.

Change-Id: I46ba5a531e2e657871ac22edf0bea8fc36b5b559
Reviewed-on: http://android.intel.com:8080/23630
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoAccel sensor support & forklift of lis3dh_acc driver from git://jfumg-gcrmirror.jf...
sathya [Tue, 8 Nov 2011 21:39:24 +0000 (13:39 -0800)]
Accel sensor support & forklift of lis3dh_acc driver from git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git,commit id#06dfd4d089008396a737a171afed3eec8b5da87c.

Change-Id: I541c660102a162631d3b559990f3a072aa410d80
Reviewed-on: http://android.intel.com:8080/23114
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoAdding board ID proc entry & OEMB parser
sathya [Thu, 3 Nov 2011 20:49:37 +0000 (13:49 -0700)]
Adding board ID proc entry & OEMB parser

Change-Id: I37c2b43b51b72fd09ec86950cc827863706d2149
Reviewed-on: http://android.intel.com:8080/23108
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoI2C: the i2c controller is expected to be enabled when there is a
Fei Yang [Mon, 7 Nov 2011 22:40:33 +0000 (14:40 -0800)]
I2C: the i2c controller is expected to be enabled when there is a
transfer request. Runtiem resume should only power on and initialize
the device to a known default state. Enabling the device on runtime
resume would trigger a spurious interrupt even when there is no
function driver acutally using the i2c device, thus causing a kernel
panic as dev->msgs == NULL.

Change-Id: I708e0d532aa0cdd7cb5161d8643dd5186d193243
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/23503
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agorecomended changes for mmc driver
mgross [Fri, 4 Nov 2011 20:07:33 +0000 (13:07 -0700)]
recomended changes for mmc driver

Change-Id: Id78f914d9b97ee6fa951a24f5f84ea5e325e0f2d
Reviewed-on: http://android.intel.com:8080/23221
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: core: add background operations for eMMC card
Chuanxiao Dong [Mon, 24 Oct 2011 02:14:26 +0000 (10:14 +0800)]
mmc: core: add background operations for eMMC card

Driver will check if need to do a BKOPS after completed each
user request. If BKOPS is need, then will start BKOPS when
request queue is idle.

So before start user request, driver should also check whether
card is doing a BKOPS. If so, check card status until BKOPS is done
or send HPI command is supported.

Change-Id: I204fab3d124c5a209cb0cc3a2915380a31c22b79
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/23123
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: core: enable BKOPS feature for supported eMMC card
Chuanxiao Dong [Fri, 21 Oct 2011 07:44:54 +0000 (15:44 +0800)]
mmc: core: enable BKOPS feature for supported eMMC card

Background operations is a new feature defined in eMMC4.41 standard.
Since this feature is opertional for eMMC card, so driver only enable
for those eMMC card which supports this feature

Change-Id: I76308fed34b729d511e531fb7827d8f2b16afd3e
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/23122
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: core: support HPI send command
Chuanxiao Dong [Mon, 24 Oct 2011 02:12:40 +0000 (10:12 +0800)]
mmc: core: support HPI send command

HPI command is defined in eMMC4.41. This patch implements sending
HPI command to eMMC card if card supports.

Besides these changes, this patch also exported some sysfs which can
be used check whether the hpi is supported easily

Change-Id: I14ad85fe47a080564731228c3fe816f4f0b847eb
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/23121
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: core: Fix hangs related to cards initialization
Chuanxiao Dong [Mon, 24 Oct 2011 02:34:14 +0000 (10:34 +0800)]
mmc: core: Fix hangs related to cards initialization

This patch is ported from upstream.
Actually we should understand this patch only can fix the hangs related
with cards initialization part. Insert/remove of cards can not only
cause cards initialization, but also some operation in mmc stack block
layer and host layer, which this patch cannot prevent can do nothing with.

Below is the original commint:
----------------------------------------------------------------
mmc: core: Fix hangs related to insert/remove of cards

During a rescan operation mmc_attach(sd|mmc|sdio) functions are
called. The error handling in these function can trigger a detach
of the bus, which also meant a power off. This is not notified by
the rescan operation which then continues to the next attach function.

If a power off has been done, the framework must never send any
new commands to the host driver, without first doing a new power up.
This will most likely trigger any host driver to hang.

Moving power off out of detach and instead handle power off
separately when it is actually needed, solves the issue.

Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <stable@kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
---------------------------------------------------------------
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Change-Id: I7884d9bff2a9d9ef51e72ced03e4517560aedb0d
Reviewed-on: http://android.intel.com:8080/23124
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: SDHCI: fix the issue related with SD card insert/remove
Chuanxiao Dong [Mon, 24 Oct 2011 05:01:52 +0000 (13:01 +0800)]
mmc: SDHCI: fix the issue related with SD card insert/remove

BZ 1605

insert/remove a SD card quickly while the card is inusing, can cause
MMC driver print timeout error message. This is reasonable. But should
not cause system getting slow. This patch will fix this.

Change-Id: Iffb1fe615603f2cd5ab74d28120d38167d317cb7
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/23125
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: SDHCI: add some additional messages for SDHCI driver to dump
Chuanxiao Dong [Mon, 24 Oct 2011 05:10:00 +0000 (13:10 +0800)]
mmc: SDHCI: add some additional messages for SDHCI driver to dump

BZ: 9241

Add some additional debug messages in sdhci_dumpregs for debug purpose.
With this messages, it will be easily to identify what is going on
in driver when we encounter some issue.

Change-Id: I93eb910b808b485536dfd9882d668b4e284cdd28
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/23126
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: SDHCI: The driver should not put the device into a low-power state
Chuanxiao Dong [Mon, 24 Oct 2011 05:59:20 +0000 (13:59 +0800)]
mmc: SDHCI: The driver should not put the device into a low-power state

It is not required (in fact it even is not recommended) that a PCI driver's
suspend() callback save the standard configuration registers of the device,
prepare it for waking up the system, or put it into a low-power state.
All of these operations can very well be taken care of by the PCI subsystem,
without the driver's participation.

Change-Id: I69184088bda601739faf1436629805034c07241f
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/23127
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: Add SD Status register to debugfs
Hao Ying [Thu, 21 Jul 2011 04:36:15 +0000 (12:36 +0800)]
mmc: Add SD Status register to debugfs

BZ:  5522

This patch add the SD status register to debugfs. SD Status register is
a SD card register which contains status bits that are related to the SD
Memory Card proprietary features and may be used by future application-specific
usge, it is helpful to see its value.

Change-Id: Ia9041833bd432bd37df9e1d846aa66a856b19efc
Signed-off-by: Hao Ying <hao.ying@intel.com>
Reviewed-on: http://android.intel.com:8080/23128
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: export the speed class info of SD card to sysfs
Hao Ying [Wed, 20 Jul 2011 07:11:38 +0000 (15:11 +0800)]
mmc: export the speed class info of SD card to sysfs

BZ: 5474

This patch exports the SD status register's speed class info to sysfs

Change-Id: I847ced0d3a632c706c0f7ab93b0dac2f7d6c8d00
Signed-off-by: Hao Ying <hao.ying@intel.com>
Reviewed-on: http://android.intel.com:8080/23129
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: core_sdhci: emmc mutex support for medfield
Chuanxiao Dong [Mon, 24 Oct 2011 08:19:19 +0000 (16:19 +0800)]
mmc: core_sdhci: emmc mutex support for medfield

One of the Medfield eMMC controller (PCI device id 0x0823, SDIO3)
is a shared resource used by the SCU and the IA processors.
SCU primarily uses the eMMC host controller to access the eMMC device's
Boot Partition, while the IA CPU uses the eMMC host controller to
access the eMMC device's User Partition.

After the SCU hands off the system to the IA processor, the IA processor
assumes ownership to the eMMC host controller. Due to absence of any
arbitration at the eMMC host controller, this could result in concurrent
eMMC host accesses resulting in bus contention and garbage data ending up
in either of the partitions.

To circumvent this from happening, eMMC host controller locking mechanism
is employed, where at any one given time, only one agent, SCU or IA,
may be allowed to access the host. This is achieved by implementing
Dekker's Algorithm (http://en.wikipedia.org/wiki/Dekker's_algorithm)
between the two processors.

Before handing off the system to the IA processor, SCU must set up three
housekeeping mutex variables allocated in the shared SRAM as follows:

eMMC_Owner = IA (SCU and IA processors - RW, 32bit)
IA_Req = FALSE (IA -RW, SCU - RO, 32bit)
SCU_Req = FALSE (IA - RO, SCU - R/W, 32bit)

There is no hardware based access control to these variables and so code
executing on SCU and IA processors must follow access rules of
Dekker's algorithm. Detail info about this algorithm can be found in
comments and code of this patch.

Change-Id: I303c18cbab815ce1d71aae8160c3fd595b0a516c
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/23130
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agommc: core: Remove the wakelock.
Chuanxiao Dong [Mon, 24 Oct 2011 09:06:42 +0000 (17:06 +0800)]
mmc: core: Remove the wakelock.

Keep the same usage with MFLD R1 & R2 branch.

The wakelock is not needed in current mmc driver.
This implementation from qualcom is actually conflicting with
our runtime_pm implementation, and the wakelock will stay locked
in return from S3.

Change-Id: I2d75bebc21d16dfec4c7498227c6d110d945d8af
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/23131
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoconfig: enable watchdog driver
German Monroy [Thu, 3 Nov 2011 01:27:00 +0000 (18:27 -0700)]
config: enable watchdog driver

Needed to prevent reboots with some versions of the IFW.

Change-Id: I000e6240598be5b547fdfded85efa0b4ee9dcdb2
Reviewed-on: http://android.intel.com:8080/22988
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agofix touch screen for k30
mgross [Tue, 1 Nov 2011 22:36:59 +0000 (15:36 -0700)]
fix touch screen for k30

Change-Id: Iff7fa9bb9a85e7fc1af98d59327ad24e8ce1ff8e
Reviewed-on: http://android.intel.com:8080/22891
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoenable some SFI tracing in the early startup
mgross [Tue, 1 Nov 2011 21:46:31 +0000 (14:46 -0700)]
enable some SFI tracing in the early startup

Change-Id: I043d476e8470b55c0317b6f464bb975271c73a01
Reviewed-on: http://android.intel.com:8080/22887
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoturn on power button driver so we can wake up the phone after the display trys to...
mgross [Tue, 1 Nov 2011 21:45:53 +0000 (14:45 -0700)]
turn on power button driver so we can wake up the phone after the display trys to turn off

Change-Id: I7871813331181b43e9d16976d67a690247a95745
Reviewed-on: http://android.intel.com:8080/22886
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agoenable kernrel compont building using android tool chain
mgross [Tue, 1 Nov 2011 19:21:24 +0000 (12:21 -0700)]
enable kernrel compont building using android tool chain

Change-Id: Ibe9ecdc9fab633ed49f82c9ddaca8925c998fb64
Reviewed-on: http://android.intel.com:8080/22880
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
13 years agofix up old touch screen implementation
mgross [Thu, 27 Oct 2011 23:50:20 +0000 (16:50 -0700)]
fix up old touch screen implementation

Change-Id: Ib7fe714a770f5295d43a1b40dca40b3abd8a4a16

13 years agofixup configs
mgross [Wed, 26 Oct 2011 23:17:20 +0000 (16:17 -0700)]
fixup configs

Change-Id: I53114a6086aa5083185d0ede156e33a6b9044fc0

13 years agoforklift of touch screen from
mgross [Wed, 26 Oct 2011 23:16:35 +0000 (16:16 -0700)]
forklift of touch screen from
git://jfumg-gcrmirror.jf.intel.com/a/bsp/hardware/intel/linux-2.6.git
commit 3d9f0662a963acad6de0dc2b2c3fb44c07956fbf

Change-Id: Iaced0c8177afcb5f34f75024317c43eae4aff02c

13 years agoUpdates for drm change in K3.0. The fb fix gets local display working but HDMI will...
Jim Bish [Sat, 22 Oct 2011 02:44:23 +0000 (19:44 -0700)]
Updates for drm change in K3.0. The fb fix gets local display working but HDMI will not work correctly._ Please enter the commit message for your changes. Lines starting

Change-Id: I3b3452eccfa4747c903cbb3b243d391af2a6ae24

13 years agofix ttm io space initialization busted in video tare out
mark gross [Fri, 21 Oct 2011 11:37:20 +0000 (04:37 -0700)]
fix ttm io space initialization busted in video tare out

Change-Id: I3ae983b92c40300eebc5c0bd7bd92f3b31751b86

13 years agoRemoved video decode and encode through kernel config for 3.0 port
Jim Bish [Fri, 21 Oct 2011 02:42:12 +0000 (19:42 -0700)]
Removed video decode and encode through kernel config for 3.0 port

Change-Id: Ia52a008d0f3a88389fe9a67ad7d2f7e2dddde81a

13 years agoStarting point for ddk 1.7 upgrade to kernel 3.0
Jim Bish [Thu, 20 Oct 2011 20:52:02 +0000 (13:52 -0700)]
Starting point for ddk 1.7 upgrade to kernel 3.0

Change-Id: Ia1595f7c049900a960f40b9730772d94afbc8ba6

13 years agoADC: fix MSIC GPADC platform device registration issue.
Fei Yang [Fri, 14 Oct 2011 21:00:28 +0000 (14:00 -0700)]
ADC: fix MSIC GPADC platform device registration issue.

All MSIC platform devices are registered through Intel MSIC driver,
however corresponding change needed for ADC device is missing.

Change-Id: I835a15cb44115702f8a5aba296094cc0e09736d5
Signed-off-by: Fei Yang <fei.yang@intel.com>
13 years agosfi: Kill the IRQ as id hack
Alan Cox [Thu, 6 Oct 2011 15:17:41 +0000 (16:17 +0100)]
sfi: Kill the IRQ as id hack

Nothing should now need it so take it out

Change-Id: Idb07dee19761b10e82efe0fc3ffc0179a720ce78
Signed-off-by: Alan Cox <alan@linux.intel.com>
13 years agoSFI tables reside in RAM and should not be modified once they are written.
Alan Cox [Thu, 6 Oct 2011 15:17:36 +0000 (16:17 +0100)]
SFI tables reside in RAM and should not be modified once they are written.
Current code went to set pentry->irq to zero which causes subsequent reads
to fail with invalid SFI table checksum.

To fix this we use temporary variable for irq number.

Change-Id: I3305eb07e9559f8c37364a0a4cfbd1e79a09bc45
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
13 years agox86/mrst: add platform support for MSIC MFD driver
Mika Westerberg [Thu, 6 Oct 2011 15:17:41 +0000 (16:17 +0100)]
x86/mrst: add platform support for MSIC MFD driver

The MSIC MFD driver creates platform devices for MSIC device drivers so we
don't need to create them in platform code anymore.

This patch adds a new runtime check which determines whether we are running
on a Medfield platform and enables the MSIC MFD driver accordingly.

Change-Id: I151613e6bf6c98ef520a1c531c64749942cc2230
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
[Hand applied]
Signed-off-by: Alan Cox <alan@linux.intel.com>
13 years agomfd: add Intel MSIC driver
Mika Westerberg [Thu, 6 Oct 2011 15:17:41 +0000 (16:17 +0100)]
mfd: add Intel MSIC driver

Add support for Intel MSIC chip found on Intel Medfield platforms. This
chip embeds several subdevices: audio, ADC, GPIO, power button, etc. The
driver creates platform device for each subdevice.

We also provide an MSIC register access API which should replace the more
generic SCU IPC interface currently used. Existing drivers can choose
whether they convert to this new API or stick with the SCU IPC interface.

Change-Id: I99d9184a3391887357fba7d8e2cfc105117b5c6a
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
13 years agogpadc: add reg dump after timeout
Bin Yang [Thu, 6 Oct 2011 15:18:35 +0000 (16:18 +0100)]
gpadc: add reg dump after timeout

Sometimes, it is very hard to duplicate ADC timeout issue.
Some issue only can be duplicated on a small quantity of boards.
To add the registers dump after timeout will help debugging.

Change-Id: I875af1654236ff725dfd765fd06a61e454dc2224
Signed-off-by: Bin Yang <bin.yang@intel.com>
13 years agogpadc: fix battery temp accuracy
Bin Yang [Thu, 6 Oct 2011 15:18:35 +0000 (16:18 +0100)]
gpadc: fix battery temp accuracy

From oscilloscope result, BPTHERM takes <1ms to stabilize.
So it needs to add 1ms delay after VBUSREF is enabled.

Change-Id: I34503b94bd9eec73432bfe817bceed18a104edcc
Signed-off-by: Bin Yang <bin.yang@intel.com>
13 years agogpadc: optimize driver initialization
Bin Yang [Thu, 6 Oct 2011 15:18:34 +0000 (16:18 +0100)]
gpadc: optimize driver initialization

ADC trimming cost a long time. It blocks the kernel boot sequence.
Change to do trimming in a single workqueue.

Change-Id: Icd3232fb40d13e1b0c3d544840d2a975fe005d6e
Signed-off-by: Bin Yang <bin.yang@intel.com>
13 years agogpadc: read sample result in one loop
Bin Yang [Thu, 6 Oct 2011 15:18:32 +0000 (16:18 +0100)]
gpadc: read sample result in one loop

RR bit is used to inform HW for sample result read.
it needs to hold the RR bit for all channels result read.

this patch moves the lines to set/clear RR bit outside the loop.

Change-Id: I6e810d03eab6f59d16315fb38ae81864dc37bd02
Signed-off-by: Bin Yang <bin.yang@intel.com>
13 years agogpadc: fix logic err of last addr checking
Bin Yang [Thu, 6 Oct 2011 15:18:32 +0000 (16:18 +0100)]
gpadc: fix logic err of last addr checking

it has logic error to check last addr which is used.

Change-Id: Ia5ec6610b60a402166349369bf03918ec6e89eb4
Signed-off-by: Bin Yang <bin.yang@intel.com>
13 years agogpadc: update the calibration algorithm
Bin Yang [Thu, 6 Oct 2011 15:18:30 +0000 (16:18 +0100)]
gpadc: update the calibration algorithm

gpadc document had updated this algorithm in new version.

This patch updates the driver base on new  document.

Change-Id: I367916df9a394e681dedb5ccf5c6672954250d3c
Signed-off-by: Bin Yang <bin.yang@intel.com>
13 years agogpadc: fix sample result error
Bin Yang [Thu, 6 Oct 2011 15:18:30 +0000 (16:18 +0100)]
gpadc: fix sample result error

During stress test, ADC results have some bad valules.
Driver has a race condition issue. It initializes the output data to 0 first
without any lock. And the caller may access the output pointer before function
return.

This patch moves the output data initializing code inside mutex protected period.
And it also adds a limitation which forbid caller to access output pointer
before function return.

Change-Id: I7a108abf4fc5c0bb7a2e9c135add4f977d29c919
Signed-off-by: Bin Yang <bin.yang@intel.com>
13 years agogpadc: system does not enter S3 after incoming call
He Bo [Thu, 6 Oct 2011 15:18:28 +0000 (16:18 +0100)]
gpadc: system does not enter S3 after incoming call

intel_mid_gpadc driver causes deadlock in S3, fix it.

Change-Id: I9878f3dd97402bbf9b9ad53cfc12e9dda4c90122
Signed-off-by: He Bo <bo.he@intel.com>