mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 11:21:23 +00:00
hwinit/joycon: move uart clock deinits to joycon driver
This commit is contained in:
parent
05833bb38c
commit
c29db97f73
2 changed files with 4 additions and 2 deletions
|
@ -715,6 +715,10 @@ void jc_deinit()
|
|||
jc_send_hid_cmd(UART_C, JC_HID_SUBCMD_HCI_STATE, &data, 1);
|
||||
jc_rcv_pkt(&jc_l);
|
||||
}
|
||||
|
||||
// Disable UART B and C clocks.
|
||||
clock_disable_uart(UART_B);
|
||||
clock_disable_uart(UART_C);
|
||||
}
|
||||
|
||||
static void jc_init_conn(joycon_ctxt_t *jc)
|
||||
|
|
|
@ -433,8 +433,6 @@ void hw_reinit_workaround(bool coreboot, u32 bl_magic)
|
|||
touch_power_off();
|
||||
jc_deinit();
|
||||
regulator_5v_disable(REGULATOR_5V_ALL);
|
||||
clock_disable_uart(UART_B);
|
||||
clock_disable_uart(UART_C);
|
||||
#endif
|
||||
|
||||
// Flush/disable MMU cache and set DRAM clock to 204MHz.
|
||||
|
|
Loading…
Reference in a new issue