How to reset pin SCU_PMIC_MEMC_ON on iMX8qm processor?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to reset pin SCU_PMIC_MEMC_ON on iMX8qm processor?

2,051 Views
Riyan
Contributor II

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!

Tags (1)
0 Kudos
Reply
5 Replies

2,047 Views
igorpadykov
NXP Employee
NXP Employee

Hi Riyan

 

one can try to configure it in scfw ../platform/board/mx8qm_mek/board.c function board_init()

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Pad-confi...

use sect.13.3 PAD: Pad Service  sc_fw_api_qm_b0.pdf  included in  SCFW Porting Kit​ 1.9.0

 

Best regards
igor

0 Kudos
Reply

2,033 Views
Riyan
Contributor II

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.

0 Kudos
Reply

2,024 Views
igorpadykov
NXP Employee
NXP Employee

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

 

 

0 Kudos
Reply

2,003 Views
RKhairulin
Contributor I

Unfortunatly, I didn't find out how to change the voltage on SCU_PMIC_MEMC_ON.

0 Kudos
Reply

1,999 Views
igorpadykov
NXP Employee
NXP Employee

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

 

 

0 Kudos
Reply