File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#include "sparx5_serdes.h"
23
23
24
- #define SPX5_CMU_MAX 14
25
-
26
24
#define SPX5_SERDES_10G_START 13
27
25
#define SPX5_SERDES_25G_START 25
28
26
#define SPX5_SERDES_6G10G_CNT SPX5_SERDES_25G_START
@@ -1101,7 +1099,7 @@ static void sparx5_serdes_cmu_power_off(struct sparx5_serdes_private *priv)
1101
1099
int i ;
1102
1100
1103
1101
/* Power down each CMU */
1104
- for (i = 0 ; i < SPX5_CMU_MAX ; i ++ ) {
1102
+ for (i = 0 ; i < priv -> data -> consts . cmu_max ; i ++ ) {
1105
1103
cmu_inst = sdx5_inst_get (priv , TARGET_SD_CMU , i );
1106
1104
cmu_cfg_inst = sdx5_inst_get (priv , TARGET_SD_CMU_CFG , i );
1107
1105
@@ -2512,6 +2510,7 @@ static const struct sparx5_serdes_match_data sparx5_desc = {
2512
2510
.iomap_size = ARRAY_SIZE (sparx5_serdes_iomap ),
2513
2511
.consts = {
2514
2512
.sd_max = 33 ,
2513
+ .cmu_max = 14 ,
2515
2514
},
2516
2515
};
2517
2516
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ enum sparx5_serdes_mode {
28
28
29
29
struct sparx5_serdes_consts {
30
30
int sd_max ;
31
+ int cmu_max ;
31
32
};
32
33
33
34
struct sparx5_serdes_match_data {
You can’t perform that action at this time.
0 commit comments