summaryrefslogtreecommitdiff
path: root/board/cr50/closed_source_set1.h
blob: 9337c30b312904a4d295d729222fa71eb8488290 (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
29
30
31
/*
 * Copyright 2018 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __EC_BOARD_CR50_CLOSED_SOURCE_SET1_H
#define __EC_BOARD_CR50_CLOSED_SOURCE_SET1_H


/**
 * Configure the GPIOs specific to the BOARD_CLOSED_SOURCE_SET1 board strapping
 * option.  This includes the FACTORY_MODE, CHROME_SEL, and EXIT_FACTORY_MODE
 * signals.
 */
void closed_source_set1_configure_gpios(void);

/**
 * Drive the GPIOs specific to BOARD_CLOSED_SOURCE_SET1 to match the current
 * factory mode setting.
 */
void closed_source_set1_update_factory_mode(void);

/**
 * In response to a TPM_MODE disable, drive the GPIOs specific to
 * BOARD_CLOSED_SOURCE_SET1 to match the diagnostic state setting.
 */
void close_source_set1_disable_tpm(void);


#endif   /* ! __EC_BOARD_CR50_CLOSED_SOURCE_SET1_H */