summaryrefslogtreecommitdiff
path: root/baseboard
Commit message (Collapse)AuthorAgeFilesLines
* volteer: increase TCPC low power mode exit delayKeith Short2020-08-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | Increase the low power mode exit delay on Volteer to 50ms. The ps8815 TCPC in particular needs this extra time to work consistently with non-PD chargers. This change also ensures the low power mode exit timer is reset anytime the TC enters the TC_LOW_POWER_MODE state. BUG=b:160182500 BRANCH=none TEST=make buildall TEST=Insert 15W non-PD charger on Volteer: repeat 10 times TEST=Insert USB type-A (7.5W advertised) on Volteer: repeat 10 times Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I40fb4990478292e381421ef977f83b871796c130 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2325265 Tested-by: Eric Herrmann <eherrmann@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* kalista: Fix the EC storage sizesKeith Short2020-08-061-0/+5
| | | | | | | | | | | | | | | | | | The flash layout for kalista boards splits the flash area into 4 segments, used for RO, RW_A, and RW_B images. The CONFIG_EC_PROTECTED_STORAGE_SIZE and CONFIG_EC_WRITABLE_STORAGE_SIZE options need to be adjusted to match. BUG=b:160330682 BRANCH=none TEST=make buildall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ia087995840dd19250cdbd82de4456e90a9b28685 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2339837 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
* dedede: Enable CONFIG_CMD_CHARGER_DUMPAseda Aboagye2020-08-051-1/+2
| | | | | | | | | | | | | | | | The `charger_dump` command is currently useful for these boards. BUG=None BRANCH=None TEST=Build drawcia, verify charger_dump command is present. Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: I29cc70113be1c3c3096668c6d5969c4f755f915b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2339843 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Auto-Submit: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* isl9241: Set AC prochotEdward Hill2020-08-052-0/+10
| | | | | | | | | | | | | | Allow AC prochot threshold to be increased to match PD max current. BUG=b:162376053 b:162565066 BRANCH=none TEST=prochot not asserted while battery charges Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: I11761e8d2d15b52f7552e8d951c6633583ab5ba8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2334353 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Tested-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
* ec: change usage of dummySam Hurst2020-08-052-4/+4
| | | | | | | | | | | | | | | | | | Google is working to change its source code to use more inclusive language. To that end, replace the term "dummy" with inclusive alternatives. BUG=b:162781382 BRANCH=None TEST=make -j buildall `grep -ir dummy *` The only results are in "private/nordic_keyboard/sdk8.0.0" which is not our code. Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: I6a42183d998e4db4bb61625f962867fda10722e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335737 Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* power/intel_x86: Generalize the sleep failure detection, not bound to S0ixWai-Hong Tam2020-08-043-3/+3
| | | | | | | | | | | | | | | | | | | This change prepares to separate the sleep failure detection out of intel_x86, such that other chipset power sequence can reuse the code. It only touches the naming. No logic changes. * Rename to CONFIG_POWER_SLEEP_FAILURE_DETECTION * Modify the function and variable names, to avoid S0ix * Modify the comment to more neutral BRANCH=None BUG=b:162083524 TEST=make buildall -j Change-Id: I6a61c3b0a63af60913ee89e0ca343085fbd22308 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321872 Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
* zork: move board_get_temp to variantZick Wei2020-08-033-32/+33
| | | | | | | | | | | | | | | This patch rename thermal sensor name by placement for morphius, and move board_get_temp from baseboard to variant BUG=b:162325433 BRANCH=none TEST=verify that thermal sensor name change in EC console Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I46dfe5c8ebef29ed6ee7fdf342cfad9d39fe6ca3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2325496 Reviewed-by: Edward Hill <ecgh@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org>
* dedede: add FW_CONFIG field for keyboard backlight presentDevin Lu2020-08-013-5/+34
| | | | | | | | | | | | | This patch adds FW_CONFIG field for keyboard backlight present. BUG=none BRANCH=none TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I9072a6f5a64ff922708201a5d7cc687a3d56e300 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2331976 Reviewed-by: Diana Z <dzigterman@chromium.org>
* trogdor: Enable the host to self-report its sleep stateWai-Hong Tam2020-07-291-0/+1
| | | | | | | | | | | | | | | | | | Define the CONFIG_POWER_TRACK_HOST_SLEEP_STATE, which enable the host to self-report its sleep state. The handling function is not defined, so it just saves the state, no further action. BRANCH=None BUG=b:148149387 TEST=Without this CL, will show HC 0xa9 error on suspend/resume: [35.916083 HC 0xa9 err 1] as the host sleep event (0xa9) is not handled. With this CL, the HC 0xa9 error doesn't happen. Change-Id: I68036d9ca611104eaf651b4d4cae15571713ac90 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321870 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
* Dedede: Move extpower_is_present() to baseboardDiana Z2020-07-281-0/+17
| | | | | | | | | | | | | | | | | | | | This consolidates dedede boards to use a baseboard extpower_is_present() and also adds the condition to verify that the port is sinking, instead of providing Vbus. It also converts the RAA489000 boards to use the cached Vbus presence in pd_snk_is_vbus_provided(). BRANCH=None BUG=None TEST=on waddledoo and waddledee, verify "AC on" prints when a charger or charge-through servo v4 is plugged in, verify no "AC on" prints when a dongle is plugged in Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I5941da789a4e810f6d8cc40cef4d32a5a03c5662 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317062 Tested-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* zork: don't turn off vbus if we aren't sourcing vbusDenis Brockus2020-07-281-10/+9
| | | | | | | | | | | | | | | | | | | Turning off vbus when we are not sourcing vbus causes a bad behavior when we are cold booting in a batterless manner. So made it conditional so we would be able to run correctly with and without battery BUG=b:162016100 BRANCH=none TEST=trembyle cold boot with only AC power Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I77ad0487887078d6dd7514fd375558f10737fccb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317892 Tested-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org>
* Dedede: Restore pull-up on PG_PP1050_ST_OD after jumpingDiana Z2020-07-241-2/+7
| | | | | | | | | | | | | | | | After RSMRST sets, we configure a pull-up on PG_PP1020_ST_OD. This pull-up is lost during GPIO init after a sysjump, so restore it before the chipset init. BRANCH=None BUG=b:159863180 TEST=on waddledee and waddledoo, boot to the OS and run "sysjump rw" and "sysjump ro" on the EC console Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I1b543329de976c5f64dbfbebf8f7576e70e63084 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2314939 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Dedede: Store PP3300_A status before sysjumpsDiana Z2020-07-241-0/+26
| | | | | | | | | | | | | | | | | | Since the chipset task inits before the ADCs, we'll need to provide pp3300_a_good by preserving it in the sysjump tags. BRANCH=None BUG=b:161887378,b:159863180 TEST=on drawlat, boot to S0 and sysjump back and forth between RO and RW. Observe that the DUT remains at the ChromeOS login screen the whole time. Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I3086f0bb2cd4b97c988c2365148b75b99954f380 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2314642 Tested-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Dedede: Enable EFS2Diana Z2020-07-231-0/+1
| | | | | | | | | | | | | | Enables EFS2 for all dedede boards BRANCH=None BUG=b:159350276 TEST=on waddledoo and waddledee, see successful EFS2 jump to RW early in the boot process Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ib2eccb28e0331bee718f8c5aec261d83115ec22e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2299849 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* baseboard/kukui: check stable_current by the timestampEric Yilun Lin2020-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | We should check the stable_current by the timestamp rather than the inited value or not (i.e. CHARGE_CURRENT_UNINITIALIZED). This is because the stable_current might be modified to a previous measured value to let the PDO selection pick the correct PDO by power consumed. e.g. 1. Pick 9V PDO, set stable timestamp expired for 5 mins, rewrite stable_current to CHARGE_CURRENT_UNINITIALIZED 2. At next iteration, if we only check stable_current, we would try to pick a new PDO again, but however, the timestamp is not expired yet. BUG=b:160448099 TEST=ensure kakadu charging won't switch back to 5V immediately after just picking 9V charging BRANCH=kukui Change-Id: I2bfd49a9e8fc5c6d5f4b84eb7da4262d2938f7a6 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2309524 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* Dedede: Enable i2ctrace commandDiana Z2020-07-211-0/+3
| | | | | | | | | | | | | | | This command allows printing of all the i2c traffic on a given port and address, and can be useful when debugging driver issues. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I73749c8ba664a8df51e4e846a0e8d848099039cb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2309065 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* trogdor: Use the virtual batteryDouglas Anderson2020-07-212-0/+8
| | | | | | | | | | | | | | We don't want the OS to have access to our battery or anything on our i2c busses. It's just confuses things. BUG=b:160784792 TEST=See virtual battery being used BRANCH=none Change-Id: Icab307ea945d13c0a25dd8b4cd4ff8765b1bf6a4 Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2300460 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* zork: Re-enable CONFIG_KEYBOARD_VIVALDIEdward Hill2020-07-201-1/+0
| | | | | | | | | | | | | | | Enable Vivaldi keyboard for all Zork devices now that the related coreboot support is present. BUG=b:156200330 BRANCH=none TEST=enter recovery, enter VT2 Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: Id64a1243aa3845bc61b05f62d888e6b84a8efda9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2307716 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* zork: Use CBI only and remove retimer probe codeDenis Brockus2020-07-172-12/+1
| | | | | | | | | | | | | | | | | | | Before CBI was being used, zork used I2C probing to detect basic hardware configuration. Now that CBI is supporting FW_CONFIG, this is being removed. BUG=b:151232257 BRANCH=none TEST=verify zork still boots with valid configuration Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I267d99f8f3894aff2f6301df167c470db373509e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2304380 Commit-Queue: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org>
* Dedede: Retrieve FW_CONFIG from CBI at higher priorityDiana Z2020-07-171-1/+1
| | | | | | | | | | | | | | | I2C is initialized before the HOOK inits now, so retrieve CBI FW_CONFIG as soon as possible for use in determining which chips are present. BRANCH=None BUG=None TEST=on waddledoo with HDMI DB, ensure charger init comes after FW_CONFIG is fetched Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ia813a480c5f0d0095a3f2e5442dde9541d368431 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2300687 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* dedede: add FW_CONFIG field for tablet mode present or notDevin Lu2020-07-172-0/+17
| | | | | | | | | | | | | This patch adds FW_CONFIG field for tablet mode present or not. BUG=none BRANCH=none TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I92432066dee14bb79d882daa9da5d09f4daaecb1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2299610 Reviewed-by: Diana Z <dzigterman@chromium.org>
* zork: Enable 65W/3.25A PD adapter.Lu Zhang2020-07-171-2/+2
| | | | | | | | | | | BUG=b:161400534 BRANCH=none TEST=make buildall -j Signed-off-by: Lu Zhang <lu.zhang@bitland.corp-partner.google.com> Change-Id: I50c82ea82260e3ef67f19229854bfcc86f11a350 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2304236 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Peter Marheine <pmarheine@chromium.org>
* USB PD: Move board FRS configuration out of TCPCIEric Herrmann2020-07-172-5/+1
| | | | | | | | | | | | | | | | | Board FRS configuration is more board-specific than TCPC-specific. Move the board FRS configuration from TCPCI to usb_common. Implementing the board-level frs configuration is optional for each project. BUG=b:148144711 TEST=Can build volteer image with CONFIG_USB_PD_TCPC set BRANCH=none Change-Id: I43d13ec0b23f71273807f58db35e7dd333089efa Signed-off-by: Eric Herrmann <eherrmann@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290838 Reviewed-by: Keith Short <keithshort@chromium.org>
* boten: split CONFIG_LED_PWM out into boardsxiong.huang2020-07-151-2/+3
| | | | | | | | | | | | | It will be happy to define LED behavior in boards. BUG=b:160664441 BRANCH=none TEST=make buildall -j4 Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: Ib81fe8d20fa3ab74064958fba3576a1618635e52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2296544 Reviewed-by: Diana Z <dzigterman@chromium.org>
* dedede: Move adc channel to board variantDevin Lu2020-07-143-74/+0
| | | | | | | | | | | | | | Dedede family may have different temp sensors for other ADCs channel. This patch moves adc channel to board variant. BUG=none BRANCH=none TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Id34a924fc9431a553a1467068c6ccee6111102bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2289478 Reviewed-by: Diana Z <dzigterman@chromium.org>
* volteer: add workaround for CR50 double resetJett Rink2020-07-131-0/+1
| | | | | | | | | | BRANCH=none BUG=none TEST=tested on puff with same chip Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: I18db9450f0a1d16d0662e09f7d5e2c6c849ee13f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2278134
* zork: Enable CONFIG_I2C_UPDATE_IF_CHANGEDEdward Hill2020-07-131-0/+1
| | | | | | | | | | | | | | Enable CONFIG_I2C_UPDATE_IF_CHANGED to reduce I2C traffic a little. BUG=none BRANCH=none TEST=USB-C source and sink still work. Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: Id7ec18df00e421570d3e7c897be810014bbbbb5e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2294002 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* Zork: Handle USB_Cx_SBU_FAULT_ODLEdward Hill2020-07-123-0/+12
| | | | | | | | | | | | | | Connect up USB_Cx_SBU_FAULT_ODL to pd_handle_overcurrent(). BUG=b:138600586 b:157058003 BRANCH=none TEST=USB-C sink and source still works, forcing USB_Cx_SBU_FAULT_ODL low is reported as fault. Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: I59ae65eed169fc5e18f72539a68017bb73c7d93e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2293102 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* Charger: Add dynamic charger chip countDiana Z2020-07-119-15/+0
| | | | | | | | | | | | | | | | Different DB options may cause different numbers of charger chips to be present on the system. Remove constant count for charger chips, and instead always call into the overridable function to query the count. BRANCH=None BUG=b:155963446 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I0e65b8af351ecabe6f7b823e0e56f1932cc280a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2277833 Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Zork: remove pd_snk_is_vbus_providedEdward Hill2020-07-101-5/+0
| | | | | | | | | | | | | | | Zork uses CONFIG_USB_PD_VBUS_DETECT_TCPC and ppc_is_vbus_present() doesn't exist. BUG=none BRANCH=none TEST=none Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: I7eebf598a6bc3caf636111545a4c5e9511662d8b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290662 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* dedede: add workaround for CR50 double resetJett Rink2020-07-091-0/+3
| | | | | | | | | | | | | | | Hold the EC on the initial power on until the CR50 resets it; this preserves the power on flag for the first boot, which is important when we are deciding if we want to reset the USB-C PD contract. BRANCH=none BUG=none TEST=doo hold on reset Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: I6895be11309d2021436ce7b3aab915dbf27d9616 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2289058 Reviewed-by: Diana Z <dzigterman@chromium.org>
* volteer: disable ppc_dump command to save spaceKeith Short2020-07-091-1/+1
| | | | | | | | | | | | | | | Increases flash space on Volteer by 872 bytes. BUG=chromium:1101619 BRANCH=none TEST=make buildall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I1ffc34405a953fb21347cd41a29b1c0fcb96a501 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290196 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Tested-by: Abe Levkoy <alevkoy@chromium.org>
* Zork: Remove CONFIG_HOSTCMD_SKUIDEdward Hill2020-07-082-18/+9
| | | | | | | | | | | | | | | Coreboot has changed to use CBI, so CONFIG_HOSTCMD_SKUID is no longer needed and can be cleaned up. BUG=b:138600504 BRANCH=none TEST=none Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: Ib9fc1d190d994311f2efcae77821489eddf3cea7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2288152 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* Revert "TCPMv2: make sure Vbus is not sourced in AttachWait.SRC"Denis Brockus2020-07-081-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | Commit sha 57b95363c05bdab7b7e57d553a9514128393247d Reverting a CL that was a temporary fix while a real solution was found. This will now be implemented with the following CLs https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2282691 https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2282699 https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2283697 BUG=none BRANCH=none TEST=make buildall Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I76b92388f5ee5bae4bdb945a82f18eb3df3ab1fd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2284728 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org>
* kakadu: fix board-specific charge behaviorScott Chao2020-07-071-2/+2
| | | | | | | | | | | | | | | Request voltage always keep at 4320mV when cycle_count is over than 600. We need at a zone for it. BUG=b:153272421 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Change-Id: I8d065a607226a39335e3a663ddf7a179ff73a0db Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2282739 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Octopus: Disable vivaldi keyboardPatryk Duda2020-07-061-0/+1
| | | | | | | | | | | | | | Undef CONFIG_KEYBOARD_VIVALDI to fix function keys BUG=b:160269938 BRANCH=none TEST=Ctrl+Alt+F2 can enter VT2 Signed-off-by: Patryk Duda <pdk@semihalf.com> Change-Id: Ifdd1982892c25f1773336632d9594a95f44fdcc6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2279811 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* kakadu: add board-specific charge behaviorScott Chao2020-07-061-0/+52
| | | | | | | | | | | | | | | | | | | | | 1.If cycle count > 300, set Charge Voltage=4320, cycle count > 600, set Charge Voltage=4300, cycle count > 1000, set Charge Voltage=4250 2.If charging over 48 hours and Charge Voltage > 4.25V, set Charge Voltage = 4.25V 3.If charging over 2 hours,battery voltage over 4.1V and battery temperature over 45°C, switch to discharge mode and set Charge Voltage = 4.1V BUG=b:153272421 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Change-Id: I4968308b984f08a58491586a90b0b239eec07328 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2280865 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* volteer: move ppc_chips[] from baseboard to boardDavid Huang2020-07-052-36/+0
| | | | | | | | | | | | | | | Move ppc_chips[] to board for board customize. BUG=b:151978872 BRANCH=master TEST=check ppc init succeed and switch source/sink correct with type c device. Change-Id: I287bbe44b163d72c19a3764dca431c84d86bbdec Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2275971 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* woomax: Update USB-A and FW_CONFIGEdward Hill2020-07-032-15/+0
| | | | | | | | | | | | | Remove USB-A1 and correct FW_CONFIG. BUG=b:160293750 BRANCH=none TEST=none Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: I6e415c3dac85905af812ac5ce26ad3bbf4fcf869 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2277212 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* dedede: it83xx: fix adc data structure orderDevin Lu2020-07-022-15/+48
| | | | | | | | | | | | | | | | This is a difference adc data structure order between it83xx and npcx7. The data structure must be in the exactly same order as in enum adc_channel. This patch fixes incorrect order for it83xx. BUG=none BRANCH=none TEST=adc command in EC console Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ibe7326e897814defb57196fd2213f8a3a5dea9db Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2275503 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* volteer: Move USB DB checks from baseboardKeith Short2020-07-023-125/+8
| | | | | | | | | | | | | | | | | | The FW_CONFIG fields share a common layout across the entire Volteer program, but the individual fields are defined on a project level. Move the USB DB fields from the baseboard program to the board project. BUG=b:155497872 BRANCH=none TEST=make buildall TEST=verify FW_CONFIG data on Volteer Cq-Depend: chromium:2248238, chromium:2248239, chromium:2248240 Cq-Depend: chromium:2248241, chromium:2248242, chromium:2252484 Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I7d4f27159907b1cec029d2b2ae867321e70b3326 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2247617 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* volteer: create common FW_CONFIG layoutKeith Short2020-07-025-76/+147
| | | | | | | | | | | | | | | Create a common FW_CONFIG layout and access functions for Volteer boards. BUG=b:155497872 BRANCH=none TEST=make buildall TEST=verify FW_CONFIG data on Volteer Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I1ec14db6c816d82115caa5e6179e0258f2904ec4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2247616 Reviewed-by: caveh jalali <caveh@chromium.org>
* Dedede: Set up baseboard FW_CONFIG parsingDiana Z2020-07-023-1/+63
| | | | | | | | | | | | | | | Set up basic files to use for parsing FW_CONFIG. Currently, this just has a function to return the DB enum value. BRANCH=None BUG=b:159246161 TEST=on waddledoo, FW_CONFIG print appears during boot with current value (tested 0, 3, and 4) Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Id9ef2ea5ed297bb662d8455123452b1aeb06ae39 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2274992 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* TCPMv2: make sure Vbus is not sourced in AttachWait.SRCDenis Brockus2020-07-011-2/+4
| | | | | | | | | | | | | | | | | | | | | | | The TCPC on zork appears to enable Vbus sourcing some of the time when we come out of auto-toggle. It looks like about a 60ms delay before it is enabled. We then go to AttachWait.SRC and since the exit condition to get to Attached.SRC is a debounced/valid Attached.SRC CC and Safe0V, it has to be disabled manually in order to move to Attached.SRC BUG=b:160227699,b:160253746 BRANCH=none TEST=dut-control servo_v4_role:snk should attach Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I1dfc5d2536aaa4d7a5ffc7bbb52c647b15764196 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2276463 Tested-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org>
* kukui: Remove crash command to save spaceKeith Short2020-06-301-0/+1
| | | | | | | | | | | | | | | Remove the crash command from RO images to increase RO flash space by 256 bytes on kodama. BUG=none BRANCH=none TEST=make buildall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I09ad7d4a62cb448db590e938febe894c8339f85a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2276142 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* volteer: Disable tcpci_dumpKeith Short2020-06-291-2/+0
| | | | | | | | | | | | | | | Volteer is very tight on space when building the TCPMv2 stack. Disable the tcpci_dump command to save about 1100 bytes of RW flash space. BUG=b:158572770 BRANCH=none TEST=make buildall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I6aa7c1116464778a29bdd52e9ae822ec71fc00fe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2273552 Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* kakadu: prevent OEM name show "unkn"Scott Chao2020-06-291-0/+12
| | | | | | | | | | | | | | | ectool battery need to show proper OEM name when using dump battery. BUG=b:159918228 BRANCH=kukui TEST=make -j board=kakadu TEST=make buildall TEST=ectool battery Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Change-Id: I27e355881d6f6692edb2599fef7fb2c2c30a1062 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2269393 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* ps8xxx: patch ps8815 A1 chip Device IDCaveh Jalali2020-06-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | this adds a config option for the ps8815 to override the TCPCI Device ID field based on the chip hardware revision reported in vendor defined registers. early ps8815 A1 firmware still reports the same Device ID value as the A0 chip which makes the two chips indistinguishable using standard methods. so, we check a vendor defined register to distinguish the two parts and "patch" the Device ID. newer ps8815 firmware will correct this, so after we have flushed out early firmware, we can disable this override feature. BRANCH=none BUG=b:158857815,b:159289062 TEST=reflashed FW on ps8815 A0 and A1 Change-Id: I2db3150740c15a77836dea0e9db72e5d99fdc050 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2254992 Tested-by: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* Swap system_jumped_to_this_image with system_jumped_latestabilize-quickfix-13310.91.B-masterstabilize-quickfix-13310.76.B-masterstabilize-quickfix-13310.73.B-masterstabilize-13310.99.B-masterstabilize-13310.94.B-masterstabilize-13310.83.B-masterstabilize-13310.74.B-masterstabilize-13310.72.B-masterrelease-R85-13310.B-masterDaisuke Nojiri2020-06-264-4/+4
| | | | | | | | | | | | | | | | | | | | EFS2 boards need to call system_jumped_late in HOOK_INIT to avoid running init code twice per boot. system_jumped_to_this_image and system_jumped_late are functionally equivalent for non EFS2 boards. This patch will prevent system_jumped_to_this_image from being used for EFS2 boards when code is copied from a past project. BUG=chromium:1072743 BRANCH=none TEST=buildall Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I73fb5cedc5325d1c80825f9346954013046ee1df Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2267685 Reviewed-by: Keith Short <keithshort@chromium.org>
* berknip/morphius: update gpio S0_PWROK_ODZick Wei2020-06-252-24/+25
| | | | | | | | | | | | | | | This patch update S0_PWROK_OD for schematic change. BUG=b:150278507, b:152841287 BRANCH=none TEST=make buildall, verify EC code can power on rework MB. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Iaf8f2458c2dfe49f40eada8dced1febe2c4c4687 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2255826 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org> Tested-by: Edward Hill <ecgh@chromium.org>