| .. | .. |
|---|
| 244 | 244 | dh_data->dchub_info_valid = false; |
|---|
| 245 | 245 | } |
|---|
| 246 | 246 | |
|---|
| 247 | +/** |
|---|
| 248 | + * dce121_xgmi_enabled() - Check if xGMI is enabled |
|---|
| 249 | + * @hws: DCE hardware sequencer object |
|---|
| 250 | + * |
|---|
| 251 | + * Return true if xGMI is enabled. False otherwise. |
|---|
| 252 | + */ |
|---|
| 253 | +bool dce121_xgmi_enabled(struct dce_hwseq *hws) |
|---|
| 254 | +{ |
|---|
| 255 | + uint32_t pf_max_region; |
|---|
| 256 | + |
|---|
| 257 | + REG_GET(MC_VM_XGMI_LFB_CNTL, PF_MAX_REGION, &pf_max_region); |
|---|
| 258 | + /* PF_MAX_REGION == 0 means xgmi is disabled */ |
|---|
| 259 | + return !!pf_max_region; |
|---|
| 260 | +} |
|---|
| 261 | + |
|---|
| 247 | 262 | void dce120_hw_sequencer_construct(struct dc *dc) |
|---|
| 248 | 263 | { |
|---|
| 249 | 264 | /* All registers used by dce11.2 match those in dce11 in offset and |
|---|
| 250 | 265 | * structure |
|---|
| 251 | 266 | */ |
|---|
| 252 | 267 | dce110_hw_sequencer_construct(dc); |
|---|
| 253 | | - dc->hwss.enable_display_power_gating = dce120_enable_display_power_gating; |
|---|
| 268 | + dc->hwseq->funcs.enable_display_power_gating = dce120_enable_display_power_gating; |
|---|
| 254 | 269 | dc->hwss.update_dchub = dce120_update_dchub; |
|---|
| 255 | 270 | } |
|---|
| 256 | 271 | |
|---|