From f723dab8e683a5c2f47ed0cbfc247103f88e0fc3 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Tue, 11 Feb 2025 14:06:10 -0800 Subject: [PATCH] espi: MSTAT: HSTALL is also W1C Correct access method to W1C. Signed-off-by: Felipe Balbi --- Cargo.toml | 2 +- patch/espi.yaml | 3 +++ src/espi/mstat.rs | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ac19814..afddfcc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mimxrt633s-pac" -version = "0.2.2" +version = "0.2.3" authors = [ "Felipe Balbi " ] edition = "2021" license = "MIT" diff --git a/patch/espi.yaml b/patch/espi.yaml index 97ec9ae..2e99d97 100644 --- a/patch/espi.yaml +++ b/patch/espi.yaml @@ -159,6 +159,9 @@ ESPI: GPIO: modifiedWriteValues: oneToClear + Hstall: + modifiedWriteValues: oneToClear + # Split PortInt bits _split: PortInt: diff --git a/src/espi/mstat.rs b/src/espi/mstat.rs index d853bde..e3e1f2e 100644 --- a/src/espi/mstat.rs +++ b/src/espi/mstat.rs @@ -41,7 +41,7 @@ pub type WireChgW<'a, REG> = crate::BitWriter1C<'a, REG>; #[doc = "Field `Hstall` reader - If 1, the Host is stalled on a read from or write to a port that has the StallRd or StallWr bit set in the PnCFG register"] pub type HstallR = crate::BitReader; #[doc = "Field `Hstall` writer - If 1, the Host is stalled on a read from or write to a port that has the StallRd or StallWr bit set in the PnCFG register"] -pub type HstallW<'a, REG> = crate::BitWriter<'a, REG>; +pub type HstallW<'a, REG> = crate::BitWriter1C<'a, REG>; #[doc = "Field `CRCERR` reader - If 1, the CRC from the Master did not match the computed CRC"] pub type CrcerrR = crate::BitReader; #[doc = "Field `CRCERR` writer - If 1, the CRC from the Master did not match the computed CRC"] @@ -244,7 +244,7 @@ impl crate::Readable for MstatSpec {} impl crate::Writable for MstatSpec { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; - const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x6f00; + const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x7f00; } #[doc = "`reset()` method sets MSTAT to value 0"] impl crate::Resettable for MstatSpec {