summaryrefslogtreecommitdiff
path: root/zephyr/projects/it8xxx2_evb/prj.conf
Commit message (Collapse)AuthorAgeFilesLines
* zephyr: rename kconfig PLATFORM_EC_VBOOTJack Rosenthal2021-08-111-1/+1
| | | | | | | | | | | | | | | | | | | Rename CONFIG_PLATFORM_EC_VBOOT to CONFIG_PLATFORM_EC_VBOOT_EFS2, since this is what is actually toggled by the config. EFS2 is only a small component of verified boot, and we have many boards which don't actually use it (e.g., trogdor family) for verified boot, making the existing name very confusing. BUG=none BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I68ea5815b4a001c680fc78196bb7a02815799b52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088164 Commit-Queue: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* system: Clean up system_get_board_version()Philip Chen2021-07-091-1/+2
| | | | | | | | | | | | | | | | | | | Refactor system_get_board_version() a bit so that we can remove CONFIG_BOARD_VERSION_CUSTOM and CONFIG_BOARD_VERSION from config.h. BRANCH=None BUG=b:186264627 TEST=make buildall -j TEST=zmake testall Cq-Depend: chromium:3015243 Change-Id: Id5ab809493c297b7d330ea13dcd6934ec00042a6 Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3004112 Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* zephyr: it8xxx2_evb: enable flash driverTim Lin2021-07-021-0/+1
| | | | | | | | | | | | | | | | | | | | Enable flash driver and access by console commands. BUG=b:187192628 BRANCH=none TEST=console cmd: "flashread 0 0x100" "flashwrite 0x80000 0x100" "flasherase 0x80000 0x1000" Cq-Depend: chromium:2981388 Cq-Depend: chromium:2991399 Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com> Change-Id: I226925f8bd1ae672bf0a97e61d9210ebefe67bc1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952803 Tested-by: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: hayato: Enable config to support keyboard scanRuibin Chang2021-05-251-0/+1
| | | | | | | | | | | | | | | | | Enable config for keyboard scan function, and we use default keyboard scan timing config on board hayato. BUG=b:187192587 BRANCH=none TEST=on hayato, console cmd "ksstate" then press key: [115.097839 KB state: -- -- -- 02 -- -- 02 -- -- -- -- -- --] [116.462371 KB state: -- -- -- -- -- -- 02 -- -- -- -- -- --] [116.499633 KB state: -- -- -- -- -- -- -- -- -- -- -- -- --] Change-Id: Ie717d7333c2ff3f4279ec7c2f8c01fcb306fc5ad Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2883376 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: it8xxx2_evb: enable I2C drivertim2021-05-181-1/+3
| | | | | | | | | | | | | | | | | | Enable the I2C driver and connect with I2C peripheral to test writing and reading data. BUG=b:185202623 BRANCH=none TEST=shell: "i2c scan I2C_0(I2C_1, I2C_2, I2C_4)" "i2c write_byte I2C_0 0x52(slv) 0x10 0x20" "i2c read_byte I2C_0 0x52(slv) 0x10" Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Change-Id: I112aa379ba6162d774e6cd861fb6f579bb859823 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2878764 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: drivers: ADC enable ADC drivertim2021-05-141-1/+3
| | | | | | | | | | | | | | enable ADC and test on it8xxx2_evb BUG=b:185202623 BRANCH=none TEST=shell: adc Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Change-Id: I426dd6aebbe69ba86b2e7c57fb8e9216a76246f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2874325 Tested-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: it8xxx2_evb: enable power buttontim2021-04-301-1/+3
| | | | | | | | | | | | | | | | | Enable the power button module and interrupt. BUG=b:185202623 BRANCH=none TEST=trigger GPIO_POWER_BUTTON_L, see UART print [12.660000 power button pressed] [12.969000 power button released] Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Change-Id: I538acf6ead3eb06abdf84ed14a52c81412a342e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2850301 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: it8xxx2_evb: enable lid switchtim2021-04-301-1/+3
| | | | | | | | | | | | | | | | | | Enable the lid switch GPIO and module. BUG=b:185202623 BRANCH=none TEST=trigger GPIO_LID_OPEN, observe UART prints [21.986000 event set 0x0000000000000001] [22.374000 lid open] [22.378000 event set 0x0000000000000002] [23.265000 lid close] Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Change-Id: Ib7121240309a02de9ee7c342ff7c6005d5fa522b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2850300 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: it8xxx2_evb: enable PLATFORM_EC_HOSTCMDtim2021-04-301-16/+14
| | | | | | | | | | | | | | | | | Enable host command support. Replaced the board of hayato's EC with it81202_evb and the host command can be received and responded. BUG=b:185202623 BRANCH=none TEST=console command: hcdebug every hcdebug command is present. Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Change-Id: I4b38d7f1a329e804a81f3bc1b803a2ea75aff3db Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2850299 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* config: rename CONFIG_FLASH to CONFIG_FLASH_CROSJeremy Bettis2021-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4ac1d81e1430dbfbfba1376a23ab19dfa845d7ef. The config name collides with the same config name in zephyr. Also, renames zephyr Kconfig CONFIG_PLATFORM_EC_FLASH to CONFIG_PLATFORM_EC_FLASH_CROS as the corresponding change at Kconfig side. BUG=chromium:1202406,b:180980668 TEST=make -j16 runhosttests buildall && zmake testall && \ /mnt/host/source/src/platform/ec/zephyr/firmware_builder.py --metrics \ /tmp/tmplt8ty8ci test ; echo $? BRANCH=none Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I5b5e58b30d936b5232e049827f458d9a2ed06340 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2855320 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: initial bringup for it8xxx2_evbtim2021-04-271-0/+31
Initial bringup for it8xxx2_evb. The function includes UART console and basic commands. BUG=b:185202623 BRANCH=none TEST=EC boots on it8xxx2_evb. Console commands test: version Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Change-Id: I96839f96b8128460a123fe0344b4ae077b6e8761 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752568 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>