| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bringup power sequencing for AMD and enable for guybrush.
Note that at the moment we had to copy-paste the power signals and
related funcitons, the code was a bit too far from shimming without
extensive editing. We can try and merge together later.
BUG=b:195137794
BRANCH=none
TEST=power sequence to S0, nothing useful on ap console (yet!)
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I9a577e24d80fe0ff992af4b847e14695b82f871d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3169568
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a Kconfig option to control the CONFIG_CMD_S5_TIMEOUT option.
BUG=b:193195946
BRANCH=none
TEST=zmake testall
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I2f4b8c74a9b710f68d8e07e04d9cb95ca2e39dea
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3015869
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Create new configs (Chromium EC namespace and Zephyr namespace) for
SC7280. In this state, SC7280 power sequence has no difference
from SC7180.
BRANCH=None
BUG=b:187980397
TEST=Built all the Chromium EC images and Zephyr EC images.
TEST=Modify a board to use the new CONFIG.
Change-Id: I178b8ffa5d79d3828baf222ac77906ab2262cf76
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2893069
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable SC7180 power sequencing code.
Currently, depthcharge starts and then times out on some host
commands, and the AP issues a reboot. We're going to need the SPI
host interface up and going in Zephyr to get any further, so may as
well submit this for now.
BUG=b:183054226
BRANCH=none
TEST=used serial firmware to verify that depthcharge starts, times out
on some host commands, and then reboots
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I860088360480946b644fd1bb276a29266c57c614
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774368
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The PLATFORM_EC_POWERSEQ_PP5000_CONTROL config option was previously
guarded under a PLATFORM_EC_POWERSEQ_INTEL dependency, however the
config option is used in the ARM world as well.
Drop the Intel dependency.
BUG=b:182398910
BRANCH=none
TEST=zmake testall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ica512cbbd9fb0735ab07192543e95ef27bc0e03f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774359
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
common/power_button.c (enabled by PLATFORM_EC_POWER_BUTTON) does not
use or require the POWERBTN task. The POWERBTN task is required by
common/power_button_x86.c instead, which is enabled by
PLATFORM_EC_POWERSEQ_INTEL.
Thus, there should not be a reverse dependency on the POWERBTN task
for PLATFORM_EC_POWER_BUTTON, and this select was moved to the correct
location.
BUG=b:180410072
BRANCH=none
TEST=compile for delbin with follow-up CL (enables the power button)
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Icf7c89ad006c2c32cdc1f0f77ecff0c42fa6dab2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2699530
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for this in Zephyr so the AP can request a reset from the
EC. Don't enable it by default as it is not widely used and is quite
dangerous.
BUG=b:178099673
BRANCH=none
TEST=build zephyr and see that host_command_apreset is now compiled in
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I6aefc6c60ab316bd2445ceb06fd59a90d6c576b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2678789
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for this feature which is used on some x86 systems.
BUG=b:178099673
BRANCH=none
TEST=build volteer for zephyr
make BOARD=volteer -j8
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I607a96cd79496534da08b050f2e43fd82c351e58
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643619
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a shim option for enabling S0ix and host sleep tracking.
BUG=b:177609422
BRANCH=none
TEST=power sequence kohaku
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I2a41ec509339879c6a372bdc7d2d6d2e2bb651ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633821
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add Kconfig options to enable cometlake power sequencing.
BUG=b:177609422
BRANCH=none
TEST=with kohaku CLs
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ib40873f623a4860e83bd4692e0d2ade1abbecb99
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633164
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This option is implied so we may as well create it. Set it to be
visible (and automatically enabled) only if PLATFORM_EC_POWERSEQ is
enabled. This mostly mimics the current behaviour.
BUG=b:176449230
BRANCH=none
TEST=ninja -C /tmp/z/vol/build-ro menuconfig
Check the operation of HAS_TASK_CHIPSET and PLATFORM_EC_POWERSEQ
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I7dc698c15fa65eb16ec40724a06b67d7e4ddc27d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606573
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a menu for each of these since it produces a tidier top-level view
for the EC. Put the function as the first word to make it easier to
follow.
For battery and USB-C, use menuconfig so that it works the same way as
power sequencing.
BUG=b:176449230
BRANCH=none
TEST=ninja -C /tmp/z/vol/build-ro menuconfig
See that the menus appear
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I57e58f94aeaa0783ca69b0c948b7760c2e42adbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606571
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See platform/ec/common/build.mk for reference. The use of
keyboard_scan.c should only be allowed when HAS_TASK_KEYSCAN
is defined. As such, we should always set HAS_TASK_KEYSCAN to
1 if CONFIG_PLATFORM_EC_KEYBOARD is defined. Further,
CROS_EC_TASK_LIST was defined per project and it doesn't need
to be, we can instead define it once for all boards depending
on which tasks are set to 1 in shimmed_tasks.h
Note that shimmed_tasks.h can still be used in tests.
BRANCH=none
BUG=none
TEST=zmake testall
Cq-Depend: chromium:2566421
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Id0ed49dd49e3c4eb2ac23184cf943c91dcd261eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2567560
|
|
Enable shimming of power sequencing code.
BUG=b:171312361
BRANCH=none
TEST=With zephyr-chrome CL...
https://screenshot.googleplex.com/4m6N6vd2Nx5FpiD.png
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I8fb96019c8c636010d2cd136c0116df41fc9f148
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2548308
|