mirror of
https://github.com/CTCaer/hekate
synced 2024-12-23 04:01:13 +00:00
Fix GPU on Linux when booting from warmboot
This commit is contained in:
parent
b677d6cad3
commit
4f2bbbf101
2 changed files with 5 additions and 0 deletions
|
@ -1157,6 +1157,7 @@ extern void pivot_stack(u32 stack_top);
|
||||||
|
|
||||||
void ipl_main()
|
void ipl_main()
|
||||||
{
|
{
|
||||||
|
// Do initial HW configuration. This is compatible with consecutive reruns without a reset.
|
||||||
config_hw();
|
config_hw();
|
||||||
|
|
||||||
//Pivot the stack so we have enough space.
|
//Pivot the stack so we have enough space.
|
||||||
|
|
|
@ -247,6 +247,10 @@ void reconfig_hw_workaround(bool extra_reconfig, u32 magic)
|
||||||
gpio_config(GPIO_PORT_D, GPIO_PIN_1, GPIO_MODE_SPIO);
|
gpio_config(GPIO_PORT_D, GPIO_PIN_1, GPIO_MODE_SPIO);
|
||||||
gpio_config(GPIO_PORT_E, GPIO_PIN_6, GPIO_MODE_SPIO);
|
gpio_config(GPIO_PORT_E, GPIO_PIN_6, GPIO_MODE_SPIO);
|
||||||
gpio_config(GPIO_PORT_H, GPIO_PIN_6, GPIO_MODE_SPIO);
|
gpio_config(GPIO_PORT_H, GPIO_PIN_6, GPIO_MODE_SPIO);
|
||||||
|
|
||||||
|
// Fix GPU after warmboot for Linux.
|
||||||
|
i2c_send_byte(I2C_5, MAX77620_I2C_ADDR, MAX77620_REG_GPIO5, 2);
|
||||||
|
i2c_send_byte(I2C_5, MAX77620_I2C_ADDR, MAX77620_REG_GPIO6, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Power off display.
|
// Power off display.
|
||||||
|
|
Loading…
Reference in a new issue