summaryrefslogtreecommitdiff
path: root/driver/tcpm/fusb302.c
Commit message (Collapse)AuthorAgeFilesLines
...
* fusb302: update driver for FUSB302BJoe Bauman2016-03-031-15/+70
| | | | | | | | | | | | | | | | | Update pull-ups code Manage BIST Test Data bit BUG=none BRANCH=none TEST=PD contract established with various devices Signed-off-by: Joe Bauman <joe.bauman@fairchildsemi.com> Change-Id: Ib2e5f7f5e29f280835ae890148f5c3dd2504a2f9 Reviewed-on: https://chromium-review.googlesource.com/329034 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
* fusb302: Don't flush RX FIFO on GoodCRCShawn Nematbakhsh2015-12-011-4/+7
| | | | | | | | | | | | | | | | | | Depending on timing, additional important messages may reside on our RX FIFO at the time we process GoodCRC. Therefore, rather than flushing the RX FIFO, simply read and discard the GoodCRC message. BUG=chrome-os-partner:314492 BRANCH=None TEST=Manual on Snoball with subsequent PWM changes. Verify PD contact can be established with samus. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: I4f4fab1bc318d1bce1effffad9a792c5b4a43761 Reviewed-on: https://chromium-review.googlesource.com/314871 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
* pd: initialize tcpc when tcpm bootsAlec Berg2015-11-171-9/+0
| | | | | | | | | | | | | | | Always initialize TCPC when TCPM boots. This guarantees that our TCPM driver is synced up with the TCPC reg values. BUG=chrome-os-partner:47608 BRANCH=none TEST=test on glados. reboot EC and PD MCUs independently with and without external power. Change-Id: I2d989e8a85ba8a72fe1a8edaef8da9c51651d240 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/312951 Reviewed-by: Shawn N <shawnn@chromium.org>
* tcpm: Add configuration struct for tcpc i2c paramsShawn Nematbakhsh2015-11-081-101/+83
| | | | | | | | | | | | | | | | | | | Add a new configuration struct tcpc_config_t that initially defines the i2c host port and i2c slave address of all TCPCs present on the board. This will allow us to create boards with multiple TCPCs on different i2c ports, with arbitrary i2c slave addresses. BUG=chromium:551078 TEST=Manual on glados. Verify PD communication / charging is still functional on both PD ports. BRANCH=None Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: I9b2bde85d7f1642e8727c052e064371be7967619 Reviewed-on: https://chromium-review.googlesource.com/311000 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
* Initial commit of TCPM driver for FUSB302.Gabe Noblesmith2015-11-041-0/+952
BUG=none BRANCH=none TEST=PD contract established with various devices Change-Id: I4b452befe9ccd9d67bd6ad5c8cf77ae58320f6af Signed-off-by: Gabe Noblesmith <gabe.noblesmith@fairchildsemi.com> Reviewed-on: https://chromium-review.googlesource.com/294924 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>