blob: eee89b08c536cf43f0c1fd1b4a6230c2db892777 [file] [log] [blame]
Angel Pons60ec3652020-04-03 01:22:13 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Lee Leahy5cb9dda2015-05-01 10:34:54 -07002
Lee Leahy5cb9dda2015-05-01 10:34:54 -07003#include <device/device.h>
4#include <soc/gpio.h>
5#include "ec.h"
6
Elyes HAOUAS4182c802018-05-04 20:46:54 +02007static void mainboard_init(struct device *dev)
Lee Leahy5cb9dda2015-05-01 10:34:54 -07008{
9 mainboard_ec_init();
10}
11
Elyes HAOUAS4182c802018-05-04 20:46:54 +020012static void mainboard_enable(struct device *dev)
Lee Leahy5cb9dda2015-05-01 10:34:54 -070013{
14 dev->ops->init = mainboard_init;
Lee Leahy5cb9dda2015-05-01 10:34:54 -070015}
16
Lee Leahy5cb9dda2015-05-01 10:34:54 -070017struct chip_operations mainboard_ops = {
18 .enable_dev = mainboard_enable,
19};