Commit graph

305701 commits

Author SHA1 Message Date
paris_yeh
227d812356 confg: cleanup inconsistent config using menuconfig
Change-Id: I9bcdf922c9ab8fb153d1ea004ffacb1f3b171224
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/68033
Reviewed-by: Yetta Wu <Yetta_Wu@asus.com>
Reviewed-by: Jive Hwang <jive_hwang@asus.com>
Tested-by: Jive Hwang <jive_hwang@asus.com>
2013-04-18 16:07:54 -07:00
paris_yeh
bb6628b182 apq8064: pm: debug: print out time spent in suspend using sleep clk
Change-Id: I80c03a00f84d100a8a89ec196dbb64eaf6875235
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/65017
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/68032
Reviewed-by: Jive Hwang <jive_hwang@asus.com>
Tested-by: Jive Hwang <jive_hwang@asus.com>
2013-04-18 16:07:54 -07:00
paris_yeh
b4c9504324 power: debug: enable debugging msg when CONFIG_PM_DEBUG is set
When CONFIG_PM_DEBUG is set, kmsg is able to reflect
  1)status of active wakelock held,
  2)callbacks registered with early_suspend and late_resume, and
  3)when entering kernel PM transition.

Change-Id: I41a7bb3e1ee47a02f80b1433fdeeb5e691acd0e2
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/62176
Reviewed-by: Chuang Simon <Simon_Chuang@asus.com>
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/62899
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/68031
Reviewed-by: Jive Hwang <jive_hwang@asus.com>
Tested-by: Jive Hwang <jive_hwang@asus.com>
2013-04-18 16:07:54 -07:00
yi-hsin_hung
6a413e06cb drivers: usb: otg: Change the PHY control to PMIC control for the power consumption.
Change-Id: Ib37951810c33f96832b12d188106d87ebb481af2
Change-Id: I91f5fb5ed8f6c1795af5c923ec649f03f63a3487
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67938
Reviewed-by: Yi-Hsin Hung <Yi-Hsin_Hung@asus.com>
Tested-by: Yi-Hsin Hung <Yi-Hsin_Hung@asus.com>
Reviewed-by: Leslie Yu <Leslie_Yu@asus.com>
2013-04-18 16:07:53 -07:00
paris_yeh
ad31fba73d arm: keys: Report valid key status when pressing and releasing
Change-Id: I6d225f55973c1650d73cfa429dd442b7f5ccd311
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/61723
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/62898
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/68014
Reviewed-by: Edward Lu <Edward_Lu@asus.com>
2013-04-18 16:07:53 -07:00
paris_yeh
a461c7b566 gpiomux: asustek: Configure VOL_UP/VOL_DOWN with GPIO for flo/deb
Change-Id: I043f466a0be972f553e20227a21f7fda829b7007
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/68013
Reviewed-by: Edward Lu <Edward_Lu@asus.com>
2013-04-18 16:07:53 -07:00
paris_yeh
2303c0d2b0 asustek: keypad: added keypad support for VOL_UP and VOL_DOWN
Removed keypad related codes for qcom's boards

Change-Id: I7e935d1109f5d849fe264a968edfa37af9936f36
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/62920
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/68012
Reviewed-by: Edward Lu <Edward_Lu@asus.com>
2013-04-18 16:07:53 -07:00
paris_yeh
4cd496203e asustek: flo: enabled ram console (/proc/last_kmsg) - append the boot reason to last_kmsg - use persistent ram for ram_console
Change-Id: I3e6ce964d7e76df09f3ef02043fa85d9a194e1b0
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67998
Reviewed-by: Edward Lu <Edward_Lu@asus.com>
2013-04-18 16:07:53 -07:00
yetta_wu
c25e012c4e Display: slimport porting - update to V0.3
1. slimport basic function
2. set gpio 50 as 27M clock (function_2, refer to document 80-N7752-2 p.435)
3. request USB_ID pin (gpio 77) to let detect pin work
4. the version history:

V0.1
The gerenal slimport ANX7808 driver for customer evalutaion and application.

2013-01-08
V0.2
1. Add pull down ID_OUT pin once the slimport accessary is plugged, and left it to default status
   once the accessay is unplugged.
2. If the incoming video is YUV, convert it to RGB colorspace, since our RGB dangle only support RGB.

2013-01-29
V0.3
1. Correct the error in eye diagram test.
2. Correct the phy auto test.

Change-Id: I0d35945b5682ca736ec00b3d5166001f2ab5dfc3
Change-Id: Ibdf3ba27e119f0ae361b28b1f33f7522d5fdf758
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67937
Reviewed-by: Yetta Wu <Yetta_Wu@asus.com>
Tested-by: Yetta Wu <Yetta_Wu@asus.com>
Reviewed-by: Warlock Tai <warlock_tai@asus.com>
2013-04-18 16:07:52 -07:00
singhome_lee
845eed07b9 Dump MIDR id when kernel booting.
From  Qualcomm errta, 8064 V2 SOC has the stability issue if MIDR ID is 0x511F06F0.

