summaryrefslogtreecommitdiff
path: root/board/keyborg/board.h
blob: 5d63551d332e2aee91b78498b8d0945a5a7f8bf6 (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
/* 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
#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);

/* On the master, reboot both chips. On the slave, reboot itself. */
void system_reboot(void);

#endif /* !__ASSEMBLER__ */

#endif /* __BOARD_H */