kboot_gpu: Set firmware versions from ADT

The kernel side doesn't check this yet, we'll let Lina take care of
that.

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2022-12-04 15:48:36 +09:00
parent c8d95baca0
commit e1b2c45f34

View file

@ -3,6 +3,7 @@
#include "kboot.h"
#include "adt.h"
#include "assert.h"
#include "firmware.h"
#include "math.h"
#include "pmgr.h"
#include "soc.h"
@ -394,6 +395,12 @@ int dt_set_gpu(void *dt)
if (fdt_set_float_array(dt, gpu, "apple,sram-leak-coef", sram_leak, perf_state_table_count))
return -1;
if (firmware_set_fdt(dt, gpu, "apple,firmware-version", &os_firmware))
return -1;
if (firmware_set_fdt(dt, gpu, "apple,firmware-compat", &os_firmware))
return -1;
u32 i = 0;
int opp;
fdt_for_each_subnode(opp, dt, opps)