summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
Diffstat (limited to 'platform')
-rw-r--r--platform/generic/sifive/fu740.c9
-rw-r--r--platform/generic/starfive/jh7110.c9
2 files changed, 14 insertions, 4 deletions
diff --git a/platform/generic/sifive/fu740.c b/platform/generic/sifive/fu740.c
index 46dc02ae..52ca12ff 100644
--- a/platform/generic/sifive/fu740.c
+++ b/platform/generic/sifive/fu740.c
@@ -209,11 +209,16 @@ static const struct fdt_match da9063_reset_match[] = {
{ },
};
-struct fdt_reset fdt_reset_da9063 = {
+const struct fdt_driver fdt_reset_da9063 = {
.match_table = da9063_reset_match,
.init = da9063_reset_init,
};
+static const struct fdt_driver *const sifive_fu740_reset_drivers[] = {
+ &fdt_reset_da9063,
+ NULL
+};
+
static u64 sifive_fu740_tlbr_flush_limit(const struct fdt_match *match)
{
/*
@@ -232,7 +237,7 @@ static int sifive_fu740_final_init(bool cold_boot, void *fdt,
int rc;
if (cold_boot) {
- rc = fdt_reset_driver_init(fdt, &fdt_reset_da9063);
+ rc = fdt_driver_init_one(fdt, sifive_fu740_reset_drivers);
if (rc)
sbi_printf("%s: failed to find da9063 for reset\n",
__func__);
diff --git a/platform/generic/starfive/jh7110.c b/platform/generic/starfive/jh7110.c
index 264fe99c..6d95758f 100644
--- a/platform/generic/starfive/jh7110.c
+++ b/platform/generic/starfive/jh7110.c
@@ -227,11 +227,16 @@ static const struct fdt_match pm_reset_match[] = {
{ },
};
-static struct fdt_reset fdt_reset_pmic = {
+static const struct fdt_driver fdt_reset_pmic = {
.match_table = pm_reset_match,
.init = pm_reset_init,
};
+static const struct fdt_driver *const starfive_jh7110_reset_drivers[] = {
+ &fdt_reset_pmic,
+ NULL
+};
+
static int starfive_jh7110_inst_init(const void *fdt)
{
int noff, rc = 0;
@@ -281,7 +286,7 @@ static int starfive_jh7110_final_init(bool cold_boot, void *fdt,
const struct fdt_match *match)
{
if (cold_boot) {
- fdt_reset_driver_init(fdt, &fdt_reset_pmic);
+ fdt_driver_init_one(fdt, starfive_jh7110_reset_drivers);
}
return 0;