@@ -93,21 +93,19 @@ static const struct adf_fw_config adf_fw_dcc_config[] = {
9393static struct adf_hw_device_class adf_420xx_class = {
9494 .name = ADF_420XX_DEVICE_NAME ,
9595 .type = DEV_420XX ,
96- .instances = 0 ,
9796};
9897
9998static u32 get_ae_mask (struct adf_hw_device_data * self )
10099{
101- u32 me_disable = self -> fuses ;
100+ u32 me_disable = self -> fuses [ ADF_FUSECTL4 ] ;
102101
103102 return ~me_disable & ADF_420XX_ACCELENGINES_MASK ;
104103}
105104
106105static u32 uof_get_num_objs (struct adf_accel_dev * accel_dev )
107106{
108107 switch (adf_get_service_enabled (accel_dev )) {
109- case SVC_CY :
110- case SVC_CY2 :
108+ case SVC_SYM_ASYM :
111109 return ARRAY_SIZE (adf_fw_cy_config );
112110 case SVC_DC :
113111 return ARRAY_SIZE (adf_fw_dc_config );
@@ -118,10 +116,8 @@ static u32 uof_get_num_objs(struct adf_accel_dev *accel_dev)
118116 case SVC_ASYM :
119117 return ARRAY_SIZE (adf_fw_asym_config );
120118 case SVC_ASYM_DC :
121- case SVC_DC_ASYM :
122119 return ARRAY_SIZE (adf_fw_asym_dc_config );
123120 case SVC_SYM_DC :
124- case SVC_DC_SYM :
125121 return ARRAY_SIZE (adf_fw_sym_dc_config );
126122 default :
127123 return 0 ;
@@ -131,8 +127,7 @@ static u32 uof_get_num_objs(struct adf_accel_dev *accel_dev)
131127static const struct adf_fw_config * get_fw_config (struct adf_accel_dev * accel_dev )
132128{
133129 switch (adf_get_service_enabled (accel_dev )) {
134- case SVC_CY :
135- case SVC_CY2 :
130+ case SVC_SYM_ASYM :
136131 return adf_fw_cy_config ;
137132 case SVC_DC :
138133 return adf_fw_dc_config ;
@@ -143,10 +138,8 @@ static const struct adf_fw_config *get_fw_config(struct adf_accel_dev *accel_dev
143138 case SVC_ASYM :
144139 return adf_fw_asym_config ;
145140 case SVC_ASYM_DC :
146- case SVC_DC_ASYM :
147141 return adf_fw_asym_dc_config ;
148142 case SVC_SYM_DC :
149- case SVC_DC_SYM :
150143 return adf_fw_sym_dc_config ;
151144 default :
152145 return NULL ;
@@ -266,8 +259,7 @@ static u32 get_accel_cap(struct adf_accel_dev *accel_dev)
266259 }
267260
268261 switch (adf_get_service_enabled (accel_dev )) {
269- case SVC_CY :
270- case SVC_CY2 :
262+ case SVC_SYM_ASYM :
271263 return capabilities_sym | capabilities_asym ;
272264 case SVC_DC :
273265 return capabilities_dc ;
@@ -284,10 +276,8 @@ static u32 get_accel_cap(struct adf_accel_dev *accel_dev)
284276 case SVC_ASYM :
285277 return capabilities_asym ;
286278 case SVC_ASYM_DC :
287- case SVC_DC_ASYM :
288279 return capabilities_asym | capabilities_dc ;
289280 case SVC_SYM_DC :
290- case SVC_DC_SYM :
291281 return capabilities_sym | capabilities_dc ;
292282 default :
293283 return 0 ;
@@ -420,6 +410,7 @@ static void adf_gen4_set_err_mask(struct adf_dev_err_mask *dev_err_mask)
420410 dev_err_mask -> parerr_cpr_xlt_mask = ADF_420XX_PARITYERRORMASK_CPR_XLT_MASK ;
421411 dev_err_mask -> parerr_dcpr_ucs_mask = ADF_420XX_PARITYERRORMASK_DCPR_UCS_MASK ;
422412 dev_err_mask -> parerr_pke_mask = ADF_420XX_PARITYERRORMASK_PKE_MASK ;
413+ dev_err_mask -> parerr_wat_wcp_mask = ADF_420XX_PARITYERRORMASK_WAT_WCP_MASK ;
423414 dev_err_mask -> ssmfeatren_mask = ADF_420XX_SSMFEATREN_MASK ;
424415}
425416
@@ -482,6 +473,7 @@ void adf_init_hw_data_420xx(struct adf_hw_device_data *hw_data, u32 dev_id)
482473 hw_data -> get_hb_clock = adf_gen4_get_heartbeat_clock ;
483474 hw_data -> num_hb_ctrs = ADF_NUM_HB_CNT_PER_AE ;
484475 hw_data -> clock_frequency = ADF_420XX_AE_FREQ ;
476+ hw_data -> services_supported = adf_gen4_services_supported ;
485477
486478 adf_gen4_set_err_mask (& hw_data -> dev_err_mask );
487479 adf_gen4_init_hw_csr_ops (& hw_data -> csr_ops );
0 commit comments