This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

66AK2G12: CSL macro for EDMA3 peripheral count

Part Number: 66AK2G12

Hello!

I am porting pieces of handmade routines for EDMA3 control using CSL from C6670 to 66AK2G12.

One thing I am missing is a macro constant defining number of EDMA3 peripherals. There was CSL_EDMA3CC_PER_CNT macro in cslr_device.h file. Similar constant is found in k2g PDK for k2e, k2h, k2k, k2l devices, but no for k2g:

/cygdrive/d/ti/pdk_k2g_1_0_11/packages/ti/csl
$ grep -r ./ -e "EDMACC_PER"
./soc/k2e/src/cslr_device.h:#define CSL_EDMACC_PER_CNT (5)
./soc/k2h/src/cslr_device.h:#define CSL_EDMACC_PER_CNT (5)
./soc/k2k/src/cslr_device.h:#define CSL_EDMACC_PER_CNT (5)
./soc/k2l/src/cslr_device.h:#define CSL_EDMACC_PER_CNT (3)

Please suggest, where should I look for that macro.

Thanks

  • Hi,

    The K2G CSL is somewhat different from K2E/H/K/L you mentioned. The K2G doesn't have a cslr_device.h file. What inside that cslr_device.h file was split into cslr_soc.h and cslr_soc_baseaddress.h, it is not exact one-to-one match.

    I looked at CSL_EDMACC_PER_CNT in the CSL folder, it is number of the EDMA Channel controller (CC) that device has. For K2G, it has 2. It is CSL_EDMACC_CNT inside cslr_soc_baseaddress.h.

    Regards, Eric
  • Hi Eric,

    That is just what I was looking for. Thank you!