summaryrefslogtreecommitdiff
path: root/board/bobba
Commit message (Collapse)AuthorAgeFilesLines
* Bobba: Modify the LED behavior for factory mode.Ryan Zhang2018-08-171-0/+2
| | | | | | | | | | | | | | | | | | | | 2s for Blue led, 2s for Amber led, iterations. BUG=b:111775507 BRANCH=master TEST=`chgstate idle on`, `chgstate idle off`, `chgstate discharge on`, `chgstate discharge off` all sees correct LED color. Change-Id: I6710466a45a7b3b74f20e8e9d0d93828726607df Signed-off-by: Ryan Zhang <ryan.zhang@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1177204 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Paris Yeh <pyeh@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
* ppc: nx20p3483: Rename driver to nx20p348x to support NX20P3481Scott Collyer2018-08-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | This CL doesn't change any functionality, but renames the driver from 3483 to 348x. The motivation for this is that we need to support the NX20P3481 PPC as well. Those chips use the same registers, but the 3481 adds FRS support and sink/source control is done via I2C writes instead of gpio controls. Because the chips are slighlty different the config option CONFIG_USBC_PPC_NX20P3483 needs to remain. BUG=b:111281797 BRANCH=none TEST=make -j buildall Change-Id: Ie1085140eb2ef23c0b6e1a79a6f2d7f823326c6d Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/1176382 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
* octopus: increase USB charger stack sizesDiana Z2018-08-081-2/+2
| | | | | | | | | | | | | | | | | | The bip board has had issues with running out of task space in the USB_CHG_P[0,1] tasks when it runs into I2C errors and needs to run resets. Performing a full stack analysis should happen when the firmware branches for octopus, but for now this change increases the stack sizes for all of the USB_CHG_P[0,1] tasks. BRANCH=None BUG=b:111840286 TEST=builds, bip no longer hit stack overflows with the larger space during i2c resets Change-Id: Ib10e052bb89202cbedfe23345c8335f1e0a8e16b Signed-off-by: Diana Z <dzigterman@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1167653 Reviewed-by: Jett Rink <jettrink@chromium.org>
* Bobba: Adjust battery configurationRyan Zhang2018-08-082-3/+34
| | | | | | | | | | | | | | | | | There's two panasonic batteries, add AC15A3J config and rename AP15O5L to BATTERY_PANASONIC_AP15O5L. Default battery: AC15A3J. BUG=b:110096478 BRANCH=master TEST=recognize battery AC15A3J okay, ship mode test okay, DSG FET status test okay Change-Id: Ic5ba533b668a1323273157847993c0b859a9e8a5 Signed-off-by: Ryan Zhang <ryan.zhang@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1166606 Reviewed-by: Jett Rink <jettrink@chromium.org>
* bobba: Modify the LED behavior to meet the spec.Sue Chen2018-08-081-4/+4
| | | | | | | | | | | | | | | | | | Battery Error: Amber on 1 sec off 1 sec Discharge in S3: Amber on 1 sec off 3 sec BUG=b:111775507 BRANCH=master TEST=check the LED is amber on 1sec off 1sec while only plugging in AC adpater PASS Change-Id: I359cb8d5e4981d3dc5f509c701c5a67bc7371bf8 Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1164158 Commit-Ready: Ryan Zhang <ryan.zhang@quanta.corp-partner.google.com> Tested-by: Ryan Zhang <ryan.zhang@quanta.corp-partner.google.com> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* Octopus: Add new battery configuration for BobbaRyan Zhang2018-08-032-0/+31
| | | | | | | | | | | | | | bobba new battery: AP13J7K of SIMPLO BUG=b:110096478 BRANCH=master TEST=recognize new battery AP13J7K okay, ship mode test okay, DSG FET status test okay Change-Id: Ibfcd9af05492593d99e8d0d433dbc9f59cfeee79 Signed-off-by: Ryan Zhang <ryan.zhang@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1162081 Reviewed-by: Jett Rink <jettrink@chromium.org>
* octopus: remove unused usb_pd_policy filesJett Rink2018-07-272-9/+0
| | | | | | | | | | | | | We haven't used them yet, so we are removing them. BRANCH=none BUG=b:78638238 TEST=everything still builds. Change-Id: I21aaf060073f3daa6f18a8202c0b7ba98ce9b018 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1152363 Reviewed-by: Justin TerAvest <teravest@chromium.org>
* octopus: Add phaser LED behavior supporteddylu2018-07-261-1/+5
| | | | | | | | | | | | | | | | | Reference LED behavior spec and implement it. Add Power LED common code. Yorp and bip also do some necessary charges. BUG=b:80501031,b:110086152 BRANCH=none TEST=Verify LED behavior at different power state. Change-Id: I88dbad30101e7983304c15f88b52b31457607749 Signed-off-by: eddylu <eddylu@ami.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1116628 Commit-Ready: Eddy Lu <eddylu@ami.corp-partner.google.com> Tested-by: Eddy Lu <eddylu@ami.corp-partner.google.com> Reviewed-by: Jett Rink <jettrink@chromium.org>
* bobba: Change USB2_OTG_ID to open drainFurquan Shaikh2018-07-181-1/+6
| | | | | | | | | | | | | | | | | | | | | USB2_OTG_ID is 3.3V pin on the EC whereas the SoC expects USB2_DUALROLE and USB2_VBUS_SNS to be 1.8V. Since there is an internal pull-up on USB2_DUALROLE from the SoC side, this change configures USB2_OTG_ID to be open drain so that it is actively driven from the EC when it wants to pull it low. Otherwise, the pin would be tri-stated from the EC side allowing it to be pulled up to 1.8V because of the SoC internal pull-up. BUG=None BRANCH=None TEST=None Change-Id: Ia7f5cd32a80a2c9d0cc520bbacad0844aaec961d Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/1140500 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
* bobba: initial files commitJustin TerAvest2018-07-028-0/+755
The contents of Bobba are copied from yorp, with the exception of board.c and gpio.inc, which were modified to always use V1 settings. Bobba proto is equivalent to yorp proto2. BRANCH=none BUG=b:110781720 TEST=build Change-Id: I10937ef6eb8b20fc5e58c3871c679fc80bdcca70 Signed-off-by: Justin TerAvest <teravest@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1121110 Reviewed-by: Jett Rink <jettrink@chromium.org>