blob: 27c48088b6332f773fd8f879142ba4af1b6eecfe (
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
|
/* Copyright (c) 2014 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.
*/
/* Keyborg board configuration */
#ifndef __BOARD_H
#define __BOARD_H
/* 48 MHz SYSCLK clock frequency */
#define CPU_CLOCK 48000000
/* Optional features */
#define CONFIG_DEBUG_PRINTF
#define CONFIG_KEYBORG_FAST_SCAN
#define CONFIG_KEYBORG_SPI_FULL_PACKET
#undef CONFIG_ADC
#undef CONFIG_COMMON_GPIO
#undef CONFIG_COMMON_PANIC_OUTPUT
#undef CONFIG_COMMON_RUNTIME
#undef CONFIG_COMMON_TIMER
#undef CONFIG_CONSOLE_CMDHELP
#undef CONFIG_DEBUG_EXCEPTIONS
#undef CONFIG_DEBUG_STACK_OVERFLOW
#undef CONFIG_FLASH
#undef CONFIG_FMAP
#undef CONFIG_LID_SWITCH
#undef CONFIG_TASK_PROFILING
#undef CONFIG_WATCHDOG_HELP
/* How the touch data is stored and printed */
#define CONFIG_ENCODE_SEGMENT
#undef CONFIG_ENCODE_RAW
#undef CONFIG_ENCODE_DUMP_PYTHON
#ifndef __ASSEMBLER__
enum gpio_signal;
/* Initialize all useful registers */
void hardware_init(void);
/* Re-initialize clock */
void hardware_clock_init(void);
/* On the master, reboot both chips. On the slave, reboot itself. */
void system_reboot(void);
#endif /* !__ASSEMBLER__ */
#endif /* __BOARD_H */
|