summaryrefslogtreecommitdiff
path: root/board/lazor/build.mk
Commit message (Collapse)AuthorAgeFilesLines
* trogdor: Move the hibernate functions into separate filesWai-Hong Tam2021-05-011-0/+1
| | | | | | | | | | | | | | Move the hiberante functions from baseboard.c and board.c to separate hibernate.c files. This makes Zephyr easier to include the code. BRANCH=None BUG=b:183745774 TEST=Built the EC image and tested EC hibernate on Lazor. Change-Id: Ic2f0a73687075c5d6c0dddbb329abea7a0f27053 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2861057 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* lazor: Create a new file for USB-C configSimon Glass2021-03-221-1/+6
| | | | | | | | | | | | | | | | | | | | With Zephyr we cannot compile board.c so we need to move the USB-C code into a file that can be built by both Zephyr and ECOS. Make a start on a new ucbc_config.c file, moving just the tcpc_alert_event() function for now. Update build.mk to separate out the files, keeping them in order. This will make it easier to read as the list grows. BUG=b:183296099 BRANCH=none TEST=make BOARD=lazor -j4 Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I8943a9732408a1d3ce6a80c99d6a7d3565fbd7e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774914 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* lazor: move sku functions into separate sku.c fileJack Rosenthal2021-03-221-1/+1
| | | | | | | | | | | | | | | | | | | Refactor board.c to move the sku-related configuration detection functionality to it's own file. This will make the process of including this code in Zephyr easier. Had to add an ugly ifdef around some TCPM stuff as we don't have that going in Zephyr yet... sorry :-( BUG=b:183054226,b:183118990 BRANCH=none TEST=power sequence lazor (using CrOS EC OS build) Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ibf746de807afe284eb63134f0af47b0d2d5ac471 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774366 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* lazor: separate out switchcap codeJack Rosenthal2021-03-191-1/+1
| | | | | | | | | | | | | | | Separate the switchcap implementation to another file so it can be more readily used by the Zephyr OS build. BUG=b:183054226 BRANCH=none TEST=power sequence lazor (on CrOS EC OS build) Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Iefa08412ac3708e667c5bee14be70128aa50eade Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774364 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* Lazor: Initial commit for Lazor boardWai-Hong Tam2020-04-021-0/+14
Major changes: * EC chip: NPCX796FC * Flash size: 512KB * TCPC chips: PS8751 * BC1.2 chips: PI3USB9201 * Update GPIOs BRANCH=None BUG=b:150793669 TEST=Built the Lazor image successfully. Change-Id: I28b53b9aa7867153f86c947e3a441f3c5c081549 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2123050 Reviewed-by: Alexandru M Stan <amstan@chromium.org>