Just a warning that you cannot trust the values generated by the pinmux spreadsheet on the TI wiki site for the DM365/DM368.
The Excel spreadsheet does not properly handle cases where bit fields overlap 4-bit boundaries and the math generates invalid PINMUX[n] values. In some cases it generates 36-bit hex values!
For reference, this is the utility in question: http://processors.wiki.ti.com/index.php/DM365/DM368_Pinmuxing_Spreadsheet_Utility