Hi,
I'm trying to power on and config UART0 after the exit of bl31.bin (ATF) as bootloader so as to allow console access to an app that is depending on this UART config on the imx8QM MEK.
I am able to allocate a new partition and and use SCFW APIs to set power_mode, clock_rate and enable the clock root. But I get an error (SC_ERR_NOACCESS or 3) when calling sc_pad_set(ipc_handle, SC_P_UART0_RX (or TX), UART_PAD_CTRL). At the end of this config of these pads 21 and 22, I checked the pads are not owned but they still are not assigned to my new partition even though sc_rm_assign_pad(ipc_handle, pt, SC_P_UART0_TX) returns SC_ERR_NONE. Appearing the pad is assigned normally and set movable.
Can anyone please suggest how I can ensure the pads are are correctly assigned to my partition for setup of the UART ?
INFO: Entry point address = 0x80020000
INFO: SPSR = 0x3c9
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a53: CPU workaround for 855873 was applied
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x80020000
INFO: SPSR = 0x3c9
INFO: cm_setup_context: enter
INFO: cm_setup_context: security_state=1
INFO: cm_setup_context: exit
INFO: cm_prepare_el3_exit: enter, security_state=1
INFO: cm_prepare_el3_exit: exit
INFO: next_image_info->pc=0x80020000
INFO: bsp_uart_init: Init UART
INFO: bsp_uart_init: sc_rm_partition_alloc: pt=4
INFO: bsp_uart_init: sc_rm_assign_resource: pt=4
INFO: bsp_uart_init: sc_rm_is_pad_owned: pad=21 is not owned
INFO: bsp_uart_init: sc_rm_is_pad_owned: pad=22 is not owned
INFO: bsp_uart_init: sc_rm_assign_pad(21): assigned, pt=4
INFO: bsp_uart_init: sc_rm_assign_pad(22): assigned, pt=4
INFO: bsp_uart_init: sc_rm_set_pad_movable(21-22): movable, pt=4
INFO: bsp_uart_init: sc_rm_is_pad_owned: pad=21 is not owned
INFO: bsp_uart_init: sc_rm_is_pad_owned: pad=22 is not owned
ERROR: bsp_uart_init: sc_pad_set: pad=21, val=0x6000020, sciErr=4
ERROR: bsp_uart_init: sc_pad_set: pad=22, val=0x6000020, sciErr=4