summaryrefslogtreecommitdiff
path: root/zephyr/projects/npcx_evb/npcx9/prj.conf
Commit message (Collapse)AuthorAgeFilesLines
* zephyr: convert fwctrl register to syscon driverYuval Peress2021-09-271-0/+2
| | | | | | | | | | | | | | | | Note that currently CONFIG_SYSCON=y is required. There's an ongoing PR (https://github.com/zephyrproject-rtos/zephyr/pull/38762) to remove that requirement in favor of simply detecting an enabled node in DT via the compatible string. BRANCH=none BUG=b:179900857, b:165777478, b:200642229 TEST=zmake testall Signed-off-by: Yuval Peress <peress@google.com> Change-Id: Idad1f53afbda503e0e0b2fdf2931d5267a391d4d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3177749 Reviewed-by: Sam Hurst <shurst@google.com>
* zephyr: npcx_evb: Enable RTCWealian Liao2021-08-161-0/+4
| | | | | | | | | | | | | This CL enables RTC for npcx7/9_evb. BUG=none BRANCH=none TEST='rtc' console command Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Icc5d79d16ba2e4073ce39d38f0942a050d128e82 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088961 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable KeyboardWealian Liao2021-08-121-3/+3
| | | | | | | | | | | | | | | | | | This CL enables keyboard function for npcx7/9_evb. The keyboard sets to the following config: * kso0-12 are selected for keyboard scan * enable CONFIG_CROS_KB_RAW_NPCX_KSO_HIGH_DRIVE * set keyscan_config to meet the config in npcx_evb board.c BRANCH=none BUG=none TEST='ksstate on' & check actual key setting Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I059e1f8d07558a0f465769ecffd4246dcda1a608 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3077764 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* 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>
* zephyr: npcx_evb: Enable eSPIWealian Liao2021-08-111-0/+5
| | | | | | | | | | | | | | This CL enables eSPI for npcx7/9_evb. BUG=none BRANCH=none TEST=Read EC host register by eSPI host emulator. Cq-Depend: chromium:3074381 Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I9308095eb5cca8fdcd6466fe776d699e3a4a97c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3077761 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable power managementWealian Liao2021-08-051-0/+3
| | | | | | | | | | | | | This CL enables power management for npcx7/9_evb BUG=none BRANCH=none TEST=Check evb can enter sleep by 'idlestats' console command Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I3ef9776f492388b2943a42d99686de952c7def05 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3068843 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: npcx_evb: Enable scratchpad console cmdWealian Liao2021-08-051-0/+3
| | | | | | | | | | | | | | | | | This CL enables scratchpad console cmd for npcx7/9_evb. BUG=none BRANCH=none TEST=1. set value by 'scratchpad 0x5a' 2. 'reboot' 3. check the value is the same by 'scratchpad' Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I41a3fd0669f0d257f624b242332e9108bc02caed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3067157 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable fanWealian Liao2021-08-021-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL enables fan functionality for npcx7/9_evb BUG=none BRANCH=none TEST='fanset', 'fanduty', 'faninfo' console command ``` uart:~$ fanset 50% Fan rpm given as 50% Setting fan 0 rpm target to 3078 uart:~$ faninfo Actual: 2943 rpm Target: 3078 rpm Duty: 38% Status: 2 (locked) Mode: rpm Auto: no Enable: yes Power: yes ``` Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I836e1dd62a712bac887d4d12d34541c8c8043a83 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3063105 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable PWMWealian Liao2021-07-301-0/+3
| | | | | | | | | | | | | | | | | | | | This CL enables 2 PWM channels for npcx7/9_evb. BRANCH=none BUG=none TEST='pwmduty' console command & check the output waveform is correct. ``` uart:~$ pwmduty PWM channels: 0: 50% 1: 25% ``` Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I6fa5d3b7fd3bf1f9d1fdb3f64ca3488ad3addacc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3063104 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable ADCWealian Liao2021-07-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | This CL enables 5 ADC channels for npcx7/9_evb. BUG=none BRANCH=none TEST='adc' console command ``` uart:~$ adc ADC0 = 2813 mV ADC1 = 2813 mV ADC2 = 2813 mV ADC3 = 2813 mV ADC4 = 2813 mV ``` Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I08d60dc732f7388642a54eec090ef7bf15760a2a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3063103 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable I2CWealian Liao2021-07-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL enables I2C for npcx7/9_evb. Currently, zephyr-OS ec doesn't use the GPIO for i2c unwedge functionality. Remove the GPIO setting for i2c in gpio.dts. BUG=none BRANCH=none TEST=Get sensor value by `i2c` shell command ``` uart:~$ i2c scan I2C_2_PORT_0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 1 devices found on I2C_2_PORT_0 uart:~$ i2c read I2C_2_PORT_0 0x48 0x00 2 00000000: 1f 80 ``` Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: If5029c41b7ba5400ee1492b408f7ab6975218c5b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3060348 Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Yuval Peress <peress@chromium.org>
* zephyr: npcx_evb: Enable external power presence detection via GPIOWealian Liao2021-07-281-0/+1
| | | | | | | | | | | | | | | Enable the extpower_gpio.c module and connect the corresponding GPIOs and interrupts for npcx7/9_evb. BUG=none BRANCH=none TEST=saw the host event information when toggle the AC_PRESENT gpio Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ib9a74bffb34fdfca8ec307abfd33a4d09a960843 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058716 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable power buttonWealian Liao2021-07-281-0/+1
| | | | | | | | | | | | | | Enable the power button for npcx7/9_evb. BUG=none BRANCH=none TEST=toggle power button gpio, saw the print information Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I6ef7210250e02c768e8b5976903f1aa3785fe720 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058715 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable lid switchWealian Liao2021-07-281-0/+1
| | | | | | | | | | | | | | Enable the lid switch for npcx7/9_evb. BUG=none BRANCH=none TEST=toggle the lid GPIO, observe UART prints Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I8825992cb3e1dd6541ecad15d46ae9c71f8bb7ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058714 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable PLATFORM_EC_HOSTCMDWealian Liao2021-07-281-1/+2
| | | | | | | | | | | | | | | | | | | | Enable host command suppor for npcx7/9_evb. PLATFORM_EC_HOSTCMD default 'y' if CONFIG_AP is enabled. This CL remove `CONFIG_AP=n` to enable host command. This only enables the host command common code, which can currently compile for the following CLs. BUG=none BRANCH=none TEST=Saw 'hostcmd init' on console when ec boot. TEST=Get HOSTCMD task by 'kernel threads' shell command. Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ic673efa6ffb9805d8c8fb5fee1cfa82c775e83f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058713 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable board version gpioWealian Liao2021-07-281-0/+3
| | | | | | | | | | | | | | This CL enables board version gpio for npcx7/9_evb BUG=none BRANCH=none TEST=Get the same board version with Cros by 'version' console command Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ia1d5a0c4bd7d9b182fbb6841fb16b428192fac23 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058712 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: Initial image for npcx_evb/npcx9Wealian Liao2021-07-271-0/+26
Initial image for npcx_evb/npcx9 supporting basic UART functionality and basic commands. BUG=none BRANCH=none TEST=test basic console functionality on npcx9_evb Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I0cdf12823df35ec6aaba7a48c5d1698cc814703a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3033231 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>