Commit graph

10340 commits

Author SHA1 Message Date
bunnie
7f8f64e1be add routine to set irq pin for PMIC to board description file 2025-01-03 04:03:31 +08:00
bunnie
0953eac2ef cleanup warnings 2025-01-03 04:01:15 +08:00
bunnie
e66303e044 add fix discovered during sim testing 2025-01-02 01:02:08 +08:00
bunnie
6d3c50144e
Merge branch 'main' into usb-irq 2025-01-01 17:03:32 +02:00
bunnie
89ebd5d6e2
Merge pull request #612 from betrusted-io/cramium-sim
Cramium sim
2025-01-01 17:01:31 +02:00
bunnie
3582b1f50d Merge branch 'main' into cramium-sim 2025-01-01 22:59:52 +08:00
bunnie
72968701b9 cleanup feature bitrot and use loopback for testing 2025-01-01 22:53:04 +08:00
bunnie
fd7e2f8281 remove writes to non-existent test register; flush FIFO on overrun
The overrun test needs to flush the fifo when it's done (it's a
deliberate error test).

Also remove access references to a peripheral that no longer exists
2025-01-01 22:52:09 +08:00
bunnie
d40463da28 fixup bitrot in feature flags 2025-01-01 22:51:16 +08:00
bunnie
c8cb5cda47 ignore dead code in shell.rs
when the debug stuff is commented out, a bunch of unused code
warnings happen in the shell interface
2025-01-01 22:48:52 +08:00
bunnie
03d67de1f6 kernel in -fpga variant uses duart 2025-01-01 22:48:32 +08:00
bunnie
201decd4ca more feature flag bitrot in loader 2025-01-01 22:47:59 +08:00
bunnie
f3517603e9 cleanup some feature flag bitrot 2025-01-01 22:47:19 +08:00
bunnie
99088936bb have the -fpga variant use the debug UART for console output
we only can watch one uart in the simulation environment (for now)
2025-01-01 22:46:38 +08:00
bunnie
64a48e275a update utralib with the latest headers 2025-01-01 22:46:05 +08:00
bunnie
44ec809713 add cramium-sim target
this allows us to build a simulation-focused xous image
this was previously called cramium-fpga but that precise
configuration is less accurate as the simulation environment
makes more shortcuts (and can include more peripherals)
than the fpga environment.
2025-01-01 22:45:07 +08:00
bunnie
85c4071372
Merge pull request #609 from betrusted-io/backup-flag
add an option to reset the backup flag
2024-12-28 19:39:11 +02:00
bunnie
6e0bdb49f4 add an option to reset the backup flag
the backup flag can be left "hanging around" if a restore of PDDB
is aborted. This command allows a user to override that setting
in case this is necessary.
2024-12-29 01:28:12 +08:00
bunnie
7375dc0c2f update core.svd based on latest code push 2024-12-29 01:27:38 +08:00
bunnie
2090288009 add a test loop to check the IRQ pin configuration
this all seems to work as expected now, next up: hooking the
interrupt handler for the IOX.

