| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
lazor does not support TBT or USB4. Disable the configs for these
features.
BUG=b:244218024
TEST=zmake build lazor
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: Ia3774b5f9c0938b23d6d16c70a81bc19b524334c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3863288
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CONFIG_PLATFORM_EC_ADC is redundant with the Zephyr Kconfig option,
CONFIG_ADC. Use the Zephyr option directly.
Note - projects based on the "minimal" config do not compare. The
minimal config disabled CONFIG_ADC, but the CONFIG_PLATFORM_EC_ADC_CMD
was still enabled. With this CL, CONFIG_PLATFORM_EC_ADC_CMD now depends
on CONFIG_ADC.
BUG=none
BRANCH=none
TEST=zmake testall --static; compare binaries
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I129a3f490abd5c8234bc06ed6f86f2d7ff8a13b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791659
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since CONFIG_ACCEL_INTERRUPTS is gone, this variable is not
necessary anymore.
BUG=b:230401133
BRANCH=asurada,dedede,brya
TEST=zmake testall; zmake build herobrine
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I5e6fcfa746a7c2f8f5536847d1b1054387ce8cc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3612217
Reviewed-by: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the Kconfig displight option to enable automatically if a a
cros-ec,displight node is defined.
BRANCH=none
BUG=b:217741090
TEST=compared the .config on herobrine and lazor
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I9edbd4f6984c4900dd3b35cd4d46cc4d90a90b1b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3578649
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the Kconfig kblight-pwm option to enable automatically if a a
cros-ec,kblight-pwm node is defined.
Also move the option out of the "choice" block, as that was made for
port expander support, but the driver has since been ported to the
Zephyr PWM APIs, so once we'll have an IT8801 PWM driver available,
it'll work with the existing driver automatically.
BRANCH=none
BUG=b:217741090
TEST=compared the .config on brya
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I46ddff2613b901440162e22b89895e591435bb8b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3578648
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the way of configuring USB-A power port type - add a symbol to
the choice.
Delete all configs that are set by default anyway.
BUG=b:227472576
TEST=zmake testall
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I08005659e41c4a78ef60210fe1f23fdf6dbf42f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3575154
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Convert CONFIG_PLATFORM_EC_I2C to a helper symbol that is automatically
enabled if the Zephyr CONFIG_I2C option is enabled.
BUG=b:217926701
BRANCH=none
TEST=zmake testall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I5aab26b0dea609a706b07ed752503f7432848136
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3575084
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The USB-A port count can be get from cros-ec,usba-port-enable-pins node,
namely from a number of defined "enable-pins" pins.
Remove the PLATFORM_EC_USB_A_PORT_COUNT config and define USB_PORT_COUNT
based on DTS.
This shouldn't affect the output binary, it just simplifies the
configuration process.
BUG=b:227472576
TEST=zmake testall
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I887993af7b4dae300708099f35cfe58181e14162
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3569772
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The PLATFORM_EC_USB_PD_PORT_MAX_COUNT config can be get based on dts.
PLATFORM_EC_USB_PD_PORT_MAX_COUNT equals a number of instances with
"named-usbc-port" compatible.
BUG=b:176237074
TEST=zmake testall && make buildall
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: If66ef429f4b9070e95b9631247423392c811f916
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3539940
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit removes the Kconfig prompt for event and host event
wakeup masks and enables them automatically based on device-tree
nodes. If nodes that specify the masks exist, then the Kconfig
will be enabled.
BRANCH=main
BUG=b:222689734
TEST=zmake testall, grep for WAKEUP Kconfigs in .config
Change-Id: I6d85d7118e74c668120129879c32ade93169e761
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3525177
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Current implementation supports gpio based leds. It has been
tested on lazor board and can be expanded to other boards.
Kconfig.led_dt will eventually be replaced by Kconfig.led once
the shim layer supports PWM based LEDs as well and each board
has added led.dts policy file
BRANCH=None
BUG=b:226019522, b:194430340
TEST=manual led test on lazor
Signed-off-by: Parth Malkan <parthmalkan@google.com>
Change-Id: I761d5d52bf91a9a44bb70d421c54634f5cbb795a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3540926
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This enables support for "smart" USB-A ports in addition
to the existing "dumb" support, allowing one of them to
be selected as well as implementing kconfig support for
most of the other options for "smart" ports.
For existing boards that enabled USB-A support with the default
"dumb" support, their configuration is changed to specifically
select that mode because the new choice option cannot have a
default.
BUG=b:223937974
TEST="smart" port control can be turned on for Nereid
BRANCH=none
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: If5b0fb393451d31a937c73be2aa3b9623c69307f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3517929
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Drop all CONFIG_PLATFORM_EC_PWM=y, this is now default if CONFIG_PWM=y
so the platform config is now redundant.
Add explicit CONFIG_PWM=y for npcx_evb configs.
BRANCH=none
BUG=b:217926701
TEST=zmake configure -b volteer
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: Ia785d37929bd550f46f05d5c84b11d9e1de5339a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3488367
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the stack sizes according to patch from Nuvoton.
Enable the taskinfo cmd to view stack sizes, and
define SOC_SERIES_NPCX7 so that new stack sizes are picked up.
BUG=b:218820985
TEST=zmake configure -b lazor; flash & run
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I9305d460fd688ccaa7b6d8124fa18989268b87c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3454926
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Split USBA Kconfig options from Kconfig.usbc and place
in separate file named Kconfig.usba.
BUG=b:208437225
TEST=Verified Kconfig options with menuconfig
zmake configure -b herobrine_npcx9
BRANCH=main
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: Ifaac7cd4e44390b0c216fc3bf5588c8bdf851d3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3444582
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In spite of the fact that lazor has a npcx7m6fc EC,
force it to use npcx7m7fc so that the extra code RAM
is accessible. These parts are the same die, just binned
separately, and the extra RAM is not tested.
However enabling the options required for zephyr requires
the extra space.
BUG=b:218401333
TEST=zmake configure -b lazor
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ia24415d8521da4ed894f3feaf6568410526e2f91
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3445706
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix NPCX config so that lazor Zephyr image builds
and runs. Still has a problem with jumping to RW image.
BUG=none
TEST=build and run
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ia61a091c243c80d6d742d67d7c2024656d10b677
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3443520
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit removes prompt for SHI_NPCX and SHI_IT8XXX2.
They will be automatically enabled depending on host command
interface and soc family.
BRANCH=main
BUG=b:195416058
TEST=zmake testall
Change-Id: Ic84982697de4bd3363d56c6e34e188006ea6c0e4
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3214035
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CONFIG_USB_MUX_RUNTIME_CONFIG should be independent of whether a board
is setting up runtime TCPCs. Since
CONFIG_PLATFORM_EC_USB_MUX_RUNTIME_CONFIG is default of y, this means
some boards now need to set it to n explicitly.
BRANCH=None
BUG=b:195137794
TEST=zmake testall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I12bbb5ab1bf00dd3d56c0c960881df0774b381fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3252340
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit removes the prompt for HAS_TASK_* Kconfigs.
They are enabled automatically when corresponding feature is enabled.
BRANCH=main
BUG=b:198777314
TEST=Verify that all tasks are created correctly. USB PD tasks
should match amount or usb-c ports count.
Change-Id: Ia69f9762cb8953df99d12b772f607d26df1fe379
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3197726
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit ab9796b35d33623c098f9ac497be7373c0726e25.
It is needed due to the invalid order of commits in CL that
caused the lazor board to be stuck in boot loop.
BRANCH=main
BUG=none
TEST=EC on lazor should no longer be stuck in boot loop.
Change-Id: Ie05328b50e86e5ab0e508789e86d2e112509f020
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3202195
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add motion sensors probing to zephyr build.
Add icm426xx sensor to lazor device tree.
BRANCH=main
BUG=b:194424288
TEST=Build and flash CrOS and Zephyr for lazor
On EC console there should be a message that lists probed
sensors and result of probing. Motion sensors should work
correctly, orientation and tablet mode change should be detected.
Change-Id: I33babba1724118d20a99b3a755d318bf20f5cbfc
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3137944
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable commands for displaying shell history and threads statistics.
BRANCH=main
BUG=b:190224781
TEST=Check if "history" and "kernel threads" commands work
Change-Id: Iedfaa3856c065120966f4d683646fa51218f1e0a
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3174057
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The CONFIG_CROS_RTC_NPCX config defaults to 'n'. Explicitly
add CONFIG_CROS_RTC_NPCX=y to herobrine_npcx7, lazor, and trogor
devices.
BRANCH=none
BUG=b:194710429
TEST=none
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I7a551f5574a645ea5e1495c19ec6ed09c4866ea5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3144534
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable the following host mkbp wake masks:
EC_HOST_EVENT_LID_OPEN
EC_HOST_EVENT_POWER_BUTTON
EC_HOST_EVENT_AC_CONNECTED
EC_HOST_EVENT_AC_DISCONNECTED
EC_HOST_EVENT_HANG_DETECT
EC_HOST_EVENT_RTC
EC_HOST_EVENT_MODE_CHANGE
EC_HOST_EVENT_DEVICE
EC_MKBP_EVENT_KEY_MATRIX
EC_MKBP_EVENT_HOST_EVENT
EC_MKBP_EVENT_SENSOR_FIFO
BRANCH=None
BUG=b:190503252
TEST=make buildall
TEST=zmake testall
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I40c2206892e9d4109821227eee1ff017ba501462
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2985821
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable the following configs:
* keyboard backlight control
* power sequence sleep failure detection
* resume-init and suspend-complete hooks
The following configs are not enabled because not enough code RAM:
* accel sensor spoof mode
* sysrq event emulation
BRANCH=None
BUG=b:190224781, b:183054226
TEST=Checked the following console commands showing up:
kblight, sleeptimeout
Change-Id: I2bd12f27d1688da64917ada978edb65e817aeafa
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941802
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable the I2C_PASSTHRU_RESTRICTED config for Lazor.
Define board_allow_i2c_passthru function in platform-specific code.
BUG=b:188885798
BRANCH=none
TEST=Verify that I2C_PASSTHRU command works properly e.g. DUT displays
the battery level correctly.
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Icf8a13f1c3aaecc660322a2153654c70c1accd7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2939675
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable I2C_VIRTUAL_BATTERY config for lazor. This is one of a few steps
to fix getting data about the battery by the host. Also, set
I2C_PORT_VIRTUAL_BATTERY to I2C_PORT_BATTERY, but it might be changed
in the future.
BUG=b:188885798
BRANCH=none
TEST=zmake testall
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I12da1b57b6e2cf0b98822c71243ccd1667d73506
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2919907
Reviewed-by: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable the Tablet Mode Switch config to fix activating Tablet Mode on
Lazor.
BUG=b:188147017
BRANCH=none
TEST=Build and flash Zephyr on Lazor, boot to OS and verify that
Chormebook switches to the Tablet Mode after 'tabletmode on' console
command.
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I95c7fa645dd5e8325147d7548fa99f2a1ddcccaa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2900217
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allowing EC buttons and switches to be signaled via MKBP protocol, using
CONFIG_MKBP_INPUT_DEVICES. Default behaviour is unchanged.
BUG=b:170966461
BRANCH=main,firmware-dedede-13606.B,firmware-volteer-13672.B-main
TEST=None
Signed-off-by: Boris Mittelberg <bmbm@google.com>
Cq-Depend: chromium:2824044
Change-Id: Ib96f98ecb3717a8ee8963be69fb7d7eb72e6d132
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2796382
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable the motionsense task in lazor and along with it the GMR tablet
mode and lid angle calculations.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
TEST=Flash on lazor and check sensors (done by keith since I don't have
a board).
Change-Id: Iccd1e6e0d503f759255cf3d9c162922788e915a0
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2830532
Tested-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable these tasks so that charging can work on that port.
Also drop CONFIG_PLATFORM_EC_USB_PD_USB32_DRD since this is not needed
on lazor.
BUG=b:183296099
BRANCH=none
TEST=Build lazor on zephyr; no obvious changes when run
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I503f49b5e00d6d105dce7dcabf84ffa9f999b7c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2822397
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some of the choices are incorrect here due to the defaults not lining up
with what lazor wants. Fix them.
BUG=b:183296099
BRANCH=none
TEST=Build lazor on zephyr; no obvious changes when run
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Id42c6db80276ba110fe12afa70823709b0b42888
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2822392
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verified-boot (EC software sync) asks the hash of the EC RW to check
if it is a correct version. Enable the hashing function.
BRANCH=None
BUG=b:184981521
TEST=Modified GBB flags in the AP firmware to allow EC software sync.
Checked the hash was different and performed update:
check_ec_hash: Hexp RW(active): ece8070d7fba2eff80eb8c936ba3dca9b...
check_ec_hash: Hmir: ece8070d7fba2eff80eb8c936ba3dca90...
check_ec_hash: Heff RW(active): 5270d6de9dbca79be7cb27ef9e5fd0535...
check_ec_hash: Heff != Hexp. Schedule update
After updated, the hash was correct:
check_ec_hash: Hexp RW(active): ece8070d7fba2eff80eb8c936ba3dca9b...
check_ec_hash: Hmir: ece8070d7fba2eff80eb8c936ba3dca9b...
vboot_hash_image: No valid hash (status=0 size=0). Compute one...
check_ec_hash: Heff RW(active): ece8070d7fba2eff80eb8c936ba3dca9b...
update_ec: Updated RW(active) successfully
Change-Id: I8071579e69a38f8950aa0e70bb4bee4419d11be9
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2821853
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add GPIOs to control the LED and add board/lazor/led.c to the compiled
list.
The color of the LED will be changing when the charging is supported.
BUG=b:182398910
BRANCH=none
TEST=Verfiy the LED color according to the charging state. If the
charging is not supported, disable led_set_color function and set the
color manually with gpioset GPIO_EC_CHG_LED_Y/B_C1 0/1.
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I910c58efa6b3771bacb264398acdcf171071f04a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817478
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The RTC host commands are enabled by another config
PLATFORM_EC_HOSTCMD_RTC. Enable it on Lazor.
BRANCH=None
BUG=b:182398910, b:178230662
TEST=Tested on Lazor. Disabled any network connection.
Powered down AP for a while. Booted AP again and checked
the time is accurate.
Change-Id: Id4c2d32747b5a970ff1354c1597c1356143e36ff
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2808795
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable these options to hopefully reach parity with ECOS in this area.
BUG=b:183296099
BRANCH=none
TEST=build for lazor (no test yet)
Change-Id: I04539d7eb258cf71ff462f210a4070c506565b1f
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789806
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable various charger features to bring this board closer to parity
with the ECOS build. ADC is needed also to support PCON.
BUG=b:183296099
BRANCH=none
TEST=build for lazor and check the various options in
in /tmp/z/trog/build-ro/zephyr/.config
Change-Id: I013f6033a5f115ab75cd9aadd2ef6f03008594e5
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788841
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We need a different value for lazor, so move this to Kconfig. We may at
some point move this to device tree.
BUG=b:183296099, b:175881762
BRANCH=none
TEST=with other CLs, build zephyr for lazor and see that the option is
present
build config for volteer and make sure it has not changed
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I7b5fa6a03ba24028006f6a1a8516e9244308fe76
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788833
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is a hidden warning in the current build:
zephyr/shim/include/zephyr_gpio_signal.h:14:32: warning: excess
elements in array initializer
14 | #define GPIO_SIGNAL(id) DT_CAT(GPIO_, id)
...
board/lazor/usbc_config.c:158:2: note: in expansion of macro
'GPIO_EN_USB_A_5V'
158 | GPIO_EN_USB_A_
The root cause is that CONFIG_PLATFORM_EC_USB_A_PORT_COUNT is set to
0. Set it to 1 to match the ECOS board setting.
BUG=b:183296099
BRANCH=none
TEST=build zephyr for lazor and see the warning is gone
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I8d54d87b28d170ddbdff5c2f0a4bab4ad3a91584
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789801
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:182600858
BRANCH=none
TEST=AP-EC host commands communication is functional.
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: Ic9b75f1bea988a0cc6ef8193490daea475caa34e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2786889
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define the volume button GPIOs. Enable the configs of volume buttons
and simulation command.
BRANCH=None
BUG=b:182398910
TEST=Tested on Lazor. Checked the volume buttons working in Chrome.
And tested the "button" command":
uart:~$ button vup 200
uart:~$ [25.412800 Button 'Volume Up' was pressed]
[25.415200 buttons: 2]
[25.418200 HC 0x67]
[25.448600 HC 0x25]
+++(++)[25.612800 Button 'Volume Up' was released]
[25.615400 buttons: 0]
[25.617700 HC 0x67]
[25.634800 HC 0x25]
+++(++)button vdown 200
uart:~$ [33.391100 Button 'Volume Down' was pressed]
[33.393600 buttons: 4]
[33.397100 HC 0x67]
[33.591500 Button 'Volume Down' was released]
[33.594100 buttons: 0]
[33.597400 HC 0x67]
Change-Id: I2e1fbe30ed704fa57d49377fea344e0aa52c5741
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2792695
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable the CONFIG_PLATFORM_EC_SWITCH.
BRANCH=None
BUG=b:183445211
TEST=Tested on Lazor. The following errors didn't show on depthcharge:
error, assuming lid is open
error, assuming lid is open
error, assuming lid is open
...
Change-Id: I8f1b6fc8772bb47cc98d559772ab6029fb6e0742
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2787595
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable the CONFIG_PLATFORM_EC_BACKLIGHT_LID.
BRANCH=None
BUG=b:183445211
TEST=Tested on Lazor. Display backligh ON when booting AP.
Change-Id: I4a70c418b0250f77d626ad1387ac94e530c3e065
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2787467
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable PLATFORM_EC_RTC and PLATFORM_EC_CONSOLE_CMD_RTC.
BRANCH=None
BUG=b:182398910
TEST=Tested on Lazor. The RTC counted. Can set it.
uart:~$ rtc
RTC: 0x605ccb65 (1616694117.00 s)
uart:~$ rtc
RTC: 0x605ccb93 (1616694163.00 s)
uart:~$ rtc set 12345
RTC: 0x00003039 (12345.00 s)
Change-Id: Iecd67ea279508aaa28c81b6d28b7aa2e118023b2
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2787084
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add this file into the zephyr build along with the required CONFIG
options and device tree additions, so we can make a start on bringing
up USB-C and charging functionality.
Add all the required GPIOs here as well, so that things will work when
we move the code over in the following CLs.
BUG=b:183296099
BRANCH=none
TEST=build zephyr for lazor
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I8c4f54664d2d18b44ed8992e61e7b2f694f04f93
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2777642
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define the keyboard scanlines and the inverted KSO2 GPIO.
Enable the keyboard-related configs.
Some warning of "MKBP not cleared" or "MKBP FIFO being full"
will be showed as the SHI driver is not ready. The MKBP FIFO
won't be dequeued.
BRANCH=None
BUG=b:183445211
TEST=Tested on Lazor by pressing keys, including KSO2.
uart:~$ ksstate on
[26.075200 KB debounced : -- -- -- -- -- -- -- -- -- -- -- -- --]
[26.079600 KB debouncing: -- -- -- -- -- -- -- -- -- -- -- -- --]
Keyboard scan disable mask: 0x00000000
Keyboard scan state printing on
uart:~$ [29.269700 KB state: -- 02 -- -- -- -- -- -- -- -- -- -- --]
[29.392000 KB state: -- -- -- -- -- -- -- -- -- -- -- -- --]
[30.244000 KB state: -- -- 01 -- -- -- -- -- -- -- -- -- --]
[30.274000 MKBP not cleared within threshold, toggling.]
[30.359600 KB state: -- -- -- -- -- -- -- -- -- -- -- -- --]
[31.278800 MKBP not cleared within threshold, toggling.]
[31.872900 KB state: -- -- 08 -- -- -- -- -- -- -- -- -- --]
[32.005100 KB state: -- -- -- -- -- -- -- -- -- -- -- -- --]
[33.060500 KB state: -- -- 04 -- -- -- -- -- -- -- -- -- --]
[33.189500 KB state: -- -- -- -- -- -- -- -- -- -- -- -- --]
[34.065100 MKBP not cleared within threshold, toggling.]
[34.454100 KB state: -- -- 02 -- -- -- -- -- -- -- -- -- --]
[34.556600 KB state: -- -- -- -- -- -- -- -- -- -- -- -- --]
[35.069300 MKBP not cleared within threshold, toggling.]
[37.356900 KB state: -- -- -- -- 08 -- -- -- -- -- -- -- --]
[37.452900 KB state: -- -- -- -- -- -- -- -- -- -- -- -- --]
[38.361500 MKBP not cleared within threshold, toggling.]
[39.365800 MKBP not cleared within threshold, toggling.]
Change-Id: I02390e85f9454d5c93cd54d333d2e242e0c54911
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2782368
Reviewed-by: Simon Glass <sjg@chromium.org>
|