summaryrefslogtreecommitdiff
path: root/src/mainboard/google/hatch/variants/baseboard
diff options
context:
space:
mode:
authorAamir Bohra <aamir.bohra@intel.com>2018-12-18 15:46:28 +0530
committerSubrata Banik <subrata.banik@intel.com>2018-12-21 04:40:28 +0000
commit368598198d5c741d64b38d358e84c1694f97f486 (patch)
treef7683834c7e6a905d1222e36da7221ebe8fb8a76 /src/mainboard/google/hatch/variants/baseboard
parent42d1660e4e85c472f55a4d999239634c19e0996b (diff)
mb/google/hatch: Clean up gpio definitions in hatch variant
This implementation cleans up gpio configuration functions and limit definition to baseboard only for now, until variant specfic overides are needed. BUG=b:120914069 TEST=USE="-intel_mrc -bmpblk" emerge-hatch coreboot Change-Id: I563f6b97812b32d6e3d99e3df512dc112da78aea Signed-off-by: Aamir Bohra <aamir.bohra@intel.com> Reviewed-on: https://review.coreboot.org/c/30291 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/hatch/variants/baseboard')
-rw-r--r--src/mainboard/google/hatch/variants/baseboard/gpio.c11
-rw-r--r--src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h8
2 files changed, 3 insertions, 16 deletions
diff --git a/src/mainboard/google/hatch/variants/baseboard/gpio.c b/src/mainboard/google/hatch/variants/baseboard/gpio.c
index d2efd488e2..6f6b9d2877 100644
--- a/src/mainboard/google/hatch/variants/baseboard/gpio.c
+++ b/src/mainboard/google/hatch/variants/baseboard/gpio.c
@@ -21,24 +21,17 @@
static const struct pad_config gpio_table[] = {
};
-const struct pad_config *__weak variant_base_gpio_table(size_t *num)
+const struct pad_config *__weak variant_gpio_table(size_t *num)
{
*num = ARRAY_SIZE(gpio_table);
return gpio_table;
}
-const struct pad_config *__weak variant_override_gpio_table(size_t *num)
-{
- *num = 0;
- return NULL;
-}
-
/* GPIOs needed prior to ramstage. */
static const struct pad_config early_gpio_table[] = {
};
-const struct pad_config *__weak
-variant_early_gpio_table(size_t *num)
+const struct pad_config *__weak variant_early_gpio_table(size_t *num)
{
*num = ARRAY_SIZE(early_gpio_table);
return early_gpio_table;
diff --git a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
index 18f90488ad..90a52c0c2f 100644
--- a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
@@ -22,10 +22,8 @@
/* The next set of functions return the gpio table and fill in the number of
* entries for each table. */
-const struct pad_config *variant_base_gpio_table(size_t *num);
-const struct pad_config *variant_override_gpio_table(size_t *num);
+const struct pad_config *variant_gpio_table(size_t *num);
const struct pad_config *variant_early_gpio_table(size_t *num);
-const struct pad_config *variant_sleep_gpio_table(size_t *num, int slp_typ);
/* Return memory SKU for the board. */
size_t variant_memory_sku(void);
@@ -33,8 +31,4 @@ size_t variant_memory_sku(void);
/* Return ChromeOS gpio table and fill in number of entries. */
const struct cros_gpio *variant_cros_gpios(size_t *num);
-/* Modify devictree settings during ramstage. */
-struct device;
-void variant_update_devtree(struct device *dev);
-
#endif /* BASEBOARD_VARIANTS_H */