diff options
Diffstat (limited to 'board/eve_fp/board.h')
-rw-r--r-- | board/eve_fp/board.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/board/eve_fp/board.h b/board/eve_fp/board.h new file mode 100644 index 0000000000..016b83733a --- /dev/null +++ b/board/eve_fp/board.h @@ -0,0 +1,46 @@ +/* Copyright 2017 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. + */ + +/* Fingerprint microcontroller configuration */ + +#ifndef __CROS_EC_BOARD_H +#define __CROS_EC_BOARD_H + +/* + * TODO(crosbug.com/p/62893) + * implement flash support for STM32L4 + * and write protection. + */ +#undef CONFIG_FLASH +#undef CONFIG_FLASH_PHYSICAL +#define CONFIG_SYSTEM_UNLOCKED + +/* Serial console */ +#define CONFIG_UART_CONSOLE 1 +#define CONFIG_UART_TX_DMA_CH STM32_DMAC_USART1_TX +#define CONFIG_UART_TX_DMA_PH 2 + +/* Optional features */ +#define CONFIG_CMD_SPI_XFER +#undef CONFIG_LID_SWITCH +#define CONFIG_SPI +#define CONFIG_SPI_MASTER +#define CONFIG_STM_HWTIMER32 + + +#define CONFIG_SPI_FP_PORT 1 /* SPI3: second SPI master port */ + +/* Timer selection */ +#define TIM_CLOCK32 2 +#define TIM_WATCHDOG 16 + +#ifndef __ASSEMBLER__ + +#include "gpio_signal.h" + +void fps_event(enum gpio_signal signal); + +#endif /* !__ASSEMBLER__ */ +#endif /* __CROS_EC_BOARD_H */ |