bunnie
ee522c69a7
bump rev to remove clap
2022-09-29 22:15:22 +08:00
bunnie
7226b57a2f
eliminate an instance of clap
2022-09-29 22:12:58 +08:00
bunnie
119eac0c70
update manifest
2022-09-26 14:13:20 +08:00
bunnie
a1b7dde106
prep svd2utra for submission to crates.io
2022-09-26 14:07:28 +08:00
bunnie
b60ad06134
add a clone function for AtomicCsr
...
this is useful for the performance profiling framework
where we want to stick the allocatde CSRs into structures that
help manage things.
2022-09-16 01:46:15 +08:00
bunnie
e32ea4d3f5
fix #174
2022-06-10 21:36:53 +08:00
bunnie
22c9867a9a
fix Atomic version of instructions to be non-mut
...
better compatibility with usb libraries
2022-05-06 13:36:11 +08:00
bunnie
5b29fce651
add AtomicCsr type for hw blocks that have to implement Send trait
2022-05-03 01:12:48 +08:00
bunnie
b3788a54af
clarify the dependency policy
2022-01-10 16:50:10 +08:00
bunnie
995915ed4e
nail down a couple more dependencies, and add a policy note to Cargo.toml
...
Each Cargo.toml now includes a comment which remnids maintainers
of the dependency policy for Xous (that is, nail down every dependency
to the minor number).
2022-01-10 15:54:27 +08:00
bunnie
fec180890b
nail down dependencies in the related build toolchain flow
...
these are secondary attack surfaces -- code that isn't directly
in the kernel, but involved in the manipulation, handling, grooming
and preparation of source and binary files
2022-01-10 15:49:30 +08:00
bunnie
421a3814d8
clean up some warnings before moving on to further integration
2022-01-02 15:07:48 +08:00
bunnie
dd858183be
change compiler fence to SeqCst
2021-09-05 17:15:31 +08:00
bunnie
c0ce66ee51
fix permissions. windows is sort of stupid and makes everything +x
2021-08-19 23:34:29 +08:00
bunnie
2a2c75f420
add a rustfmt.toml and run rust fmt on the project
...
notably directories written by bunnie are excluded.
2021-08-19 23:33:23 +08:00
bunnie
24725d0465
add compiler fences to the UTRA
2021-07-26 19:22:45 +08:00
bunnie
25e6bced00
add power-on utilization reporting
...
there is now an extra field in the status bar that gives
the %'age of time that the clocks are running.
2021-06-02 01:08:31 +08:00
bunnie
ee2e38be05
add commands to help manage wfi/power debugging
2021-06-01 17:02:30 +08:00
bunnie
61f95363fd
mark a commit for the latest build submitted for testing
2021-06-01 15:33:48 +08:00
bunnie
2f9fa57bdd
clock-gate based power management now seems to be more or less working
2021-05-31 23:14:35 +08:00
bunnie
d9e56fd321
very preliminary power savings working
2021-05-31 05:20:54 +08:00
bunnie
7c55925926
intermediate check-in on wfi
2021-05-30 23:07:16 +08:00
bunnie
afe8d8733d
updates to use the always-on power domain timers
2021-05-30 04:29:03 +08:00
bunnie
52c32cc4d1
auto-powerdown of sha block when not in use
2021-05-30 00:12:18 +08:00
bunnie
1e5bf6131d
update precursors with usb PHY reset patch
2021-05-23 23:55:55 +08:00
bunnie
fe6b417643
checkpoint
2021-05-08 01:13:30 +08:00
bunnie
7dd66a4c18
playback is mostly working and stable
2021-05-07 05:42:39 +08:00
bunnie
d17ae106f1
kernel panic on memory lend
2021-05-05 00:58:48 +08:00
bunnie
a4ca725c2a
add a reset to an i2c core
2021-05-03 21:24:37 +08:00
bunnie
0ca2f58c6e
add a note to indicate if we're in cold sleep
...
it's not terribly aesthetic right now, but we can fix that later.
2021-05-02 03:36:54 +08:00
bunnie
b28dff273f
intermediate checkin figuring out ticktimer issue
...
seems to be a hardware problem with the loading routine
2021-05-01 19:13:22 +08:00
bunnie
46fe3885dc
cleanup more turds left over during the bringup of suspend/resume
2021-05-01 00:35:32 +08:00
bunnie
bbcf698ff3
flesh out a simple touch-and-go suspend/resume demo loop
...
now the debuggening begins. lord help us.
2021-04-29 02:56:53 +08:00
bunnie
e481df71da
add a resume kicker port for the handoff of bootloader to kernel
2021-04-29 01:05:50 +08:00
bunnie
3153d6aa66
intermediate progress on suspend/resume
2021-04-28 04:15:25 +08:00
bunnie
46741b5162
update fpga description
2021-04-27 21:56:35 +08:00
bunnie
6a703def63
commit the latest SVD files and other minor changes
2021-04-27 00:53:08 +08:00
bunnie
85211bb57d
add susres server skeleton
2021-04-27 00:38:51 +08:00
bunnie
fab8687aeb
move susres stuff to its own server
2021-04-27 00:38:09 +08:00
bunnie
836c836aec
wip for susres extensions
2021-04-26 14:55:45 +08:00
bunnie
4022462144
fix RTC wakeup alarm code
2021-04-23 17:51:12 +08:00
bunnie
061284ec5f
debugging BOOST mode glitch issue
...
Here's an arcane bug for you:
When powering down, the Spartan 7 3.3V I/O drivers will
output a roughly 800us wide glitch as 3.3V falls below around
1.7V, if the 0.95V core voltage comes down first (which it does
because we have an active discharge on 0.95V, but not on 3.3V).
In this case, it's just wide and high enough to cause the
BOOST mode line to engage, which takes the BOOST output
and ties it to VBUS, which is just enough for the system to
think you're powering it back on again. Which is not what
you want when powering down.
The ultimate fix was to put a heftier pull-down on the BOOST
line so that it can't trip the BOOST output into the VBUS.
Another option could be more active discharge FETs, but that
would require a full board spin and we are already at certification,
so we'll stick with the stronger pull-down on BOOST. It seems to
be a robust fix in the worst corner cases we can find.
The downside is that when powering an external USB device,
you are burning an extra 30mW of power overcoming the pull-down,
but typically, any external USB devices plugged into Precursor
will burn far in excess of that, so the delta should be negligible.
2021-04-23 15:33:14 +08:00
bunnie
07c20f6285
update to latest SVD
2021-04-23 01:49:31 +08:00
bunnie
084b66a927
update SVD references to latest SoC design (ticktimer/susres)
2021-04-22 18:08:43 +08:00
bunnie
8916f3e6a3
bump to latest soc.svd
2021-04-21 00:02:10 +08:00
bunnie
e5343bceb9
retrofit system to use the new device-based CSR image
2021-04-20 19:27:29 +08:00
bunnie
d807098ed1
more mods for the braille branch
2021-04-16 05:34:08 +08:00
bunnie
ac40075140
add keyboard input via UART
2021-04-16 04:11:25 +08:00
bunnie
024a072a7c
absorb WDT fix to eliminate a race condition
2021-04-15 18:40:00 +08:00
bunnie
93400df67c
an initial cut at fcc test commands
2021-04-15 04:10:47 +08:00
bunnie
a38ba534f1
fix rmwf bug where mask is not shifted before use
...
can't believe this went unnoticed for so long...
2021-04-15 02:59:14 +08:00
bunnie
9f4dc8a7b1
add wifi reset opcodes
2021-04-14 22:43:23 +08:00
bunnie
75295485a7
fix RTC callbacks
2021-04-14 02:58:22 +08:00
bunnie
b408882de7
add updated SVD files to track litex changes
2021-04-12 22:42:02 +08:00
bunnie
a9de4782c5
crashing on load when logger is in callback
2021-04-08 23:07:02 +08:00
bunnie
45c90659e5
rtc first draft
2021-04-08 02:30:57 +08:00
bunnie
da7ace04d4
rebuild and prep for testing on hardware
2021-04-04 02:15:46 +08:00
bunnie
ef3653bf36
add updated SVD files for WDT interrupt rev
2021-03-25 02:40:18 +08:00
bunnie
0e8767aea2
this commit crashes on boot
2021-03-16 19:07:03 +08:00
bunnie
2fb6ae5ee7
debugging i2c
2021-03-16 17:03:10 +08:00
bunnie
c9d7b1c504
add parsing for the <constants> extensions most recently added into Litex
2021-03-02 02:05:34 +08:00
bunnie
d7e1959fed
disintegrated fonts working
2021-02-27 14:35:53 +08:00
bunnie
0dc40f4185
attempt to separate fontmaps and loader out of kernel
2021-02-27 02:12:19 +08:00
bunnie
5b80b3fb42
get fcc-agent working again
2021-02-23 04:01:01 +08:00
bunnie
24e7885779
change out hw-image servers for rkyv testing
2021-02-12 01:51:42 +08:00
bunnie
4a32baf12f
fix SVD sample file issues that are breaking CI
2021-01-09 02:38:02 +08:00
bunnie
b7263f7ef0
Merge remote-tracking branch 'origin/master' into hardware
2021-01-04 03:19:23 +08:00
Sean Cross
7b50d00eb8
repo: run cargo fmt
...
This reformats line endings to be consistent, and reinforces the
contents of `.gitattributes`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-03 18:31:51 +08:00
bunnie
886f48ba61
make base field pub so we can initialize
...
needed for static debug structs
2020-12-31 19:30:48 +08:00
bunnie
21b54a5033
get rid of an unnecessary &mut that makes svd2utra a bit difficult to use
2020-12-14 23:30:18 +08:00
bunnie
09f3390524
update soc.svd to have latest perihperals
2020-12-13 02:24:41 +08:00
Sean Cross
6008326297
svd2utra: update soc.svd with COM IRQ
...
This should fix CI.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-25 20:47:17 +08:00
bunnie
f61ae8ee2a
update soc.svd example
2020-11-22 03:46:42 +08:00
Sean Cross
80419955fb
svd2utra: update example with latest svd
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 12:49:42 +08:00
bunnie
88f0ad0056
update example soc.svd so CI doesn't break
2020-10-14 19:03:00 +08:00
bunnie
30042b460c
no need to mutably borrow for reads
2020-10-14 03:04:09 +08:00
bunnie
fc02a3e4e1
add 32-bit field width option
2020-10-12 16:54:03 +08:00
bunnie
d36a2f2327
tweak API for better/unambiguous path resolution in page allocations
2020-10-12 04:12:21 +08:00
bunnie
9a50de8b4e
refactor: utra -> utralib naming
...
this cleans up some namespace issues when including
the utra crate which also refers to utra::generated::utra,
and there are CONST at the crate-level, and also functions
at the module-level which need disambiguation. By naming
the crate utra-lib this saves a bit of syntatic wrangling
at the top of every file.
2020-10-12 03:56:10 +08:00
bunnie
e414c87414
add doc notes on the UTRA
2020-10-12 03:21:20 +08:00
Sean Cross
4847469f03
svd2utra: implement svd2utra command
...
This now has proper command line handling.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-11 09:08:30 +08:00
Sean Cross
c04b23ec67
utra: remove example rust file
...
This isn't used anymore, and can be regenerated from the file in
`examples`.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-11 09:07:40 +08:00
Sean Cross
ad19337760
generate: impl Error for ParseError
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-11 09:04:53 +08:00
Sean Cross
3590fa3d4b
svd2utra: wire up tests
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-11 08:24:56 +08:00
bunnie
7dc011e6d8
make build process a bit more transparent
...
- print help messages when running svd2utra from command line for
development
- do not allow utra to silently fall back to a default if one
has not been specified in the environment
2020-10-06 00:48:34 +08:00
bunnie
c5d8ccc67c
update the example.rs file with the latest run
2020-10-06 00:35:42 +08:00
bunnie
16b3d78feb
add interrupt generation to svd2utra
2020-10-06 00:34:18 +08:00
Sean Cross
e9d9315418
svd2utra: mark base field as pub
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 11:37:18 +08:00
Sean Cross
da50dffa94
sv2utra: fix no_std attribute generation
...
We only need `no_std` when building for embedded platforms, and it no
longer goes inside the library file.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 11:27:47 +08:00
Sean Cross
422789eda7
svd2utra: make svd parsing public
...
This will be useful when replacing `csr.csv` with the svd file.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 10:57:01 +08:00
Sean Cross
6a01505d11
svd2utra: fix test generation
...
Tests now compile.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 10:34:24 +08:00
Sean Cross
d0d687a239
utra: fix build on non-hardware release
...
This adds svd2utra, which enables building for non-embedded harware.
It also fixes some build issues, and paves the way for generating UTRA
at compile-time.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 10:13:51 +08:00