forked from davidthings/tinyfpga_bx_usbserial
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix USB-C downstream port programming.
We have to send an explicit SourceVbusDefaultVoltage command to the FUSB307 to enable the downstream port power controller. Once this is done, the board will advertise downstream power depending on the amount of current available from the upstream port.
- Loading branch information
Showing
4 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
TinyDFU for the Logicbone ECP5 | ||
============================== | ||
This port allows the DFU bootloader to operate on a Logicbone ECP5 board. | ||
|
||
At power-on, the `BOOT` is checked to see if the board should remain in | ||
bootloader mode, or if the board should boot into the user image after a | ||
short timeout. | ||
|
||
When the bootloader is running, but idle, LED0 will blink at a little more | ||
than 1Hz. When the bootloader is running and a `DFU_UPLOAD` or `DFU_DNLOAD` | ||
operation is inprogress, the LEDs will cycle back and forth. | ||
|
||
Building | ||
======== | ||
A `Makefile` has been provided that allows you to build and program the DFU | ||
bootloader. It supports the following make targets: | ||
|
||
| Target | Description | | ||
|:---------------|:------------------------------------------------------------| | ||
| `bootloader` | Build the bootloader bitstream for an Logicbone ECP5 | | ||
| `prog` | Program the bootloader into the FPGA using OpenOCD. | | ||
| `dfu` | Program the bootloader into the flash using dfu-util. | | ||
| `clean` | Delete any files generated by the build. | | ||
|
||
The FPGA device can be overridden by specifying a `DEVICE=--um5g-45k` argument | ||
to make if you have a Logicbone with a different FPGA size. The default value | ||
is `--um5g-45k`, which builds for an LFE5UM5G-45F. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters