I use processor iMX8qm. I need to reset pin SCU_PMIC_MEMC_ON and SCU_GPIO0_01, change the voltage on this pins during before a boot. I'm going to do it using SCFW but i didn't find out the explicit way how it to do.
Thank you!
Hi Riyan
one can try to configure it in scfw ../platform/board/mx8qm_mek/board.c function board_init()
use sect.13.3 PAD: Pad Service sc_fw_api_qm_b0.pdf included in SCFW Porting Kit 1.9.0
Best regards
igor
pad_force_mux(SC_P_SCU_PMIC_MEMC_ON, 0, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF);
config.outputLogic = 0U;
FGPIO_PinInit(FGPIOA, 12U, &config);
SYSTICK_CycleDelay(SC_SYSTICK_NSEC_TO_TICKS(30U) + 1U);
SYSTICK_TimeDelay(1000000U);
FGPIO_PinWrite(FGPIOA, 12U, 1U);
I added the changes in the function board_init(). But I doesn't see a reset through the oscilloscope. Did I select correctly the pin number of SC_P_SCU_PMIC_MEMC_ON - 12.
one can try to debug it using AN12631 AN12631: Normal and Secure Debug for i.MX8/8X Family of Applications Processors – Application Note
Best regards
igor
Unfortunatly, I didn't find out how to change the voltage on SCU_PMIC_MEMC_ON.
regarding " SCU_" pads, one can look at comment in board_config_sc() function in board.c
/* By default, the SCFW keeps most of the resources found in the SCU
* subsystem. It also keeps the SCU/PMIC pads required for the main
* code to function. Any additional resources or pads required for
* the board code to run should be kept here. This is done by marking
* them as not movable.
*/
Best regards
igor