File tree Expand file tree Collapse file tree 3 files changed +34
-11
lines changed Expand file tree Collapse file tree 3 files changed +34
-11
lines changed Original file line number Diff line number Diff line change @@ -1005,7 +1005,7 @@ static int mc_probe(struct platform_device *pdev)
1005
1005
goto free_edac_mc ;
1006
1006
}
1007
1007
1008
- rc = xlnx_register_event (PM_NOTIFY_CB , EVENT_ERROR_PMC_ERR1 ,
1008
+ rc = xlnx_register_event (PM_NOTIFY_CB , VERSAL_EVENT_ERROR_PMC_ERR1 ,
1009
1009
XPM_EVENT_ERROR_MASK_DDRMC_CR | XPM_EVENT_ERROR_MASK_DDRMC_NCR |
1010
1010
XPM_EVENT_ERROR_MASK_NOC_CR | XPM_EVENT_ERROR_MASK_NOC_NCR ,
1011
1011
false, err_callback , mci );
@@ -1042,7 +1042,7 @@ static int mc_remove(struct platform_device *pdev)
1042
1042
debugfs_remove_recursive (priv -> debugfs );
1043
1043
#endif
1044
1044
1045
- xlnx_unregister_event (PM_NOTIFY_CB , EVENT_ERROR_PMC_ERR1 ,
1045
+ xlnx_unregister_event (PM_NOTIFY_CB , VERSAL_EVENT_ERROR_PMC_ERR1 ,
1046
1046
XPM_EVENT_ERROR_MASK_DDRMC_CR |
1047
1047
XPM_EVENT_ERROR_MASK_NOC_CR |
1048
1048
XPM_EVENT_ERROR_MASK_NOC_NCR |
Original file line number Diff line number Diff line change @@ -77,11 +77,26 @@ struct registered_event_data {
77
77
78
78
static bool xlnx_is_error_event (const u32 node_id )
79
79
{
80
- if (node_id == EVENT_ERROR_PMC_ERR1 ||
81
- node_id == EVENT_ERROR_PMC_ERR2 ||
82
- node_id == EVENT_ERROR_PSM_ERR1 ||
83
- node_id == EVENT_ERROR_PSM_ERR2 )
84
- return true;
80
+ u32 pm_family_code , pm_sub_family_code ;
81
+
82
+ zynqmp_pm_get_family_info (& pm_family_code , & pm_sub_family_code );
83
+
84
+ if (pm_sub_family_code == VERSAL_SUB_FAMILY_CODE ) {
85
+ if (node_id == VERSAL_EVENT_ERROR_PMC_ERR1 ||
86
+ node_id == VERSAL_EVENT_ERROR_PMC_ERR2 ||
87
+ node_id == VERSAL_EVENT_ERROR_PSM_ERR1 ||
88
+ node_id == VERSAL_EVENT_ERROR_PSM_ERR2 )
89
+ return true;
90
+ } else {
91
+ if (node_id == VERSAL_NET_EVENT_ERROR_PMC_ERR1 ||
92
+ node_id == VERSAL_NET_EVENT_ERROR_PMC_ERR2 ||
93
+ node_id == VERSAL_NET_EVENT_ERROR_PMC_ERR3 ||
94
+ node_id == VERSAL_NET_EVENT_ERROR_PSM_ERR1 ||
95
+ node_id == VERSAL_NET_EVENT_ERROR_PSM_ERR2 ||
96
+ node_id == VERSAL_NET_EVENT_ERROR_PSM_ERR3 ||
97
+ node_id == VERSAL_NET_EVENT_ERROR_PSM_ERR4 )
98
+ return true;
99
+ }
85
100
86
101
return false;
87
102
}
Original file line number Diff line number Diff line change 95
95
/*
96
96
* Node IDs for the Error Events.
97
97
*/
98
- #define EVENT_ERROR_PMC_ERR1 (0x28100000U)
99
- #define EVENT_ERROR_PMC_ERR2 (0x28104000U)
100
- #define EVENT_ERROR_PSM_ERR1 (0x28108000U)
101
- #define EVENT_ERROR_PSM_ERR2 (0x2810C000U)
98
+ #define VERSAL_EVENT_ERROR_PMC_ERR1 (0x28100000U)
99
+ #define VERSAL_EVENT_ERROR_PMC_ERR2 (0x28104000U)
100
+ #define VERSAL_EVENT_ERROR_PSM_ERR1 (0x28108000U)
101
+ #define VERSAL_EVENT_ERROR_PSM_ERR2 (0x2810C000U)
102
+
103
+ #define VERSAL_NET_EVENT_ERROR_PMC_ERR1 (0x28100000U)
104
+ #define VERSAL_NET_EVENT_ERROR_PMC_ERR2 (0x28104000U)
105
+ #define VERSAL_NET_EVENT_ERROR_PMC_ERR3 (0x28108000U)
106
+ #define VERSAL_NET_EVENT_ERROR_PSM_ERR1 (0x2810C000U)
107
+ #define VERSAL_NET_EVENT_ERROR_PSM_ERR2 (0x28110000U)
108
+ #define VERSAL_NET_EVENT_ERROR_PSM_ERR3 (0x28114000U)
109
+ #define VERSAL_NET_EVENT_ERROR_PSM_ERR4 (0x28118000U)
102
110
103
111
/* ZynqMP SD tap delay tuning */
104
112
#define SD_ITAPDLY 0xFF180314
You can’t perform that action at this time.
0 commit comments