summaryrefslogtreecommitdiff
path: root/board/burnet
Commit message (Collapse)AuthorAgeFilesLines
* ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ishJack Rosenthal2021-11-058-1286/+0
| | | | | | | | | | | | | | | | | | | | | | In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* ioex: it8801: Support multiple I2C addressesVijay Hiremath2021-09-102-3/+6
| | | | | | | | | | | | | | | | | | | To avoid the I2C address contention between multiple I2C devices on same bus, added code to support multiple I2C addresses for it8801 I/O expander. BUG=none BRANCH=none TEST=make buildall -j Change-Id: I6985973f9ae3ce91383d3b568a851169e6a308af Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115426 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Reviewed-by: Li Feng <li1.feng@intel.com>
* USB MUX: Convert usb_mux HPD functions to use mux_state_tDiana Z2021-08-301-1/+1
| | | | | | | | | | | | | | Since we have definitions for HPD IRQ and level in the mux flags, extend this to the HPD update function in the usb_mux structure as well. BRANCH=None BUG=b:172222942 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I19c3a65fc821a341338d73fabd7876339b37fe7d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3095437 Reviewed-by: Keith Short <keithshort@chromium.org>
* adc: Remove adc_chip.h where adc.h is usedCaveh Jalali2021-08-271-1/+0
| | | | | | | | | | | | | | This removes the use of adc_chip.h where adc.h is also used. In this case, adc_chip.h is redundant. BRANCH=none BUG=b:181271666 TEST=buildall passes Change-Id: Id7baf9aef949447a4d47934242f9bae97c971262 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3120317 Reviewed-by: Keith Short <keithshort@chromium.org>
* tablet_mode: Fix the race condition of setting the tablet modeWai-Hong Tam2021-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | There are 2 tablet mode triggers: * Lid: when the lid angle close to 360 degree, either detected by a GMR sensor or by the angle computed by 2 motion sensors. * Base: when the detachable base is detached. These 2 triggers set the tablet mode status, which as a boolean, resulting a race condition. This CL fixes the race condition. Each trigger updates its own bit. The final tablet mode status is the OR of all bits. BRANCH=Trogdor BUG=b:193873098 TEST=Attached the base, checked tablet_mode enabled; detached the base, checked tablet_mode disabled; flip base to 360 degree, checked tablet_mode disabled; move the base out of the lid, checked tablet_mode disabled. Change-Id: Ia9d9d2d66c194796c1039cc8b746c8d1f28a4496 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044414 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* keyboard: Use __override for keyboard_scan_configDaisuke Nojiri2021-07-231-1/+1
| | | | | | | | | | | | | | | | | Currently keyboard_scan_config is defined by each board using CONFIG_KEYBOARD_BOARD_CONFIG. This patch makes it defined as __override hence removes CONFIG_KEYBOARD_BOARD_CONFIG. BUG=None BRANCH=None TEST=buildall Change-Id: I53a356741ba4d00e829ca59b74ee6dc704188728 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044403 Tested-by: Gwendal Grignou <gwendal@chromium.org> Commit-Queue: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
* cleanup: Fix Dynapack stringDevin Lu2021-07-212-5/+5
| | | | | | | | | | | | | | | The naming string should be DYNAPACK. BUG=none BRANCH=none TEST=make buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I32f2498d4e51a83bd323d313a862622b6e69967d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3038017 Reviewed-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* kukui: move common mkbp wake events to baseboard.hEric Yilun Lin2021-06-291-4/+0
| | | | | | | | | | | | | | | | also, kodama(detachable) missed MODE_CHANGE event, add it back. BUG=none TEST=make buildall BRANCH=kukui,icarus Change-Id: Id7139ef64caf28720d389d8c048bfd724b42ba95 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2987227 Tested-by: Eric Yilun Lin <yllin@google.com> Auto-Submit: Eric Yilun Lin <yllin@google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* COIL: Rename motion sense address macrosDiana Z2021-06-091-4/+6
| | | | | | | | | | | | | | | | Update the motion_sense.h address macros to reflect our current i2c terms, and also to specify that these are used exclusively in the accelerometer code. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ibad287df2ba1ecd0b6f3061599476636ac7a5354 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2946316 Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* COIL: Rename MODULE_SPI_MASTER to MODULE_SPI_CONTROLLERCaveh Jalali2021-06-032-4/+4
| | | | | | | | | | | | | | | | This renames the MODULE_SPI_MASTER to MODULE_SPI_CONTROLLER. BRANCH=none BUG=b:181607131 TEST=make buildall passes; "compare_build.sh -b all" shows no difference Change-Id: I4d33f57fd82c5b57f111c12387113dc82cebe60b Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2932466 Reviewed-by: Craig Hesling <hesling@chromium.org> Reviewed-by: Harry Cutts <hcutts@chromium.org> Commit-Queue: Craig Hesling <hesling@chromium.org>
* Add a common header for board_is_sourcing_vbus()Simon Glass2021-03-311-1/+0
| | | | | | | | | | | | | | | | This function prototype is defined in lots of files, none of which is visible to Zephyr. Add a prototype in one place and remove the others. BUG=b:183296099 BRANCH=none TEST=make buildall Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ia324327a69b117483ab9ee5c85eba93c0fb5ad9c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789799 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* genvif: Use VIF overrides by defaultAbe Levkoy2021-03-301-0/+3
| | | | | | | | | | | | | | Use board-specific override files when generating VIFs for boards. BUG=b:172276715 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I197365018ceb8197c22d631cebf4cbce1c0119f7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785506 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* Reland "burnet: Change detect method for 2nd base accel"Devin Lu2021-03-241-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a reland of 3d3f2316b7d2f060d4f8c919a2c82326f8651af3 Original change's description: > burnet: Change detect method for 2nd base accel > > Both bmi160 and icm-40608 are using spi interface with Jacuzzi. > The sensor will acknowledge with the ping. we should make sure > the return value is matching the chip content. > > BUG=b:173647487 > BRANCH=firmware-kukui-12573.B > TEST=ectool motionsense on both bmi160 and icm-40608 > > Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> > Change-Id: I3a502c182bb766b52dd5d85014478f9c0014360a > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2763605 > Reviewed-by: Ting Shen <phoenixshen@chromium.org> Bug: b:173647487 Change-Id: I140aeacd46d74216bc7c999c493dc1be1590aa5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2783510 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Devin Lu <Devin.Lu@quantatw.com> Tested-by: Devin Lu <Devin.Lu@quantatw.com>
* Revert "burnet: Change detect method for 2nd base accel"Devin Lu2021-03-241-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 3d3f2316b7d2f060d4f8c919a2c82326f8651af3. Reason for revert: <Missing return rv> Original change's description: > burnet: Change detect method for 2nd base accel > > Both bmi160 and icm-40608 are using spi interface with Jacuzzi. > The sensor will acknowledge with the ping. we should make sure > the return value is matching the chip content. > > BUG=b:173647487 > BRANCH=firmware-kukui-12573.B > TEST=ectool motionsense on both bmi160 and icm-40608 > > Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> > Change-Id: I3a502c182bb766b52dd5d85014478f9c0014360a > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2763605 > Reviewed-by: Ting Shen <phoenixshen@chromium.org> Bug: b:173647487 Change-Id: Ie6e5c895f558a9cdc53648599502abcf2b8dae89 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2783504 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Tested-by: Devin Lu <Devin.Lu@quantatw.com> Commit-Queue: Devin Lu <Devin.Lu@quantatw.com>
* jacuzzi: enable keyboard scanning in S0/tabletTing Shen2021-03-231-13/+0
| | | | | | | | | | | | | | | | | | | Most Jacuzzi devices copied the incorrect lid_angle_peripheral_enable code from Reef. Fix this by sharing Willow's good implementation to all followers. BUG=b:181852624 TEST=1) make buildall 2) manually test on fennel BRANCH=kukui Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ie2dd79d5d0dcebe564664c357db73c5956d1b14b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2765633 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
* burnet: Change detect method for 2nd base accelDevin Lu2021-03-181-4/+3
| | | | | | | | | | | | | | | Both bmi160 and icm-40608 are using spi interface with Jacuzzi. The sensor will acknowledge with the ping. we should make sure the return value is matching the chip content. BUG=b:173647487 BRANCH=firmware-kukui-12573.B TEST=ectool motionsense on both bmi160 and icm-40608 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I3a502c182bb766b52dd5d85014478f9c0014360a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2763605 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* burnet: Add 2nd lid/base accel sourceDevin Lu2021-03-043-4/+129
| | | | | | | | | | | | | | | | This patch add one more source for lid/base accel. lid accel - kx022 base accel - icm-40608 BUG=b:181627606, b:173647487 BRANCH=firmware-kukui-12573.B TEST=ectool motionsense Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I069f1898c7454805e4475e7637432c4a8423103c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2730948 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* COIL: Rename ioexpander i2c address variableDiana Z2021-02-241-1/+1
| | | | | | | | | | | | | | Rename ioexpander i2c address to match current conventions and update any calling locations. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iddad457f73d0dd0167496b794c00e274f8985615 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2697855 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* baseboard/kukui: add support for EC variantDino Li2021-02-231-0/+1
| | | | | | | | | | | | | | | With this change, we are able to build baseboard/kukui/baseboard.c on other chips. BUG=none BRANCH=none TEST=buildall. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I209daaa991f021fb7c33c21c28a7be30203510bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2710131 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
* board: Set Accelerometer range to 4gGwendal Grignou2021-02-131-1/+1
| | | | | | | | | | | | | | | | | For accelerometer presented to Android, set default range to 4g. Required by Android CDD - Section 7.3.1 - Paragraph C.1.4. mems_setup can correct it, but it is cleaner if the default setting is right. BUG=b:144004449 BRANCH=none TEST=compile Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I781eafc003823e2595d46d7170f717aaee08dc6d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657956 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
* spi: Pass in spi_device as argument to spi_enable instead of portTom Hughes2021-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | Rather than passing in the port and iterating over the global spi_devices variable, pass in the specific spi_device that is being enabled/disabled. The spi_device_t struct has the port. This change makes the functions in spi.h more consistent since they now all take a spi_device_t*. This change is the first step in making the SPI configuration more dynamic. BRANCH=none BUG=b:177908650 TEST=git grep 'spi_enable(CONFIG' => no results TEST=make buildall TEST=Flash dragonclaw v0.2 and view console to verify FP sensor ID Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I64124e0ebcf898e88496acb77703b5f59ae931c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2654081 Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* COIL: Rename fusb302 driver variablesDiana Z2021-01-271-1/+1
| | | | | | | | | | | | | Rename i2c variables in the fusb302 driver and c-file references. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ifaf7984c52fc197403d447e00c02af036e54987e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649354 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* tcpm: Move tcpm.h into an include directorySimon Glass2020-12-221-1/+1
| | | | | | | | | | | | | | | | | | This header file is used from quite a few files, relying on the EC build system to find includes in the driver/tcpm directory. For Zephyr we don't want to add that as an include. It makes more sense for header files to be in an include directory, so move it and fix up the users. BUG=b:175434113 BRANCH=none TEST=build Zephyr and ECOS on volteer Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I5851914b1a7d3fdc1ba911c0fbe9046afbaf6f5d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597985 Reviewed-by: Keith Short <keithshort@chromium.org>
* task_set_event: remove the wait argumentDawid Niedzwiecki2020-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | There is an option in the task_set_event function which force the calling task to wait for an event. However, the option is never used thus remove it. This also will help in the Zephyr migration process. BUG=b:172360521 BRANCH=none TEST=make buildall Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ic152fd3d6862d487bcc0024c48d136556c0b81bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521599 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* burnet: Disable keyboard with tablet mode on S3Devin Lu2020-10-192-0/+14
| | | | | | | | | | | | BUG=none BRANCH=firmware-kukui-12573.B TEST=On Burnet. Make sure keyboard don't wake up AP from suspend on tablet mode. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I68030c23d27375f320f1b559900ac832752981ad Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2479063 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Esche: Turn off tablet modeDevin Lu2020-10-131-0/+4
| | | | | | | | | | | | | | | Burnt and Esche has been merged to the same firmware, Burnet have GMR sensor for tablet mode, but Esche not. This patch turns off tablet mode and GMR interrupt on Esche. BUG=none BRANCH=firmware-kukui-12573.B TEST=Make sure keyboard works on Esche. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ifa909a3b18560d134077a7f1d605f33c410ced08 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2455827 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Esche: Override battery LEDs to indicate system suspendDevin Lu2020-09-291-0/+18
| | | | | | | | | | | | | | | Esche is non-power LED design, to indicate system suspend, blinking battery white LED (1 sec on/1 sec off) to indicate system suspend without charging. BUG=none BRANCH=firmware-kukui-12573.B TEST=Make sure LED blinking on suspend without charging. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I7a2fb73434efec7da3bf5bcd68d658db20418f99 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2432227 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Burnet/Esche: Disable IMU sensors base on SKUIDDevin Lu2020-09-292-29/+53
| | | | | | | | | | | | | | | Burnet is 360 SKU and Esche is clamshell SKUID. Disable Esche IMU sensors base on SKUID. BUG=none BRANCH=firmware-kukui-12573.B TEST=On Burnet, check sensor initial passed. TEST=On Esche, check no sensor initial. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I1839fb7c1366c8ccde6db00f0fba9f1eb9f6d3a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2387681 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Burnet: unmux pins away from emmc once we want to talk to sensorsDevin Lu2020-09-292-13/+19
| | | | | | | | | | | | | | Apply CL:2043151 to burnet. BUG=b:169259387 BRANCH=firmware-kukui-12573.B TEST=Boot Burnet, no sensor init fail. TEST=emmc still works. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ic4bde54ab3bf2b1482230335fe5d2b71dc72faa6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2430908 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* burnet: add case EC_LED_ID_POWER_LED to led_set_colorTommy Chung2020-09-091-0/+3
| | | | | | | | | | | | BUG=none BRANCH=firmware-kukui-12573.B TEST=make sure power led can be controlled by ectool. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I43dc4af865a28505e0d6e3a74d89f99505a627be Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2397937 Tested-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* jacuzzi: remove ADC_BATT_IDTing Shen2020-08-282-2/+0
| | | | | | | | | | | | | | | | | ADC_BATT_ID is reassigned to BATT_PRES in Jacuzzi families. Remove it from source code to prevent people using it. BRANCH=kukui BUG=none TEST=make buildall Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I213b502413642c9bfff99443180ddb43debb2463 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2380842 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
* burnet: add power ledTommy Chung2020-08-192-13/+41
| | | | | | | | | | | | | | BUG=none BRANCH=firmware-kukui-12573.B TEST=make sure battery led is showing battery state on system S3. make sure power led is showing white on S0. make sure power led is blinking white on S3. make sure power led is OFF on S5/G3. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: Ia257a8adc923dd87be304d6070d18550147e4fef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2359614 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* burnet: add IMU sensorsDevin Lu2020-08-183-30/+166
| | | | | | | | | | | | | | * BMI160 Base ACC+Gyro * BMA253 in the LID BUG=none BRANCH=firmware-kukui-12573.B TEST=ectool motionsense to make sure sensors work. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Iab6dcee5b4226750c649b6a61126ec188ff3a960 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2348733 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* burnet: Add batteries supportDevin Lu2020-08-182-11/+127
| | | | | | | | | | | | | | | | | | | This patch adds battery parameter as following: 1. DynaPack ATL 2. DynaPack COSMX 3. SIMPLO COSMX 4. SIMPLO HIGHPOWER 5. SAMSUNG SDI 6. COSMX BUG=none BRANCH=firmware-kukui-12573.B TEST=make sure battery charging, battery cutoff works. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ifc3fa4dfdeebb21460ee46572bb9475d607b58de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2348735 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* burnet: Initial EC imageDevin Lu2020-07-277-0/+825
Create the initial EC image for the burnet variant by copying the kappa reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.0.3). BUG=b:161768221 BRANCH=firmware-kukui-12573.B TEST=make BOARD=burnet Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I1f0f15093fff32bc22e68dca02acc5a238a2296e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2319498 Reviewed-by: Ting Shen <phoenixshen@chromium.org>