diff options
author | Felix Held <felix.held@amd.corp-partner.google.com> | 2021-09-22 16:36:12 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-09-23 14:42:03 +0000 |
commit | 7011fa1135009897a8fee5d96ade0f9fa9c960cc (patch) | |
tree | 853e3f99abda14caa70ba0aa9b81ae8d2da1ed54 /src/mainboard/amd | |
parent | 05df6ec8449355f5205807b84e7a6ba87252cf27 (diff) |
soc/amd: rename program_gpios to gpio_configure_pads
Use the same function name as in soc/intel for this functionality. This
also brings the function name more in line with the extended version of
this function gpio_configure_pads_with_override which additionally
supports passing a GPIO override configuration.
This might cause some pain for out-of-tree boards, but at some point
this should be made more consistent, so I don't see a too strong reason
not to do this.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I88852e040f79861ce7d190bf2203f9e0ce156690
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57837
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/mainboard/amd')
-rw-r--r-- | src/mainboard/amd/bilby/early_gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/bilby/emmc_gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/bilby/gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/gardenia/bootblock/bootblock.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/gardenia/mainboard.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/majolica/early_gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/mandolin/emmc_gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/mandolin/variants/cereme/early_gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/mandolin/variants/cereme/gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/mandolin/variants/mandolin/early_gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/mandolin/variants/mandolin/gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/padmelon/bootblock/bootblock.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/padmelon/mainboard.c | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/src/mainboard/amd/bilby/early_gpio.c b/src/mainboard/amd/bilby/early_gpio.c index 0a9d266354..466b4fc98d 100644 --- a/src/mainboard/amd/bilby/early_gpio.c +++ b/src/mainboard/amd/bilby/early_gpio.c @@ -31,5 +31,5 @@ static const struct soc_amd_gpio gpio_set_stage_reset[] = { void mainboard_program_early_gpios(void) { - program_gpios(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); + gpio_configure_pads(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); } diff --git a/src/mainboard/amd/bilby/emmc_gpio.c b/src/mainboard/amd/bilby/emmc_gpio.c index a88a5c59b2..f72437b7ff 100644 --- a/src/mainboard/amd/bilby/emmc_gpio.c +++ b/src/mainboard/amd/bilby/emmc_gpio.c @@ -23,5 +23,5 @@ static const struct soc_amd_gpio emmc_gpios[] = { /* Don't call this if the board uses the LPC bus. */ void mainboard_program_emmc_gpios(void) { - program_gpios(emmc_gpios, ARRAY_SIZE(emmc_gpios)); + gpio_configure_pads(emmc_gpios, ARRAY_SIZE(emmc_gpios)); } diff --git a/src/mainboard/amd/bilby/gpio.c b/src/mainboard/amd/bilby/gpio.c index 2ac4a5f6dd..18ee48280e 100644 --- a/src/mainboard/amd/bilby/gpio.c +++ b/src/mainboard/amd/bilby/gpio.c @@ -23,5 +23,5 @@ static const struct soc_amd_gpio gpio_set_stage_ram[] = { void mainboard_program_gpios(void) { - program_gpios(gpio_set_stage_ram, ARRAY_SIZE(gpio_set_stage_ram)); + gpio_configure_pads(gpio_set_stage_ram, ARRAY_SIZE(gpio_set_stage_ram)); } diff --git a/src/mainboard/amd/gardenia/bootblock/bootblock.c b/src/mainboard/amd/gardenia/bootblock/bootblock.c index 5cec5670b6..a480f362ed 100644 --- a/src/mainboard/amd/gardenia/bootblock/bootblock.c +++ b/src/mainboard/amd/gardenia/bootblock/bootblock.c @@ -10,5 +10,5 @@ void bootblock_mainboard_early_init(void) size_t num_gpios; const struct soc_amd_gpio *gpios; gpios = early_gpio_table(&num_gpios); - program_gpios(gpios, num_gpios); + gpio_configure_pads(gpios, num_gpios); } diff --git a/src/mainboard/amd/gardenia/mainboard.c b/src/mainboard/amd/gardenia/mainboard.c index e53213baaa..ae72b33e43 100644 --- a/src/mainboard/amd/gardenia/mainboard.c +++ b/src/mainboard/amd/gardenia/mainboard.c @@ -69,7 +69,7 @@ static void mainboard_init(void *chip_info) size_t num_gpios; const struct soc_amd_gpio *gpios; gpios = gpio_table(&num_gpios); - program_gpios(gpios, num_gpios); + gpio_configure_pads(gpios, num_gpios); } /************************************************* diff --git a/src/mainboard/amd/majolica/early_gpio.c b/src/mainboard/amd/majolica/early_gpio.c index 5bf71aadbc..cd5028a2c9 100644 --- a/src/mainboard/amd/majolica/early_gpio.c +++ b/src/mainboard/amd/majolica/early_gpio.c @@ -14,5 +14,5 @@ static const struct soc_amd_gpio gpio_set_stage_reset[] = { void mainboard_program_early_gpios(void) { - program_gpios(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); + gpio_configure_pads(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); } diff --git a/src/mainboard/amd/mandolin/emmc_gpio.c b/src/mainboard/amd/mandolin/emmc_gpio.c index a88a5c59b2..f72437b7ff 100644 --- a/src/mainboard/amd/mandolin/emmc_gpio.c +++ b/src/mainboard/amd/mandolin/emmc_gpio.c @@ -23,5 +23,5 @@ static const struct soc_amd_gpio emmc_gpios[] = { /* Don't call this if the board uses the LPC bus. */ void mainboard_program_emmc_gpios(void) { - program_gpios(emmc_gpios, ARRAY_SIZE(emmc_gpios)); + gpio_configure_pads(emmc_gpios, ARRAY_SIZE(emmc_gpios)); } diff --git a/src/mainboard/amd/mandolin/variants/cereme/early_gpio.c b/src/mainboard/amd/mandolin/variants/cereme/early_gpio.c index 800bd71590..66d81ed494 100644 --- a/src/mainboard/amd/mandolin/variants/cereme/early_gpio.c +++ b/src/mainboard/amd/mandolin/variants/cereme/early_gpio.c @@ -28,5 +28,5 @@ static const struct soc_amd_gpio gpio_set_stage_reset[] = { void mainboard_program_early_gpios(void) { - program_gpios(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); + gpio_configure_pads(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); } diff --git a/src/mainboard/amd/mandolin/variants/cereme/gpio.c b/src/mainboard/amd/mandolin/variants/cereme/gpio.c index 0ba2580ce1..0ac02d9ba9 100644 --- a/src/mainboard/amd/mandolin/variants/cereme/gpio.c +++ b/src/mainboard/amd/mandolin/variants/cereme/gpio.c @@ -29,5 +29,5 @@ static const struct soc_amd_gpio gpio_set_stage_ram[] = { void mainboard_program_gpios(void) { - program_gpios(gpio_set_stage_ram, ARRAY_SIZE(gpio_set_stage_ram)); + gpio_configure_pads(gpio_set_stage_ram, ARRAY_SIZE(gpio_set_stage_ram)); } diff --git a/src/mainboard/amd/mandolin/variants/mandolin/early_gpio.c b/src/mainboard/amd/mandolin/variants/mandolin/early_gpio.c index 63e01ef5d9..75cdb1041a 100644 --- a/src/mainboard/amd/mandolin/variants/mandolin/early_gpio.c +++ b/src/mainboard/amd/mandolin/variants/mandolin/early_gpio.c @@ -32,5 +32,5 @@ static const struct soc_amd_gpio gpio_set_stage_reset[] = { void mainboard_program_early_gpios(void) { - program_gpios(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); + gpio_configure_pads(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); } diff --git a/src/mainboard/amd/mandolin/variants/mandolin/gpio.c b/src/mainboard/amd/mandolin/variants/mandolin/gpio.c index 0647319161..f341750e46 100644 --- a/src/mainboard/amd/mandolin/variants/mandolin/gpio.c +++ b/src/mainboard/amd/mandolin/variants/mandolin/gpio.c @@ -34,5 +34,5 @@ static const struct soc_amd_gpio gpio_set_stage_ram[] = { void mainboard_program_gpios(void) { - program_gpios(gpio_set_stage_ram, ARRAY_SIZE(gpio_set_stage_ram)); + gpio_configure_pads(gpio_set_stage_ram, ARRAY_SIZE(gpio_set_stage_ram)); } diff --git a/src/mainboard/amd/padmelon/bootblock/bootblock.c b/src/mainboard/amd/padmelon/bootblock/bootblock.c index d8c462d17a..c93ef52582 100644 --- a/src/mainboard/amd/padmelon/bootblock/bootblock.c +++ b/src/mainboard/amd/padmelon/bootblock/bootblock.c @@ -46,5 +46,5 @@ void bootblock_mainboard_init(void) const struct soc_amd_gpio *gpios; gpios = early_gpio_table(&num_gpios); - program_gpios(gpios, num_gpios); + gpio_configure_pads(gpios, num_gpios); } diff --git a/src/mainboard/amd/padmelon/mainboard.c b/src/mainboard/amd/padmelon/mainboard.c index f7d351d066..51b0f90c41 100644 --- a/src/mainboard/amd/padmelon/mainboard.c +++ b/src/mainboard/amd/padmelon/mainboard.c @@ -98,7 +98,7 @@ static void mainboard_init(void *chip_info) size_t num_gpios; const struct soc_amd_gpio *gpios; gpios = gpio_table(&num_gpios); - program_gpios(gpios, num_gpios); + gpio_configure_pads(gpios, num_gpios); } /************************************************* |