summaryrefslogtreecommitdiff
path: root/baseboard/cherry
Commit message (Collapse)AuthorAgeFilesLines
* Cherry: change gyro snesor to ICM-42607-PSue Chen2021-05-211-1/+1
| | | | | | | | | | | | | Change base accelgyro driver to icm42607. BUG=b:187748640 BRANCH=none TEST=console "accelinfo on" and ectool motionsense show correctly. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ib53f72ae283a7bf5a6193dcf3b656121af94c66f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2909954 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* cherry: Add temp sensor for chargerSue Chen2021-05-212-0/+16
| | | | | | | | | | | | | Using ADC channel 7 to read charger temperature. BUG=b:187463588 BRANCH=none TEST=Console commad "temps" and ectool can read the temperature. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I031523859c0ff91f0041263ecf6a4a48048da819 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2891283 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* zephyr: asurada: Enable power button and sequencingDenis Brockus2021-05-191-8/+0
| | | | | | | | | | | | | BUG=b:180980668 BRANCH=none TEST=get powerbtn command in shell Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I1af4673b7eff84149e3aabad7ff09445a1f96e1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895306 Tested-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* config: Populate CONFIG_SUPPRESSED_HOST_COMMANDSGwendal Grignou2021-05-191-3/+0
| | | | | | | | | | | | | | | | | | | | | Commands that are send peridically or in high number are not reported on the console through CONFIG_SUPPRESSED_HOST_COMMANDS variable. Use the same set of commands throughout to avoid misses like newer command EC_CMD_GET_UPTIME_INFO. BUG=none BRANCH=none TEST=buildall Signed-off-by: Gwendal Grignou <gwendal@google.com> Change-Id: I0041576538a8cc659c262118b1503777b9ea8578 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2851452 Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Craig Hesling <hesling@chromium.org> Tested-by: Gwendal Grignou <gwendal@chromium.org> Commit-Queue: Gwendal Grignou <gwendal@chromium.org>
* cherry: update USB PIDTing Shen2021-04-271-1/+1
| | | | | | | | | | | | | | | | PID allocated in cl/370096781 BUG=none TEST=make BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Id2b134cd955a07d390f9dcdfd109b7249cca9264 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2850616 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
* cherry: enable CBITing Shen2021-04-273-118/+8
| | | | | | | | | | | | | | BUG=b:185196921 TEST=`ectool cbi set 0 56 1 10` verify board version changed to "56" in ec console BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I17045fd24bfaf50da9ada1ef09e25c60a758a8f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2823641 Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
* cherry: add pwm keyboard backlight controlTing Shen2021-04-222-3/+16
| | | | | | | | | | | | | | BUG=b:181838424 TEST=keyboard backlight works BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I7fd20808c6e8e6a1e22c060bb14c145256201756 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785511 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* cherry: enable sensorsTing Shen2021-04-202-8/+9
| | | | | | | | | | | | | BUG=b:178158810 TEST=`accelread 0/1/2` BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Iad128e3c94e409da000d5f11952a526a73ad64d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2730519 Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* cherry: GPIO configurationTing Shen2021-04-205-161/+14
| | | | | | | | | | | | | BUG=b:180886390,b:178158810 TEST=make BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I99631c73112a4123dc24bd25825f59a6ff948dca Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2731395 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* baseboard/asurada: drop misleading commentEric Yilun Lin2021-03-251-1/+1
| | | | | | | | | | | | | | | EC_HOST_EVENT_MODE_CHANGE is for tablet mode change. EC_MKBP_EVENT_DP_ALT_MODE_ENTERED is for DP mode entered. BUG=none TEST=none BRANCH=asurada Change-Id: I643166e833155588b7c4888df591f5a439d173b2 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2784331 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* cherry: code cleanupTing Shen2021-03-053-10/+5
| | | | | | | | | | | | | | | | | | | | - remove duplicate headers in baseboard.c - remove references to asurada / hayato - replace cherry/led.c by asurada/led_hayato.c, which should be more close to cherry's design BUG=b:181838424 TEST=1) `ag '(asurada|hayato)' -i baseboard/cherry board/cherry` returns empty result 2) make BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Id9afd90d323395f38787e452b02b8da65fd15286 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2734168 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* cherry: initial EC imageTing Shen2021-03-037-0/+1283
Copied from Asurada, with minimal changes to copyright header and makefile to make it compilable and let linter happy. BUG=b:178158810 TEST=make BOARD=cherry -j32 BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ibf75df48336203fd84885856f971fea24f4ea288 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2730642 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org>