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.

PROCESSOR-SDK-AM64X: SBL app: KEEP sbl minimum where should we initialise clock

Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi, 

I have a design question related to the sbl.

we should like to keep SBL minimum.  so from SBL we don't need  gpmc driver.

but should we still initialize gpmc clock in SBL?


Remember, we prefer to keep SBL minimal,

or we should move "gmpc clock initialization" to application?

<code>

    SOC_moduleClockEnable(TISCI_DEV_GPMC0, 1);

    //offset is 81D0 so it falls in partition 2
    SOC_controlModuleUnlockMMR(SOC_DOMAIN_ID_MAIN, 2);
    *(volatile uint32_t*)(CTRLMMR_GPMC_CLKSEL_SRC_MUX_ADDR) = CLK_SRC_MAIN_PLL2_HSDIV7_CLKOUT;

    SOC_controlModuleLockMMR(SOC_DOMAIN_ID_MAIN, 2);

    SOC_moduleSetClockFrequency(TISCI_DEV_GPMC0,TISCI_DEV_GPMC0_FUNC_CLK,20000000);

</code>

Thanks

  • Hello,

    If you do not have the GPMC enable in the SBL's Sysconfig then Sysconfig won't auto generate any code related to GPMC. As for the manual code, if you don't intend to use GPMC in SBL then you should not include any code related to it even the GPMC clock initialization.

    Regards,

    Prashant