Change-Id: Iac4f6081109bd4780156c988de0d115a1cf04425
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67933
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
2013-04-18 16:07:52 -07:00
singhome_lee
ca2d4e94af cpufreq: Create DVFS stress test function.
Change-Id: I98897314ff0df9f4fcf22c9d45b80a43268c8bba
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67932
Reviewed-by: Singhome Lee <singhome_lee@asus.com>
Tested-by: Singhome Lee <singhome_lee@asus.com>
2013-04-18 16:07:52 -07:00
Joy Huang
3a6924ba6e Enable NFC using bcm2079x.
Change-Id: If05e6aeca136cc0e39aa82ef4063f3bf294fbbac
Change-Id: I13f6abf0d1d6a93ff1079f9ac7f2041a7e09c92b
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67868
Reviewed-by: Leslie Yu <Leslie_Yu@asus.com>
Tested-by: Joy Huang <Joy_Huang@asus.com>
2013-04-18 16:07:52 -07:00
sam_chen
f09e036eab Audio: Enable speaker.
1.Use PM8921_GPIO_PM_TO_SYS(18) as speaker amp.
2.Disable wcd9310 headset detection function.

Change-Id: I5a5b8a38ef2cd30efb318a919f9490415302d67c
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67836
Reviewed-by: Jive Hwang <jive_hwang@asus.com>
Tested-by: Jive Hwang <jive_hwang@asus.com>
2013-04-18 16:07:52 -07:00
yetta_wu
3d143f532a Display: SR1 mipi panel porting
1. port LG and panasonic panel
2. remove the choice "LCD Panel" in Kconfig because we need to config multiple mipi panels in one code base
3. pwm and LCD_BL_EN power source change to L17

Change-Id: I793114db222ed7712662495cd7106f1d0d41ddd3
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67830
Reviewed-by: Warlock Tai <warlock_tai@asus.com>
Tested-by: Warlock Tai <warlock_tai@asus.com>
2013-04-18 16:07:51 -07:00
hsuan-chih_chen
ad83fbde85 mmc: add prv , sec_count and rev attr for firmware version, revision and capacity check
can be reached via cat
/sys/devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0:0001/prv
/sys/devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0:0001/rev
/sys/devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0:0001/sec_count

Change-Id: Ia16ad160ea469a637a1167baef6dcdfc67c8d902
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/63303
Reviewed-by: Hsuan-Chih Chen <hsuan-chih_chen@asus.com>
Tested-by: Hsuan-Chih Chen <hsuan-chih_chen@asus.com>
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67879
2013-04-18 16:07:51 -07:00
hsuan-chih_chen
a1c8bbd881 sd: remove sd card support
Change-Id: Ib5750b486683dd0c5f792755df1d18d291fb0106
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67846
Reviewed-by: Hsuan-Chih Chen <hsuan-chih_chen@asus.com>
Tested-by: Hsuan-Chih Chen <hsuan-chih_chen@asus.com>
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
2013-04-18 16:07:51 -07:00
hsuan-chih_chen
a2082deb31 mmc: add SECURE DISCARD CONFIG
default disable

Change-Id: Iabc7c21c87f233a1ca3e2bb0a31ad03749a1cf08
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/63330
Reviewed-by: Hsuan-Chih Chen <hsuan-chih_chen@asus.com>
Tested-by: Hsuan-Chih Chen <hsuan-chih_chen@asus.com>
Reviewed-by: Yeh Paris <paris_yeh@asus.com>
Tested-by: Yeh Paris <paris_yeh@asus.com>
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67851
Reviewed-by: Lin Johnny1 <Johnny1_Lin@asus.com>
Reviewed-by: Nick Cheng <nick_cheng@asus.com>
Tested-by: Nick Cheng <nick_cheng@asus.com>
2013-04-18 16:07:51 -07:00
paris_yeh
a225765d0c deb: initial bring up the deb hardware
Change-Id: I428beb5964726f009cd7a6402de0e83f0cf9924f
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67828
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
2013-04-18 16:07:51 -07:00
paris_yeh
e33d2be0f6 flo: separate flo codes from qcom's codes (apq8064_mtp)
Change-Id: Idb2f3bd99fa3a0b4061a1cd65155bc6fed163048
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67810
Reviewed-by: Edward Lu <Edward_Lu@asus.com>
2013-04-18 16:07:50 -07:00
paris_yeh
f5a64ac213 flo: initial bring up the flo hardware
support the initial flo hardware. enabled basic power, storage,
and debug-uart.

