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
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
}
write32
static void write32(void *addr, uint32_t val)
Definition:
mmio.h:40
printk
#define printk(level,...)
Definition:
stdlib.h:16
console.h
BIT
#define BIT(nr)
Definition:
ec_commands.h:45
mmio.h
setbits32
#define setbits32(addr, set)
Definition:
mmio.h:21
BIOS_INFO
#define BIOS_INFO
BIOS_INFO - Expected events.
Definition:
loglevel.h:113
hdmi_low_power_setting
void hdmi_low_power_setting(void)
Definition:
hdmi.c:7
HDMI_RX_PDN_6_VAL
#define HDMI_RX_PDN_6_VAL
Definition:
hdmi.h:27
HDMI_PROTECT_REG
#define HDMI_PROTECT_REG
Definition:
hdmi.h:9
HDMI_RX_PDN_2_REG
#define HDMI_RX_PDN_2_REG
Definition:
hdmi.h:13
HDMI_RX_PDN_3_REG
#define HDMI_RX_PDN_3_REG
Definition:
hdmi.h:14
HDMI_TX_PDN_REG
#define HDMI_TX_PDN_REG
Definition:
hdmi.h:19
HDMI_RX_PDN_4_VAL
#define HDMI_RX_PDN_4_VAL
Definition:
hdmi.h:25
HDMI_RX_PDN_4_REG
#define HDMI_RX_PDN_4_REG
Definition:
hdmi.h:15
HDMI_RX_PDN_6_REG
#define HDMI_RX_PDN_6_REG
Definition:
hdmi.h:17
HDMI_RX_PDN_5_VAL
#define HDMI_RX_PDN_5_VAL
Definition:
hdmi.h:26
HDMI_RX_PDN_0_REG
#define HDMI_RX_PDN_0_REG
Definition:
hdmi.h:11
HDMI_RX_PDN_7_VAL
#define HDMI_RX_PDN_7_VAL
Definition:
hdmi.h:28
HDMI_RX_PDN_5_REG
#define HDMI_RX_PDN_5_REG
Definition:
hdmi.h:16
HDMI_RX_PDN_1_REG
#define HDMI_RX_PDN_1_REG
Definition:
hdmi.h:12
HDMI_TX_PDN_VAL
#define HDMI_TX_PDN_VAL
Definition:
hdmi.h:29
HDMI_RX_PDN_3_VAL
#define HDMI_RX_PDN_3_VAL
Definition:
hdmi.h:24
HDMI_RX_PDN_1_VAL
#define HDMI_RX_PDN_1_VAL
Definition:
hdmi.h:22
HDMI_RX_PDN_7_REG
#define HDMI_RX_PDN_7_REG
Definition:
hdmi.h:18
HDMI_RX_PDN_2_VAL
#define HDMI_RX_PDN_2_VAL
Definition:
hdmi.h:23
HDMI_RX_PDN_0_VAL
#define HDMI_RX_PDN_0_VAL
Definition:
hdmi.h:21
src
soc
mediatek
mt8195
hdmi.c
Generated by
1.9.1