soc/intel/baytrail: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I8b2cfe3e2090fb8eed755e40d337c6049d8dd96e Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26456 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
#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 index)
|
||||
static void assign_device_nvs(struct device *dev, u32 *field, unsigned index)
|
||||
{
|
||||
struct resource *res;
|
||||
|
||||
@@ -50,7 +50,7 @@ static void assign_device_nvs(device_t dev, u32 *field, unsigned 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 */
|
||||
@@ -83,7 +83,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;
|
||||
@@ -121,7 +121,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;
|
||||
@@ -147,7 +147,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_baytrail_config *config = dev->chip_info;
|
||||
|
||||
@@ -159,7 +159,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)
|
||||
{
|
||||
pci_dev_read_resources(dev);
|
||||
|
||||
|
Reference in New Issue
Block a user