Change-Id: Ie62deb0cb0d3d1ce42878d9d0a68e511e3249a68
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67777
Reviewed-by: Edward Lu <Edward_Lu@asus.com>
Reviewed-by: Victor Chen <Victor_Chen@asus.com>
Tested-by: Victor Chen <Victor_Chen@asus.com>
2013-04-18 16:07:50 -07:00
Iliyan Malchev
bfbc5ab761 mako_defconfig: enable kickstarter bridge over usb
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-18 10:12:45 -07:00
Deva Ramasubramanian
923748c24e msm: vidc: add support for the bitstream_restrict flag
Adds support for the MFC core to add the bitstream_restrict flag in the
sps/pps for H264 codecs.  This allows for the decoder to determine how
many frames to buffer when decoding.

Change-Id: I30dc17a29b9fcc1ee76265f0318a0a581316dd49
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl.h
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_properties.c
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_shared_mem.c
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_shared_mem.h
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_vidc.c
	include/media/msm/vcd_property.h
2013-03-18 10:12:44 -07:00
Iliyan Malchev
7623f46ce5 mako_defconfig: disable the LGE crash handler
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-18 10:12:37 -07:00
Iliyan Malchev
24a803537e Revert "msm_fb: display: Copy splash image to kernel memory"
This reverts commit 4b105e60c4e889c4069bf725113a89f3a7d66ced.

Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	drivers/video/msm/msm_fb.h
2013-03-15 17:29:25 -07:00
Iliyan Malchev
31c05facd9 mako: update board files to jb_2.5
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-15 17:29:01 -07:00
Iliyan Malchev
5b23668c50 mako: add missing include to board-mako-camera.c
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-15 17:28:02 -07:00
Iliyan Malchev
664d1ce6c1 msm_ipc_logging: mark inline functions __always_inline
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-15 17:25:53 -07:00
Iliyan Malchev
1cbd20da69 msm_ion: convert enum to #defines
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-15 17:24:49 -07:00
Iliyan Malchev
7b767245fc remove legacy_ion.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-15 17:24:23 -07:00
Iliyan Malchev
97b83c2355 Revert "Revert "mako: enable lgit lcd driver""
This reverts commit ba14d0b42c.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-15 17:13:31 -07:00
Ajay Dudani
ef1120d0a4 Revert "ASoC: msm: Decrease the playback period size of PCM driver"
This reverts commit b0580099ac7d5e735fb42946612a499bf196cda1.

Change-Id: I487797334cf75978daa3c536ff92de8a54b1f7fb
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
2013-03-15 17:13:31 -07:00
choongryeol.lee
d477b42619 power: pm8921-bms: fix divide by 0 issue when charging
The current code can divide by zero in the scale_soc_while_chg
function if calculated_soc drops while charging.
This patch fix it.

Change-Id: I83c7e9c7056990499f474c9e1882f0377df05f0c
2013-03-15 17:13:30 -07:00
Iliyan Malchev
bd000f8543 Revert "use msm8960_defconfig instead of mako_defconfig"
This reverts commit b78236b2d8.
2013-03-15 17:13:29 -07:00
Jeff Ohlstein
e163bf662a sched_avg: add run queue averaging.
Add code to calculate the run queue depth of a cpu and iowait
depth of the cpu.

The scheduler calls in to sched_update_nr_prod whenever there
is a runqueue change. This function maintains the runqueue average
and the iowait of that cpu in that time interval.

Whoever wants to know the runqueue average is expected to call
sched_get_nr_running_avg periodically to get the accumulated
runqueue and iowait averages for all the cpus.

Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
(cherry picked from commit 0299fcaaad80e2c0ac9aa583c95107f6edc27750)

Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
(cherry picked from commit 5325d8a44f8296170cd8f42e245dd79f7b7347bf)

Change-Id: I92875789886c3f7c2457a063de4b3b6d8c893718
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-15 17:13:29 -07:00
Devin Kim
2b64f6b785 pm8xxx-adc: add the functions to set tuning parameters
We need to tune the board specific adcmap parameters
So need functions to set specific parameters.

void pm8xxx_set_adcmap_btm_threshold(void *pts, int size)
void pm8xxx_set_adcmap_pa_therm(void *pts, int size)
void pm8xxx_set_adcmap_ntcg_104ef_104fb(void *pts, int size)

Change-Id: Ie78c11f5fb998ecc456defa3c8e3e7a3e0b9b45f
2013-03-15 17:13:28 -07:00
David Keitel
4a52ad6f2b power: pm8921-charger: fix sub revision check
Rather than checking for the value 1 check that
bit zero is set.

