Skip to content

Commit

Permalink
device sharing for cva6 and unmatched
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas committed Jan 26, 2024
1 parent dec100d commit b03972b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions sm/plat/fpga/ariane/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ static int ariane_early_init(bool cold_boot)
*/
static int ariane_final_init(bool cold_boot)
{
void *fdt;
sm_init(cold_boot);
void *fdt = fdt_get_address();
sm_init(cold_boot, fdt);
if (!cold_boot)
return 0;

fdt = fdt_get_address();
fdt_fixups(fdt);

return 0;
Expand Down
2 changes: 1 addition & 1 deletion sm/plat/hifive/unmatched/unmatched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "sm.h"

static int unmatched_final_init(bool cold_boot, const struct fdt_match *match) {
sm_init(cold_boot);
sm_init(cold_boot, fdt_get_address());
return sifive_fu740_final_init(cold_boot, match);
}

Expand Down

0 comments on commit b03972b

Please sign in to comment.