Macpaul Lin | 5d16f8d | 2022-08-11 16:27:10 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ |
Rex-BC Chen | 8316db2 | 2021-08-13 16:34:26 +0800 | [diff] [blame] | 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <device/mmio.h> |
| 5 | #include <soc/hdmi.h> |
| 6 | |
| 7 | void hdmi_low_power_setting(void) |
| 8 | { |
| 9 | printk(BIOS_INFO, "%s: Enable HDMI low power setting\n", __func__); |
| 10 | |
| 11 | setbits32((void *)HDMI_PROTECT_REG, BIT(0) | BIT(1)); |
| 12 | |
| 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); |
| 22 | |
| 23 | /* HDMI-TX powerdown */ |
| 24 | write32((void *)HDMI_TX_PDN_REG, HDMI_TX_PDN_VAL); |
| 25 | } |