PHM_SET_FIELD
temp_reg = PHM_SET_FIELD(temp_reg, CNB_PWRMGT_CNTL, GNB_SLOW_MODE, 0x1);
temp_reg = PHM_SET_FIELD(temp_reg, CNB_PWRMGT_CNTL, GNB_SLOW_MODE, 0x2);
temp_reg = PHM_SET_FIELD(temp_reg, CNB_PWRMGT_CNTL, GNB_SLOW, 0x1);
temp_reg = PHM_SET_FIELD(temp_reg, CNB_PWRMGT_CNTL, FORCE_NB_PS1, 0x1);
temp_reg = PHM_SET_FIELD(temp_reg, CNB_PWRMGT_CNTL, DPM_ENABLED, 0x1);
display_gap = PHM_SET_FIELD(display_gap, CG_DISPLAY_GAP_CNTL,
display_gap = PHM_SET_FIELD(display_gap, CG_DISPLAY_GAP_CNTL, DISP_GAP, (hwmgr->display_config->num_display > 0) ? DISPLAY_GAP_VBLANK_OR_WM : DISPLAY_GAP_IGNORE);
display_gap = PHM_SET_FIELD(display_gap, CG_DISPLAY_GAP_CNTL,
cgs_write_register(device, mm##reg, PHM_SET_FIELD( \
PHM_SET_FIELD(cgs_read_ind_register(device, port, ix##reg), \
PHM_SET_FIELD(cgs_read_ind_register(device, port, ix##reg), \
mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, mpll_param.bw_ctrl);
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_ad_func_cntl = PHM_SET_FIELD(mpll_ad_func_cntl,
mpll_dq_func_cntl = PHM_SET_FIELD(mpll_dq_func_cntl,
mpll_dq_func_cntl = PHM_SET_FIELD(mpll_dq_func_cntl,
mpll_ss1 = PHM_SET_FIELD(mpll_ss1, MPLL_SS1, CLKV, clkv);
mpll_ss2 = PHM_SET_FIELD(mpll_ss2, MPLL_SS2, CLKS, clks);
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl,
spll_func_cntl_2 = PHM_SET_FIELD(spll_func_cntl_2,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
dll_cntl = PHM_SET_FIELD(dll_cntl,
dll_cntl = PHM_SET_FIELD(dll_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl, CG_SPLL_FUNC_CNTL,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl, CG_SPLL_FUNC_CNTL,
spll_func_cntl_3 = PHM_SET_FIELD(spll_func_cntl_3, CG_SPLL_FUNC_CNTL_3,
spll_func_cntl_3 = PHM_SET_FIELD(spll_func_cntl_3, CG_SPLL_FUNC_CNTL_3,
cg_spll_spread_spectrum = PHM_SET_FIELD(cg_spll_spread_spectrum,
cg_spll_spread_spectrum = PHM_SET_FIELD(cg_spll_spread_spectrum,
cg_spll_spread_spectrum_2 = PHM_SET_FIELD(cg_spll_spread_spectrum_2,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl, CG_SPLL_FUNC_CNTL,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl, CG_SPLL_FUNC_CNTL,
spll_func_cntl_2 = PHM_SET_FIELD(spll_func_cntl_2, CG_SPLL_FUNC_CNTL_2,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl, CG_SPLL_FUNC_CNTL,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl, CG_SPLL_FUNC_CNTL,
spll_func_cntl_3 = PHM_SET_FIELD(spll_func_cntl_3, CG_SPLL_FUNC_CNTL_3,
spll_func_cntl_3 = PHM_SET_FIELD(spll_func_cntl_3, CG_SPLL_FUNC_CNTL_3,
cg_spll_spread_spectrum = PHM_SET_FIELD(cg_spll_spread_spectrum,
cg_spll_spread_spectrum = PHM_SET_FIELD(cg_spll_spread_spectrum,
cg_spll_spread_spectrum_2 = PHM_SET_FIELD(cg_spll_spread_spectrum_2,
mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, mpll_param.bw_ctrl);
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_ad_func_cntl = PHM_SET_FIELD(mpll_ad_func_cntl,
mpll_dq_func_cntl = PHM_SET_FIELD(mpll_dq_func_cntl,
mpll_dq_func_cntl = PHM_SET_FIELD(mpll_dq_func_cntl,
mpll_ss1 = PHM_SET_FIELD(mpll_ss1, MPLL_SS1, CLKV, clkv);
mpll_ss2 = PHM_SET_FIELD(mpll_ss2, MPLL_SS2, CLKS, clks);
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl,
spll_func_cntl_2 = PHM_SET_FIELD(spll_func_cntl_2,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
dll_cntl = PHM_SET_FIELD(dll_cntl,
dll_cntl = PHM_SET_FIELD(dll_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl,
spll_func_cntl_3 = PHM_SET_FIELD(spll_func_cntl_3,
spll_func_cntl_3 = PHM_SET_FIELD(spll_func_cntl_3,
PHM_SET_FIELD(cg_spll_spread_spectrum, CG_SPLL_SPREAD_SPECTRUM, CLKS, clkS);
PHM_SET_FIELD(cg_spll_spread_spectrum, CG_SPLL_SPREAD_SPECTRUM, SSEN, 1);
PHM_SET_FIELD(cg_spll_spread_spectrum_2, CG_SPLL_SPREAD_SPECTRUM_2, CLKV, clkV);
tmp = PHM_SET_FIELD(tmp, CP_MEC_CNTL, MEC_ME1_HALT, 1);
tmp = PHM_SET_FIELD(tmp, CP_MEC_CNTL, MEC_ME2_HALT, 1);
tmp = PHM_SET_FIELD(tmp, CP_CPC_IC_BASE_CNTL, VMID, 0);
tmp = PHM_SET_FIELD(tmp, CP_CPC_IC_BASE_CNTL, ATC, 0);
tmp = PHM_SET_FIELD(tmp, CP_CPC_IC_BASE_CNTL, CACHE_POLICY, 0);
tmp = PHM_SET_FIELD(tmp, CP_CPC_IC_BASE_CNTL, MTYPE, 1);
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl, CG_SPLL_FUNC_CNTL,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl, CG_SPLL_FUNC_CNTL,
spll_func_cntl_2 = PHM_SET_FIELD(spll_func_cntl_2, CG_SPLL_FUNC_CNTL_2,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
dll_cntl = PHM_SET_FIELD(dll_cntl,
dll_cntl = PHM_SET_FIELD(dll_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl,
spll_func_cntl = PHM_SET_FIELD(spll_func_cntl,
spll_func_cntl_3 = PHM_SET_FIELD(spll_func_cntl_3,
spll_func_cntl_3 = PHM_SET_FIELD(spll_func_cntl_3,
PHM_SET_FIELD(cg_spll_spread_spectrum, CG_SPLL_SPREAD_SPECTRUM, CLKS, clkS);
PHM_SET_FIELD(cg_spll_spread_spectrum, CG_SPLL_SPREAD_SPECTRUM, SSEN, 1);
PHM_SET_FIELD(cg_spll_spread_spectrum_2, CG_SPLL_SPREAD_SPECTRUM_2, CLKV, clkV);
mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL,
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_func_cntl_1 = PHM_SET_FIELD(mpll_func_cntl_1,
mpll_ad_func_cntl = PHM_SET_FIELD(mpll_ad_func_cntl,
mpll_dq_func_cntl = PHM_SET_FIELD(mpll_dq_func_cntl,
mpll_dq_func_cntl = PHM_SET_FIELD(mpll_dq_func_cntl,
mpll_ss1 = PHM_SET_FIELD(mpll_ss1, MPLL_SS1, CLKV, clkv);
mpll_ss2 = PHM_SET_FIELD(mpll_ss2, MPLL_SS2, CLKS, clks);
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,
mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl,