Skip to content

Commit 5327e9d

Browse files
committed
Read a few more gimlet sequencer regs in A1
1 parent 360ceb9 commit 5327e9d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

drv/gimlet-seq-server/src/main.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ enum Trace {
8282
A0FailureDetails(Addr, u8),
8383
A0Failed(#[count(children)] SeqError),
8484
A1Status(Result<A1SmStatus, u8>),
85+
A1Readbacks(u8),
86+
A1OutStatus(u8),
8587
CPUPresent(#[count(children)] bool),
8688
Coretype {
8789
coretype: bool,
@@ -747,6 +749,20 @@ impl<S: SpiServer> ServerImpl<S> {
747749
self.seq.set_bytes(Addr::PWR_CTRL, &[a1]).unwrap_lite();
748750

749751
loop {
752+
let mut readbacks = [0u8];
753+
754+
self.seq
755+
.read_bytes(Addr::A1_READBACKS, &mut readbacks)
756+
.unwrap_lite();
757+
ringbuf_entry!(Trace::A1Readbacks(readbacks[0]));
758+
759+
let mut out_status = [0u8];
760+
761+
self.seq
762+
.read_bytes(Addr::A1_OUT_STATUS, &mut out_status)
763+
.unwrap_lite();
764+
ringbuf_entry!(Trace::A1OutStatus(out_status[0]));
765+
750766
let mut status = [0u8];
751767

752768
self.seq

0 commit comments

Comments
 (0)