mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-22 18:06:40 +00:00
Disable coreboot.rom chainloading for T210B01
Unlike all RCM payloads that are based on hekate's hwinit, coreboot does full power management before sdram init is run. Because of that and because it doesn't support T210B01, it does not hang as expected and configures all regulators and pins which can be dangerous!
This commit is contained in:
parent
202540c7f7
commit
2424ecc4f0
2 changed files with 17 additions and 0 deletions
|
@ -233,6 +233,15 @@ int launch_payload(char *path, bool update)
|
||||||
{
|
{
|
||||||
coreboot_addr = (void *)(COREBOOT_END_ADDR - size);
|
coreboot_addr = (void *)(COREBOOT_END_ADDR - size);
|
||||||
buf = coreboot_addr;
|
buf = coreboot_addr;
|
||||||
|
if (h_cfg.t210b01)
|
||||||
|
{
|
||||||
|
f_close(&fp);
|
||||||
|
|
||||||
|
gfx_con.mute = 0;
|
||||||
|
EPRINTF("T210B01: Coreboot not allowed!");
|
||||||
|
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (f_read(&fp, buf, size, NULL))
|
if (f_read(&fp, buf, size, NULL))
|
||||||
|
|
|
@ -169,6 +169,14 @@ lv_res_t launch_payload(lv_obj_t *list)
|
||||||
{
|
{
|
||||||
coreboot_addr = (void *)(COREBOOT_END_ADDR - size);
|
coreboot_addr = (void *)(COREBOOT_END_ADDR - size);
|
||||||
buf = coreboot_addr;
|
buf = coreboot_addr;
|
||||||
|
if (h_cfg.t210b01)
|
||||||
|
{
|
||||||
|
f_close(&fp);
|
||||||
|
|
||||||
|
EPRINTF("T210B01: Coreboot not allowed!");
|
||||||
|
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (f_read(&fp, buf, size, NULL))
|
if (f_read(&fp, buf, size, NULL))
|
||||||
|
|
Loading…
Reference in a new issue