blob: beee6fcb29a65ba1cf92878cb9e64ab11e7cf9f5 [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
Subrata Banik4050ef02024-05-24 01:40:27 +053019/* Fill romstage gpio configuration */
20static const struct pad_config romstage_gpio_table[] = {
21 /* TODO */
22};
23
24const struct pad_config *variant_gpio_table(size_t *num)
Dinesh Gehlot0368e432024-04-02 11:50:46 +053025{
26 *num = ARRAY_SIZE(gpio_table);
27 return gpio_table;
28}
29
Subrata Banik4050ef02024-05-24 01:40:27 +053030const struct pad_config *variant_gpio_override_table(size_t *num)
Dinesh Gehlot0368e432024-04-02 11:50:46 +053031{
32 *num = 0;
33 return NULL;
34}
35
Subrata Banik4050ef02024-05-24 01:40:27 +053036const struct pad_config *variant_early_gpio_table(size_t *num)
Dinesh Gehlot0368e432024-04-02 11:50:46 +053037{
38 *num = ARRAY_SIZE(early_gpio_table);
39 return early_gpio_table;
40}
41
42static const struct cros_gpio cros_gpios[] = {
43 /* TODO */
44};
45DECLARE_CROS_GPIOS(cros_gpios);
46
Subrata Banik4050ef02024-05-24 01:40:27 +053047const struct pad_config *variant_romstage_gpio_table(size_t *num)
Dinesh Gehlot0368e432024-04-02 11:50:46 +053048{
Subrata Banik4050ef02024-05-24 01:40:27 +053049 *num = ARRAY_SIZE(romstage_gpio_table);
50 return romstage_gpio_table;
Dinesh Gehlot0368e432024-04-02 11:50:46 +053051}