Probably should put the actual IRQ router in the HAL so that multiple
services can configure it, but have the handler actually invoke
a function in our address space.
2024-12-27 20:02:08 +08:00
bunnie
19780161bb add PMIC feature to the HAL 2024-12-27 20:01:51 +08:00
bunnie
68759073ef configure the IRQ input 2024-12-27 20:01:32 +08:00
bunnie
86afe7ca0a add APIs to configure PMIC IRQs 2024-12-27 20:01:10 +08:00
bunnie
bb098562b8
Merge pull request #608 from betrusted-io/coreuser
add updated register profile to include the coreuser block
2024-12-25 06:16:40 +08:00
bunnie
b745307384 add updated register profile to include the coreuser block
this has come back again due to volatility in the coreuser
API
2024-12-25 06:11:17 +08:00
bunnie
261c5eb9fe
Merge pull request #606 from rowr111/graphics-server-docs
graphics server docs
2024-12-24 01:34:29 +08:00
Jeanie
e1ff04b1fc fix set_devboot docs 2024-12-24 00:59:09 +08:00
Jeanie
f8bce54bd0 fix circle docs typo 2024-12-24 00:59:09 +08:00
Jeanie
9e888252c1 note for stash method, a few other updates 2024-12-24 00:59:09 +08:00
Jeanie
e8f165000c a few more drawings 2024-12-24 00:59:09 +08:00
Jeanie
16782f1f25 first half of images 2024-12-24 00:59:09 +08:00
Jeanie
5850794fa0 rearranging docs image location for better organization 2024-12-24 00:59:09 +08:00
Jeanie
6257fb4640 placeholders for example images, small docs update 2024-12-24 00:59:09 +08:00
Jeanie
52869a21f2 take out some repetitive wording 2024-12-24 00:59:09 +08:00
Jeanie
61f1ffdc9d all examples are now tested/fixed 2024-12-24 00:59:09 +08:00
Jeanie
5043a7bd39 some basic documentation 2024-12-24 00:59:09 +08:00
bunnie
c3f5b8192b
Merge pull request #607 from betrusted-io/usb-breaking-change
Usb breaking change
2024-12-24 00:58:41 +08:00
bunnie
6b51ad1c4f strip out cramium-soc code from usb-device-xous
programs should now use the usb-cramium crate for a USB
stack. It preserves the `lib` API, so you /should/ be able to
integrate it seamlessly by just renaming crates between
the two.
2024-12-24 00:54:58 +08:00
bunnie
d9f8b5bcfc add local panic handler for the USB stack
also clean up some debug statements and add a TODO list
2024-12-24 00:37:09 +08:00
bunnie
e0b6d96fbd cleanup USB integration at the service level 2024-12-23 01:21:44 +08:00
bunnie
568a15dc4f minor cleanup in this crate, although, a much larger cleanup is coming
we're going to strip out the USB cramium support from this crate
eventually because it has migrated to a stand-alone crate

the hardware model is just too different to keep the two branches
in sync: one allows interrupts to be delegated to userspace, the other
requires the interrupts to happen all in the locked handler context
due to timing assumptions of the core.

the problem with the interrupt handler context is that panics
are really hard to debug - you can't actually send a panic message
from an interrupt context, because there is no IPC when the
handler is running. Normally we try to keep the handlers as
minimal as possible, but in this case we can't due to hardware
assumptions.
2024-12-23 01:19:21 +08:00
bunnie
5aac426b0b more deep API cleanup
realizing a bunch of stuff like the stack expects you to enqueue
the OUT receiver with calls to read() that happen to block, fixing
max packet size that can be different for in and out end points,
and handling quirks of the core when sending setup packets longer than
64 bytes.
2024-12-23 01:18:03 +08:00
bunnie
99ab382d99 add a usb test routine to the console api
this one just sends a string as if typed on a keyboard.
2024-12-23 01:16:42 +08:00
bunnie
f2886d38f4 add usb to the console API 2024-12-23 01:16:30 +08:00
bunnie
8c0cfd9eab clean up unused args in API 2024-12-23 01:15:49 +08:00
bunnie
4fc359dd76 add dependency for accessing system registers
used for debugging some IRQ issues
2024-12-22 00:37:56 +08:00
bunnie
c044b3481d beginning of breaking change to the cramium usb hal implementation
the UsbBus implementation is being totally rewritten for the
inside-out IRQ protected scheme.

we can now get past some preliminaries in the link protocol
(i.e., address setting and the first config descriptor), but
a long way to go still in debugging.
2024-12-22 00:36:57 +08:00
bunnie
9a1a6271c5 add debugging configuration features 2024-12-22 00:36:33 +08:00
bunnie
a92c23bce6 massive commit-ball for big breaking USB refactor
This commit turns the USB stack inside out and puts
the handler in a protected IRQ section so that it can't be
interrupted during event processing.
2024-12-22 00:35:45 +08:00
bunnie
831f279a8b add pid reporting to hal services startup 2024-12-22 00:35:12 +08:00