blob: 7e5708c6ebfb27b87787b7c55ae60ecf409b2d44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <cros_board_info.h>
#include "nissa_hdmi.h"
__override void nissa_configure_hdmi_power_gpios(void)
{
/*
* Nereid versions before 2 need hdmi-en-odl to be
* pulled down to enable VCC on the HDMI port, but later
* versions (and other boards) disconnect this so
* the port's VCC directly follows en-rails-odl. Only
* configure the GPIO if needed, to save power.
*/
uint32_t board_version = 0;
/* CBI errors ignored, will configure the pin */
cbi_get_board_version(&board_version);
if (board_version < 2) {
nissa_configure_hdmi_vcc();
}
/* Still always need core rails controlled */
nissa_configure_hdmi_rails();
}
|