AON GPIO Clock

Hello all.
Can anyone tell me how to initialize the AON GPIO using?
I am trying to run baremetal code on Cortex-R5 of SPE (AON Cluster).
The GPIO I want is in the AO-HV region and the AON GPIO controller clock according to the TRM is the same as APB Clock. So how do I set the AON GPIO clock high and what are the subsequent steps for initialising the AON GPIOs (preferably for baremetal)?

Thank you.
BR

Hello,
Have you ever checked spe-source/spe-freertos-bsp/rt-aux-cpu-demo-fsp/doc/gpio.md?
That should contain the GPI0-related information in SPE firmware.

br
ChenJian

Thanks for the response but in the TRM i could see clock initialization may be required as it might have been turned off to save power.


And for the AON GPIO which clock should be enabled since it is sharing the APB Clock. How do I enable the clock for a baremetal program?

Hello,
May I know what do you mean by ‘baremetal program’?
Basically, the clocks are controlled by BPMP firmware, which is out of SPE.

There’re several processors working in L4T, and each takes different role.

br
ChenJian

Hi ChenJian.
My application is nothing but a simple GPIO Toggle thats running directly on the R5, without any OS (baremetal). For this the GPIO Clock initialization is required and hence the question about which Clock to be addressed for the AON GPIOs.
Thank you.
BR

Hello, abelamge:
I’m still unclear your case.
Clocks are controlled in BPMP firmware. SPE firmware is running as part of L4T BSP.
It’s not possible to strip all other processors and just leaves SPE running.

br
ChenJian

Hello ChenJian.
I quite understand what you are saying.
To put it simply, can I run a program on SPE without the FreeRTOS, or any other OS for that matter (straight up MCU type flashing Cortex - R5)?
Thank you.
BR

Hello, abelamge:
Technically, it’s doable, but the way may be quite difficult and long.
It has nothing to do with GPIO clock control.
SPE firmware also implements TCU function, which will be called by many other entities.
So a raw SPE firmware may need

  1. initialization of SPE basic modules.
  2. TCU support
  3. Maybe some handshaking functions.

We do not support that feature officially.

br
ChenJian

1 Like

Hello ChenJian.

Thank you for the patient and brief explanation for all my queries.
We can close this thread.

BR

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.