| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define an explicit function to set events for the usb charger tasks, so
that the caller is not coupled to the internal task implementation, and
we can use a single task on a later patch.
BRANCH=none
BUG=b:226411332
TEST=make buildall
TEST=zmake testall
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I7a1223642b800568bf4f9864f75b2b647c84d29f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3663746
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a finer grain set of define, to allow some sensors to use interrupt
when wired properly and some use force mode when not using interrupt.
BUG=b:230401133
BRANCH=asurada,dedede,brya
TEST=Build all. Check Zephyr with herobrine. Check on bugzzy.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I9c7d50b88a0eaec017f4e5e2ccfdb80761d71fb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3609121
Reviewed-by: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds battery parameter as following:
1. DynaPack CosMX 44Wh
2. DynaPack ATL 44Wh
3. Simplo HIGHPOWER 44Wh
BUG=b:231377901, b:231378635, b:231378985
BRANCH=firmware-kukui-12573.B
TEST=make sure battery charging, battery cutoff works.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Iffa28caca72a38e6f2fae2470405ac2b439c9885
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3626852
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch replaces 2nd source base accelerometer to ICM-42607.
BUG=b:230553688
BRANCH=firmware-kukui-12573.B
TEST=On Burnet. Sensor works.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ia5456f2f87d644821371ac0ffdea16c07a5c3fff
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3508936
Reviewed-by: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Renamed IT8801 discrete keyboard related names like NOT_RAW, I2C_PORT,
I2C_ADDRESS and Interrupt GPIO to support discrete keyboard in Zephyr
Shim.
BUG=b:230008245
BRANCH=none
TEST=make buildall
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Change-Id: I9be3ff570681f88e1fc3ac0650f9919ad272b847
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3600627
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to correctly sequence HPD sets with the AP, allow the HPD set
to wait on an ACK from the AP before proceeding.
BRANCH=None
BUG=b:202137658
TEST=on brya, validate retimer and virtual mux are kept in sync as
expected
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I368c3290b69d627829a70847876d7b47a8c36948
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3232293
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Convert all instances of i2c_bitbang_ports[] to use declared
initializers. This allows the fields to be reordered without
breaking code.
BUG=none
BRANCH=none
TEST=compare_build.sh
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: If7d578dc2bc5ef1f7c5dc424ceb3193cd98f7a69
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3300663
Reviewed-by: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Convert all instances of i2c_ports[] to use declared initializers. This
allows the fields to be reordered without breaking code.
BUG=none
BRANCH=none
TEST=compare_build.sh
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I326bd6efef5cdfdf8bbd2c68dda268dca543b9d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3300185
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update SPI references to controller/peripheral for inclusivity.
BUG=b:163885307
BRANCH=none
TEST=compare_build.sh
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I19b02fb949aad9ade569c4658a904e9ce59e27c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3066272
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Compiles the less detailed but more memory efficient
version of EC command `pd <port> srccaps`,
to save burnet memory.
This is for a feature to make the EC power delivery
command more verbose: c/3248345.
BRANCH=None
BUG=b:194402616
TEST=Built all boards (make -j buildall)
Signed-off-by: Nehemiah Dureus <ndureus@google.com>
Cq-Depend: chromium:3248345
Change-Id: I121b82cc936a2eaa2a6db31a366fabe974842bf2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3248344
Reviewed-by: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the functions are copied by many boards, move them to common.
The specific param regs are defined in each specific boards.
BUG=b:203031618
BRANCH=none
TEST=make BOARD=burnet/coachz/eve/homestar/kappa/mrbland/quackingstick/
wormdingler.
Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Change-Id: I77c070663ad3e800ec484bd21865c5d911a2c48b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3220718
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"enum ec_led_colors" was used here instead of "enum led_color".
Fixes the following clang warning:
board/burnet/led.c:85:28: error: implicit conversion from enumeration type
'enum led_color' to different enumeration type 'enum ec_led_colors'
[-Werror,-Wenum-conversion]
rv = led_set_color_power(color);
~~~~~~~~~~~~~~~~~~~ ^~~~~
board/burnet/led.c:112:23: error: implicit conversion from enumeration type
'enum led_color' to different enumeration type 'enum ec_led_colors'
[-Werror,-Wenum-conversion]
led_set_color_power(LED_WHITE);
~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
board/burnet/led.c:115:25: error: implicit conversion from enumeration type
'enum led_color' to different enumeration type 'enum ec_led_colors'
[-Werror,-Wenum-conversion]
(power_tick & 0x2) ? LED_WHITE : LED_OFF);
^~~~~~~~~
board/burnet/led.c:115:37: error: implicit conversion from enumeration type
'enum led_color' to different enumeration type 'enum ec_led_colors'
[-Werror,-Wenum-conversion]
(power_tick & 0x2) ? LED_WHITE : LED_OFF);
^~~~~~~
board/burnet/led.c:117:23: error: implicit conversion from enumeration type
'enum led_color' to different enumeration type 'enum ec_led_colors'
[-Werror,-Wenum-conversion]
led_set_color_power(LED_OFF);
~~~~~~~~~~~~~~~~~~~ ^~~~~~~
BRANCH=none
BUG=b:172020503
TEST=CC=arm-none-eabi-clang BOARD=burnet -j
TEST=./util/compare_build.sh -b all
=> MATCH
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ie530c1cd3603652748349a65f80242694884f6b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3199736
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To avoid the I2C address contention between multiple I2C devices
on same bus, added code to support multiple I2C addresses for
it8801 I/O expander.
BUG=none
BRANCH=none
TEST=make buildall -j
Change-Id: I6985973f9ae3ce91383d3b568a851169e6a308af
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115426
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Li Feng <li1.feng@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since we have definitions for HPD IRQ and level in the mux flags, extend
this to the HPD update function in the usb_mux structure as well.
BRANCH=None
BUG=b:172222942
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I19c3a65fc821a341338d73fabd7876339b37fe7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3095437
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This removes the use of adc_chip.h where adc.h is also used. In this
case, adc_chip.h is redundant.
BRANCH=none
BUG=b:181271666
TEST=buildall passes
Change-Id: Id7baf9aef949447a4d47934242f9bae97c971262
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3120317
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are 2 tablet mode triggers:
* Lid: when the lid angle close to 360 degree, either detected by
a GMR sensor or by the angle computed by 2 motion sensors.
* Base: when the detachable base is detached.
These 2 triggers set the tablet mode status, which as a boolean,
resulting a race condition.
This CL fixes the race condition. Each trigger updates its own bit. The
final tablet mode status is the OR of all bits.
BRANCH=Trogdor
BUG=b:193873098
TEST=Attached the base, checked tablet_mode enabled;
detached the base, checked tablet_mode disabled;
flip base to 360 degree, checked tablet_mode disabled;
move the base out of the lid, checked tablet_mode disabled.
Change-Id: Ia9d9d2d66c194796c1039cc8b746c8d1f28a4496
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044414
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently keyboard_scan_config is defined by each board using
CONFIG_KEYBOARD_BOARD_CONFIG. This patch makes it defined as
__override hence removes CONFIG_KEYBOARD_BOARD_CONFIG.
BUG=None
BRANCH=None
TEST=buildall
Change-Id: I53a356741ba4d00e829ca59b74ee6dc704188728
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044403
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The naming string should be DYNAPACK.
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I32f2498d4e51a83bd323d313a862622b6e69967d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3038017
Reviewed-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
also, kodama(detachable) missed MODE_CHANGE event, add it back.
BUG=none
TEST=make buildall
BRANCH=kukui,icarus
Change-Id: Id7139ef64caf28720d389d8c048bfd724b42ba95
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2987227
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the motion_sense.h address macros to reflect our current i2c
terms, and also to specify that these are used exclusively in the
accelerometer code.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ibad287df2ba1ecd0b6f3061599476636ac7a5354
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2946316
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This renames the MODULE_SPI_MASTER to MODULE_SPI_CONTROLLER.
BRANCH=none
BUG=b:181607131
TEST=make buildall passes;
"compare_build.sh -b all" shows no difference
Change-Id: I4d33f57fd82c5b57f111c12387113dc82cebe60b
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2932466
Reviewed-by: Craig Hesling <hesling@chromium.org>
Reviewed-by: Harry Cutts <hcutts@chromium.org>
Commit-Queue: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This function prototype is defined in lots of files, none of which is
visible to Zephyr.
Add a prototype in one place and remove the others.
BUG=b:183296099
BRANCH=none
TEST=make buildall
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Ia324327a69b117483ab9ee5c85eba93c0fb5ad9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789799
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use board-specific override files when generating VIFs for boards.
BUG=b:172276715
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I197365018ceb8197c22d631cebf4cbce1c0119f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785506
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a reland of 3d3f2316b7d2f060d4f8c919a2c82326f8651af3
Original change's description:
> burnet: Change detect method for 2nd base accel
>
> Both bmi160 and icm-40608 are using spi interface with Jacuzzi.
> The sensor will acknowledge with the ping. we should make sure
> the return value is matching the chip content.
>
> BUG=b:173647487
> BRANCH=firmware-kukui-12573.B
> TEST=ectool motionsense on both bmi160 and icm-40608
>
> Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
> Change-Id: I3a502c182bb766b52dd5d85014478f9c0014360a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2763605
> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Bug: b:173647487
Change-Id: I140aeacd46d74216bc7c999c493dc1be1590aa5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2783510
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Devin Lu <Devin.Lu@quantatw.com>
Tested-by: Devin Lu <Devin.Lu@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 3d3f2316b7d2f060d4f8c919a2c82326f8651af3.
Reason for revert: <Missing return rv>
Original change's description:
> burnet: Change detect method for 2nd base accel
>
> Both bmi160 and icm-40608 are using spi interface with Jacuzzi.
> The sensor will acknowledge with the ping. we should make sure
> the return value is matching the chip content.
>
> BUG=b:173647487
> BRANCH=firmware-kukui-12573.B
> TEST=ectool motionsense on both bmi160 and icm-40608
>
> Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
> Change-Id: I3a502c182bb766b52dd5d85014478f9c0014360a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2763605
> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Bug: b:173647487
Change-Id: Ie6e5c895f558a9cdc53648599502abcf2b8dae89
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2783504
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Devin Lu <Devin.Lu@quantatw.com>
Commit-Queue: Devin Lu <Devin.Lu@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Most Jacuzzi devices copied the incorrect lid_angle_peripheral_enable
code from Reef. Fix this by sharing Willow's good implementation
to all followers.
BUG=b:181852624
TEST=1) make buildall
2) manually test on fennel
BRANCH=kukui
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Ie2dd79d5d0dcebe564664c357db73c5956d1b14b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2765633
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Both bmi160 and icm-40608 are using spi interface with Jacuzzi.
The sensor will acknowledge with the ping. we should make sure
the return value is matching the chip content.
BUG=b:173647487
BRANCH=firmware-kukui-12573.B
TEST=ectool motionsense on both bmi160 and icm-40608
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I3a502c182bb766b52dd5d85014478f9c0014360a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2763605
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch add one more source for lid/base accel.
lid accel - kx022
base accel - icm-40608
BUG=b:181627606, b:173647487
BRANCH=firmware-kukui-12573.B
TEST=ectool motionsense
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I069f1898c7454805e4475e7637432c4a8423103c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2730948
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename ioexpander i2c address to match current conventions and update
any calling locations.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Iddad457f73d0dd0167496b794c00e274f8985615
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2697855
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With this change, we are able to build baseboard/kukui/baseboard.c
on other chips.
BUG=none
BRANCH=none
TEST=buildall.
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Change-Id: I209daaa991f021fb7c33c21c28a7be30203510bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2710131
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For accelerometer presented to Android, set default range to 4g.
Required by Android CDD - Section 7.3.1 - Paragraph C.1.4.
mems_setup can correct it, but it is cleaner if the default setting is
right.
BUG=b:144004449
BRANCH=none
TEST=compile
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I781eafc003823e2595d46d7170f717aaee08dc6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657956
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rather than passing in the port and iterating over the global
spi_devices variable, pass in the specific spi_device that is being
enabled/disabled. The spi_device_t struct has the port.
This change makes the functions in spi.h more consistent since they now
all take a spi_device_t*. This change is the first step in making the
SPI configuration more dynamic.
BRANCH=none
BUG=b:177908650
TEST=git grep 'spi_enable(CONFIG' => no results
TEST=make buildall
TEST=Flash dragonclaw v0.2 and view console to verify FP sensor ID
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I64124e0ebcf898e88496acb77703b5f59ae931c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2654081
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename i2c variables in the fusb302 driver and c-file references.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ifaf7984c52fc197403d447e00c02af036e54987e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649354
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This header file is used from quite a few files, relying on the EC
build system to find includes in the driver/tcpm directory. For Zephyr
we don't want to add that as an include.
It makes more sense for header files to be in an include directory, so
move it and fix up the users.
BUG=b:175434113
BRANCH=none
TEST=build Zephyr and ECOS on volteer
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I5851914b1a7d3fdc1ba911c0fbe9046afbaf6f5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597985
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is an option in the task_set_event function which force
the calling task to wait for an event. However, the option is never
used thus remove it.
This also will help in the Zephyr migration process.
BUG=b:172360521
BRANCH=none
TEST=make buildall
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Ic152fd3d6862d487bcc0024c48d136556c0b81bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521599
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=On Burnet. Make sure keyboard don't wake up AP from suspend on
tablet mode.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I68030c23d27375f320f1b559900ac832752981ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2479063
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Burnt and Esche has been merged to the same firmware, Burnet have GMR
sensor for tablet mode, but Esche not. This patch turns off tablet mode
and GMR interrupt on Esche.
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=Make sure keyboard works on Esche.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ifa909a3b18560d134077a7f1d605f33c410ced08
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2455827
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Esche is non-power LED design, to indicate system suspend, blinking
battery white LED (1 sec on/1 sec off) to indicate system suspend
without charging.
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=Make sure LED blinking on suspend without charging.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I7a2fb73434efec7da3bf5bcd68d658db20418f99
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2432227
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Burnet is 360 SKU and Esche is clamshell SKUID. Disable Esche IMU
sensors base on SKUID.
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=On Burnet, check sensor initial passed.
TEST=On Esche, check no sensor initial.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I1839fb7c1366c8ccde6db00f0fba9f1eb9f6d3a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2387681
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Apply CL:2043151 to burnet.
BUG=b:169259387
BRANCH=firmware-kukui-12573.B
TEST=Boot Burnet, no sensor init fail.
TEST=emmc still works.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ic4bde54ab3bf2b1482230335fe5d2b71dc72faa6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2430908
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=make sure power led can be controlled by ectool.
Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Change-Id: I43dc4af865a28505e0d6e3a74d89f99505a627be
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2397937
Tested-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ADC_BATT_ID is reassigned to BATT_PRES in Jacuzzi families.
Remove it from source code to prevent people using it.
BRANCH=kukui
BUG=none
TEST=make buildall
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I213b502413642c9bfff99443180ddb43debb2463
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2380842
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=make sure battery led is showing battery state on system S3.
make sure power led is showing white on S0.
make sure power led is blinking white on S3.
make sure power led is OFF on S5/G3.
Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Change-Id: Ia257a8adc923dd87be304d6070d18550147e4fef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2359614
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* BMI160 Base ACC+Gyro
* BMA253 in the LID
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=ectool motionsense to make sure sensors work.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Iab6dcee5b4226750c649b6a61126ec188ff3a960
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2348733
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds battery parameter as following:
1. DynaPack ATL
2. DynaPack COSMX
3. SIMPLO COSMX
4. SIMPLO HIGHPOWER
5. SAMSUNG SDI
6. COSMX
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=make sure battery charging, battery cutoff works.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ifc3fa4dfdeebb21460ee46572bb9475d607b58de
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2348735
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
Create the initial EC image for the burnet variant by copying
the kappa reference board EC files into a new directory named for
the variant.
(Auto-Generated by create_initial_ec_image.sh version 1.0.3).
BUG=b:161768221
BRANCH=firmware-kukui-12573.B
TEST=make BOARD=burnet
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I1f0f15093fff32bc22e68dca02acc5a238a2296e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2319498
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|