|
AM263x MCU+ SDK
08.02.00
|
|
Go to the documentation of this file.
51 #include <drivers/hw_include/cslr_soc.h>
60 #define SOC_DOMAIN_ID_MAIN (0U)
64 #define MSS_CTRL_PARTITION0 (1)
65 #define TOP_CTRL_PARTITION0 (2)
66 #define CONTROLSS_CTRL_PARTITION0 (3)
69 #define MSS_RCM_PARTITION0 (4)
70 #define TOP_RCM_PARTITION0 (5)
77 #define KICK_LOCK_VAL (0x00000000U)
78 #define KICK0_UNLOCK_VAL (0x01234567U)
79 #define KICK1_UNLOCK_VAL (0x0FEDCBA8U)
void SOC_gateFsitxClock(uint32_t fsitxInstance)
Gate the FSI-TX clock.
int32_t SOC_moduleSetClockFrequency(uint32_t moduleId, uint32_t clkId, uint64_t clkRate)
Set module clock to specified frequency.
void SOC_generateEcapReset(uint32_t ecapInstance)
Generate ECAP reset.
void SOC_gateEcapClock(uint32_t ecapInstance)
Gate the ECAP clock.
void SOC_controlModuleUnlockMMR(uint32_t domainId, uint32_t partition)
Unlock control module partition to allow writes into control MMRs.
uint64_t SOC_virtToPhy(void *virtAddr)
SOC Virtual (CPU) to Physical address translation function.
void SOC_gateFsirxClock(uint32_t fsirxInstance)
Gate the FSI-RX clock.
void SOC_gateSdfmPllClock(uint32_t sdfmInstance)
Gate the SDFM PLL clock.
void SOC_gateCmpssaClock(uint32_t cmpssaInstance)
Gate the CMPSS-A clock.
void SOC_gateCmpssbClock(uint32_t cmpssbInstance)
Gate the CMPSS-B clock.
void SOC_generateCmpssbReset(uint32_t cmpssbInstance)
Generate CMPSS-B reset.
void SOC_enableAdcReference(uint32_t adcInstance)
Enable ADC references by writing to Control MMR.
void SOC_gateOttoClock(uint32_t ottoInstance)
Gate the OTTO clock.
void SOC_gateEqepClock(uint32_t eqepInstance)
Gate the EQEP clock.
void SOC_generateAdcReset(uint32_t adcInstance)
Generate ADC reset.
void SOC_generateEpwmReset(uint32_t ePWMInstance)
Generate ePWM reset.
void * SOC_phyToVirt(uint64_t phyAddr)
Physical to Virtual (CPU) address translation function.
uint64_t SOC_getSelfCpuClk(void)
Get the clock frequency in Hz of the CPU on which the driver is running.
void SOC_gateFsiPllClock(uint32_t fsiInstance)
Gate the FSI-TX PLL clock.
void SOC_gateAdcClock(uint32_t adcInstance)
Gate the ADC clock.
void SOC_generateDacReset()
Generate DAC reset.
void SOC_controlModuleLockMMR(uint32_t domainId, uint32_t partition)
Lock control module partition to prevent writes into control MMRs.
int32_t SOC_moduleClockEnable(uint32_t moduleId, uint32_t enable)
Enable clock to specified module.
void SOC_generateCmpssaReset(uint32_t cmpssaInstance)
Generate CMPSS-A reset.
void SOC_generateSdfmReset(uint32_t sdfmInstance)
Generate SDFM reset.
void SOC_gateEpwmClock(uint32_t epwmInstance)
Gate the ePWM clock.
const char * SOC_getCoreName(uint16_t coreId)
Convert a core ID to a user readable name.
void SOC_setEpwmTbClk(uint32_t epwmInstance, uint32_t enable)
Enable or disable ePWM time base clock from Control MMR.
void SOC_setEpwmGroup(uint32_t epwmInstance, uint32_t group)
Configure the ePWM group.
void SOC_gateSdfmClock(uint32_t sdfmInstance)
Gate the SDFM clock.
void SOC_generateFsiRxReset(uint32_t fsirxInstance)
Generate FSI-RX reset.
void SOC_generateEqepReset(uint32_t eqepInstance)
Generate EQEP reset.
void SOC_generateOttoReset(uint32_t ottoInstance)
Generate OTTO reset.
void SOC_gateDacClock()
Gate the DAC clock.
void SOC_generateFsiTxReset(uint32_t fsitxInstance)
Generate FSI-TX reset.