blob: 410f194f6502e638010af11e5083df8c43007fd9 [file] [log] [blame]
Dinesh Gehlot0368e432024-04-02 11:50:46 +05301/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#include <baseboard/gpio.h>
4#include <baseboard/variants.h>
5#include <soc/gpio.h>
6#include <types.h>
7#include <vendorcode/google/chromeos/chromeos.h>
8
9/* Pad configuration in ramstage */
10static const struct pad_config gpio_table[] = {
11 /* TODO */
12};
13
14/* Early pad configuration in bootblock */
15static const struct pad_config early_gpio_table[] = {
16 /* TODO */
17};
18
19const struct pad_config *__weak variant_gpio_table(size_t *num)
20{
21 *num = ARRAY_SIZE(gpio_table);
22 return gpio_table;
23}
24
25const struct pad_config *__weak variant_gpio_override_table(size_t *num)
26{
27 *num = 0;
28 return NULL;
29}
30
31const struct pad_config *__weak variant_early_gpio_table(size_t *num)
32{
33 *num = ARRAY_SIZE(early_gpio_table);
34 return early_gpio_table;
35}
36
37static const struct cros_gpio cros_gpios[] = {
38 /* TODO */
39};
40DECLARE_CROS_GPIOS(cros_gpios);
41
42const struct pad_config *__weak variant_romstage_gpio_table(size_t *num)
43{
44 *num = 0;
45 return NULL;
46}