blob: 9e220db7dc159d460d4283bbd8ada510f2ba6d4d (
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
58
59
|
/* Copyright 2020 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.
*/
/*
* STM32H743 + FPC 1145 Fingerprint MCU configuration
*
* This board is designed to have nucleo-h743zi support (uart+btn+leds) with
* dartmonkey configuration (fingerprint support).
* This allows for proxy testing of dartmonkey on the Nucleo-H743ZI.
*/
#ifndef __BOARD_H
#define __BOARD_H
/* Baseboard features */
#include "base-board.h"
#undef CONFIG_SYSTEM_UNLOCKED
/*
* These allow console commands to be flagged as restricted.
* Restricted commands will only be permitted to run when
* console_is_restricted() returns false.
* See console_is_restricted's definition in board.c.
*/
#define CONFIG_CONSOLE_COMMAND_FLAGS
#define CONFIG_RESTRICTED_CONSOLE_COMMANDS
/* Fingerprint needs to store a secrect in the anti-rollback block */
#define CONFIG_ROLLBACK_SECRET_SIZE 32
/* SPI configuration for the fingerprint sensor */
#define CONFIG_SPI_CONTROLLER
#define CONFIG_SPI_FP_PORT 2 /* SPI4: third master config */
#define CONFIG_FINGERPRINT_MCU
#ifdef SECTION_IS_RW
/* Select fingerprint sensor */
# define CONFIG_FP_SENSOR_FPC1145
# define CONFIG_CMD_FPSENSOR_DEBUG
/* Special memory regions to store large arrays */
# define FP_FRAME_SECTION __SECTION(ahb4)
# define FP_TEMPLATE_SECTION __SECTION(ahb)
/*
* Use the malloc code only in the RW section (for the private library),
* we cannot enable it in RO since it is not compatible with the RW
* verification (shared_mem_init done too late).
*/
# define CONFIG_MALLOC
#endif /* SECTION_IS_RW */
#ifndef __ASSEMBLER__
void fps_event(enum gpio_signal signal);
#endif /* !__ASSEMBLER__ */
#endif /* __BOARD_H */
|