| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
Change-Id: I0f03f432ada1064ffba9595be78ca7ab4d25ecd1
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3155234
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Owners-Override: Jora Jacobi <jora@google.com>
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add battery firmware update support.
BUG=b:36048904
BRANCH=reks
TEST=check firmware update normally.
Change-Id: Ib93e09a64c069a50929934f9916f825c143becc4
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/452103
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is to avoid system from shutting down asynchronously if the
power button is pressed and held for more than 4 seconds since x86
chipset will force itself to shutdown based on its own hardware
timer on 4 seconds timeout.
The current code has already accounted for the case when Refresh + Power
Button is pressed and held to not shutdown by not continue to pass
through the power button signal after the 200ms pulse is sent. This
change is follownig the same behavior. The lid open execution path from
off state is also similar.
BUG=chrome-os-partner:58513
BRANCH=firmware-terra-7287.154.B
TEST=System does not shut itself off if the power button is pressed and
held from S5. The power button is behaving as expected in S0 or S3.
Change-Id: I52536749ad6f4d1a3fcf6ba4c5b3bb6f953da6a5
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/404711
Reviewed-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: BoChao Jhan <james_chao@asus.com>
Commit-Queue: BoChao Jhan <james_chao@asus.com>
Tested-by: BoChao Jhan <james_chao@asus.com>
(cherry picked from commit bce3965c51a928bc5264c341618285be649a7ddf)
Reviewed-on: https://chromium-review.googlesource.com/408001
Commit-Queue: Mohammed Habibulla <moch@google.com>
Tested-by: Mohammed Habibulla <moch@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allow boards to take action (such as entering a custom low-power
hibernate-like state) before putting the chip into hibernate state.
BUG=chrome-os-partner:56070
BRANCH=firmware-strago-7287.B
TEST=Manual with subsequent commit on chell. Verify board-level
hibernate callback is called when "hibernate" is run on EC console.
Ported from the master branch to strago branch.
Change-Id: Ie1da044037a74ff8bce5c822f28ce837c62ceec0
Reviewed-on: https://chromium-review.googlesource.com/324086
Change-Id: I1665e56bf471f04180467513f5a7bdc4976bcc55
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/367884
Reviewed-by: Shawn N <shawnn@chromium.org>
(cherry picked from commit 7d5f758795ba0b9178335c2f08f4b2e51e1bf880)
Reviewed-on: https://chromium-review.googlesource.com/368344
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we're asked to compute a hash of an image on a region of storage, we
may find that the region actually contains no image. In that case, we
need to compute a hash of zero bytes. Properly handle this case from
image size detection to hash computation to hash invalidation.
BUG=chrome-os-partner:49529
TEST=Manual on chell. `dd conv=notrunc if=/dev/zero of=ec.bin bs=131072
count=1`, then write ec.bin and verify SW sync occurs, RW hash is
computed correctly, and the system boots into dev mode.
BRANCH=glados, strago
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Ie5a023d13d2521f9c224615666950aea8fbc22bb
Reviewed-on: https://chromium-review.googlesource.com/322750
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
(cherry picked from commit 17ffa6b1abdec63015054623226a09c60c38a1ee)
Reviewed-on: https://chromium-review.googlesource.com/344718
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
charger_set_mode() is called in each charger_task loop and sets charge
inhibit bit. This reads and writes register option 0 no matter the
requested value is same as before or not. Limit this activity to only when
the bit is changed.
Also if reading option 0 returns value with LEARN mode enabled, try to read
one more time to make sure it's not bogus value. Otherwise, this could
casue LEARN mode been enabled mistakenly and cause battery discharge with
AC on.
BUG=chrome-os-partner:50578
BRANCH=none
TEST=Observed charger_set_mode() only writes charge inhibit bit when it's
changed. If the value keeps then same, no set mode happens.
Change-Id: Ia7f258d44e7cadd00f42f671d112eae17da3016e
Signed-off-by: li feng <li1.feng@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/301185
Reviewed-by: Shawn N <shawnn@chromium.org>
Tested-by: Divya Jyothi <divya.jyothi@intel.com>
Commit-Queue: Divya Jyothi <divya.jyothi@intel.com>
(cherry picked from commit 51683905731cb352964008e5d6ed7bdcffffa9e1)
Reviewed-on: https://chromium-review.googlesource.com/341334
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable touch panel on S1, disable touch panel on S3 and S5.
BUG=None
BRANCH=firmware-reks-7287.133.B
TEST=make buildall
Change-Id: I17b120675245d0294cc8426395ac683c1cc10c03
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/332931
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a sysjump host command is received, there is a (usually) small
period of time when the EC has sent a reply packet back to the host, but
interrupts are still enabled. If the host sends a new host command,
STATUS_PROCESSING will be set by the EC ISR, but the host command will
never be handled due to pending sysjump. In this case, STATUS_PROCESSING
will still be set, so we need to clear it on LPC post-sysjump re-init.
BUG=chrome-os-partner:49318
TEST=Add 200ms msleep before call to interrupt_disable() in
jump_to_image(), boot to software sync, and verify host commands are
handled successfully post-sysjump and system continues to boot.
BRANCH=glados, cyan
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Id0878df738541f7d5d158821a68988a8e6dc6759
Reviewed-on: https://chromium-review.googlesource.com/322431
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
(cherry picked from commit e933d0b7b6984bc8abf40b3364695d9955a9a426)
Reviewed-on: https://chromium-review.googlesource.com/323651
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set current limit for 45W
BUG=None
BRANCH=firmware-strago-7287.B
TEST=Add loading and measure the current of adapter
Change-Id: I66af53d02f74121791cd1d4b9e4153b9bb99890c
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/320196
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
(cherry picked from commit 34cecc8544f6ce5acce0b2d400da1cf5f8c3b18c)
Reviewed-on: https://chromium-review.googlesource.com/320642
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add EC wake up pin ,AC_PRESENT and LID_OPEN .
BUG=None
BRANCH=firmware-strago-7287.B
TEST=buildall
Change-Id: Ic55d65abf297db38d14b03ff6c85839c8fc0a6a2
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/320500
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
(cherry picked from commit e965899236aec62eb0246d5ad79f42294cce14e2)
Reviewed-on: https://chromium-review.googlesource.com/320522
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change will enable the platform to detect
the battery presence and allow the platform to
boot without battery.
BUG=chrome-os-partner:48985
BRANCH=firmware-strago-7287.B
TEST=Build/flash the EC and boot with and without battery.
Change-Id: Ifd36fc1657ff434e60c6f9d770ba4cf6c8a234ae
Signed-off-by: lehai deng <denglehai@ithaier.com>
Reviewed-on: https://chromium-review.googlesource.com/320034
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
BRANCH=firmware-strago-7287.B
TEST=Scope capture to ensure there is no leakage.
Change-Id: I8023c5cf2e4f0ea4eb656ab543e58725f695f6b6
Signed-off-by: michael5 <michael5_chen@pegatroncorp.com>
Reviewed-on: https://chromium-review.googlesource.com/320033
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
BRANCH=firmware-strago-7287.B
TEST=make buildall -j
Change-Id: I02de97104d2a07a9f100566873d5e389f6b2e4ed
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/320032
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For Terra power team request, set the charger IC registers
BUG=none
BRANCH=firmware-strago-7287.B
TEST=use ec console 'i2cxfer' command to check the registers.
Change-Id: Id429faa3dc7483d410686fe07f8bec516ab89d3d
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/319540
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enabled lid angle calculation. Clamshell/Tablet mode is decided by lid
angle.
Accelerometers are set to be active in S3 also.
BUG=chrome-os-partner:47942
BRANCH=firmware-strago-7287.B
TEST=Verify in clamshell mode, system can be waken up from S3 by
keyboard/trackpad;And not tablet mode.
Change-Id: Ic7143945878c38a3d2388def1bae8e734b6ada84
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/319991
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=chrome-os-partner:48799
BRANCH=firmware-strago-7287.B
TEST=Enter the hibernate mode in ac mode, press the power button
Change-Id: Idbca1cd1927ce9668df6957c100d60c40535180c
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/320057
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some board needs to set the charge ic registers when power on,
such as input current, charge options, prochot options.
BUG=None
TEST=make buildall -j
BRANCH=firmware-strago-7287.B
Change-Id: I953559e71b592ea1f7e6e1cb5498d93006101b1c
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/319334
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add thermal sensor from ADC0
BUG=none
BRANCH=firmware-strago-7287.B
TEST=Read temperature and mapping with measure.
Change-Id: Idfaf09bea112a7d209b54c3cc912aaf64fe251aa
Signed-off-by: michael5 <michael5_chen@pegatroncorp.com>
Reviewed-on: https://chromium-review.googlesource.com/319706
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add battery FUD support
BUG=chrome-os-partner:44053
BRANCH=firmware-strago-7287.B
TEST=make buildall
Change-Id: I8ead1672f5caf93d8699bacbcdedc489406c24a9
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/319722
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new board-level function board_get_gpio_hibernate_state which can
optionally be defined to set the desired state of a GPIO during
hibernate.
BUG=chrome-os-partner:43807
TEST=Manual on Glados with subsequent commit. Run 'hibernate' on console,
verify that LED remains off. Press power button, verify that board wakes.
BRANCH=None
Change-Id: Ica11554e231e88773c3e139fea4622377ebe1e42
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/292471
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
(cherry picked from commit 5b93f04c195675c8ad093bd2c36c85088e68ab74)
Reviewed-on: https://chromium-review.googlesource.com/319951
Tested-by: BoChao Jhan <james_chao@asus.com>
Commit-Queue: BoChao Jhan <james_chao@asus.com>
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
BRANCH=firmware-strago-7287.B
TEST=Scope capture to ensure there is no leakage.
Change-Id: Iad2fc0dc1f848c73d6cba077e4462ba3e3e47d09
Signed-off-by: Anson Tseng <anson.tseng@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/319705
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1.Change remaining percentage to UI display percentage for
battery low and critical.
2.Battery LED turns to blue when battery is full.
BUG=None
TEST=make buildall -j, verified
BRANCH=firmware-strago-7287.B
Signed-off-by: Ted Kuo <tedkuo@ami.com.tw>
Change-Id: I6fcfd68064b8b262c12c7843f9e09d1a2d25f61c
Reviewed-on: https://chromium-review.googlesource.com/319272
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
Tested-by: Ted Kuo <tedkuo@ami.com.tw>
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
BRANCH=firmware-strago-7287.B
TEST=Scope capture to ensure there is no leakage.
Change-Id: I8692ce1cd64c924c33864771ae42ad050ba6e54b
Signed-off-by: Anson Tseng <anson.tseng@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/319791
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
BRANCH=firmware-strago-7287.B
TEST=Scope capture to ensure there is no leakage.
Change-Id: Id11222cb7b620902ec1d611439c31e42a910a2ad
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/319001
Reviewed-by: Guang-Chuen Yin <Luke_Yin@asus.com>
Tested-by: Guang-Chuen Yin <Luke_Yin@asus.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
TEST=make buildall -j
BRANCH=firmware-strago-7287.B
Signed-off-by: PeggyChuang <peggychuang@ami.com.tw>
Change-Id: Iea58b9d926fc90cfa6d32b984129097928f42f00
Reviewed-on: https://chromium-review.googlesource.com/318101
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Peggy Chuang <PeggyChuang@ami.com.tw>
Tested-by: Peggy Chuang <PeggyChuang@ami.com.tw>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
BRANCH=firmware-strago-7287.B
TEST=make buildall
Change-Id: I23a6267badad19040e09a96d2af115e6a735a9ff
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/318063
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
BRANCH=firmware-strago-7287.B
TEST=make buildall
Change-Id: Ic47125d03620576a4a39e46557cbbe89aa5295c3
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/318106
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Terra has two ADC pin:
1.gpio56 EC_TEMP_SENSOR_1
2.gpio60 BC_PMON
Init ADC ports to avoid floating state due to thermistors.
BUG=None
BRANCH=firmware-strago-7287.B
TEST=make buildall -j
Change-Id: Ib297227236c8f29cce8e77307731de204f3dcbce
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/318105
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=chrome-os-partner:48000
BRANCH=firmware-strago-7287.B
TEST=Scope capture to ensure there is no leakage.
Change-Id: I41aebc3310c8e3d9fb1453a91d30ecd748299a95
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/316000
Reviewed-by: Shawn N <shawnn@chromium.org>
Tested-by: Divya Jyothi <divya.jyothi@intel.com>
Commit-Queue: Divya Jyothi <divya.jyothi@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add setzer board to flash_ec support list.
BUG=None
TEST=make buildall -j
BRANCH=firmware-strago-7287.B
Signed-off-by: PeggyChuang <peggychuang@ami.com.tw>
Change-Id: If1063eb393b50275293c0a454927cf3b906965e5
Reviewed-on: https://chromium-review.googlesource.com/318184
Reviewed-by: Ted Kuo <tedkuo@ami.com.tw>
Reviewed-by: Shawn N <shawnn@chromium.org>
Tested-by: Peggy Chuang <PeggyChuang@ami.com.tw>
Commit-Queue: Peggy Chuang <PeggyChuang@ami.com.tw>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
BRANCH=firmware-strago-7287.B
TEST=the test command can control led.
Change-Id: I5897f2a3a03997e8450887ed140abda1ae308f49
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/318095
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set all nc pins named "NC_GPIOxxx" and flag GPIO_INPUT | GPIO_PULL_UP
BUG=None
BRANCH=firmware-strago-7287.B
TEST=make buildall -j
Change-Id: I11f9903c7efc678c07ceb2fcc83a99b56bf1d148
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/318102
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If board specific i2c_port_is_smbus() is not implemented,
int __attribute((weak)) i2c_port_is_smbus(int port) will be called.
BUG=chrome-os-partner:45575
BRANCH=none
TEST=On BCRD2 verified weak version is called if i2c_port_is_smbus()
is not implemented in board level.
Change-Id: Ia87e1f8c5ecf9d002db0922ef25c62765e798f56
Signed-off-by: li feng <li1.feng@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/317914
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Terra use 33W adapter, so set the input current to 1536mA
BUG=none
BRANCH=firmware-strago-7287.B
TEST=Use EC UART command 'chgstate' and check the input_current value.
Change-Id: I92fc34a3b6edf8df3ff85b5eeb9018ac08040c6b
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/318141
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the ALS sensor
BUG=None
BRANCH=firmware-strago-7287.B
TEST=make buildall -j
Signed-off-by: Chris Wang <chriswang@ami.com.tw>
Change-Id: I5809876d059f0ca7e17290c94abcb1a0e895d186
Reviewed-on: https://chromium-review.googlesource.com/317105
Reviewed-by: Ted Kuo <tedkuo@ami.com.tw>
Reviewed-by: Shawn N <shawnn@chromium.org>
Tested-by: Chris Wang <chriswang@ami.com.tw>
Commit-Queue: Chris Wang <chriswang@ami.com.tw>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update gpio table to meet wizpig's schematic design.
BUG=None
BRANCH=firmware-strago-7287.B
TEST=make buildall -j
Signed-off-by: Chris Wang <chriswang@ami.com.tw>
Change-Id: Ia13340f44ff074430109c723288006ee59cd8b51
Reviewed-on: https://chromium-review.googlesource.com/317141
Reviewed-by: Ted Kuo <tedkuo@ami.com.tw>
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Chris Wang <chriswang@ami.com.tw>
Tested-by: Chris Wang <chriswang@ami.com.tw>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit commit 6c52dd5dbdbf ("Terra: add wireless LED
support.")
Terra move the wifi LED control from EC to wifi module,
we do not need to control it by EC.
Rename the GPIO133 to NC_133 and set INPUT | PULL_UP
BUG=chrome-os-partner:47903
BRANCH=firmware-strago-7287.B
TEST=None
Change-Id: Ib41ef337ca6af4431397012a4a27b91946a9824f
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/317220
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change SPI ROM from W25Q64 to GD25Q41B
BUG=None
TEST=make buildall -j
BRANCH=firmware-strago-7287.B
Signed-off-by: Ted Kuo <tedkuo@ami.com.tw>
Change-Id: I67582fb77293708dcf71d772e28486800e493be8
Reviewed-on: https://chromium-review.googlesource.com/317161
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
Tested-by: Ted Kuo <tedkuo@ami.com.tw>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Terra use ec spi rom W25X40.
If the config is incorrect, we can't enable the protect function.
BUG=chrome-os-partner:48382
BRANCH=firmware-strago-7287.B
TEST=flashrom -p ec --wp-enable, SUCCESS
Change-Id: I236935b0c90b9e716949bcc3dffd836a1fae0232
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/317162
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Terra 12 and Terra 13 use different batterys,
terra 12 use 2 series battery,
terra 13 use 3 series battery,
and we can know the battery type from battery manufacture name.
BUG=None
BRANCH=firmware-strago-7287.B
TEST=Check the EC console output message
Change-Id: Id6702d8bb208f0e8f699e3cd66466b6b05865d3b
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/316371
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The host command(ectool) to set led colors will read the brightness
range and then set as requested. If brightness range is 0, then it will just
return INVALID_PARAM.
BUG=None
TEST=build and run on terra
ectool led battery green
ectool led battery red
ectool led battery off
ectool led power white
ectool led power off
ectool led battery auto
ectool led power auto
BRANCH=firmware-strago-7287.B
Change-Id: I65a73275741ada5c01e041ae2c11efe3aa2d8c38
Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/242531
Reviewed-by: Randall Spangler <rspangler@chromium.org>
(cherry picked from commit ba88b6d6b35959d7ff33cdf075e494406a2f4b5f)
Reviewed-on: https://chromium-review.googlesource.com/316361
Reviewed-by: Shawn N <shawnn@chromium.org>
Tested-by: BoChao Jhan <james_chao@asus.com>
Commit-Queue: BoChao Jhan <james_chao@asus.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add GPIO_TOUCHPANEL_PWREN to control touchpad power switch IC
BUG=None
BRANCH=firmware-strago-7287.B
TEST=make buildall
Change-Id: I4c8aee649ed1abc9d96ffb9a314637b17a79df3e
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/315921
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are terra12 and terra13, use gpio IMAGE_SEL to identify.
IMAGE_SEL is low for terra12,
IMAGE_SEL is high for terra13.
BUG=None
BRANCH=firmware-strago-7287.B
TEST=None
Change-Id: I874905337aea97de70db1fb058b05625d5c1d026
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/315432
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Smbus has timing requirement. Enable timeout checking to
capture smbus communication which does not follow the timing
requirement.
BUG=chrome-os-partner:45575
BRANCH=none
TEST=On BCRD2 manully change timeout scaling register to a smaller
value and observed time-out was captured.
Change-Id: I06d7adb8862fce3fb7ad33fcccb913d1e5e2aded
Signed-off-by: li feng <li1.feng@intel.com>
Signed-off-by: Divya Jyothi <divya.jyothi@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/305802
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify CONFIG_SPI_FLASH_W25Q64 to CONFIG_SPI_FLASH_W25X40 let the
protect can be enable.
BUG=None
BRANCH=firmware-strago-7287.B
TEST=It's success to enable protect
Change-Id: Ieffb9e5c9b7e5ef569d27f223793823e48e6bf8a
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/315390
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify battery LED pin from pwm to gpio, set led behavior follow OEM
spec.
BUG=chrome-os-partner:47085
BRANCH=firmware-strago-7287.B
TEST=check LED behavior follow OEM spec.
Change-Id: Iac42f0f98a008cc5e5bdeea3168b2e0609ee60cd
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/314942
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify led setting from pwm to gpio,let AC LED is not flash when
shutdown the device
BUG=chrome-os-partner:47210
BRANCH=firmware-strago-7287.B
TEST=AC LED is not flash when shutdown the device
Change-Id: Ibe2ec34da3cf643295d77062674a28b412b7ef71
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/314940
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set default USB charge mode from SDP2 to CDP
BUG=chrome-os-partner:48083
TEST=Check the USB charge current can large then 500mA
BRANCH=firmware-strago-7287.B
Change-Id: Ib8fd67d9100d5f2a97f505566d80b7f79f64765e
Signed-off-by: james_chao <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/314648
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1.add orange(yellow) led range to led_get_brightness_range()
2.implement led_set_brightness()
3.do not turn off led when auto control is disable
BUG=chrome-os-partner:48074
TEST=Compiled, verified
BRANCH=firmware-strago-7287.B
Signed-off-by: Ted Kuo <tedkuo@ami.com.tw>
Change-Id: If9d2542c577bc3634372bd3e6689d959b6ecab14
Reviewed-on: https://chromium-review.googlesource.com/313918
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
Tested-by: Ted Kuo <tedkuo@ami.com.tw>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify CONFIG_SPI_FLASH_W25Q64 to CONFIG_SPI_FLASH_W25X40 let the
protect can be enable.
BUG=chrome-os-partner:47916
BRANCH=firmware-strago-7287.B
TEST=It's success to enable protect
Change-Id: I8eee6522bfa28e9176cab7fe4c86c73d3c4290f3
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/314565
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
|