blob: fd0514f43831fcd3b64ea3bfb539ba230c7c7254 (
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
|
/* Copyright 2022 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.
*/
/* TODO: b/218904113: Convert to using Zephyr GPIOs */
#include "gpio.h"
#include "hooks.h"
static void board_init(void)
{
/* Enable SOC SPI */
gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(ec_spi_oe_mecc), 1);
}
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_LAST);
__override void intel_x86_sys_reset_delay(void)
{
/*
* From MAX6818 Data sheet, Range of 'Debounce Duaration' is
* Minimum - 20 ms, Typical - 40 ms, Maximum - 80 ms.
* See b/153128296.
*/
udelay(60 * MSEC);
}
|