mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / mediatek / mt8195 / hdmi.c
blob9b343f46f8eb469271598768496d50e81fb6f1c5
1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
3 #include <console/console.h>
4 #include <device/mmio.h>
5 #include <soc/hdmi.h>
7 void hdmi_low_power_setting(void)
9 printk(BIOS_INFO, "%s: Enable HDMI low power setting\n", __func__);
11 setbits32((void *)HDMI_PROTECT_REG, BIT(0) | BIT(1));
13 /* HDMI-RX powerdown */
14 write32((void *)HDMI_RX_PDN_0_REG, HDMI_RX_PDN_0_VAL);
15 write32((void *)HDMI_RX_PDN_1_REG, HDMI_RX_PDN_1_VAL);
16 write32((void *)HDMI_RX_PDN_2_REG, HDMI_RX_PDN_2_VAL);
17 write32((void *)HDMI_RX_PDN_3_REG, HDMI_RX_PDN_3_VAL);
18 write32((void *)HDMI_RX_PDN_4_REG, HDMI_RX_PDN_4_VAL);
19 write32((void *)HDMI_RX_PDN_5_REG, HDMI_RX_PDN_5_VAL);
20 write32((void *)HDMI_RX_PDN_6_REG, HDMI_RX_PDN_6_VAL);
21 write32((void *)HDMI_RX_PDN_7_REG, HDMI_RX_PDN_7_VAL);
23 /* HDMI-TX powerdown */
24 write32((void *)HDMI_TX_PDN_REG, HDMI_TX_PDN_VAL);