You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.2 KiB
81 lines
2.2 KiB
#ifndef __SITARA_AM437x_CM_HEADER__
|
|
#define __SITARA_AM437x_CM_HEADER__
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
#include <sys/mman.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct{
|
|
union{
|
|
volatile uint32_t CTRL_REVISION;
|
|
volatile struct {
|
|
uint32_t IP_REV_MINOR : 6; // 5:0
|
|
uint32_t IP_REV_CUSTOM: 2; // 7:6
|
|
uint32_t IP_REV_MAJOR : 3; // 10:8
|
|
uint32_t IP_REV_RTL: 5; // 15:11
|
|
uint32_t IP_REV_FUNC : 12; // 27:16
|
|
uint32_t : 2; // 29:28
|
|
uint32_t IP_REV_SCHEME : 2; // 31:30
|
|
} CTRL_REVISION_bit;
|
|
}; // 0x00 - 0x03
|
|
volatile uint32_t CTRL_HWINFO; // 0x04 - 0x07
|
|
uint8_t rsvd1[8]; // 0xc08 - 0x0f
|
|
union{
|
|
volatile uint32_t CTRL_SYSCONFIG;
|
|
volatile struct {
|
|
uint32_t : 1; // 0:0
|
|
uint32_t FREEEMU : 1; // 1:1
|
|
uint32_t IDLEMODE: 2; // 3:2
|
|
uint32_t STANDBY : 2; // 5:4
|
|
uint32_t : 26; // 31:6
|
|
} CTRL_SYSCONFIG_bit;
|
|
}; // 0x10 - 0x13
|
|
uint8_t rsvd2[44]; // 0xc14 - 0x3f
|
|
union{
|
|
volatile uint32_t CTRL_STS;
|
|
volatile struct {
|
|
uint32_t SYSBOOT0 : 8; // 7:0
|
|
uint32_t DEVTYPE: 3; // 10:8
|
|
uint32_t : 5; // 15:11
|
|
uint32_t BW : 1; // 16:16
|
|
uint32_t WAITEN: 1; // 17:17
|
|
uint32_t ADMUX : 2; // 19:18
|
|
uint32_t SYSBOOT13_12: 2; // 21:20
|
|
uint32_t SYSBOOT15_14: 2; // 23:22
|
|
uint32_t SYSBOOT16 : 1; // 24:24
|
|
uint32_t SYSBOOT17 : 1; // 25:25
|
|
uint32_t SYSBOOT18 : 1; // 26:26
|
|
uint32_t : 5; // 31:27
|
|
} CTRL_STS_bit;
|
|
}; // 0x40 - 0x43
|
|
uint8_t rsvd3[1568];//0x44 - 0x663
|
|
union{
|
|
volatile uint32_t CTRL_PWMSS;
|
|
volatile struct {
|
|
uint32_t PWMSS0_TBCLKEN : 1; // 0:0
|
|
uint32_t PWMSS1_TBCLKEN : 1; // 1:1
|
|
uint32_t PWMSS2_TBCLKEN : 1; // 2:2
|
|
uint32_t PWM_SYNCSEL : 1; // 3:3
|
|
uint32_t PWMSS3_TBCLKEN : 1; // 4:4
|
|
uint32_t PWMSS4_TBCLKEN : 1; // 5:5
|
|
uint32_t PWMSS5_TBCLKEN : 1; // 6:6
|
|
uint32_t : 25; // 31:7
|
|
} CTRL_PWMSS_bit;
|
|
}; // 0x664 - 0x667
|
|
} sysCM_REGS;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|