File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
drv/gimlet-seq-server/src Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ enum Trace {
82
82
A0FailureDetails ( Addr , u8 ) ,
83
83
A0Failed ( #[ count( children) ] SeqError ) ,
84
84
A1Status ( Result < A1SmStatus , u8 > ) ,
85
+ A1Readbacks ( u8 ) ,
86
+ A1OutStatus ( u8 ) ,
85
87
CPUPresent ( #[ count( children) ] bool ) ,
86
88
Coretype {
87
89
coretype : bool ,
@@ -747,6 +749,20 @@ impl<S: SpiServer> ServerImpl<S> {
747
749
self . seq . set_bytes ( Addr :: PWR_CTRL , & [ a1] ) . unwrap_lite ( ) ;
748
750
749
751
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
+
750
766
let mut status = [ 0u8 ] ;
751
767
752
768
self . seq
You can’t perform that action at this time.
0 commit comments