summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Clear OWNERS for factory/firmware branchfirmware-heli-5216.392.BBrian Norris2021-09-101-0/+1
| | | | | | | | | | | | BUG=none TEST=none Change-Id: I0f03f432ada1064ffba9595be78ca7ab4d25ecd1 Signed-off-by: Brian Norris <briannorris@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3155187 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Owners-Override: Jora Jacobi <jora@google.com> Tested-by: Jack Rosenthal <jrosenth@chromium.org>
* Fixed a failure of power button press while entering G3 state.Kaiyen Chang2015-08-191-5/+41
| | | | | | | | | | | | | | | | | | | | | | | | If the power button is pressed while S5 inactivity timer is about to expire, EC need to give CPU a little time to start up before changing the state from S5 to G3 (the hard off state); otherwise the system will not start up. This issue can be reproduced on Rambi. BUG=chrome-os-partner:42728, chrome-os-partner:42811 BRANCH=None TEST=Implement an ec command to simulate power button press while S5 inactivity timer is about to expire, and then make sure that the patch did solve the issue. Change-Id: I022e8e14fd41447898760a4d57a4702e2c00a0d5 Signed-off-by: Kaiyen Chang <kaiyen.chang@intel.com> Reviewed-on: https://chromium-review.googlesource.com/290280 Reviewed-by: Shawn N <shawnn@chromium.org> (cherry picked from commit 8f6e54aca00ac2336aab636267824d5210942c17) Reviewed-on: https://chromium-review.googlesource.com/294223 Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Vineeth Starly <vineeths@google.com> Trybot-Ready: Vineeth Starly <vineeths@google.com> Tested-by: Vineeth Starly <vineeths@google.com>
* Heli: Modify the AC LED color to green when the battery has a fullJeank Li2015-07-301-2/+2
| | | | | | | | | | | | | | | | | | | | charge or near the full charge. BUG=chrome-os-partner:43393 BRANCH=heli TEST=1.Run "make buildall -j" or "emerge-heli chromeos-ec" to build code and generate the ec.bin . 2.Find a DUT with a full charge battery and set the gbb to 0x239. 3.Use the command "flashrom -p ec -w ec.bin" to flash the ec.bin on the DUT,reboot and check the AC LED color. Signed-off-by: Jeank Li <lijun7@huaqin.com> Change-Id: Ifd059047429b1811505ee8060b3096cd896a91e4 Reviewed-on: https://chromium-review.googlesource.com/289166 Reviewed-by: Mohammed Habibulla <moch@google.com> Reviewed-by: 俊 李 <lijun7@huaqin.com> Commit-Queue: 俊 李 <lijun7@huaqin.com> Tested-by: 俊 李 <lijun7@huaqin.com>
* Heli:modify charge current limited setting for therm function.lemonli2015-07-301-0/+1
| | | | | | | | | | | | | | | | | | | 1.charge current can't over 2.8A 2.reason:to reduce the dut casing temperature. BRANCH=heli BUG=chrome-os-partner:43294 TEST=verify by power&therm engineers. Signed-off-by: lemonli <lining@huaqin.com> Change-Id: Id4ff948eeb7923ee30338683f4b439aafaa0b968 Reviewed-on: https://chromium-review.googlesource.com/288411 Commit-Queue: LEMON LI <lining@huaqin.com> Tested-by: LEMON LI <lining@huaqin.com> Reviewed-by: Mohammed Habibulla <moch@google.com>
* heli: exchange led colors&status for final circuit.lemonli2015-07-072-3/+3
| | | | | | | | | | | | | BUG=chrome-os-partner:42134 TEST=local build & verified BRANCH=heli Signed-off-by: lemonli <lining@huaqin.com> Change-Id: I6285c2b3b11c395dc9ee10701573187c9b53231d Reviewed-on: https://chromium-review.googlesource.com/283287 Tested-by: LEMON LI <lining@huaqin.com> Commit-Queue: LEMON LI <lining@huaqin.com> Reviewed-by: Mohammed Habibulla <moch@google.com>
* Sumo: Implement brightness buttonsTed Kuo2015-06-254-0/+20
| | | | | | | | | | | | | | | Add brightness up/down button to control display panel backlight. BUG=chrome-os-partner:39182 TEST=make -j buildall, verified BRANCH=None Signed-off-by: Ted Kuo <tedkuo@ami.com.tw> Change-Id: I02c8d273c60bcb50c76ee9e3d20c8b544638556d Reviewed-on: https://chromium-review.googlesource.com/281490 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: Ted Kuo <tedkuo@ami.com.tw> Tested-by: Ted Kuo <tedkuo@ami.com.tw>
* Heli: Init BoardJeank Li2015-06-198-0/+652
| | | | | | | | | | | | Copy rambi setting to init board. BUG=none BRANCH=firmware-heli-5216.B TEST=Run "make board=heli" and "make buildall -j" to build code and ec.bin can be generated Signed-off-by: Jeank Li <lijun7@huaqin.com> Change-Id: I18306c756307401e4dba1204937ef7315fc70cd5 Reviewed-on: https://chromium-review.googlesource.com/278180 Reviewed-by: Mohammed Habibulla <moch@google.com>
* Initialize the memory-mapped AC_PRESENT flagTed Kuo2015-05-271-0/+8
| | | | | | | | | | | | | | | | The memory-mapped AC_PRESENT flag needs to be initialized for the batteryless projects. BUG=chrome-os-partner:40384 TEST=make -j buildall, make -j tests BRANCH=None Signed-off-by: Ted Kuo <tedkuo@ami.com.tw> Change-Id: Ia64ad6564f99b4aae060d29a572b4fe173da62d9 Reviewed-on: https://chromium-review.googlesource.com/273082 Tested-by: Ted Kuo <tedkuo@ami.com.tw> Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
* Orco: Add charger settingsH.J. Liao2015-04-241-0/+24
| | | | | | | | | | | | | | | | | Fellow Hoofer charger's setting. (Disable the LDO mode, Enable SYSOVP) BUG=chrome-os-partner:39355 BRANCH=orco TEST=Build FW and check battery charge to full. Change-Id: I21f6908b95dec085a825aff8771a02bb5a2fc690 Signed-off-by: H.J. Liao <h.j.liao@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/266864 Reviewed-by: Sheng-liang Song <ssl@chromium.org> Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
* Orco: Enable battery green book modeH.J. Liao2015-04-241-0/+12
| | | | | | | | | | | | | | | | The green book is a function in battery that adjust charge current based on temperature or other condition. BUG=chrome-os-partner:39355 BRANCH=orco TEST=Build FW and check battery charge to full. Change-Id: I31113cb8abff751bb18a6ebe779df9f860ad8aa4 Signed-off-by: H.J. Liao <h.j.liao@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/266863 Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
* Orco: support "ectool batterycutoff at-shutdown"H.J. Liao2015-04-232-16/+37
| | | | | | | | | | | | | | | | | use "ectool batterycutoff at-shutdown" instead of "ectool batterycutoff". BRANCH=orco BUG=chrome-os-partner:39356 TEST=Build F/W and run command "ectool batterycutoff at-shutdown;poweroff". The system won't boot up until the AC plugin. Change-Id: I97b8fdc62c1c10483f2c870151f76f303a565360 Signed-off-by: H.J. Liao <h.j.liao@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/266857 Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
* Orco: Add battery supportH.J. Liao2015-04-221-7/+7
| | | | | | | | | | | | | | | Change the battery parameters from battery spec. BUG=chrome-os-partner:39355 BRANCH=orco TEST=Build FW and check battery charge to full. Change-Id: I4120736e8888cfe873ab41b0a7430118df820681 Signed-off-by: H.J. Liao <h.j.liao@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/266614 Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
* Revert "Sumo: Implement brightness buttons"Mohammed Habibulla2015-04-224-21/+0
| | | | | | | | | | This reverts commit edd4022a94fd6059d23f0ceda80a2c56eb9a50a3. Change-Id: I68d483d4d558529bcc5a652a69fa34b1750d1092 Reviewed-on: https://chromium-review.googlesource.com/266781 Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Mohammed Habibulla <moch@google.com> Tested-by: Mohammed Habibulla <moch@google.com>
* Sumo: Implement brightness buttonsTed Kuo2015-04-174-0/+21
| | | | | | | | | | | | | | | Add brightness up/down button to control display panel backlight. BUG=chrome-os-partner:39182 TEST=Compiled, verified BRANCH=None Signed-off-by: Ted Kuo <tedkuo@ami.com.tw> Change-Id: I817297137d9e318603362767620f153af58b988d Reviewed-on: https://chromium-review.googlesource.com/265848 Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Ted Kuo <tedkuo@ami.com.tw> Tested-by: Ted Kuo <tedkuo@ami.com.tw>
* Orco: Init boardH.J. Liao2015-04-078-0/+653
| | | | | | | | | | | | | | | | Copy enguarde setting to init board. BUG=none BRANCH=orco TEST=Run "make BOARD=orco" and "make buildall -j" to build code and ec.bin can be generated. Change-Id: I0b3f4b21f16ad5d1e36c872a1694decd175e8d65 Signed-off-by: H.J. Liao <h.j.liao@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/264270 Commit-Queue: 凰志 廖 <H.J.Liao@quantatw.com> Tested-by: 凰志 廖 <H.J.Liao@quantatw.com> Reviewed-by: Shawn N <shawnn@chromium.org>
* Ninja, Sumo: Implement recovery buttonTed Kuo2015-04-034-0/+8
| | | | | | | | | | | | | | | Enable recovery button function. BUG=chrome-os-partner:38707 TEST=make -j buildall, make -j tests BRANCH=None Signed-off-by: Ted Kuo <tedkuo@ami.com.tw> Change-Id: I0518f26722d3af0932d82c23c30d906799ab7348 Reviewed-on: https://chromium-review.googlesource.com/263384 Tested-by: Ted Kuo <tedkuo@ami.com.tw> Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
* Banjo: Change the discharge temperature pointHsu Henry2015-04-021-1/+1
| | | | | | | | | | | | | Change the discharge temperature to 0~60C. BUG=chrome-os-partner:38705 BRANCH=banjo TEST=make BOARD=banjo Change-Id: I9c76f1a409709aea7bf6b1b5ae5747a93a04f023 Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/263663 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* Ninja, Sumo: Implement power LEDTed Kuo2015-04-026-50/+76
| | | | | | | | | | | | | | | Based on the code cloned from Rambi, and implement power LED control. BUG=None TEST=make -j buildall, make -j tests BRANCH=None Signed-off-by: Ted Kuo <tedkuo@ami.com.tw> Change-Id: I9c89186dd6731a5bbacbd153847288896cd573dc Reviewed-on: https://chromium-review.googlesource.com/263160 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: Ted Kuo <tedkuo@ami.com.tw> Tested-by: Ted Kuo <tedkuo@ami.com.tw>
* Banjo: add 100 us dealy for smart battery read/write commandHsu Henry2015-03-311-0/+1
| | | | | | | | | | | | | | | Adding 100 us dealy will improve the SMbus error for battery. BUG=chrome-os-partner:37842 BRANCH=banjo TEST=test with banjo, 100us. With the particular battery, no error occurs. CQ-DEPEND=CL:262853 Change-Id: Ica34f071185ad5104bfa47f0dccb4b24ed9850fc Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/262854 Reviewed-by: Sheng-liang Song <ssl@google.com>
* Smart battery: Add delay time for battery read/writeHsu Henry2015-03-312-0/+11
| | | | | | | | | | | | | | Some battery pack can't response ec command. Adding some dealy will improve it. BUG=chrome-os-partner:37842 BRANCH=banjo TEST=test with banjo, 100us. With the particular battery, no error occurs. Change-Id: Ia40dc7d5286525d54641893d900dfe3a345a2156 Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/262853 Reviewed-by: Sheng-liang Song <ssl@google.com>
* Ninja, Sumo: remove unused functionsTed Kuo2015-03-3112-293/+9
| | | | | | | | | | | | | | | | 1. remove battery and charger 2. remove keyboard BUG=None TEST='emerge-ninja chromeos-ec', 'emerge-sumo chromeos-ec' BRANCH=None Signed-off-by: Ted Kuo <tedkuo@ami.com.tw> Change-Id: I87d030583e653535433f2efd9e9e62b570c000c8 Reviewed-on: https://chromium-review.googlesource.com/262352 Tested-by: Ted Kuo <tedkuo@ami.com.tw> Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
* Ninja: Initial EC commitTed Kuo2015-03-248-0/+652
| | | | | | | | | | | | | | | Cloned from Rambi to Ninja with only string changes BUG=None TEST=emerge-ninja chromeos-ec BRANCH=None Signed-off-by: Ted Kuo <tedkuo@ami.com.tw> Change-Id: Ie7a8ce21ee710a74468792d0d5d6b84b4a6d4577 Reviewed-on: https://chromium-review.googlesource.com/260748 Tested-by: Ted Kuo <tedkuo@ami.com.tw> Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
* Sumo: Initial EC commitKayalvizhi Dhandapani2015-03-098-0/+652
| | | | | | | | | | | | | BUG=None TEST=None BRANCH=None Signed-off-by: Kayalvizhi Dhandapani <kayalvizhid@ami.com> Change-Id: I4e3679d9c8e5ea99fa290f578a45fc4a476a35e1 Reviewed-on: https://chromium-review.googlesource.com/255160 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: kayalvizhi dhandapani <kayalvizhid@ami.com> Tested-by: kayalvizhi dhandapani <kayalvizhid@ami.com>
* Banjo: modify the sensor locationHsu Henry2015-03-041-2/+2
| | | | | | | | | | | | | | The sensor location of Banjo is different to Gnawty. Swap the two sensor locations will make it normal. BUG=chrome-os-partner:37423 BRANCH=banjo TEST="make BOARD=banjo" Change-Id: I5f980f6c64aa50a13cfc113371ca33539860639a Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/255852 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* Banjo: Update battery parametersHsu Henry2015-03-042-28/+18
| | | | | | | | | | | | | | | Banjo shares Yuna's battery. So keep the battery parameters same as Yuna. BUG=chrome-os-partner:36311 BRANCH=banjo TEST=The charger and battery work properly. CQ-DEPEND=CL:251946 Change-Id: Icda19c5cc1874c561ba95e89641e8d4a843f960c Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/251947 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* Charger: add new charger BQ24717 driverHsu Henry2015-03-043-0/+355
| | | | | | | | | | | | | | BUG=chrome-os-partner:36311 BRANCH=banjo TEST=Use board banjo and enable BQ24717 config. The 4S battery works properly. (BQ24715 limit the charge voltage to 0x3ff0) Change-Id: I3abf53373a667002c73a8429981b75671236a485 Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/251946 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
* Banjo: led controlHsu Henry2015-02-262-46/+68
| | | | | | | | | | | | | New led control from Yuna since it is close to CrOS UI. BUG=none BRANCH=banjo TEST="make BOARD=banjo" Change-Id: If7315c7da67f1d08ca0ed4cb584950f9c14dfeee Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/253330 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* Banjo: Init boardHsu Henry2015-02-188-0/+728
| | | | | | | | | | | | | | | | Copy gnawty setting to init board. BUG=none BRANCH=banjo TEST=Run "make BOARD=banjo" and "make buildall -j" to build code and ec.bin can be generated. Change-Id: I627bb46f5dca0a4e1f76b09ed9103b9a15d5b9b9 Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/248950 Tested-by: Katherine Hsieh <Katherine.Hsieh@quantatw.com> Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: David Wu <david_wu@quantatw.com>
* cranky: Apply PB4 for BAT_PRESENT_L function.Grover Yen2014-12-222-0/+4
| | | | | | | | | | | | | | Add BAT_PRESENT_L to distinguish battery/non-battery SKU. BUG=chrome-os-partner:33527 BRANCH=none TEST=make -j buildall, make -j tests Change-Id: Id69843826424f1bfc2d37b813239f18923f21318 Signed-off-by: Grover Yen <Grover_Yen@wistron.com> Reviewed-on: https://chromium-review.googlesource.com/236850 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* Candy: Add touchscreen enable pin control for Elan touchscreen power-on sequenceBruce Wan2014-11-144-0/+26
| | | | | | | | | | | | | | | | | Candy use TS_EN to enable touchscreen, and TOUCH_RST_L for RESETB signal, so we need add TOUCHSCREEN_ENABLE control for Elan touchscreen power-on sequence. BUG=chrome-os-partner:32284 BRANCH=rambi TEST=manual Candy use TS_EN to enable touchscreen, and TOUCH_RST_L for RESETB signal. Signed-off-by: Bruce Wan <Bruce.Wan@quantatw.com> Change-Id: Ia1f568302c17ab7ed31220370412b1c27ae5dc2f Reviewed-on: https://chromium-review.googlesource.com/228983 Tested-by: Bruce Wan <Bruce.Wan@quantatw.com> Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: Devin Lu <Devin.Lu@quantatw.com>
* EC:KBC: Wait until LPC host senses the IRQ and gets the character.Kenji Chen2014-10-281-1/+6
| | | | | | | | | | | | BRANCH=master BUG=chrome-os-partner:29139 TEST=Buiid an EC FW image and run on Rambi to test if key loss is improved and any side effect somes with this change. Need more test units to confirm this. Signed-off-by: Kenji Chen <kenji.chen@intel.com> Change-Id: I2399e33d2ca3defe8cd9b1f94ab0af1db7f84635 Reviewed-on: https://chromium-review.googlesource.com/226005 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* Parry: Initial EC commitKayalvizhi Dhandapani2014-10-168-0/+652
| | | | | | | | | | | BUG=None TEST=Compiled, Tested on rambi BRANCH=Rambi 5216.B Change-Id: Ie9ff81f8c9a5ed2e45473cc14106183b6850f201 Signed-off-by: Kayalvizhi Dhandapani <kayalvizhid@ami.com> Reviewed-on: https://chromium-review.googlesource.com/223131 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* cranky: Modify battery LED settings to meet cranky ID design.Grover Yen2014-10-143-22/+23
| | | | | | | | | | | | | | | Exchange PWM channel of battery LED and change battery LED green color to blue color. BUG=none BRANCH=none TEST=Confirm battery LED is violet color in normal charge case and it is blue if battery level near full. Change-Id: Ib0b945d547c4f1cba16018d9c5622d5e4d777e44 Signed-off-by: Grover Yen <Grover_Yen@wistron.com> Reviewed-on: https://chromium-review.googlesource.com/221411 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* Candy: Implement the battery LED behaviorDevin Lu2014-09-103-46/+46
| | | | | | | | | | | | | | | | | Add LED behavior for candy that will the same as wolf. BUG=None BRANCH=rambi TEST=manual Check battery LED show white when battery in charging. Check battery LED turn off when battery fully with ac mode. Check battery LED show amber and blinking every 500ms when charging error. Check battery LED show amber when battery capacity under 15%. Change-Id: Ia445f3b233aaa5d0bcf70accfdc950f1c8158c36 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/216391 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* Candy: Add battery present function supportDevin Lu2014-09-022-0/+3
| | | | | | | | | | | | | | Add battery present pin. BUG=none BRANCH=rambi TEST=manual Check system can boot up quickly with ac only. Change-Id: I6daa4b35d904014134f88a511819e7c6602e2860 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/215901 Reviewed-by: Marc Jones <marc.jones@se-eng.com>
* Candy: Modify adpater input current and battery configurationDevin Lu2014-09-022-7/+7
| | | | | | | | | | | | | | | | | Set input current to 3072mA for 65w adpater and config battery configuration for candy. BUG=None BRANCH=rambi TEST=manual build ec and flash to candy board, Verify input current with 'adc' console command while system charging the battery and under heavy load. verify battery works. Change-Id: I3a104ab4e29a8d055c9ee5d4713bbfef82025757 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/215811 Reviewed-by: Marc Jones <marc.jones@se-eng.com>
* Candy: Initial boardDevin Lu2014-08-278-0/+652
| | | | | | | | | | | | | | | Copy rambi and rename for candy. BUG=None BRANCH=rambi TEST=manual Run "make -j buildall" Run "make -j BOARD=candy tests" Change-Id: Ia35c00e914f56ccf9b48298315bc93bd077aef05 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/214160 Reviewed-by: Marc Jones <marc.jones@se-eng.com>
* winky : Change stack size in charge taskyoojin2014-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | System was reset by stack overflow in charger task, when battery i2c communication is failed. Winky system needs a minimum of 520 byte to use stack in charger task. So, stack size in charger task should be changed to 640 byte. BUG=chrome-os-partner:31568 TEST=emerge-winky chromeos-ec Check stack size in charger task Change-Id: I130aecbdb973f1a2e7f18a46e49625844ffc827a Reviewed-on: https://chromium-review.googlesource.com/213996 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Mohammed Habibulla <moch@chromium.org> Reviewed-by: YongBeum Ha <ybha@samsung.com> Commit-Queue: YongBeum Ha <ybha@samsung.com> Tested-by: YongBeum Ha <ybha@samsung.com>
* cranky: Implement LAN power control.Grover Yen2014-08-204-0/+18
| | | | | | | | | | | | | | | | Based on the code cloned from rambi, and 1.Apply PM6 as LAN power control pin. 2.Enable LAN power in S0 and S3. BUG=chrome-os-partner:30749 BRANCH=none TEST=make -j buildall, make -j tests Change-Id: I27031b26f595cfcb790c919aff347eb310a626d5 Signed-off-by: Grover Yen <Grover_Yen@wistron.com> Reviewed-on: https://chromium-review.googlesource.com/212598 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* cranky: Disable key scan task.Grover Yen2014-08-201-2/+1
| | | | | | | | | | | | | | Base on the code cloned from rambi and disable key scan task. BUG=none BRANCH=none TEST=make -j buildall, make -j tests Change-Id: I216b66ffbc08470b6037c78bc972f2a72f02d9f8 Signed-off-by: Grover Yen <Grover_Yen@wistron.com> Reviewed-on: https://chromium-review.googlesource.com/212903 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
* cranky: Configure GPIO setting for VIDEO_DISABLE_L.Grover Yen2014-08-202-0/+2
| | | | | | | | | | | | | | | Based on the code cloned from rambi, and apply PH2 as VIDEO_DISABLE_L pin, keep OD high after chip init. BUG=none BRANCH=none TEST=make -j buildall, make -j tests Change-Id: I0774f64f8c4044535f34280001b24ef714beb100 Signed-off-by: Grover Yen <Grover_Yen@wistron.com> Reviewed-on: https://chromium-review.googlesource.com/212597 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
* cranky: Implement power LED controlGrover Yen2014-08-203-17/+89
| | | | | | | | | | | | | Based on the code cloned from rambi, and implement power LED control. BUG=chrome-os-partner:30453 BRANCH=none TEST=make -j buildall, make -j tests Change-Id: Ic1d05adcce9026678df7ae7bed05725636a7a5b3 Signed-off-by: Grover Yen <Grover_Yen@wistron.com> Reviewed-on: https://chromium-review.googlesource.com/212471 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* cranky: Implement recovery buttonGrover Yen2014-08-202-0/+4
| | | | | | | | | | | | | | Based on the code cloned from rambi and enable recovery button function. BUG=chrome-os-partner:30750 BRANCH=none TEST=make -j buildall, make -j tests Change-Id: I9a8a5efedc6a4cbf3448df517555b2050461b186 Signed-off-by: Grover Yen <Grover_Yen@wistron.com> Reviewed-on: https://chromium-review.googlesource.com/212593 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* cranky: Implement volume up/down buttonGrover Yen2014-08-202-0/+16
| | | | | | | | | | | | | Based on the code cloned from rambi, implement volume up/down button. BUG=chrome-os-partner:30747 BRANCH=none TEST=make -j buildall, make -j tests Change-Id: I0097d9b6b93fd247bb1d7f4469a10db71ae959e0 Signed-off-by: Grover Yen <Grover_Yen@wistron.com> Reviewed-on: https://chromium-review.googlesource.com/212611 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
* winky : Add to change charging currunt on near full charge.YB.Ha2014-08-081-1/+2
| | | | | | | | | | | | | | | | | PWR_STATE_CHARGE_NEAR_FULL also need to change charging current by FCC * 0.6 for battery safety and charging time. BUG=chrome-os-partner:31146 TEST=emerge-winky chromeos-ec Check charging current by i2c register. Change-Id: I1c0ea803c663dcc4147a31a3af33864b592bf89b Reviewed-on: https://chromium-review.googlesource.com/211554 Reviewed-by: yoojin lee <yoojin7.lee@samsung.com> Reviewed-by: Mohammed Habibulla <moch@chromium.org> Reviewed-by: YongBeum Ha <ybha@samsung.com> Commit-Queue: YongBeum Ha <ybha@samsung.com> Tested-by: YongBeum Ha <ybha@samsung.com>
* winky : Fix the method to read full battery capacityYB.Ha2014-08-081-1/+3
| | | | | | | | | | | | | | | 'struct batt_params' has no member named 'full_capacity' BUG=chrome-os-partner:31146 TEST=emerge-winky chromeos-ec Check charging current by i2c register. Change-Id: Idaeb5fcd6c322c552793fc955e64d669c0b09fa4 Reviewed-on: https://chromium-review.googlesource.com/211561 Reviewed-by: yoojin lee <yoojin7.lee@samsung.com> Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: yoojin lee <yoojin7.lee@samsung.com> Tested-by: yoojin lee <yoojin7.lee@samsung.com>
* Winky : Generate battery error if low voltage for more than 2 hoursYB.Ha2014-08-081-0/+9
| | | | | | | | | | | | | | | | | | | | Stop to charge and enter battery error state when system keeps low voltage for more than 2hours. Battery error state by this reason is cleared only once when battery was reconnected. BUG=chrome-os-partner:30951 TEST=emerge-winky chromeos-ec Check to stop and start charging by low voltage during 2hours. Change-Id: I0bf22c165d676b3d7637dd78c01db21b6d658874 Reviewed-on: https://chromium-review.googlesource.com/211124 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Reviewed-by: yoojin lee <yoojin7.lee@samsung.com> Commit-Queue: yoojin lee <yoojin7.lee@samsung.com> Tested-by: yoojin lee <yoojin7.lee@samsung.com>
* winky : Change charging currentYB.Ha2014-08-081-0/+8
| | | | | | | | | | | | | | | | Charging current should be changed by FCC * 0.6 for battery safety and charging time. BUG=chrome-os-partner:31146 TEST=emerge-winky chromeos-ec Check charging current by i2c register. Change-Id: I56bc565934f5788e169a9d345fe180623cc27226 Reviewed-on: https://chromium-review.googlesource.com/211123 Reviewed-by: Mohammed Habibulla <moch@chromium.org> Reviewed-by: yoojin lee <yoojin7.lee@samsung.com> Tested-by: yoojin lee <yoojin7.lee@samsung.com> Commit-Queue: yoojin lee <yoojin7.lee@samsung.com>
* Winky : Charging start and stop by battery overtemperatureYB.Ha2014-08-081-1/+25
| | | | | | | | | | | | | | | | | | Charging start temperature : T<0 or T≥45 Charging stop temperature : T<0 or T≥60 Start condition of charge : 0≤T<45 BUG=chrome-os-partner:30951 TEST=emerge-winky chromeos-ec Check to stop and start charging by overtemperature. Change-Id: If73df8423c3d997598a49fcbc2926b290958c829 Reviewed-on: https://chromium-review.googlesource.com/211081 Reviewed-by: yoojin lee <yoojin7.lee@samsung.com> Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: yoojin lee <yoojin7.lee@samsung.com> Tested-by: yoojin lee <yoojin7.lee@samsung.com>
* Winky : Check battery error by overvoltageYB.Ha2014-08-084-5/+53
| | | | | | | | | | | | | | | | | | | | | | Stop to charge and enter battery error state when battery pack voltage is higher than charging voltage. Battery error state by overvoltage is cleared only once when battery was reconnected. Battery error should be checked before translate battery flags. BUG=chrome-os-partner:30951 TEST=emerge-winky chromeos-ec Check battery error state by over voltage. Change-Id: I485d3be9f75bf32e0f2769401eeab8ec887f83ae Reviewed-on: https://chromium-review.googlesource.com/210016 Reviewed-by: yoojin lee <yoojin7.lee@samsung.com> Tested-by: yoojin lee <yoojin7.lee@samsung.com> Reviewed-by: Mohammed Habibulla <moch@chromium.org> Commit-Queue: yoojin lee <yoojin7.lee@samsung.com>