Hello
I'm working with a custom board based on iMX8DXL and I need to access to SCU_GPIO0_00 and SCU_GPIO0_01 from the core A35 (u-boot or linux).
In scfw I have changed the mux from defaul scu_uart to scu_gpio, select as digital input and changed the owner partition.
I did this:
void init_scu_gpio_pins(void)
{
rgpio_pin_config_t config;
config.pinDirection = kRGPIO_DigitalInput;
rm_set_pad_movable(SC_PT, SC_P_SCU_GPIO0_00, SC_P_SCU_GPIO0_01, SC_TRUE);
pad_set_all(SC_PT, SC_P_SCU_GPIO0_00, 4U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x60, SC_PAD_WAKEUP_OFF);
pad_set_all(SC_PT, SC_P_SCU_GPIO0_01, 4U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x60, SC_PAD_WAKEUP_OFF);
RGPIO_PinInit(RGPIOA, 0U, &config);
RGPIO_PinInit(RGPIOA, 1U, &config);
rm_assign_pad (SC_PT, BOOT_PT, SC_P_SCU_GPIO0_00);
rm_assign_pad (SC_PT, BOOT_PT, SC_P_SCU_GPIO0_01);
}
I don't know if I missed something to do here or there are something wrong.
If it is correct, how can I access these pins (SCU pins) from linux or u-boot?
Thanks for your help!
Regards