platform/kernel/kernel-clovertrail.git
10 years agoAdded packaging dir and spec files for building under OBS
Austin Zhang [Thu, 22 Aug 2013 11:04:58 +0000 (19:04 +0800)]
Added packaging dir and spec files for building under OBS

Note:
[Fixme]Disable perf due to Tizen doesn't have flex

Change-Id: Ifaf924353e51b80a89dc65ccff98f61b83b74690
Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agofix kernel compile error with old gcc version
Austin Zhang [Thu, 22 Aug 2013 10:59:59 +0000 (18:59 +0800)]
fix kernel compile error with old gcc version

Signed-off-by: Peng Li <peng.li@intel.com>
Signed-off-by: Austin Zhang <austin.zhang@intel.com>
10 years agotouch/synaptics_i2c_rmi_ex: separate touchkey into different input device
Yin Kangkai [Thu, 22 Aug 2013 09:11:25 +0000 (17:11 +0800)]
touch/synaptics_i2c_rmi_ex: separate touchkey into different input device

Separate touch key as different input device, so that is more convenient for
user space X input driver(evdev/evdevmultitouch) to handle.

Change-Id: Ifba8d2c78f5aea66d11d73f8c6acbb1b8e185aea
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agotouch/synaptics_i2c_rmi_ex: indent only
Yin Kangkai [Wed, 21 Aug 2013 06:27:25 +0000 (14:27 +0800)]
touch/synaptics_i2c_rmi_ex: indent only

./scripts/Lindent drivers/input/touchscreen/synaptics_i2c_rmi_ex.c

Change-Id: I3f2bee6908e2fa31afcc4ac93df6581c41b9dd4f
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agotouch/synaptics_i2c_rmi_ex: enable the touch driver
Yin Kangkai [Thu, 15 Aug 2013 10:22:47 +0000 (18:22 +0800)]
touch/synaptics_i2c_rmi_ex: enable the touch driver

Give some quick and dirty work arounds to enable the touch driver, so that
touch does not block other components' bring up work.

FIXME: this driver needs heavily clean up for sure.

Change-Id: I8a15167e80e7ab122986cd3b60ef6455c530346b
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agogfx/fb: another work around to enable X with frame buffer
Yin Kangkai [Wed, 14 Aug 2013 09:32:32 +0000 (17:32 +0800)]
gfx/fb: another work around to enable X with frame buffer

Turns out we need this work around too to enable X/fb.

Change-Id: If624ec0124771959b124679884513a0afed66591
Signed-off-by: Li Peng <peng.li@intel.com>
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agogfx/fb: work around to enable X with frame buffer
Yin Kangkai [Tue, 13 Aug 2013 06:03:46 +0000 (14:03 +0800)]
gfx/fb: work around to enable X with frame buffer

For unknown reason (yet), although X with fb driver launches successfully, but
there is nothing show up in the panel/screen, this is a temporary work around
to enable that.

Signed-off-by: Li Peng <peng.li@intel.com>
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agoExport usb connection status
Chengwei Yang [Thu, 13 Jun 2013 01:45:58 +0000 (09:45 +0800)]
Export usb connection status

There are several components depends on kernel export usb connection
status correctly. First, system-server check usb status by calling OEM
interface to launch usb-server; second, usb-server does the usb mode
setting work and launch syspopup. In addition, setting usb mode from UI
depends on usb-server too.

This also fix TZSP-3142.

Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
[Port from mfld kernel and support CTP]
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agoMisc: import Jack Monitoring Interface from samsung
vivian, zhang [Thu, 13 Jun 2013 01:45:28 +0000 (09:45 +0800)]
Misc: import Jack Monitoring Interface from samsung

Jack monitor framework monitors jack events (e.g. earjack, usb) and then
export through /sys.

Both sound and usb driver has some dependency on this framework.

(FIXME: we should isolate this jack monitor framework, independent of sound or
usb patches)

For the sound driver, it is used to set jack status: earjack_online,
earkey_online; these status are required for earjack type detecting in
avsystem project.

Signed-off-by: Vivian Zhang <vivian.zhang@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
[Port to support CTP platform, and add FIXME]
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agogfx: build in sgx.o and make sure sgx.o is load after gfx.o
Yin Kangkai [Fri, 9 Aug 2013 03:43:19 +0000 (11:43 +0800)]
gfx: build in sgx.o and make sure sgx.o is load after gfx.o

Make sure sgx component is initialized after gfx component, otherwise there
will be a BUG:

