summaryrefslogtreecommitdiff
path: root/board/fusb307bgevb
Commit message (Collapse)AuthorAgeFilesLines
* usb_common: support parse Augmented PDOEric Yilun Lin2021-04-081-7/+10
| | | | | | | | | | | | | | | | | | Change the function signature to void pd_extract_pdo_power(uint32_t pdo, uint32_t *ma, uint32_t *max_mv, uint32_t *min_mv); Replace the original caller with an extra unused parameter, no functional changes. BUG=none TEST=`pd 0 srccaps` prints the correct PDO info BRANCH=asurada Change-Id: I9b508e1a13737fe3ed61e6086416cff0c8ffb9a9 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2810660 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* genvif: Use VIF overrides by defaultAbe Levkoy2021-03-301-0/+3
| | | | | | | | | | | | | | Use board-specific override files when generating VIFs for boards. BUG=b:172276715 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I197365018ceb8197c22d631cebf4cbce1c0119f7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785506 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* COIL: Rename fusb307 variablesDiana Z2021-01-271-1/+1
| | | | | | | | | | | | | Rename i2c variables in fusb307 driver. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ib1e4b25a0b2b233d8d4c828590cb48b771faa418 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649353 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* config: Provide default VCONN Swap delayAbe Levkoy2021-01-221-1/+0
| | | | | | | | | | | | | | | | | Almost every relevant board copy-pastes 5000 us. Make that the default and get rid of the redundant definitions. This is the approximate result of this command: find . -type f -name *.h | xargs sed -i -E \ '/#define CONFIG_USBC_VCONN_SWAP_DELAY_US[[:space:]]+5000[[:space:]]/d' BUG=b:144165680 TEST=make buildall BRANCH=none Change-Id: Ife86f9752971abcd7ab5ad5a5e607eb2ccbde2ba Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628132 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* config: Make VCONN Swap delay a documented optionAbe Levkoy2021-01-221-1/+1
| | | | | | | | | | | | | | | | | | | | | Replace PD_VCONN_SWAP_DELAY with CONFIG_USBC_VCONN_SWAP_DELAY_US. This is the approximate result of the following command, run from platform/ec: find . -type f -\( -name '*.c' -o -name '*.h' -\) | \ xargs sed -iE 's/PD_VCONN_SWAP_DELAY/CONFIG_USBC_VCONN_SWAP_DELAY/g' Fix some latent formatting errors in usb_pd_protocol.c, because they were preventing pre-upload hooks from passing. BUG=b:144165680 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: Icaf3b309c08fdcd162e960cf5dc88185016b5d2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628131 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* COIL: Rename CONFIG_I2C_CONTROLLERDiana Z2020-11-051-1/+1
| | | | | | | | | | | | | Rename CONFIG_I2C_CONTROLLER and related comments. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ied6a1829bf54a5c9a32e6772982a4b8aa31aaf23 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2518659 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* ucsa: display pdo on lcd and handle button eventYun-chieh, Lee2020-09-242-23/+113
| | | | | | | | | | | | | Display pdo on lcd and select supply voltage with buttons. BUG=b:162057390 TEST=make buildall BRANCH=master Signed-off-by: Yun-Chieh Lee <lyunjie@google.com> Change-Id: Ibee29a47bd7744dff08deb8eb14bf97d0ddc627e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2407614 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* ucsa: fusb307 driver and enable tcpc interruptYun-chieh, Lee2020-09-243-2/+91
| | | | | | | | | | | | | Enable interrupt from tcpc fusb307bg. BUG=b:162057390 TEST=make buildall BRANCH=master Signed-off-by: Yun-Chieh Lee <lyunjie@google.com> Change-Id: If2ab2998b4430abcfd746e9879abd4334de319e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2405713 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* ucsa: add lcd driverYun-chieh, Lee2020-09-214-13/+244
| | | | | | | | | | | | | LCD 2004A driver, show "USB-C Sink Advertiser" on screen. BUG=none TEST=make buildall BRANCH=master Signed-off-by: Yun-Chieh Lee <lyunjie@google.com> Change-Id: I4dc3932fba0077bc215f2e6c7855ba26995370ac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2402852 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* ucsa: initial board setupYun-chieh, Lee2020-09-215-0/+328
USB-C Sink Advertiser. Implement TCPM (STM32F072CB) + TCPC (FUSB307B) with adding a display module and control buttons. So a user is able to select different voltage output from choosing different PDO within a comprehensive U/I shown by display. BUG=b:162057390 TEST=make buildall BRANCH=master Signed-off-by: Yun-Chieh Lee <lyunjie@google.com> Change-Id: I41d896f9c3c8fb96dd75d4c88cf1c0052eb488f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2402844 Reviewed-by: Ting Shen <phoenixshen@chromium.org>