Skip to content

Commit

Permalink
Skip of UART which is in already in use (ARM-software#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan-rathore authored Oct 30, 2024
1 parent 62cbacd commit 314afde
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test_pool/peripherals/operating_system/test_os_d003.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,21 @@ payload1()
return;
}

val_peripheral_uart_setup();
/* If UART is used by other app (optee/TF) skip it */
if (((uart_reg_read(BSA_UARTIMSC, WIDTH_BIT32)) & 0x10))
{
count--;
continue;
}

/* Install ISR */
if (val_gic_install_isr(int_id, isr)) {
val_print(ACS_PRINT_ERR, "\n GIC Install Handler Failed...", 0);
val_set_status(index, RESULT_FAIL(TEST_NUM1, 3));
return;
}

val_peripheral_uart_setup();
uart_enable_txintr();
val_print_raw(l_uart_base, g_print_level,
"\n Test Message ", 0);
Expand Down

0 comments on commit 314afde

Please sign in to comment.