diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-24 22:29:44 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-04 02:34:28 +0000 |
commit | b13fac37ebfe9451229be1c3ebefd9c05f8afb49 (patch) | |
tree | 16cbafd9959681b20c3735ad41a3080c5a6f41dd /src/soc/intel/braswell/lpe.c | |
parent | 15a487a57666a7eb42d33f41e4a235efe67439d8 (diff) |
soc/intel/braswell: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I05a46ab0ae6b4493895c1231fedb59c96efdf793
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26457
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/soc/intel/braswell/lpe.c')
-rw-r--r-- | src/soc/intel/braswell/lpe.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/soc/intel/braswell/lpe.c b/src/soc/intel/braswell/lpe.c index 436099b4d6..7c9f30637a 100644 --- a/src/soc/intel/braswell/lpe.c +++ b/src/soc/intel/braswell/lpe.c @@ -44,7 +44,8 @@ #define FIRMWARE_REG_BASE_C0 0x144000 #define FIRMWARE_REG_LENGTH_C0 (FIRMWARE_REG_BASE_C0 + 4) -static void assign_device_nvs(device_t dev, u32 *field, unsigned int index) +static void assign_device_nvs(struct device *dev, u32 *field, + unsigned int index) { struct resource *res; @@ -53,7 +54,7 @@ static void assign_device_nvs(device_t dev, u32 *field, unsigned int index) *field = res->base; } -static void lpe_enable_acpi_mode(device_t dev) +static void lpe_enable_acpi_mode(struct device *dev) { static const struct reg_script ops[] = { /* Disable PCI interrupt, enable Memory and Bus Master */ @@ -87,7 +88,7 @@ static void lpe_enable_acpi_mode(device_t dev) reg_script_run_on_dev(dev, ops); } -static void setup_codec_clock(device_t dev) +static void setup_codec_clock(struct device *dev) { uint32_t reg; u32 *clk_reg; @@ -123,7 +124,7 @@ static void setup_codec_clock(device_t dev) write32(clk_reg, (read32(clk_reg) & ~0x7) | reg); } -static void lpe_stash_firmware_info(device_t dev) +static void lpe_stash_firmware_info(struct device *dev) { struct resource *res; struct resource *mmio; @@ -148,7 +149,7 @@ static void lpe_stash_firmware_info(device_t dev) } -static void lpe_init(device_t dev) +static void lpe_init(struct device *dev) { struct soc_intel_braswell_config *config = dev->chip_info; @@ -162,7 +163,7 @@ static void lpe_init(device_t dev) lpe_enable_acpi_mode(dev); } -static void lpe_read_resources(device_t dev) +static void lpe_read_resources(struct device *dev) { struct resource *res; pci_dev_read_resources(dev); @@ -184,7 +185,7 @@ static void lpe_read_resources(device_t dev) FIRMWARE_PHYS_LENGTH >> 10); } -static void lpe_set_resources(device_t dev) +static void lpe_set_resources(struct device *dev) { struct resource *res; |