summaryrefslogtreecommitdiff
path: root/board/fennel
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fennel: Add battery quick charge mode in S3/S5/G3Mike Lee2020-12-221-2/+34
| | | | | | | | | | | | | | Set normal charge mode in S0,and set quick charge mode in S3/S5/G3. BUG=b:172798331 BRANCH=firmware-kukui-12573.B TEST=make build all pass and test the quick charge solution is normal Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: I0e094e6a5eb7b49ee44388b941d970347182dad9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2560391 Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org> Commit-Queue: Chen-Tsung Hsieh <chentsung@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>
* Fennel: disable keyboard at tablet mode when in S3Mike Lee2020-11-162-0/+14
| | | | | | | | | | | | | | | | when in S3 and tablet mode, keyboard scan should be disabled and machine should not be waked up if user press keyboard BUG=b:173155379 BRANCH=firmware-kukui-12573.B TEST=put machine in tablet mode, use 'powerd_dbus_suspend' to let machine enter S3, press any key of keyboard cannot wake up machine Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: I5e68d55e2d89aeab9b3920e3be520882c3b0e5bd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2537730 Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org> Commit-Queue: Chen-Tsung Hsieh <chentsung@chromium.org>
* Kukui/baseboard: free flash spaceDevin Lu2020-09-291-7/+0
| | | | | | | | | | | | | Disable PD log and enable GPIO short name to save ~800 bytes for RO. BUG=none BRANCH=none TEST=make buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I326199411a3728b0ff6f5dc9531ad054245b31b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2432226 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* fennel: add host command for the ioexpander pwmZhuohao Lee2020-09-282-0/+58
| | | | | | | | | | | | | | | | | | In order to support the kernel driver to use the ioexpander pwm driver, we add two host command EC_CMD_PWM_SET_DUTY and EC_CMD_PWM_GET_DUTY to the board layer to support it. Besides, to avoid the RO rom size overflow, we remove the ioexpander pwm function and keyboard backlight function from the RO rom. BUG=b:162902808 BRANCH=firmware-kukui-12573.B TEST=build pass Change-Id: Ibbd66164c19cd792a865f471c0c32ecb595f75e7 Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2430904 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Fennel: Change Led setting for fennelAaron Zhang2020-09-253-38/+79
| | | | | | | | | | | | | | 1.Follow Google and customer spec to change led setting. 2.Free flash space for RO to solve build error. BUG=b:163100496 BRANCH=master TEST=make -j BOARD=fennel Change-Id: Ifb5b94cb12f4309b94b0ba917336933d9f06ce85 Signed-off-by: Aaron Zhang <zhangjianbo@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2342960 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
* Fennel: Change g-sensor setting for fennelAaron Zhang2020-09-242-12/+22
| | | | | | | | | | | | | | Modify lid accel to LIS2DWL & config g-sensor matrixes. BUG=b:163109924 BRANCH=master TEST=make -j BOARD=fennel Change-Id: I2e3143daf41ea848f0c32778f3d066aa7b0878d6 Signed-off-by: Aaron Zhang <zhangjianbo@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2419733 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Commit-Queue: Zhuohao Lee <zhuohao@chromium.org>
* Fennel: Modify it8801 keyboard backlight driver and Enable keyboard backlightMike Lee2020-09-243-0/+41
| | | | | | | | | | | | | | | | 1.Modify it8801 keyboard backlight driver code 2.Enable keyboard backlight setting with it8801 keyboard backlight driver BUG=b:162902808 BRANCH=firmware-kukui-12573.B TEST=Manual. Build and flash BIOS&EC on fennel board. Verify the keyboard backlight function. Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: I73dd7ffc7b6ee80ed7ca39ac4d05afe65f666181 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2413675 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
* Fennel: Add batterys for fennel.Aaron Zhang2020-09-092-76/+51
| | | | | | | | | | | | | | | Add L20L3PG2,L20D3PG2,L20M3PG2 battery information for fennel. BUG=b:163110890 BRANCH=master TEST=make -j BOARD=fennel Change-Id: I0a8eda12dca924831a5536242e4ff77b03cb3cd9 Signed-off-by: Aaron Zhang <zhangjianbo@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2342955 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Hash.Hung <hongzhaoyou@huaqin.corp-partner.google.com> Commit-Queue: Zhuohao Lee <zhuohao@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>
* Fennel: Remove the prepocessor check for BOARD_JUNIPER and BOARD_JACUZZI.Aaron Zhang2020-08-223-18/+2
| | | | | | | | | | | | | | Remove the prepocessor check for BOARD_JUNIPER and BOARD_JACUZZI. BUG=b:165214737 BRANCH=firmware-kukui-12573.B TEST=make -j BOARD=fennel Change-Id: I0cc9c143be16b02ad7d1b2735772d3d6875ba34e Signed-off-by: Aaron Zhang <zhangjianbo@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2351643 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Jacuzzi: initial new EC board fennel.Aaron Zhang2020-08-077-0/+976
Copy from Jacuzzi, and it will need to be revised later. BUG=b:162476869 BRANCH=master BOARD=fennel TEST=make -j BOARD=fennel Change-Id: I9d64a7e5e392b968beb98d45979852e825346673 Signed-off-by: Aaron Zhang <zhangjianbo@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335624 Reviewed-by: Hash.Hung <hongzhaoyou@huaqin.corp-partner.google.com> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>