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.

AM572x Pinmux 4.0 generated files usage

Originally posted this question on the Code Composer Forum but it may be more applicable here...

Can someone please help me understand how to make use of the 4 files below that were generated by the PinMux tool , version 4.0.1257?

boardPadDelay.h
boardPadDelayDevice.c
boardPadDelayInit.c
boardPadDelayTune.h

I am using u-boot 2015.07 and linux 4.1.18.

Thanks.

  • I will forward this to the software team.
  • Hi Wilson,

    AFAIK, those files cannot be used directly in u-boot.

    You need to use the generated register values & modify the u-boot sources:
    board/ti/am57xx/mux_data.h
    arch/arm/cpu/armv7/omap5/dra7xx_iodelay.c

    Best Regards,
    Yordan
  • The feature for exporting ready to use u-boot files should be added in the future releases of the tool.

    Best Regards,
    Yordan

  • Thank you, Yordan.

    I have updated iodelay_cfg_array_am572x_idk in board/ti/am57xx/mux_data.h using the register values from genericFileFormatIOdelay.txt.

    Unfortunately, I'm still not sure how to make use of boardPadDelay.h, boardPadDelayInt.c, boardPadDelayTune.h, and boardPadDelayDevice.c.  I see the following 3 functions are defined:
    boardPadGetSize
    boardAltPadGetSize
    BoardGetMmcCtrlPadPinmuxTable

    1) Would BoardGetMmcCtrlPadPinmuxTable need to be called in arch/arm/cpu/armv7/omap5/dra7xx_iodelay.c?  If so, how is the instance parameter obtained?
    2) Other than possibly updates from # 1 above, would arch/arm/cpu/armv7/omap5/dra7xx_iodelay.c require any additional updates?
    3)  Below are some register values generated by the PinMux tool in genericFileFormatPadConf.txt:
    0x4A0037D0 0x20000 G20 CTRL_CORE_PAD_DCAN1_TX dcan1_tx dcan1_tx
    0x4A003714 0x5000E D15 CTRL_CORE_PAD_MCASP2_AXR4 mcasp2_axr4 gpio1_4
    0x4A003400 0x5000E M6 CTRL_CORE_PAD_GPMC_AD0 gpmc_ad0 gpio1_6
    Are these values used to update core_padconf_array_essential_am572x_idk from board/ti/am57xx/mux_data.h?  Can you please provide me with an example?

    Thanks.

    Wilson