mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 03:11:16 +00:00
nyx: simplify uart debug port path
This commit is contained in:
parent
9e613a7600
commit
abdf621ad5
1 changed files with 3 additions and 10 deletions
|
@ -419,22 +419,15 @@ void nyx_init_load_res()
|
|||
|
||||
void ipl_main()
|
||||
{
|
||||
//Tegra/Horizon configuration goes to 0x80000000+, package2 goes to 0xA9800000, we place our heap in between.
|
||||
// Tegra/Horizon configuration goes to 0x80000000+, package2 goes to 0xA9800000, we place our heap in between.
|
||||
heap_init((void *)IPL_HEAP_START);
|
||||
|
||||
|
||||
b_cfg = (boot_cfg_t *)(nyx_str->hekate + 0x94);
|
||||
|
||||
// Important: Preserve version header!
|
||||
__asm__ ("" : : "" (ipl_ver));
|
||||
|
||||
#ifdef DEBUG_UART_PORT
|
||||
#if DEBUG_UART_PORT == UART_B
|
||||
#if (DEBUG_UART_PORT == UART_B)
|
||||
gpio_config(GPIO_PORT_G, GPIO_PIN_0, GPIO_MODE_SPIO);
|
||||
gpio_config(GPIO_PORT_D, GPIO_PIN_1, GPIO_MODE_GPIO);
|
||||
#endif
|
||||
#if DEBUG_UART_PORT == UART_C
|
||||
gpio_config(GPIO_PORT_G, GPIO_PIN_0, GPIO_MODE_GPIO);
|
||||
#elif (DEBUG_UART_PORT == UART_C)
|
||||
gpio_config(GPIO_PORT_D, GPIO_PIN_1, GPIO_MODE_SPIO);
|
||||
#endif
|
||||
pinmux_config_uart(DEBUG_UART_PORT);
|
||||
|
|
Loading…
Reference in a new issue