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.

AM2732: How to change clock source of SPI instance in syscfg

Part Number: AM2732

Hi expert,

I want to change SPI clock source in sys config to another source.

The default generated code from syscfg is

 { SOC_RcmPeripheralId_MSS_SPIA, SOC_RcmPeripheralClockSource_SYS_CLK, 200000000 },

How to modify syscfg to use another clock source which SPI support in the sdk?

/*
 *  Mapping Array between Clock mode and Clock Mode Value for SPI
 */
static const uint16_t gSocRcmSpiClkSrcValMap[] =
{
    [SOC_RcmPeripheralClockSource_XTAL_CLK] = 0x111U,
    [SOC_RcmPeripheralClockSource_SYS_CLK]  = 0x222U,
    [SOC_RcmPeripheralClockSource_DPLL_CORE_HSDIV0_CLKOUT1] = 0x888U, /* Set unsupported clock source to 0x888 which indicates invalid value */
    [SOC_RcmPeripheralClockSource_DPLL_CORE_HSDIV0_CLKOUT2] = 0x333U,
    [SOC_RcmPeripheralClockSource_DPLL_PER_HSDIV0_CLKOUT1] = 0x444U,
    [SOC_RcmPeripheralClockSource_DPLL_PER_HSDIV0_CLKOUT2]  = 0x888U, /* Set unsupported clock source to 0x888 which indicates invalid value */
    [SOC_RcmPeripheralClockSource_DPLL_PER_HSDIV0_CLKOUT3] = 0x888U, /* Set unsupported clock source to 0x888 which indicates invalid value */
};
Thank you
Allen