diff options
author | Michael Niewöhner <foss@mniewoehner.de> | 2021-09-27 23:55:05 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-09-29 21:19:37 +0000 |
commit | 38bf496366bfb8c718345869311f6d46a8922486 (patch) | |
tree | 1938638adc7a24cf8490038c65b7b20e42cbfc9e /src/soc/intel/elkhartlake | |
parent | f67f2b0d4ca4d1d72fa077d69abef916c8c3a38c (diff) |
soc/intel/{cnl,jsl,tgl,ehl,adl}: rename PMC device init/enable callbacks
The current names of the PMC init/enable callbacks are very confusing.
Rename them.
Change-Id: I69f54f3b4e1ea9a9b4fa5c8dd9c0d454d7cd1283
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57995
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/elkhartlake')
-rw-r--r-- | src/soc/intel/elkhartlake/pmc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/elkhartlake/pmc.c b/src/soc/intel/elkhartlake/pmc.c index eeeceb511f..bcc8c8b04f 100644 --- a/src/soc/intel/elkhartlake/pmc.c +++ b/src/soc/intel/elkhartlake/pmc.c @@ -53,7 +53,7 @@ static void config_deep_sx(uint32_t deepsx_config) write32(pmcbase + DSX_CFG, reg); } -static void pmc_init(struct device *dev) +static void soc_pmc_enable(struct device *dev) { const config_t *config = config_of_soc(); @@ -80,7 +80,7 @@ static void soc_pmc_read_resources(struct device *dev) res->flags = IORESOURCE_IO | IORESOURCE_ASSIGNED | IORESOURCE_FIXED; } -static void soc_acpi_mode_init(struct device *dev) +static void soc_pmc_init(struct device *dev) { /* * pmc_set_acpi_mode() should be delayed until BS_DEV_INIT in order @@ -103,8 +103,8 @@ static void pmc_fill_ssdt(const struct device *dev) struct device_operations pmc_ops = { .read_resources = soc_pmc_read_resources, .set_resources = noop_set_resources, - .init = soc_acpi_mode_init, - .enable = pmc_init, + .init = soc_pmc_init, + .enable = soc_pmc_enable, #if CONFIG(HAVE_ACPI_TABLES) .acpi_fill_ssdt = pmc_fill_ssdt, #endif |