Skip to content

Commit

Permalink
drivers/soc_ifc: Add method to enable mbox interrupts
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Heymans <[email protected]>
  • Loading branch information
ArthurHeymans authored and jhand2 committed Feb 5, 2024
1 parent 67baa9c commit 97ced71
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/src/soc_ifc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,16 @@ impl SocIfc {
let ext_info = soc_ifc_regs.cptra_fw_extended_error_info();
ext_info.at(0).write(|_| err);
}

pub fn enable_mbox_notif_interrupts(&mut self) {
let soc_ifc_regs = self.soc_ifc.regs_mut();
let intr_block = soc_ifc_regs.intr_block_rf();

intr_block
.notif_intr_en_r()
.write(|w| w.notif_cmd_avail_en(true));
intr_block.global_intr_en_r().write(|w| w.notif_en(true));
}
}

bitflags::bitflags! {
Expand Down

0 comments on commit 97ced71

Please sign in to comment.