summaryrefslogtreecommitdiff
path: root/board/mec1322_evb/board.h
blob: 73a861fa471bb157fba50a933db2d02e71b6cce9 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* MEC1322 eval board configuration */

#ifndef __BOARD_H
#define __BOARD_H

/* Optional features */
#define CONFIG_SYSTEM_UNLOCKED  /* Allow dangerous commands */
#define CONFIG_WATCHDOG_HELP
#define CONFIG_FANS 1
#define CONFIG_ADC

/* Modules we want to exclude */
#undef CONFIG_EEPROM
#undef CONFIG_EOPTION
#undef CONFIG_PSTORE
#undef CONFIG_LID_SWITCH
#undef CONFIG_PECI
#undef CONFIG_SWITCH

#ifndef __ASSEMBLER__

enum adc_channel {
	ADC_CH_1 = 0,
	ADC_CH_2,
	ADC_CH_3,
	ADC_CH_4,

	ADC_CH_COUNT
};

/* GPIO signal list */
enum gpio_signal {
	GPIO_LED1 = 0,
	GPIO_LED2,
	GPIO_LED3,
	GPIO_PCH_SMI_L,           /* SMI output */
	GPIO_PCH_WAKE_L,          /* PCH wake pin */
	/*
	 * Signals which aren't implemented on MEC1322 eval board but we'll
	 * emulate anyway, to make it more convenient to debug other code.
	 */
	GPIO_RECOVERY_L,          /* Recovery signal from DOWN button */
	GPIO_WP,                  /* Write protect input */
	GPIO_ENTERING_RW,         /* EC entering RW code */

	/* Number of GPIOs; not an actual GPIO */
	GPIO_COUNT
};

#endif /* !__ASSEMBLER__ */

#endif /* __BOARD_H */