AM273x MCU+ SDK  09.02.00
soc.h File Reference

Go to the source code of this file.

Macros

#define IS_QSPI_BASE_ADDR_VALID(baseAddr)   (baseAddr == CSL_MSS_QSPI_U_BASE)
 Macro to check if the QSPI base address is valid. More...
 
#define IS_QSPI_MEMORY_MAP_ADDR_VALID(baseAddr)   (baseAddr == CSL_EXT_FLASH_U_BASE)
 Macro to check if the QSPI Memory Mapped address is valid. More...
 
#define IS_I2C_BASE_ADDR_VALID(baseAddr)
 Macro to check if the I2C base address is valid. More...
 
SOC Domain ID

#define SOC_DOMAIN_ID_MSS_TOP_RCM   (0U)
 
#define SOC_DOMAIN_ID_MSS_RCM   (1U)
 
#define SOC_DOMAIN_ID_DSS_RCM   (2U)
 
#define SOC_DOMAIN_ID_RCSS_RCM   (3U)
 
#define SOC_DOMAIN_ID_MSS_CTRL   (4U)
 
#define SOC_DOMAIN_ID_DSS_CTRL   (5U)
 
#define SOC_DOMAIN_ID_RCSS_CTRL   (6U)
 
#define SOC_DOMAIN_ID_MSS_IOMUX   (7U)
 

Functions

int32_t SOC_moduleClockEnable (uint32_t moduleId, uint32_t enable)
 Enable clock to specified module. More...
 
int32_t SOC_moduleSetClockFrequency (uint32_t moduleId, uint32_t clkId, uint64_t clkRate)
 Set module clock to specified frequency. More...
 
const char * SOC_getCoreName (uint16_t coreId)
 Convert a core ID to a user readable name. More...
 
uint64_t SOC_getSelfCpuClk (void)
 Get the clock frequency in Hz of the CPU on which the driver is running. More...
 
void SOC_controlModuleLockMMR (uint32_t domainId, uint32_t partition)
 Lock control module partition to prevent writes into control MMRs. More...
 
void SOC_controlModuleUnlockMMR (uint32_t domainId, uint32_t partition)
 Unlock control module partition to allow writes into control MMRs. More...
 
void SOC_setEpwmTbClk (uint32_t epwmInstance, uint32_t enable)
 Enable or disable ePWM time base clock from Control MMR. More...
 
uint64_t SOC_virtToPhy (void *virtAddr)
 SOC Virtual (CPU) to Physical address translation function. More...
 
void * SOC_phyToVirt (uint64_t phyAddr)
 Physical to Virtual (CPU) address translation function. More...
 
void SOC_logAllClockHz (void)
 Print's module clock info to the console. More...
 
uint32_t SOC_getFlashDataBaseAddr (void)
 This function gets the SOC mapped data base address of the flash. More...