Change-Id: Ie2842b28648084d8970329d7c76fcf0d0666a847
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-15 17:13:28 -07:00
David Keitel
dd8dd68b32 power: pm8921-charger: distinguish between PMIC 3.0.1 and 3.0
Some workarounds that are required for PMIC die version 3.0
differ slightly for die version 3.0.1.

Fix this by checking the PMIC subversion register to distinguish
between 3.0 and 3.0.1.

CRs-Fixed: 403150
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
(cherry picked from commit 913c55e2706c36132fd42f90c05530b8e55a26ed)

Conflicts:

	drivers/power/pm8921-charger.c

Change-Id: I11155d6180de09e1b9e0137f7943603d44102d07
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-15 17:13:27 -07:00
choongryeol.lee
37c59c5e44 power: pm8921-bms: increase accuracy of voltage during charging adjusting
During charging adjustment, the measurement of voltage is not accurate.
Since the measured voltage during charging adjustment is not OCV
(open circuit voltage), it cannot show real battery voltage at CC to CV
point. But current implementation use inaccurate voltage as a voltage of
CC to CV point. This inaccurate voltage of CC to CV point can cause
wrong SoC adjusting. For instance, the SoC could stick at fixed value
until end of charging.
This patch increase accuracy of voltage measurement by using battery
current and battery resister.

Change-Id: I3a4cc4e58e409be5422ec6bf64678a9a92b9fe25
2013-03-15 17:13:26 -07:00
choongryeol.lee
1819bd4e44 power: pm8921-bms: fix soc rising from 99% to 100% during discharging
We observed that SoC suddenly increase from 98% or 99% to 100%
right after charger removal. This issue caused by charging adjusting
algorithm which adjust SoC to sync 100% with end of charging.
During charging adjustment, the adjusted SoC could be smaller than
original SoC. So when we remove charger, charging adjusting algorithm
stop adjusting SoC and then bms report original SoC which is larger
than before.

Previously, bms driver considered most of this case by using previous
SoC when SoC increase during discharging. But if SoC is 100%, previous
patch doesn't work.
So this patch add SoC 100% case by checking if charger is enabled.

Change-Id: I70945d391c9d821eaf875f1bcd1e8787077b98da
2013-03-15 17:13:26 -07:00
Iliyan Malchev
491b58e1ca Revert "msm: power: Revert LGE power patches"
This reverts commit 2f24cb771c.
2013-03-15 17:13:25 -07:00
Iliyan Malchev
b8c65bc60a Revert "msm: power: update power drivers to msm-3.4 tip"
This reverts commit fae0afd7be.
2013-03-15 17:13:24 -07:00
Iliyan Malchev
2625e4584b Revert "msm: power: update copyright markings"
This reverts commit 3f9f19a7c50fe47e1b963c25c68cc3ed89dd25a8.
2013-03-15 17:13:23 -07:00
Iliyan Malchev
a0e2488b39 Revert "power: pm8921-charger: don't apply kickstart unless it is 8921 pmic"
This reverts commit 22e27d01fe204b41e0ae415cafaf320ac1500234.
2013-03-15 17:13:23 -07:00
Iliyan Malchev
0fd7b8e1a9 Revert "power: pm8921-bms: fix the mismatch of container_of member type"
This reverts commit 879df6553254868150616f051a641f2d2e4bdfc6.
2013-03-15 17:13:22 -07:00
Iliyan Malchev
995c4f62d3 Revert "power: pm8921-charger: fix a potential array out of bound access"
This reverts commit 0f1be62ee48338994611035d664d26fadabeb2fb.
2013-03-15 17:13:22 -07:00
Iliyan Malchev
4f9e5f593a Revert "power: pm8921-charger: Support multiple vbus requests"
This reverts commit 51ab66c6a8cc19898971570d41fdf846c18f43eb.
2013-03-15 17:13:21 -07:00
Iliyan Malchev
c5d10ae0e5 Revert "power: pm8921-charger: disable AICL"
This reverts commit a6a33432dc20a3e43539dfa22ca25d51c6c9d57f.
2013-03-15 17:13:20 -07:00
Iliyan Malchev
3d2444690c Revert "power: pm8921-charger: force 19.2Mhz while writing to a register"
This reverts commit c77b173eebe4781dd37103a505e246c20213ab03.
2013-03-15 17:13:20 -07:00
Iliyan Malchev
c77ba171cd Revert "power: pm8921-charger: add boundary check for out of bounds issues"
This reverts commit dcf3cb14cb70b2517647f6091adc2fb95e46b426.
2013-03-15 17:13:19 -07:00
Iliyan Malchev
7e2ca03d39 Revert "power: pm8921-charger: Do not update "type" property of usb_psy"
This reverts commit 8f82b881f1e2a4828c89fa4f9d3b59b398127766.
2013-03-15 17:13:18 -07:00