| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 4e074a16c5703f0cdd7b7d780a8ae1bea53a445a.
Reason for revert: responsible for CQ failures (crbug.com/1202406)
BUG=chromium:1202406
BRANCH=none
TEST=CQ
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Original change's description:
> config: rename CONFIG_FLASH to CONFIG_FLASH_CROS
>
> 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=b:180980668
> TEST=make buildall
> BRANCH=none
>
> Change-Id: Ibac008ddff8c041aae04dca0bbf973823abe7640
> Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2816622
> Tested-by: Eric Yilun Lin <yllin@google.com>
> Reviewed-by: Keith Short <keithshort@chromium.org>
> Commit-Queue: Keith Short <keithshort@chromium.org>
Bug: b:180980668
Change-Id: Idc5e799d3b0ea8cc76dbbb49a91b3758ce6e9719
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2847274
Auto-Submit: Jack Rosenthal <jrosenth@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the boot banner to match Chromium OS. This also modifies the
version output to include "_zephyr" after the board name to clearly
identify the image type.
Boot banner:
Booting Zephyr OS build zephyr-v2.5.0-31-g6fcd6373e58a
--- UART initialized after reboot ---
[Image: RO, volteer_zephyr_v2.0.8350-190d6f 2021-04-08 11:15:09
keithshort@mtbaldy]
[Reset cause: reset-pin]
uart:~$ version
Chip: Nuvoton NPCX796FC 02
Board: 1
RO: volteer_zephyr_v2.0.8350-190d6f
RW: volteer_zephyr_v2.0.8350-190d6f
Build: volteer_zephyr_v2.0.8350-190d6f
2021-04-08 11:15:09 keithshort@mtbaldy
BUG=none
BRANCH=none
TEST=zmake testall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ia136c4e025aba95217f1d8c51de39255fef54f7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2822208
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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=b:180980668
TEST=make buildall
BRANCH=none
Change-Id: Ibac008ddff8c041aae04dca0bbf973823abe7640
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2816622
Tested-by: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify start sinking VBUS condition. in the first initial state, the
power status is in the uninit state.
BUG=b:178728138
BRANCH=dedede
TEST=build and flash sasukette, remove battery, plug in 45W charger,
verify that DUT can boot up.
Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Change-Id: Id7223474046528ebece0e1267ec56d1c4d148f41
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2847866
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
EC should boot with UART active
BUG=b:180980668
BRANCH=none
TEST=zmake configure -b $PROJ_HAYATO
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Idae8453c5803442c2f9853c45462a7eb74d5c268
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2844770
Tested-by: Denis Brockus <dbrockus@chromium.org>
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the kx022 as an alternate sensor for the bma255. The logic for
swapping the sensors will come in future CLs associated with
b:183990188.
BRANCH=none
BUG=b:183990188, b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I681624034f63657dfcc0a352b31a0bbed61bd8db
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2846416
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In some boards there's a runtime decision for which sensor to use. In
order to support this we'll need an instance of the alternate sensors
as well as a mapping for them.
Add an optional phandle `alternate-for` to the base sensors bindings.
When used, the sensor will be excluded from the primary
motion_sensors array and added instead to the motion_sensors_alt
array.
BRANCH=none
BUG=b:183990188, b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I6f6e3a9659a381c45fd97fbce9fecb2a807f7fa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2846415
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For the accel_kionix.c module to work, either the KXCJ9 or KX022 configs
must be defined.
BRANCH=none
BUG=none
TEST=make buildall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Ib015f16d335dcee37f00faee6bcaccb8bf2f3ef6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848431
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The config value is needed by the common accel_kionix.c module.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I4c9f5c05e1801b3c26eaaaba48dbf8dd107dd386
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848430
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The common logic doesn't work if neither the BMI160/BMI260 configs are
defined. Add a check for this so the build would fail.
BRANCH=none
BUG=b:185966444
TEST=make buildall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I3288c5481eba25c8c1858122c83018073e0eaab8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848429
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The config option was missing and is needed by the
accelgyro_bmi_common.c.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I258ea8c93d367415eebdb71d9db397069b26e371
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848428
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a temporary piece of code that will be adjusted
and/or removed when driver/pinmux/pinmux_ite_it8xxx2.c
is released. The temporary code allows UART to work,
so it is being added for now.
BUG=b:185202623
BRANCH=none
TEST=none
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I3f100f6a4cefea86f1e00a0a542ccd7f38f44878
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848434
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:185202623
BRANCH=none
TEST=none
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Ia6e3821bb23b5aa928aa62ebc06abc0b1e9f8618
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848433
Tested-by: Denis Brockus <dbrockus@chromium.org>
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:185202623
BRANCH=none
TEST=none
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Id9933dd5027d9059af3aa030f678421ee232ba9f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848432
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the bindings files for the kx022 and generic kionix driver data.
Also, add the .inc files needed to create an instance of the sensor
and data structures.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Id72690763b27888848645ee38a747a4e49fa0d42
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845558
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move unused pin to new unsed-gpios dts setting.
BUG=b:184783076
BRANCH=none
TEST=check gpiof2, gpio96, gpio34 set to input pull-up by 'rw' console
command
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I79f46febe944cc5615ee8666d6678d37363d9078
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2825718
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL adds ununed GPIOs configuration support in shimmed gpio driver.
By adding IO phandles in 'unused-gpios' prop of board device-tree file,
the shimmed driver will configure them one by one (depends on board
circuit or io-pad design in chip) to prevent leakage current and get
better power consumption in the lowest power state.
BUG=b:184783076
BRANCH=none
TEST=zmake testall
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Ia4fe29cc244e27855faa1b57c2d1f8319b1246c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817141
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1.Remove CONFIG_SYSTEM_UNLOCKED
2.Remove CONFIG_BYPASS_CBI_EEPROM_WP_CHECK
BUG=b:183687873
BRANCH=firmware-volteer-13672.B
TEST=make BOARD=coapno
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: Ia85de9121e3217730ebe2f21de814fe2dabd4b5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2847711
Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After removal of gpio_over_usb, firmware for servo_v4 was implementing
only 5 interfaces, even tough configuration descriptor claimed 6. This
leads to kernel warning during enumeration and more importantly some
UEFI implementations on high-end devices refused to boot.
Eventually we would like to remove EMPTY identifier and re-define all
consecutive interface numbers, however this bring implications to the
hdctools, which are using hardcoded values during normal operation.
BUG=b:183857501
BRANCH=main
TEST=Connect servo_v4 & servo_v4p1 to server machines (e.g HP,DELL) in
the lab and reboot the server. It should boot without issues
TEST=Plug servo_v4/v4p1 into host computer and verify dmesg. No
warnings should be visible in the output. For error case one may have
seen:
`config 1 has 5 interfaces, different from the descriptor's value: 6
config 1 has no interface number 1`
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Change-Id: Ibc114aaeae7572845d3c6160cb897a9856e2f276
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2846330
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable some basic power LED states for mancomb. Solid green for S0,
flashing yellow for suspend, and flashing red for insufficient charger.
BRANCH=None
BUG=b:185508707
TEST=builds (boards have not SMT'd yet)
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I18369a8b0d51b73e3aa9883feef7441f5cae923c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832695
Reviewed-by: Rob Barnes <robbarnes@google.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a common state to communicate that we're off due to insufficient
power. If not defined, allow this state to fall back to OFF since many
systems with batteries will be using the battery LED to communicate this
information.
BRANCH=None
BUG=b:185508707
TEST=on boten, confirm no regressions with fake low battery in S5
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ie8b37785a43fdfdd6619fe72c8bd7e2be6776e43
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832694
Reviewed-by: Rob Barnes <robbarnes@google.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:185664761
TEST=make -j BOARD=homestar
Verify build on EVT board
BRANCH=Trogdor
Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com>
Change-Id: I84ac4b468d9966b22bade74d3603cace3ba4d35c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845561
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the kionix driver via a CONFIG_ flag to the Zephyr build.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I7cd41cb522c2f7963f9c5d3b2849ed973a230374
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845557
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Zephyr builds we don't add the root platform/ec in the include path
so we'll need to remove the "driver/" prefix
BRANCH=none
BUG=b:185966444
TEST=make buildall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Ib757d4c7459e6f99178e03f1ef7fa1fc5e413c34
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2844790
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Updated the code use PCA9675 I/O expander's standard driver structure.
BUG=b:169814014
BRANCH=none
TEST=ADLRVP can configure retimer & CCD works
Change-Id: I61eef08214a64382338321f4a2dae9f7cfd980da
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845014
Reviewed-by: caveh jalali <caveh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added code so that PCA9675 I/O expander driver fits standard
I/O expander functionality.
BUG=b:169814014
BRANCH=none
TEST=Manually tested on ADLRVP, ioexget & ioexset works
Cq-Depend: chromium:2845014
Change-Id: I07957a3f1de9b70fc396d767e8cc3ac8884b9c2e
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2829985
Reviewed-by: caveh jalali <caveh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL fixes some potential leaks for the SHI driver:
1. Replace irq_lock/irq_unlock with __disable_irq/__enable_irq because
irq_lock/irq_unlock leave some system exceptions still enabled.
These may block the SHI driver's execution which requires hard
timing.
2. Change the interrupt priority of SHI from 2 to 1.
BRANCH=none
BUG=b:182600858
TEST=Verify the SHI function on Lazor
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: If0ea355b5f300054ce8f7ae53de12f99a6d6aba6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2835526
Tested-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: CH Lin <chlin56@nuvoton.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL implements F2 refresh key to ROW3
BUG=b:181102461
BRANCH=asurada
TEST=none
Change-Id: I49a05c6ea3b2fcce8c2d914f3d9390903e49c617
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2825716
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fine tune Keyboard backlight PWM frequency from 2.4kHz to 10kHz
BUG=b:185972046
BRANCH=firmware-volteer-13672.B
TEST=make BOARD=drobit
1. Verified pass by EE team.
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: I663bd6401ae055d12cfd774a84fcbf5dabc76188
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845024
Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Zhuohao Lee <zhuohao@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1.Remove CONFIG_SYSTEM_UNLOCKED
2.Remove CONFIG_BYPASS_CBI_EEPROM_WP_CHECK
BUG=b:182751870
BRANCH=firmware-volteer-13672.B
TEST=make BOARD=drobit
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: Ib86c81af7a4e1af6788abed56fdc4749dd9faf78
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845196
Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This replaces the IIN_DPM_REG_TO_CURRENT and IIN_HOST_CURRENT_TO_REG
macros with equivalent functions to make the implementation more robust.
BRANCH=none
BUG=b:185190976
TEST=buildall passes
Change-Id: I9fac69d38efd197a916bc18d12869b04a89adb5a
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842705
Reviewed-by: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This cleans up the use of CURRENT_SHIFT and CURRENT_STEP_MA in related
macros. Also, in one case INPUT_RESISTOR_RATIO was not applied to
IIN_DPM - luckily, this ratio is 1 for all affected boards, so fixing
this has not functional impact.
BRANCH=none
BUG=b:185190976
TEST=ran util/compare_build.sh on affected boards
Change-Id: Ib3e8321d3d7ed69d33d7266077a67c5d2893182a
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785269
Reviewed-by: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This updates the brya PoR battery parameters to match the latest spec
provided in b/177971846#comment16.
- device name added
- precharge current raised to 280mA
- min. discharge temp raised to -10C
BRANCH=none
BUG=b:177971846
TEST=PoR battery is recognized and charges
Change-Id: I9e3dcd47166cfd943f9f324802de9361d4da7ae6
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2837416
Reviewed-by: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add delay of 100 ms to consider minimum bootloader start time for stm32.
This fix prevents triggering stm32mon before bootloader is finished.
BRANCH=none
BUG=b:185074067
TEST=Multiple 'flash_fp_mcu <fpfw>'
Tested on coachz, nocturne and morphius boards
Change-Id: Ic60e9e67c29664ce22bfc66bec6eaf76ffc80454
Signed-off-by: Sujit Kautkar <sujitka@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2837485
Tested-by: Sujit Kautkar <sujitka@chromium.org>
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Commit-Queue: Sujit Kautkar <sujitka@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The driver was only handling chipset_resume. chipset_reset also needs to
be handled. Otherwise mux won't be set on an apreset.
BUG=None
TEST=C1 display works after apreset
BRANCH=None
Signed-off-by: Rob Barnes <robbarnes@google.com>
Change-Id: I0ec336a733e51d44be7ea95f8fcfeb8a606d50a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845269
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add anx7451_power_off and anx7451_wake_up routines. ANX7451 is powered
off whenever both USB and DP are disabled. ANX7451 is woken up via i2c
before mux set or get.
BUG=b:184907521
TEST=Mux is powering off when nothing is connected.
Mux is waking up when cable is connected.
BRANCH=None
Signed-off-by: Rob Barnes <robbarnes@google.com>
Change-Id: Idf1343735cb94eb8bbaebe93794195d2f115b086
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2840056
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It seems that these perhaps confuse the compiler, producing this
warning in some cases:
zephyr/shim/src/espi.c:142:13: warning: 'kbc_ibf_obe_handler' used
but never defined
Reorder the code to fix this.
BUG=none
BRANCH=none
TEST=try on gitlab: https://gitlab.com/zephyr-ec/ec/-/jobs/1167734180
Change-Id: Ic3fbce80974ac978d38c97bdf25a12facf11201f
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817959
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The header for charge_get_percent() will only define this function if
CONFIG_CHARGER is present. Make a declaration for complilation to use,
and then allow most of the led_get_state() function to be optimized out
with IS_ENABLED().
BRANCH=None
BUG=b:185508707
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I3d94f290ac5b9ec82b46b9c0a6fc668b2e8dd91c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832693
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, all boards using the LED On/Off module have battery LEDs.
However, if we'd like to expand support to Chromeboxes then the battery
LED must become optional.
BRANCH=None
BUG=b:185508707
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ieae098829ebe6c8b103f23d5abdbf70e7bcbdf2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832692
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the LED on/off module towards using a more flexible LED support
approach. Define a weak power LED table and setter for boards to
override when needed. Note that during run-time these functions will
not get called since led_auto_control_is_enabled() will return false for
nonexistent LEDs.
This consumes an average of 165 additional bytes of flash space on
boards which do not use a power LED.
BRANCH=None
BUG=b:185508707
TEST=make -j buildall, load on guybrush (battery LED only) and confirm
no errors are seen. Load on Boten (both LEDs) and confirm behavior
appears normal
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Iaa1e22a7f5d8be39eb8792ee13d358087d7f7482
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832691
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fix bit alignment in cbi_ssfc
BUG=b:186067339
BRANCH=none
TEST=make -j BOARD=sasuke
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: I15902938ddefe27aeb36530008cfb899440c9d15
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845195
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some items in faft_pd is failed
because of WA for S0iX power consumption.
WA is fixed, based on CL:2773218
BUG=b:186022475
BRANCH=none
TEST=make -j BOARD=sasuke & run faft_pd
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: I9fe8a14c6e071f12d13012ec7809dad4d20e3192
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842715
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the interrupt handler using the same model used in the bmi260.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I7aa3bcade8c3bc0fe526d44f8223bab8760cf279
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842714
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds the code to create the motion sensor structs for the bmi160.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I8b9c31b4006b404beeff33e9edcddb13c7dbf848
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842713
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Files in zephyr/ directory should not be using the old CONFIG_ values.
Convert them to the CONFIG_PLATFORM_EC_ equivalents.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I0bcee471d6b2afcd3de5f06886e19fb771c85c45
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842712
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add implementation for the board specific lid_angle_peripheral_enable
function (taken from board/lazor/board.c).
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I9067eeb8fb7b156e6fa690b007d777cd5e760d8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842711
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds a Kconfig option to add the bmi160 drivers.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I602c4fe9564ebb49dc0db5bb00d51b413ebe76c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842710
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds the bindings needed to use the bmi160 in devicetree.
BRANCH=none
BUG=b:185966444
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I6c83adca1b6456eea34367df693d1993f6ef86eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842709
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Based on b:183826778's comment#17 and comment18 information to
update lightbar 10-led cfg setting.
The final placement adopt lightbar circuit's LED9 and LED10 which
connect to KTD2061's LEDC1 and and LEDC2, not adopt LED11 and LED12
which connect to LEDC3 and LEDC4.
BUG=b:183826778
BRANCH=volteer
TEST=make -j BOARD=lindar
Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com>
Change-Id: I7f7e1cac1f7361c5c21497a0cc4c1ff2763873bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2833031
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|