|
AM273x MCU+ SDK
09.02.00
|
|
Go to the documentation of this file.
54 #include <drivers/hw_include/am273x/cslr_soc_baseaddress.h>
55 #include <drivers/hw_include/cslr_soc.h>
62 #define SOC_DOMAIN_ID_MSS_TOP_RCM (0U)
63 #define SOC_DOMAIN_ID_MSS_RCM (1U)
64 #define SOC_DOMAIN_ID_DSS_RCM (2U)
65 #define SOC_DOMAIN_ID_RCSS_RCM (3U)
66 #define SOC_DOMAIN_ID_MSS_CTRL (4U)
67 #define SOC_DOMAIN_ID_DSS_CTRL (5U)
68 #define SOC_DOMAIN_ID_RCSS_CTRL (6U)
69 #define SOC_DOMAIN_ID_MSS_IOMUX (7U)
73 #define IS_QSPI_BASE_ADDR_VALID(baseAddr) (baseAddr == CSL_MSS_QSPI_U_BASE)
76 #define IS_QSPI_MEMORY_MAP_ADDR_VALID(baseAddr) (baseAddr == CSL_EXT_FLASH_U_BASE)
78 #define IS_I2C_BASE_ADDR_VALID(baseAddr) ((baseAddr == CSL_MSS_I2C_U_BASE) || \
79 (baseAddr == CSL_RCSS_I2CA_U_BASE) || \
80 (baseAddr == CSL_RCSS_I2CB_U_BASE))
int32_t SOC_moduleSetClockFrequency(uint32_t moduleId, uint32_t clkId, uint64_t clkRate)
Set module clock to specified frequency.
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.
uint32_t SOC_getFlashDataBaseAddr(void)
This function gets the SOC mapped data base address of the flash.
void SOC_logAllClockHz(void)
Print's module clock info to the console.
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_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.
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.