soc/cavium/cn81xx: Don't use device_t in ramstage
Use of device_t has been abandoned in ramstage. Change-Id: Ifa54624664c06c606fb4e083bae98b4accc61be0 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28632 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
8ce59d522b
commit
27667a2c0b
|
@ -326,7 +326,7 @@ void bootmem_platform_add_ranges(void)
|
||||||
BM_MEM_RESERVED);
|
BM_MEM_RESERVED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void soc_read_resources(device_t dev)
|
static void soc_read_resources(struct device *dev)
|
||||||
{
|
{
|
||||||
// HACK: Don't advertise bootblock romstage CAR region, it's broken...
|
// HACK: Don't advertise bootblock romstage CAR region, it's broken...
|
||||||
ram_resource(dev, 0, 2 * KiB, sdram_size_mb() * KiB - 2 * KiB);
|
ram_resource(dev, 0, 2 * KiB, sdram_size_mb() * KiB - 2 * KiB);
|
||||||
|
@ -358,7 +358,7 @@ static void soc_init_atf(void)
|
||||||
register_bl31_param(&cbtable_param.h);
|
register_bl31_param(&cbtable_param.h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void soc_init(device_t dev)
|
static void soc_init(struct device *dev)
|
||||||
{
|
{
|
||||||
/* Init ECAM, MDIO, PEM, PHY, QLM ... */
|
/* Init ECAM, MDIO, PEM, PHY, QLM ... */
|
||||||
bdk_boot();
|
bdk_boot();
|
||||||
|
@ -378,7 +378,7 @@ static void soc_init(device_t dev)
|
||||||
soc_init_atf();
|
soc_init_atf();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void soc_final(device_t dev)
|
static void soc_final(struct device *dev)
|
||||||
{
|
{
|
||||||
watchdog_disable(0);
|
watchdog_disable(0);
|
||||||
}
|
}
|
||||||
|
@ -392,7 +392,7 @@ static struct device_operations soc_ops = {
|
||||||
.scan_bus = NULL,
|
.scan_bus = NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void enable_soc_dev(device_t dev)
|
static void enable_soc_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
if (dev->path.type == DEVICE_PATH_DOMAIN &&
|
if (dev->path.type == DEVICE_PATH_DOMAIN &&
|
||||||
dev->path.domain.domain == 0) {
|
dev->path.domain.domain == 0) {
|
||||||
|
|
Loading…
Reference in New Issue