Commit graph

10340 commits

Author SHA1 Message Date
bunnie
4261e70d3f update usb test 2024-06-05 22:54:27 +08:00
bunnie
65df5b3066 remove uccr structure
the ram-mapped uccr structure does not guarantee synchronization
well enough. go back to UTRA functions. This gets us to the point
of setup packets!
2024-06-05 22:50:48 +08:00
Jeanie
c1f90d282c adding docs for start_progress 2024-06-05 13:51:39 +09:00
bunnie
545b51e8d3 rote port of C driver into Rust
lots of terrible stuff going on, nothing tested, but we have
a baseline of whatever they put in C directly forced into Rust.

A lot of really naughty things going on with raw pointers in this
driver -- it's going to be a challenge to oxidize.
2024-06-05 02:24:12 +08:00
bunnie
df6528edcf refactor to use structured usb object 2024-06-03 17:04:47 +08:00
bunnie
9673624a4e add usb register model and basic init structs 2024-06-03 17:04:21 +08:00
bunnie
34079ec180
Merge branch 'main' into cram-usb 2024-06-03 01:16:46 +05:30
bunnie
c67030b892
Merge pull request #549 from betrusted-io/bio
working branch for BIO tests
2024-06-03 01:15:36 +05:30
bunnie
907b0c543a move order of tests 2024-06-03 03:43:57 +08:00
bunnie
c4d787356b add aclk unit test 2024-06-02 20:20:06 +08:00
bunnie
a721c60d45 add bio to project workspace 2024-06-02 19:17:46 +08:00
bunnie
5c9b91d22a integrate i2c driver and update test log 2024-06-02 19:17:27 +08:00
bunnie
cc7b1158f3 create a "proper" i2c driver for BIO
this is an actually usable driver for end applications.
maybe some massaging needs to be done on shared resources, but
from the i2c standpoint this can do SMB, I2C transactions with
a fairly "normal" API.
2024-06-02 19:16:27 +08:00
bunnie
3e263c1974 update docs to match small change to spec 2024-06-02 06:21:42 +08:00
bunnie
559be323b7 i2c demo about working 2024-06-02 06:21:29 +08:00
bunnie
935857a675 add basic i2c concept 2024-06-02 02:39:45 +08:00
bunnie
23f2b117ab dont use report_api inside the generation macro - just for debugging 2024-06-02 02:39:30 +08:00
bunnie
9fe1933611 minor cleanup 2024-06-02 02:39:06 +08:00
bunnie
41e636bb8c fix formatting 2024-06-01 22:00:30 +08:00
bunnie
c113c4e9bd incorporate i2c module, pretty prints 2024-06-01 22:00:07 +08:00
bunnie
24bd9da6ab pretty-print unit tests 2024-06-01 21:58:18 +08:00
bunnie
e0f3ee8e49 pretty-print spi 2024-06-01 21:58:05 +08:00
bunnie
ccc342d9f3 add debug pretty-printing to test 2024-06-01 21:53:54 +08:00
bunnie
3cad44e6a1 add flags for usb testing 2024-06-01 13:35:56 +08:00
bunnie
e415fd44e7 start to lay in foundations for USB integration 2024-06-01 13:35:31 +08:00
bunnie
ac95f9a6df
Merge branch 'main' into bio 2024-06-01 11:03:53 +05:30
bunnie
97110cd231
Merge pull request #548 from betrusted-io/cramium-testing
Working branch for cramium integration
2024-05-31 22:53:54 +05:30
bunnie
94cd88c49a bump release note 2024-06-01 01:21:59 +08:00
bunnie
f20687540b
Merge branch 'main' into cramium-testing 2024-05-31 20:13:08 +05:30
bunnie
5f42ee6ecf move PFD into happy zone
apparently we were not running it in its recommended band before.
2024-05-31 22:34:28 +08:00
bunnie
17a3ed6adb move graphics server to the resident set
this improves responsivitiy quite a bit
2024-05-31 20:45:07 +08:00
bunnie
73b075716b add cramium panic display support 2024-05-31 20:44:46 +08:00
bunnie
a40466b7b4 heap-allocate the framebuffer
this will make memory utilization a bit more efficient than
a heap-allocated page where a portion is wasted
2024-05-31 20:43:53 +08:00
bunnie
fba2736fff fix typo 2024-05-31 20:43:44 +08:00
bunnie
ea5e57bbc9 add cramium's version of the panic handler 2024-05-31 20:42:54 +08:00
bunnie
b175ffaddf add Precursor's panic handler 2024-05-31 20:42:33 +08:00
bunnie
4e347c3ad6 split panic handler into hardware-specific versions 2024-05-31 20:42:11 +08:00
bunnie
a8518f7fa1 create a serializable version of Spim
this works by blowing apart the structure and re-assembling
it on the other side. The reason we can't simply pass it
is because the hardware pointer to the core register violates
a Rust safety rule, but Rust doesn't know that this pointer
points to a hardware register that's immutable and static versus
a regular block of memory that can go away.
2024-05-31 20:39:39 +08:00
bunnie
ff3138b72b bump stack limit
we did encounter a panic in testing
2024-05-31 20:39:18 +08:00
bunnie
83a7f0b4d5 add a keyboard hit forwarding service to the console
the logger is the console output. so, unfortunately, this is
where the console input is tied to in hardware.

We want the logger to be 100% dependency free, so we must
rely on a simple "well known server" (e.g. a server with a fixed
address) to bounce keyboard input into the keyboard service itself.

This does mean that anyone who knows the name of that server can
simply inject key presses into the system!
2024-05-31 03:40:35 +08:00
bunnie
877efd024b reflect dep change 2024-05-31 03:40:05 +08:00
bunnie
cdf0289099 add rv deps to the cramium-hal
needed for manipulating irqs
2024-05-31 03:39:32 +08:00
bunnie
17a2330681 add an IRQ API for the UDMA
this API has the unfortunate problem that only one process
can manage all the IRQs for all the serial ports, due to the
concentration of all IRQs into a single register bank.

That being said, it does support registering multiple repsonders
in a somewhat ergonomic fashion.
2024-05-31 03:38:23 +08:00
bunnie
968440ec7e add stand-alone IRQ testing to the loader environment
The loader bringup now has some IRQ testing built into it.
Couldn't actually get an IRQ to trigger, but it has to do something
more with me not getting the RV IRQ machine bits configured right
than anything else. However, the stub is useful for confirming
which IRQ bits actually fire on the UDMA UART implementation,
which is the big point. There's an ambiguity in the wiring
of the UDMA block which isn't explained at all, which is the
fact that there's an RX interrupt and an RX_CHAR interrupt.

I still don't know what RX_CHAR does, but the RX interrupt
does fire when a character is received, so that's the one
we're going to use.
2024-05-31 03:36:08 +08:00
bunnie
6ed1b3398b cleanup debug 2024-05-31 03:35:47 +08:00
bunnie
660565cf60 remove debug 2024-05-31 03:35:32 +08:00
bunnie
0ee2d1c4e9 simply keyboard name space; add injector bouncer 2024-05-31 03:34:57 +08:00
bunnie
1761b38b23 prevent formatting of assembly 2024-05-31 03:34:21 +08:00
bunnie
253b4a0c0d
Merge pull request #546 from betrusted-io/release-bump
Release bump to 0.9.16
2024-05-30 16:12:36 +05:30
bunnie
6516430536 add 0.9.16 to the releases for restores 2024-05-30 18:38:48 +08:00