mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
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:
parent
c8d95baca0
commit
e1b2c45f34
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue