summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>2018-04-18 08:06:33 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-04-20 13:03:14 +0000
commit6fcb9b00c8b7f820bb5ef81a83a24cd656654272 (patch)
tree3cb9214d55eed3311fd071af4ca32739ba567df9 /src/soc/amd
parente6db1895617a50eabf9f1a0b40025e8a74817cc3 (diff)
downloadcoreboot-6fcb9b00c8b7f820bb5ef81a83a24cd656654272.tar.xz
soc/amd/stoneyridge/include/soc/southbridge.c: Rename gpio structure
The GPIO definition structure has evolved to a point where it's no longer specific to stoneyridge, though probably still specific to AMD. Therefore, rename the GPIO declaration structure removing stoneyridge from it. BUG=b:72875858 TEST=Build kahlee, grunt, gardenia. Change-Id: Ib034d3f7840c36ee8f5c5384241d7326d3fe5543 Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/25726 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/stoneyridge/include/soc/southbridge.h5
-rw-r--r--src/soc/amd/stoneyridge/southbridge.c3
2 files changed, 3 insertions, 5 deletions
diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h
index c0a48b301e..eed7457f20 100644
--- a/src/soc/amd/stoneyridge/include/soc/southbridge.h
+++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h
@@ -352,7 +352,7 @@
#define FCH_AOAC_STAT0 BIT(6)
#define FCH_AOAC_STAT1 BIT(7)
-struct soc_amd_stoneyridge_gpio {
+struct soc_amd_gpio {
uint8_t gpio;
uint8_t function;
uint8_t control;
@@ -449,8 +449,7 @@ uint64_t get_uma_base(void);
*
* @return none
*/
-void sb_program_gpios(const struct soc_amd_stoneyridge_gpio *gpio_ptr,
- size_t size);
+void sb_program_gpios(const struct soc_amd_gpio *gpio_ptr, size_t size);
/**
* @brief Find the size of a particular wide IO
*
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c
index a2a54c211c..7465b64584 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -172,8 +172,7 @@ const struct irq_idx_name *sb_get_apic_reg_association(size_t *size)
return irq_association;
}
-void sb_program_gpios(const struct soc_amd_stoneyridge_gpio *gpio_ptr,
- size_t size)
+void sb_program_gpios(const struct soc_amd_gpio *gpio_ptr, size_t size)
{
void *tmp_ptr;
uint8_t control, mux, index;