/* 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);