summaryrefslogtreecommitdiff
path: root/chip/host/gpio.c
blob: 64191aaca588eea7dbf02cfa24c2dc199cab1202 (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
38
39
40
41
/* Copyright (c) 2013 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.
 */

/* GPIO module for emulator */

#include "common.h"
#include "gpio.h"

test_mockable void gpio_pre_init(void)
{
	/* Nothing */
}

test_mockable int gpio_get_level(enum gpio_signal signal)
{
	return 0;
}

test_mockable void gpio_set_level(enum gpio_signal signal, int value)
{
	/* Nothing */
}

test_mockable int gpio_enable_interrupt(enum gpio_signal signal)
{
	return EC_SUCCESS;
}

test_mockable void gpio_set_flags_by_mask(uint32_t port, uint32_t mask,
					  uint32_t flags)
{
	/* Nothing */
}

test_mockable void gpio_set_alternate_function(uint32_t port, uint32_t mask,
					       int func)
{
	/* Nothing */
}