mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: Add flag for running preos ucode
Add per-platform flag run_preos, which indicates whether to run preos ucode or not. Leave it to false for all known boards. Bug 1799537 Bug 1815139 Change-Id: I1818970b0f70f636277443d6de199d3683fc565a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1233410 (cherry picked from commit 8bea05dbfa64af88587edb8927a8ec71c6b0d807) Reviewed-on: http://git-master/r/1239956 GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
f5ed470794
commit
55dba9f1a9
@@ -227,6 +227,9 @@ struct gk20a_platform {
|
||||
|
||||
/* minimum supported VBIOS version */
|
||||
u32 vbios_min_version;
|
||||
|
||||
/* true if we run preos microcode on this board */
|
||||
bool run_preos;
|
||||
};
|
||||
|
||||
static inline struct gk20a_platform *gk20a_get_platform(
|
||||
|
||||
@@ -918,11 +918,13 @@ static int gm206_bios_init(struct gk20a *g)
|
||||
return err;
|
||||
}
|
||||
|
||||
if (platform->run_preos) {
|
||||
err = gm206_bios_preos(g);
|
||||
if (err) {
|
||||
gk20a_err(g->dev, "pre-os failed");
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user