Sean Cross
0bcc45b185
sw: update to use picospi
...
Use the new picospi instead of bbspi.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-10 17:02:02 +08:00
Sean Cross
d89eea3934
usb: refactor state machine to work with xhci devices
...
Due to some subtle quirks, as well as a poorly-implemented state machine,
foboot was not compatible with many Desktop devices.
This should fix the implementation so that it is more compatible.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-08 17:19:54 +08:00
Sean Cross
4b6ad47705
sw: spi-gpio: remove unused files
...
These were moved into spi.c to allow them to be inlined.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-06 11:04:43 +08:00
Sean Cross
b5f17acdf6
sw: enable fancy led effects
...
Support different LED patterns depending on the mode.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-05 18:10:05 +08:00
Sean Cross
7bcc8529d6
dfu: initial working commit
...
This commit actually works, but still has a few issues.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-05 15:09:52 +08:00
Sean Cross
ac349ce1a1
spi: support 32- and 64-kB erase blocks
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-05 15:09:04 +08:00
Sean Cross
85b6d75882
sw: update to latest generated files
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-02 18:11:25 +08:00
Sean Cross
85bdc7991c
rgb: add initial rgb code
...
It initializes the rgb driver, and can write to its registers.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-02 18:10:17 +08:00
Sean Cross
a3c05bd19e
sw: system: add reset key to reboot()
...
Add the key `0xac` to the reset command, to prevent accidental resets.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-02 16:40:09 +08:00
Sean Cross
0a4c73a63a
sw: wip commit -- dfu state machine works, spi broken
...
Need to fix SPI and SB_WARMBOOT, but the DFU state machine now works.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-28 11:13:25 +08:00
Sean Cross
a3298226e5
sw: getting dfu working about to add debug bridge
...
We're having issues getteing DFU working. It almost works, but has some
issues. Unfortunately, we're out of space for printf.
Now we will work to get the UART Wishbone bridge working, to move
forward on debugging support.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-26 09:39:55 +08:00
Sean Cross
3d6acaf51e
sw: wip commit -- getting dfu working
...
Now that we have SPI and USB both working, we can start to close the
loop and get DFU working.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-25 17:39:06 +08:00
Sean Cross
2139317530
sw: include: sync csr.h and mem.h
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-20 13:14:57 +08:00
Sean Cross
03327067ff
sw: add spi base
...
This is taken from fomu-flash, and needs to be adapted.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-20 11:23:19 +08:00
Sean Cross
9909b3bbdb
sw: usb-desc: set product name to "Fomu Bootloader"
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-11 11:50:55 +08:00
Sean Cross
69f7b5d836
csr: replace with latest generated version
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-10 20:53:30 +08:00
Sean Cross
c98017cbc9
client: working on the client
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-10 15:25:33 +08:00
Sean Cross
3df59a866d
metastable fix: wip
...
Trying to figure out what's causing this problem.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-05 20:28:54 +08:00
Sean Cross
c78e9ab214
sw: add missing include files
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-05 12:02:02 +08:00
Sean Cross
ffd0285613
main: more work on fixing stuff
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-05 11:54:48 +08:00
Sean Cross
e4af98b4aa
generated: update generated csr, mem, and ld files
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-05 09:05:29 +08:00
Sean Cross
84d4b40897
foboot: move software stuff to sw directory
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-05 08:54:51 +08:00