Skip to content

Commit a2ac0cd

Browse files
committed
Update RESMGR_ID according to device ID
1 parent 3906080 commit a2ac0cd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Utilities/ResourcesManager/res_mgr.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ device_config_t mp1_device_config[] = {
149149
{ RESMGR_ID_I2C4, I2C4_BASE, 0x05 },
150150
{ RESMGR_ID_RNG1, RNG1_BASE, 0x07 },
151151
{ RESMGR_ID_HASH1, HASH1_BASE, 0x08 },
152+
#if defined (STM32MP157Cxx) || defined (STM32MP153Cxx) || defined (STM32MP151Cxx)
152153
{ RESMGR_ID_CRYP1, CRYP1_BASE, 0x09 },
154+
#endif
153155
{ RESMGR_ID_I2C6, I2C6_BASE, 0x0C },
154156
{ RESMGR_ID_TIM2, TIM2_BASE, 0x10 },
155157
{ RESMGR_ID_TIM3, TIM3_BASE, 0x11 },
@@ -189,9 +191,11 @@ device_config_t mp1_device_config[] = {
189191
{ RESMGR_ID_SAI2, SAI2_BASE, 0x3B },
190192
{ RESMGR_ID_SAI3, SAI3_BASE, 0x3C },
191193
{ RESMGR_ID_DFSDM1, DFSDM1_BASE, 0x3D },
194+
#if defined (STM32MP157Cxx) || defined (STM32MP157Axx) || defined (STM32MP153Cxx) || defined (STM32MP153Axx)
192195
{ RESMGR_ID_FDCAN1, FDCAN1_BASE, 0x3E }, /* same decprot for all FDCAN */
193196
{ RESMGR_ID_FDCAN2, FDCAN2_BASE, 0x3E }, /* same decprot for all FDCAN */
194197
{ RESMGR_ID_FDCAN_CCU, FDCAN_CCU_BASE, 0x3E }, /* same decprot for all FDCAN */
198+
#endif
195199
{ RESMGR_ID_LPTIM2, LPTIM2_BASE, 0x40 },
196200
{ RESMGR_ID_LPTIM3, LPTIM3_BASE, 0x41 },
197201
{ RESMGR_ID_LPTIM4, LPTIM4_BASE, 0x42 },
@@ -204,7 +208,9 @@ device_config_t mp1_device_config[] = {
204208
{ RESMGR_ID_ADC2, ADC2_BASE, 0x48 }, /* same decprot for both ADC */
205209
{ RESMGR_ID_HASH2, HASH2_BASE, 0x49 },
206210
{ RESMGR_ID_RNG2, RNG2_BASE, 0x4A },
211+
#if defined (STM32MP157Cxx) || defined (STM32MP153Cxx) || defined (STM32MP151Cxx)
207212
{ RESMGR_ID_CRYP2, CRYP2_BASE, 0x4B },
213+
#endif
208214
{ RESMGR_ID_USB1_OTG_HS, USBOTG_BASE, 0x55 },
209215
{ RESMGR_ID_SDMMC3, SDMMC3_BASE, 0x56 },
210216
{ RESMGR_ID_DLYB_SDMMC3, DLYB_SDMMC3_BASE, 0x57 },
@@ -219,8 +225,10 @@ device_config_t mp1_device_config[] = {
219225
{ RESMGR_ID_CRC1, CRC1_BASE, ETZPC_NO_INDEX },
220226
{ RESMGR_ID_DLYB_SDMMC1, DLYB_SDMMC1_BASE, ETZPC_NO_INDEX },
221227
{ RESMGR_ID_DLYB_SDMMC2, DLYB_SDMMC2_BASE, ETZPC_NO_INDEX },
228+
#if defined (STM32MP157Cxx) || defined (STM32MP157Axx)
222229
{ RESMGR_ID_DSI, DSI_BASE, ETZPC_NO_INDEX },
223230
{ RESMGR_ID_GPU, GPU_BASE, ETZPC_NO_INDEX },
231+
#endif
224232
{ RESMGR_ID_IPCC, IPCC_BASE, ETZPC_NO_INDEX },
225233
{ RESMGR_ID_IWDG1, IWDG1_BASE, ETZPC_NO_INDEX },
226234
{ RESMGR_ID_IWDG2, IWDG2_BASE, ETZPC_NO_INDEX },

0 commit comments

Comments
 (0)