coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hdmi.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <console/console.h>
4 #include <device/mmio.h>
5 #include <soc/hdmi.h>
6 
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 */
22 
23  /* HDMI-TX powerdown */
25 }
static void write32(void *addr, uint32_t val)
Definition: mmio.h:40
#define printk(level,...)
Definition: stdlib.h:16
#define BIT(nr)
Definition: ec_commands.h:45
#define setbits32(addr, set)
Definition: mmio.h:21
#define BIOS_INFO
BIOS_INFO - Expected events.
Definition: loglevel.h:113
void hdmi_low_power_setting(void)
Definition: hdmi.c:7
#define HDMI_RX_PDN_6_VAL
Definition: hdmi.h:27
#define HDMI_PROTECT_REG
Definition: hdmi.h:9
#define HDMI_RX_PDN_2_REG
Definition: hdmi.h:13
#define HDMI_RX_PDN_3_REG
Definition: hdmi.h:14
#define HDMI_TX_PDN_REG
Definition: hdmi.h:19
#define HDMI_RX_PDN_4_VAL
Definition: hdmi.h:25
#define HDMI_RX_PDN_4_REG
Definition: hdmi.h:15
#define HDMI_RX_PDN_6_REG
Definition: hdmi.h:17
#define HDMI_RX_PDN_5_VAL
Definition: hdmi.h:26
#define HDMI_RX_PDN_0_REG
Definition: hdmi.h:11
#define HDMI_RX_PDN_7_VAL
Definition: hdmi.h:28
#define HDMI_RX_PDN_5_REG
Definition: hdmi.h:16
#define HDMI_RX_PDN_1_REG
Definition: hdmi.h:12
#define HDMI_TX_PDN_VAL
Definition: hdmi.h:29
#define HDMI_RX_PDN_3_VAL
Definition: hdmi.h:24
#define HDMI_RX_PDN_1_VAL
Definition: hdmi.h:22
#define HDMI_RX_PDN_7_REG
Definition: hdmi.h:18
#define HDMI_RX_PDN_2_VAL
Definition: hdmi.h:23
#define HDMI_RX_PDN_0_VAL
Definition: hdmi.h:21