summaryrefslogtreecommitdiff
path: root/board/boten
Commit message (Collapse)AuthorAgeFilesLines
...
* boten: split CONFIG_LED_PWM out into boardsxiong.huang2020-07-151-0/+1
| | | | | | | | | | | | | It will be happy to define LED behavior in boards. BUG=b:160664441 BRANCH=none TEST=make buildall -j4 Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: Ib81fe8d20fa3ab74064958fba3576a1618635e52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2296544 Reviewed-by: Diana Z <dzigterman@chromium.org>
* boten: add battery informationxiong.huang2020-07-152-259/+46
| | | | | | | | | | | | | | | | | Boten supports three batteries: - LGC: L17L3PB0 - SUNWODA: L18D3PG1 - SMP: L17M3PB0 BUG=b:160752597 BRANCH=none TEST=boot boten board with battery, charging/discharging/cutoff work as expected. Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: I1964012558592621de8a781f6fd27d70726229cc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2287111 Reviewed-by: Diana Z <dzigterman@chromium.org>
* boten: enable CONFIG_CHARGE_RAMP_HWxiong.huang2020-07-141-0/+1
| | | | | | | | | | | | | Set the maximum current limit as 1.5A. BUG=b:160671921 BRANCH=none TEST=the maxmium input current is 1.5A when plugging BC1.2 charger. Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: I2f4a98d8007a2b4d7a3d818b4cb367608300c60f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2287114 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* dedede: Move adc channel to board variantDevin Lu2020-07-142-0/+43
| | | | | | | | | | | | | | Dedede family may have different temp sensors for other ADCs channel. This patch moves adc channel to board variant. BUG=none BRANCH=none TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Id34a924fc9431a553a1467068c6ccee6111102bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2289478 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Charger: Add dynamic charger chip countDiana Z2020-07-111-1/+0
| | | | | | | | | | | | | | | | Different DB options may cause different numbers of charger chips to be present on the system. Remove constant count for charger chips, and instead always call into the overridable function to query the count. BRANCH=None BUG=b:155963446 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I0e65b8af351ecabe6f7b823e0e56f1932cc280a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2277833 Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* boten: enable DB HDMIxiong.huang2020-07-102-3/+11
| | | | | | | | | | | | | | Signal EC_AP_USB_C1_HDMI_HPD(EC->AP) status is opposite to signal HDMI_HPD_SUB_ODL(HDMI->EC). Keep signal HDMI_EN_SUB_ODL low level. BUG=b:160668999 BRANCH=none TEST=make buildall -j Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: I3d3d88e7be5543d49508bb7023c39764ab84abdf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2284511 Reviewed-by: Diana Z <dzigterman@chromium.org>
* boten: config volume +/- GPIOs modexiong.huang2020-07-101-2/+2
| | | | | | | | | | | | | Config volume +/- GPIOs as GPIO_INT_BOTH and GPIO_PULL_UP. BUG=b:160671909 BRANCH=none TEST=make buildall -j Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: I63b7a7a5a0f1b75747cb25e46a512d19a08f6ffb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2284512 Reviewed-by: Diana Z <dzigterman@chromium.org>
* boten: add lid sensorxiong.huang2020-07-082-11/+10
| | | | | | | | | | | | | Lid sensor uses lis2dwl. BUG=b:160671918 BRANCH=none TEST=make buildall -j Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: Ibb3f871ebdae3fbdeb3e78315ea5cacd80a7427d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2284514 Reviewed-by: Diana Z <dzigterman@chromium.org>
* DEDEDE: Increase board PD stack sizesSam Hurst2020-07-071-2/+2
| | | | | | | | | | | | | Increase dedede board PD stack sizes to prevent overflow. BRANCH=none BUG=b:155813111 TEST=make -j buildall Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: I061bf8e53c0f2dfe8ca5617f562bd99ed510d467 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2283693 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* boten: reconfigure GPIOsxiong.huang2020-06-193-24/+9
| | | | | | | | | | | | | | | Remove GPF4, GPF5, GPC7, GPF1, GPL2. Configure GPL6 and GPE6, which control MB and DB USB-A power supply. GPE0 and GPE7 are used for DB HDMI. BUG=b:157626290, b:158658777 BRANCH=none TEST=make buildall -j Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: Idb04e9d93d30c4ff8792dc92e92888a771bd02ba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2245588 Reviewed-by: Diana Z <dzigterman@chromium.org>
* boten: remove unused I2Cxiong.huang2020-06-191-4/+3
| | | | | | | | | | | | | Remove I2C4. BUG=b:157626290, b:158658777 BRANCH=none TEST=make buildall -j Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: Id1af7591e2bfcc39175470b93c27df257a5dff1f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2245577 Reviewed-by: Diana Z <dzigterman@chromium.org>
* boten: use charger/TCPC RAA48900xiong.huang2020-06-145-105/+107
| | | | | | | | | | | | | | | Use charger/TCPC RAA48900 instead of TCPC IT8320 + charger SM5803 combination at MB side. BUG=b:157626290, b:158023819 BRANCH=none TEST=make buildall -j Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: Ibb97a41e1d280da7c92cf2c00202b5eb205f99b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2239599 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* boten: remove DB type-C port and peripheral chipsxiong.huang2020-06-114-179/+13
| | | | | | | | | | | | | | | | | Remove chips: Charge chip - SM5803 TCPC and USB mux chip - ANX7447 USB retimer chip - TUSB544 BC1.2 chip - PI3USB9201 BUG=b:157626290, b:158023819 BRANCH=none TEST=make buildall -j Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: Iac30f683774368b2b5706c5f804caf549a54139a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2235238 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Boten initial EC imagePeichao Wang2020-06-048-0/+1329
The starting point for the Boten EC image copied from waddledee BUG=b:158023819 BRANCH=none TEST=make BOARD=boten Change-Id: Ie06c2b54b3b8c873c0b302561f5f86a9d8e8939a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2227769 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Peichao Li <peichao.wang@bitland.corp-partner.google.com> Tested-by: Peichao Li <peichao.wang@bitland.corp-partner.google.com> Auto-Submit: Peichao Li <peichao.wang@bitland.corp-partner.google.com> Commit-Queue: Marco Chen <marcochen@chromium.org>