summaryrefslogtreecommitdiff
path: root/board/pazquel
Commit message (Collapse)AuthorAgeFilesLines
* USB MUX: Update mux HPD update interface to use mux_state_tDiana Z2021-09-161-1/+2
| | | | | | | | | | | | | | | | | Since the drivers are now taking a mux_state_t set of flags to update, go ahead and unify the usb_mux API this way as well. It makes the parameters more apparent than the 1/0 inputs, and aligns the stack to use the same parameters. BRANCH=None BUG=b:172222942 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ie943dbdf03818d8497c0e328adf2b9794585d96e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3095438 Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* pazquel: Battery manufacturer name parameter updateTang Qijun2021-09-082-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Battery manufacturer name parameter update: modified from BMSPow to Ganfeng; And battery other parameters remain unchanged. BRANCH=trogdor BUG=b:198994201 TEST=> battery Status: 0x0080 INIT Param flags:00000003 Temp: 0x0c0c = 308.4 K (35.3 C) V: 0x20f9 = 8441 mV V-desired: 0x21fc = 8700 mV I: 0x0dad = 3501 mA(CHG) I-desired: 0x1612 = 5650 mA Charging: Allowed Charge: 75 % Display: 75.3 % Manuf: Ganfeng Device: SG20 Chem: GF Serial: 0x0008 V-design: 0x1db0 = 7600 mV Mode: 0x0000 Abs charge:74 % Remaining: 4186 mAh Cap-full: 5650 mAh Design: 5650 mAh Time-full: 0h:24 Empty: 0h:0 full_factor:0.97 shutdown_soc:4 % Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com> Change-Id: Ib8befbd4bb6853af7253342f48201a91678ca81f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3143236 Reviewed-by: Philip Chen <philipchen@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org>
* pazquel: Support clamshell SKUsTang Qijun2021-09-083-2/+17
| | | | | | | | | | | | | | | | | Configure the sensor count to 0, disable the tablet mode switch, and disable the interrupt line for the clamshell SKUs. BRANCH=trogdor BUG=b:187249927 TEST=>accelinfo Motion sensors count = 0 Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com> Change-Id: I3e3a07762f137b44d71207fff46d4b4df263dcb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115931 Reviewed-by: Philip Chen <philipchen@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org>
* pazquel: Detect the Refresh key at row 3Tang Qijun2021-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | Pazquel uses the Vivaldi keyboard. The Refresh key is at T2 (col:2, row:3), instead of T3 (col:2, row:2). The code filters out the Refresh key and check any boot key remaining. BRANCH=trogdor BUG=b:194553244 TEST=Pressed Refresh (T2) at boot. And could find the log: "KB boot key mask". Without this change, pressing T2 at boot wouldn't trigger check_key_list() and spit "KB boot key mask" log. Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com> Change-Id: I594cac4f0f63dc3f138a5811c187d1e335c3ecfd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3113250 Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org>
* Pazquel: Mask proper key locations on the board levelTang Qijun2021-08-201-6/+8
| | | | | | | | | | | | | | | | | | Because the matrix actual_key_mask isn’t correct, launcher key has no function. The key actual is mapped to (KSI_3,KSO_0) in matrix, so we change actual_key_mask[0] from 0x14 to 0x1c. And we have verified launcher key function. Because T11 key is not in keyboard, we change actual_key_mask[1] from 0xff to 0xfe. BRANCH=trogdor BUG=b:196325454 TEST=login system and then press launch key, the launch function is ok Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com> Change-Id: Ib16cc6cac121daea37b3cf4ca9eec2f8fd98d05f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3090506 Reviewed-by: Philip Chen <philipchen@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org>
* pazquel: Modify LED behavior.Tang Qijun2021-08-101-69/+60
| | | | | | | | | | | | | | | | | | | | LED behavior: Charging | Red on (S0/S3/S5) Full Charged | Blue on (S0/S3/S5) Discharging S3 | Red on 1 sec, off 3 sec Discharging S5 | off Error | Red on 1 sec, off 1 sec Discharging S0 | Blue on Factory mode | Blue on 2 sec, Red on 2 sec BRANCH=trogdor BUG=b:194866181 TEST=make buildall -j; check led behavior in every state on pazquel Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com> Change-Id: I84b15d0c1bd7de310a22aab8f44f0f5842f9e688 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3060165 Reviewed-by: Philip Chen <philipchen@chromium.org>
* pazquel: Modify battery informationqijun tang2021-08-062-36/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify battery information to match spec BUG=b:188393713 BRANCH=trogdor TEST= > battery Status: 0x00e0 FULL DCHG INIT Param flags:00000002 Temp: 0x0bd1 = 302.5 K (29.4 C) V: 0x21d3 = 8659 mV V-desired: 0x0000 = 0 mV I: 0x0000 = 0 mA I-desired: 0x0000 = 0 mA Charging: Not Allowed Charge: 100 % Display: 100.0 % Manuf: BMSPow Device: SG20 Chem: GF Serial: 0x0007 V-design: 0x1db0 = 7600 mV Mode: 0x0000 Abs charge:99 % Remaining: 5641 mAh Cap-full: 5650 mAh Design: 5650 mAh Time-full: 0h:0 Empty: 0h:0 full_factor:0.97 shutdown_soc:4 % Signed-off-by: qijun tang <qijun.tang@ecs.corp-partner.google.com> Change-Id: Idbef7873107025bf1e426910a163bf5293ed288e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3054224 Reviewed-by: Philip Chen <philipchen@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org>
* lid_angle: Create a common callback for lid angle changesWai-Hong Tam2021-08-051-20/+0
| | | | | | | | | | | | | | | | | | | | | | Each board defines its own callback lid_angle_peripheral_enable(). The implementation is very similar. Create a common implementation and reduce the duplicated code. This CL removes the board callbacks which are identifical to the common callback. If it is slightly different, keep it and add the __override tag. The check of TEST_BUILD is unnecessary as the board callback is not linked in the test build. BRANCH=None BUG=b:194922043 TEST=Build all the images. Change-Id: I73d381730f35b80eff69399cdfc5fb54f839aee0 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3069175 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* keyboard: Use __override for keyboard_scan_configDaisuke Nojiri2021-07-232-2/+2
| | | | | | | | | | | | | | | | | 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>
* pazquel: Initial EC imageYunlong Jia2021-06-218-0/+1157
Create the initial EC image for the pazquel variant by copying the trogdor reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.5.0). BUG=b:187232137 BRANCH=Trogdor TEST=make BOARD=pazquel Signed-off-by: Yunlong Jia <yunlong.jia@ecs.corp-partner.google.com> Change-Id: Ic898116fc93a3ac51d50f34b24c13c33a452a25f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2939856 Reviewed-by: Philip Chen <philipchen@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org>