spinor: fix incorrect ecc write into softirq block

The init code tried to set up the ECC block to report errors by writing
into the softirq block. Correct the block so that it goes into the
spinor block instead.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-02-14 17:32:20 +08:00
parent d44cae2eae
commit 5402582f97

View file

@ -387,8 +387,8 @@ mod implementation {
(&mut spinor) as *mut Spinor as *mut usize,
)
.expect("couldn't claim SPINOR irq");
spinor.softirq.wfo(utra::spinor::EV_PENDING_ECC_ERROR, 1);
spinor.softirq.wfo(utra::spinor::EV_ENABLE_ECC_ERROR, 1);
spinor.csr.wfo(utra::spinor::EV_PENDING_ECC_ERROR, 1);
spinor.csr.wfo(utra::spinor::EV_ENABLE_ECC_ERROR, 1);
spinor.susres.push_fixed_value(RegOrField::Reg(utra::spinor::EV_PENDING), 0xFFFF_FFFF);
spinor.susres.push(RegOrField::Reg(utra::spinor::EV_ENABLE), None);