[    1.320399] BUG: unable to handle kernel NULL pointer dereference at 00000294
[    1.327797] IP: [<c17ecea9>] SYSPVRFillCallback+0x9/0xd0
[    1.333315] *pdpt = 0000000000000000
[    1.335913] sep_sec_driver 0000:00:01.5: Chaabi status from SCU 11112222
[    1.343804] *pde = 20676e696c6c0a0d
[    1.347570] Oops: 0000 [#1] PREEMPT SMP
[    1.351667] Modules linked in:
[    1.354809]
[    1.356444] Pid: 1, comm: swapper/0 Not tainted 3.4.34-00004-g37403a5-dirty #27 Intel Corporation CloverTraill
[    1.367590] EIP: 0060:[<c17ecea9>] EFLAGS: 00010296 CPU: 3
[    1.373221] EIP is at SYSPVRFillCallback+0x9/0xd0
[    1.377970] EAX: 00000000 EBX: 00000006 ECX: 00001211 EDX: 00000000
[    1.384379] ESI: 00000179 EDI: c1e690bc EBP: f2c83f60 ESP: f2c83f5c
[    1.390691]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[    1.396133] CR0: 8005003b CR2: 00000294 CR3: 01e81000 CR4: 000007f0
[    1.402541] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    1.408849] DR6: ffff0ff0 DR7: 00000400
[    1.412729] Process swapper/0 (pid: 1, ti=f2c82000 task=f2c88000 task.ti=f2c82000)
[    1.420439] Stack:
[    1.422488]  00000006 f2c83f70 c1e13f71 c1c85966 00000006 f2c83fa0 c1201034 00000000
[    1.430746]  c1c1dde4 00060001 c1d4b230 f360a58d c1e13f56 00000000 00000006 00000179
[    1.439003]  c1e690bc f2c83fc4 c1de97f8 00000179 00000006 00000006 c1de92bf c1e689f4
[    1.447143] Call Trace:
[    1.449749]  [<c1e13f71>] PVRSRVDrmInit+0x1b/0x5c
[    1.454512]  [<c1201034>] do_one_initcall+0x34/0x170
[    1.459536]  [<c1e13f56>] ? lowmem_init+0x11/0x11
[    1.464398]  [<c1de97f8>] do_basic_setup+0x8a/0xa3
[    1.469249]  [<c1de92bf>] ? do_early_param+0x74/0x74
[    1.474371]  [<c1de98b0>] kernel_init+0x9f/0x123
[    1.479049]  [<c1de9811>] ? do_basic_setup+0xa3/0xa3
[    1.484172]  [<c19fce3a>] kernel_thread_helper+0x6/0x10
[    1.489444] Code: 26 00 55 89 e5 3e 8d 74 26 00 e8 d3 d1 00 00 5d 83 f8 01 19 c0 f7 d0 83 e0 ea c3 8d b4 26 0
[    1.5041[    1.509336] ---[ end trace e5fdc0f6bb87e119 ]---

Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agoSupport usb mode framework in Tizen
Chengwei Yang [Fri, 7 Jun 2013 02:56:44 +0000 (10:56 +0800)]
Support usb mode framework in Tizen

So far, we have a forked usb-server for PR3 to make sure the usb mode
framework works on PR3. However, we'd like to patch kernel now rather
than maintain another forked package.

This is the correct way because there maybe no way to work out without
patch kernel in future. So it's better to patch one rather than two.

Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
10 years agoChange adb protocol to sdb protocol
Chengwei Yang [Fri, 7 Jun 2013 02:55:23 +0000 (10:55 +0800)]
Change adb protocol to sdb protocol

Currently, we have a forked sdbd for our kernel so there was no need to
patch our kernel.

However, the forked sdbd will be merged to upstream sdbd and to make it
compatible with adb in userspace cost a large effort.

So the better way is patch our kernel to adopt sdb protocol, on the
other hand, no patch needed to sdbd user space server and client.

Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
10 years agoconfigs: i386_tizen_defconfig
Yin Kangkai [Thu, 8 Aug 2013 13:11:25 +0000 (21:11 +0800)]
configs: i386_tizen_defconfig

Add a basic functional (boot to cmdline, and fb ok) def config, that works for
P940F01 device.

Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
10 years agointel_mdf_battery.c: Fix build error section mismatch
Yin Kangkai [Thu, 8 Aug 2013 10:36:53 +0000 (18:36 +0800)]
intel_mdf_battery.c: Fix build error section mismatch

WARNING: drivers/power/built-in.o(.text+0x80dc): Section mismatch in
reference from the function msic_battery_probe() to the function
.init.text:sfi_table_populate()
The function msic_battery_probe() references
the function __init sfi_table_populate().
This is often because msic_battery_probe lacks a __init
annotation or the annotation of sfi_table_populate is wrong.

10 years agoinitial import
Yin Kangkai [Thu, 26 Dec 2013 14:32:00 +0000 (22:32 +0800)]
initial import

Change-Id: I10a809ebfe35facab3592c6bdd87f6ccca8e2e68