blob: 819c1c53e056c65bd71032fb16c356c0ee113651 (
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
|
/* 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.
*/
/* Meowth Fingerprint MCU configuration */
#include "common.h"
#include "hooks.h"
#include "registers.h"
#include "spi.h"
#include "system.h"
#include "task.h"
/**
* Disable restricted commands when the system is locked.
*
* @see console.h system.c
*/
int console_is_restricted(void)
{
return system_is_locked();
}
#include "gpio_list.h"
/* Initialize board. */
static void board_init(void)
{
if (IS_ENABLED(SECTION_IS_RW)) {
board_init_rw();
} else {
/* No suspend-based power management in RO. */
disable_sleep(SLEEP_MASK_AP_RUN);
hook_notify(HOOK_CHIPSET_RESUME);
}
}
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
|