aboutsummaryrefslogtreecommitdiff
path: root/src/sequences
diff options
context:
space:
mode:
authorIan McIntyre <me@mciantyre.dev>2025-12-13 13:30:49 -0500
committerIan McIntyre <me@mciantyre.dev>2025-12-13 13:39:35 -0500
commit7514ffe3b565669f6535ce05826613a884fb0665 (patch)
treee400aab5b130409733b2aac1091321fab3b425d7 /src/sequences
parentfe3e7300fe42013705144712843c80d1f198a253 (diff)
Support ISSI LP and WP configs in one algo
The configurations and sequences need to vary depending on the connected part. We can determine the part at runtime to vary the config. We could probably do this for all the parts. Maybe I'll try that later.
Diffstat (limited to 'src/sequences')
-rw-r--r--src/sequences/common.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sequences/common.rs b/src/sequences/common.rs
index cd3d573..4bb9493 100644
--- a/src/sequences/common.rs
+++ b/src/sequences/common.rs
@@ -80,3 +80,11 @@ pub const SEQ_RST: Sequence = {
instr[0] = Instr::new(SDR_CMD, Pads::One, 0x99);
Sequence(instr)
};
+
+/// Read product ID by JEDEC ID.
+pub const SEQ_READ_ID_JEDEC_ID: Sequence = {
+ let mut instr = [Instr::STOP; _];
+ instr[0] = Instr::new(SDR_CMD, Pads::One, 0x9F);
+ instr[1] = Instr::new(SDR_READ, Pads::One, 0);
+ Sequence(instr)
+};