summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pruicss_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pruicss_drv.c b/src/pruicss_drv.c
index d033f3c..0e53d4b 100644
--- a/src/pruicss_drv.c
+++ b/src/pruicss_drv.c
@@ -125,7 +125,7 @@ PRUICSS_Handle PRUICSS_create(PRUICSS_Config *config, int32_t instance)
125 object = (PRUICSS_V1_Object*)handle->object; 125 object = (PRUICSS_V1_Object*)handle->object;
126 object->instance = instance; 126 object->instance = instance;
127 temp_addr = (hwAttrs->prussCfgRegBase + CSL_ICSSCFG_REVID); 127 temp_addr = (hwAttrs->prussCfgRegBase + CSL_ICSSCFG_REVID);
128 temp_val = CSL_REG32_RD(temp_addr) & 0x7ffU; 128 temp_val = CSL_REG32_RD(temp_addr) & 0xFFFFU;
129 object->pruicss_version = temp_val; 129 object->pruicss_version = temp_val;
130 return(&config[instance-1]); 130 return(&config[instance-1]);
131 131