Other Parts Discussed in Thread: AM3356
Dear Champs,
My customer is trying to upgrade their product based on AM3356 to AM623x, and there is PRU SW to send data using PRU-GPIO.
They want to check if PRU SW of AM3356 can be used in AM623x without change when only PRU-GPIO was used.
If not, they want to check if below scenario can be used in AM623x just with register address change. Could you please check below scenario can be worked on AM623x?
Their target OS on A53 is Llinux.
I'm worrying their SDK version of AM3356 was too old and it can not be used in AM62x.
~~~~~~~
1. PRU_INIT
- PRU RESET using Power Reset Module Peripheral Register(0x44e0 0c00)
2. PRU_DISABLE
- PRU_DISABLE using PRU_ICSS_START_ADDR(0x4A30 0000) + OFFSET_PRU_ICSS_PRU0_CONTROL(0x2 2000) register
3. PRU_UPLOAD
- PRU RESET using Power Reset Module Peripheral Register(0x44e0 0c00)
- module enable using Clock Module Peripheral Registers (0x44e00000) + CM_PER_ICSS_CLKCTRL (0xe8) .
- activate OCP clock using Clock Module Peripheral Registers (0x44e00000) + CM_PER_ICSS_CLKSTCTRL(0x140).
- After activate OCP clock, userspace application will read PRU0.bin file through kernel device driver(char) and mmap/remap_pfn_range of '/dev/pru_control', and this PRU binary file was wrote into PRU_ICSS_START_ADDR (0x4a30_0000) + 0x3_4000 = 0x4A33_4000.
4.PRU_ENABLE
- PRU_ENABLE using PRU_ICSS_START_ADDR (0x4a30_0000) + OFFSET_PRU_ICSS_PRU0_CONTROL(0x2_2000) register
Thanks and Best Regards,
SI.