[PATCH v2 05/32] bsps/grlib: Expand SpaceWire port bit fields

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jun 16 06:01:02 UTC 2023


Use the maximum width supported by the SpaceWire standard even if this
exceeds the configuration limits of a particular IP instance.

Update #4842.
---
 bsps/include/grlib/spwpnp-regs.h  | 2 +-
 bsps/include/grlib/spwrmap-regs.h | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bsps/include/grlib/spwpnp-regs.h b/bsps/include/grlib/spwpnp-regs.h
index 45550e3a79..00c688bc55 100644
--- a/bsps/include/grlib/spwpnp-regs.h
+++ b/bsps/include/grlib/spwpnp-regs.h
@@ -194,7 +194,7 @@ extern "C" {
  */
 
 #define SPWPNP_PNPACTLNK_ACTIVE_SHIFT 1
-#define SPWPNP_PNPACTLNK_ACTIVE_MASK 0x1ffeU
+#define SPWPNP_PNPACTLNK_ACTIVE_MASK 0xfffffffeU
 #define SPWPNP_PNPACTLNK_ACTIVE_GET( _reg ) \
   ( ( ( _reg ) & SPWPNP_PNPACTLNK_ACTIVE_MASK ) >> \
     SPWPNP_PNPACTLNK_ACTIVE_SHIFT )
diff --git a/bsps/include/grlib/spwrmap-regs.h b/bsps/include/grlib/spwrmap-regs.h
index 7a19f4a2d3..9a0ed203f3 100644
--- a/bsps/include/grlib/spwrmap-regs.h
+++ b/bsps/include/grlib/spwrmap-regs.h
@@ -751,7 +751,7 @@ extern "C" {
  */
 
 #define SPWRMAP_IPMASK_IE_SHIFT 0
-#define SPWRMAP_IPMASK_IE_MASK 0xfffffU
+#define SPWRMAP_IPMASK_IE_MASK 0xffffffffU
 #define SPWRMAP_IPMASK_IE_GET( _reg ) \
   ( ( ( _reg ) & SPWRMAP_IPMASK_IE_MASK ) >> \
     SPWRMAP_IPMASK_IE_SHIFT )
@@ -774,7 +774,7 @@ extern "C" {
  */
 
 #define SPWRMAP_PIP_IP_SHIFT 0
-#define SPWRMAP_PIP_IP_MASK 0xfffffU
+#define SPWRMAP_PIP_IP_MASK 0xffffffffU
 #define SPWRMAP_PIP_IP_GET( _reg ) \
   ( ( ( _reg ) & SPWRMAP_PIP_IP_MASK ) >> \
     SPWRMAP_PIP_IP_SHIFT )
@@ -953,7 +953,7 @@ extern "C" {
  */
 
 #define SPWRMAP_LRUNSTAT_LR_SHIFT 1
-#define SPWRMAP_LRUNSTAT_LR_MASK 0x7fffeU
+#define SPWRMAP_LRUNSTAT_LR_MASK 0xfffffffeU
 #define SPWRMAP_LRUNSTAT_LR_GET( _reg ) \
   ( ( ( _reg ) & SPWRMAP_LRUNSTAT_LR_MASK ) >> \
     SPWRMAP_LRUNSTAT_LR_SHIFT )
-- 
2.35.3



More information about the devel mailing list