|
#define | BCM2835_CLOCK_FREQ 250000000 |
|
#define | BCM2835_TIMER_BASE (RPI_PERIPHERAL_BASE + 0xB400) |
|
#define | BCM2835_TIMER_LOD (BCM2835_TIMER_BASE + 0x00) |
|
#define | BCM2835_TIMER_VAL (BCM2835_TIMER_BASE + 0x04) |
|
#define | BCM2835_TIMER_CTL (BCM2835_TIMER_BASE + 0x08) |
|
#define | BCM2835_TIMER_CLI (BCM2835_TIMER_BASE + 0x0C) |
|
#define | BCM2835_TIMER_RIS (BCM2835_TIMER_BASE + 0x10) |
|
#define | BCM2835_TIMER_MIS (BCM2835_TIMER_BASE + 0x14) |
|
#define | BCM2835_TIMER_RLD (BCM2835_TIMER_BASE + 0x18) |
|
#define | BCM2835_TIMER_DIV (BCM2835_TIMER_BASE + 0x1C) |
|
#define | BCM2835_TIMER_CNT (BCM2835_TIMER_BASE + 0x20) |
|
#define | BCM2835_TIMER_PRESCALE 0xF9 |
|
|
#define | BCM2835_PM_PASSWD_MAGIC 0x5a000000 |
|
#define | BCM2835_PM_BASE (RPI_PERIPHERAL_BASE + 0x100000) |
|
#define | BCM2835_PM_GNRIC (BCM2835_PM_BASE + 0x00) |
|
#define | BCM2835_PM_GNRIC_POWUP 0x00000001 |
|
#define | BCM2835_PM_GNRIC_POWOK 0x00000002 |
|
#define | BCM2835_PM_GNRIC_ISPOW 0x00000004 |
|
#define | BCM2835_PM_GNRIC_MEMREP 0x00000008 |
|
#define | BCM2835_PM_GNRIC_MRDONE 0x00000010 |
|
#define | BCM2835_PM_GNRIC_ISFUNC 0x00000020 |
|
#define | BCM2835_PM_GNRIC_RSTN 0x00000fc0 |
|
#define | BCM2835_PM_GNRIC_ENAB 0x00001000 |
|
#define | BCM2835_PM_GNRIC_CFG 0x007f0000 |
|
#define | BCM2835_PM_AUDIO (BCM2835_PM_BASE + 0x04) |
|
#define | BCM2835_PM_AUDIO_APSM 0x000fffff |
|
#define | BCM2835_PM_AUDIO_CTRLEN 0x00100000 |
|
#define | BCM2835_PM_AUDIO_RSTN 0x00200000 |
|
#define | BCM2835_PM_STATUS (BCM2835_PM_BASE + 0x18) |
|
#define | BCM2835_PM_RSTC (BCM2835_PM_BASE + 0x1c) |
|
#define | BCM2835_PM_RSTC_DRCFG 0x00000003 |
|
#define | BCM2835_PM_RSTC_WRCFG 0x00000030 |
|
#define | BCM2835_PM_RSTC_WRCFG_FULL 0x00000020 |
|
#define | BCM2835_PM_RSTC_SRCFG 0x00000300 |
|
#define | BCM2835_PM_RSTC_QRCFG 0x00003000 |
|
#define | BCM2835_PM_RSTC_FRCFG 0x00030000 |
|
#define | BCM2835_PM_RSTC_HRCFG 0x00300000 |
|
#define | BCM2835_PM_RSTS (BCM2835_PM_BASE + 0x20) |
|
#define | BCM2835_PM_RSTS_HADDRQ 0x00000001 |
|
#define | BCM2835_PM_RSTS_HADDRF 0x00000002 |
|
#define | BCM2835_PM_RSTS_HADDRH 0x00000004 |
|
#define | BCM2835_PM_RSTS_HADWRQ 0x00000010 |
|
#define | BCM2835_PM_RSTS_HADWRF 0x00000020 |
|
#define | BCM2835_PM_RSTS_HADWRH 0x00000040 |
|
#define | BCM2835_PM_RSTS_HADSRQ 0x00000100 |
|
#define | BCM2835_PM_RSTS_HADSRF 0x00000200 |
|
#define | BCM2835_PM_RSTS_HADSRH 0x00000400 |
|
#define | BCM2835_PM_RSTS_HADPOR 0x00001000 |
|
#define | BCM2835_PM_WDOG (BCM2835_PM_BASE + 0x24) |
|
|
#define | BCM2835_GPIO_REGS_BASE (RPI_PERIPHERAL_BASE + 0x200000) |
|
#define | BCM2835_GPIO_GPFSEL1 (BCM2835_GPIO_REGS_BASE + 0x04) |
|
#define | BCM2835_GPIO_GPSET0 (BCM2835_GPIO_REGS_BASE + 0x1C) |
|
#define | BCM2835_GPIO_GPCLR0 (BCM2835_GPIO_REGS_BASE + 0x28) |
|
#define | BCM2835_GPIO_GPLEV0 (BCM2835_GPIO_REGS_BASE + 0x34) |
|
#define | BCM2835_GPIO_GPEDS0 (BCM2835_GPIO_REGS_BASE + 0x40) |
|
#define | BCM2835_GPIO_GPREN0 (BCM2835_GPIO_REGS_BASE + 0x4C) |
|
#define | BCM2835_GPIO_GPFEN0 (BCM2835_GPIO_REGS_BASE + 0x58) |
|
#define | BCM2835_GPIO_GPHEN0 (BCM2835_GPIO_REGS_BASE + 0x64) |
|
#define | BCM2835_GPIO_GPLEN0 (BCM2835_GPIO_REGS_BASE + 0x70) |
|
#define | BCM2835_GPIO_GPAREN0 (BCM2835_GPIO_REGS_BASE + 0x7C) |
|
#define | BCM2835_GPIO_GPAFEN0 (BCM2835_GPIO_REGS_BASE + 0x88) |
|
#define | BCM2835_GPIO_GPPUD (BCM2835_GPIO_REGS_BASE + 0x94) |
|
#define | BCM2835_GPIO_GPPUDCLK0 (BCM2835_GPIO_REGS_BASE + 0x98) |
|
|
#define | BCM2835_AUX_BASE (RPI_PERIPHERAL_BASE + 0x215000) |
|
#define | AUX_ENABLES (BCM2835_AUX_BASE + 0x04) |
|
#define | AUX_MU_IO_REG (BCM2835_AUX_BASE + 0x40) |
|
#define | AUX_MU_IER_REG (BCM2835_AUX_BASE + 0x44) |
|
#define | AUX_MU_IIR_REG (BCM2835_AUX_BASE + 0x48) |
|
#define | AUX_MU_LCR_REG (BCM2835_AUX_BASE + 0x4C) |
|
#define | AUX_MU_MCR_REG (BCM2835_AUX_BASE + 0x50) |
|
#define | AUX_MU_LSR_REG (BCM2835_AUX_BASE + 0x54) |
|
#define | AUX_MU_MSR_REG (BCM2835_AUX_BASE + 0x58) |
|
#define | AUX_MU_SCRATCH (BCM2835_AUX_BASE + 0x5C) |
|
#define | AUX_MU_CNTL_REG (BCM2835_AUX_BASE + 0x60) |
|
#define | AUX_MU_STAT_REG (BCM2835_AUX_BASE + 0x64) |
|
#define | AUX_MU_BAUD_REG (BCM2835_AUX_BASE + 0x68) |
|
|
#define | BCM2835_UART0_BASE (RPI_PERIPHERAL_BASE + 0x201000) |
|
#define | BCM2835_UART0_DR (BCM2835_UART0_BASE + 0x00) |
|
#define | BCM2835_UART0_RSRECR (BCM2835_UART0_BASE + 0x04) |
|
#define | BCM2835_UART0_FR (BCM2835_UART0_BASE + 0x18) |
|
#define | BCM2835_UART0_ILPR (BCM2835_UART0_BASE + 0x20) |
|
#define | BCM2835_UART0_IBRD (BCM2835_UART0_BASE + 0x24) |
|
#define | BCM2835_UART0_FBRD (BCM2835_UART0_BASE + 0x28) |
|
#define | BCM2835_UART0_LCRH (BCM2835_UART0_BASE + 0x2C) |
|
#define | BCM2835_UART0_CR (BCM2835_UART0_BASE + 0x30) |
|
#define | BCM2835_UART0_IFLS (BCM2835_UART0_BASE + 0x34) |
|
#define | BCM2835_UART0_IMSC (BCM2835_UART0_BASE + 0x38) |
|
#define | BCM2835_UART0_RIS (BCM2835_UART0_BASE + 0x3C) |
|
#define | BCM2835_UART0_MIS (BCM2835_UART0_BASE + 0x40) |
|
#define | BCM2835_UART0_ICR (BCM2835_UART0_BASE + 0x44) |
|
#define | BCM2835_UART0_DMACR (BCM2835_UART0_BASE + 0x48) |
|
#define | BCM2835_UART0_ITCR (BCM2835_UART0_BASE + 0x80) |
|
#define | BCM2835_UART0_ITIP (BCM2835_UART0_BASE + 0x84) |
|
#define | BCM2835_UART0_ITOP (BCM2835_UART0_BASE + 0x88) |
|
#define | BCM2835_UART0_TDR (BCM2835_UART0_BASE + 0x8C) |
|
#define | BCM2835_UART0_MIS_RX 0x10 |
|
#define | BCM2835_UART0_MIS_TX 0x20 |
|
#define | BCM2835_UART0_IMSC_RX 0x10 |
|
#define | BCM2835_UART0_IMSC_TX 0x20 |
|
#define | BCM2835_UART0_FR_RXFE 0x10 |
|
#define | BCM2835_UART0_FR_TXFF 0x20 |
|
#define | BCM2835_UART0_ICR_RX 0x10 |
|
#define | BCM2835_UART0_ICR_TX 0x20 |
|
|
#define | BCM2835_I2C_BASE (RPI_PERIPHERAL_BASE + 0x804000) |
|
#define | BCM2835_I2C_C (BCM2835_I2C_BASE + 0x00) |
|
#define | BCM2835_I2C_S (BCM2835_I2C_BASE + 0x04) |
|
#define | BCM2835_I2C_DLEN (BCM2835_I2C_BASE + 0x08) |
|
#define | BCM2835_I2C_A (BCM2835_I2C_BASE + 0x0C) |
|
#define | BCM2835_I2C_FIFO (BCM2835_I2C_BASE + 0x10) |
|
#define | BCM2835_I2C_DIV (BCM2835_I2C_BASE + 0x14) |
|
#define | BCM2835_I2C_DEL (BCM2835_I2C_BASE + 0x18) |
|
#define | BCM2835_I2C_CLKT (BCM2835_I2C_BASE + 0x1C) |
|
|
#define | BCM2835_I2C_SPI_BASE (RPI_PERIPHERAL_BASE + 0x214000) |
|
#define | BCM2835_I2C_SPI_DR (BCM2835_I2C_SPI_BASE + 0x00) |
|
#define | BCM2835_I2C_SPI_RSR (BCM2835_I2C_SPI_BASE + 0x04) |
|
#define | BCM2835_I2C_SPI_SLV (BCM2835_I2C_SPI_BASE + 0x08) |
|
#define | BCM2835_I2C_SPI_CR (BCM2835_I2C_SPI_BASE + 0x0C) |
|
#define | BCM2835_I2C_SPI_FR (BCM2835_I2C_SPI_BASE + 0x10) |
|
#define | BCM2835_I2C_SPI_IFLS (BCM2835_I2C_SPI_BASE + 0x14) |
|
#define | BCM2835_I2C_SPI_IMSC (BCM2835_I2C_SPI_BASE + 0x18) |
|
#define | BCM2835_I2C_SPI_RIS (BCM2835_I2C_SPI_BASE + 0x1C) |
|
#define | BCM2835_I2C_SPI_MIS (BCM2835_I2C_SPI_BASE + 0x20) |
|
#define | BCM2835_I2C_SPI_ICR (BCM2835_I2C_SPI_BASE + 0x24) |
|
#define | BCM2835_I2C_SPI_DMACR (BCM2835_I2C_SPI_BASE + 0x28) |
|
#define | BCM2835_I2C_SPI_TDR (BCM2835_I2C_SPI_BASE + 0x2C) |
|
#define | BCM2835_I2C_SPI_GPUSTAT (BCM2835_I2C_SPI_BASE + 0x30) |
|
#define | BCM2835_I2C_SPI_HCTRL (BCM2835_I2C_SPI_BASE + 0x34) |
|
|
#define | BCM2835_BASE_INTC (RPI_PERIPHERAL_BASE + 0xB200) |
|
#define | BCM2835_IRQ_BASIC (BCM2835_BASE_INTC + 0x00) |
|
#define | BCM2835_IRQ_PENDING1 (BCM2835_BASE_INTC + 0x04) |
|
#define | BCM2835_IRQ_PENDING2 (BCM2835_BASE_INTC + 0x08) |
|
#define | BCM2835_IRQ_FIQ_CTRL (BCM2835_BASE_INTC + 0x0C) |
|
#define | BCM2835_IRQ_ENABLE1 (BCM2835_BASE_INTC + 0x10) |
|
#define | BCM2835_IRQ_ENABLE2 (BCM2835_BASE_INTC + 0x14) |
|
#define | BCM2835_IRQ_ENABLE_BASIC (BCM2835_BASE_INTC + 0x18) |
|
#define | BCM2835_IRQ_DISABLE1 (BCM2835_BASE_INTC + 0x1C) |
|
#define | BCM2835_IRQ_DISABLE2 (BCM2835_BASE_INTC + 0x20) |
|
#define | BCM2835_IRQ_DISABLE_BASIC (BCM2835_BASE_INTC + 0x24) |
|
|
#define | BCM2835_MBOX_BASE (RPI_PERIPHERAL_BASE+0xB880) |
|
#define | BCM2835_MBOX_PEEK (BCM2835_MBOX_BASE+0x10) |
|
#define | BCM2835_MBOX_READ (BCM2835_MBOX_BASE+0x00) |
|
#define | BCM2835_MBOX_WRITE (BCM2835_MBOX_BASE+0x20) |
|
#define | BCM2835_MBOX_STATUS (BCM2835_MBOX_BASE+0x18) |
|
#define | BCM2835_MBOX_SENDER (BCM2835_MBOX_BASE+0x14) |
|
#define | BCM2835_MBOX_CONFIG (BCM2835_MBOX_BASE+0x1C) |
|
#define | BCM2835_MBOX_FULL 0x80000000 |
|
#define | BCM2835_MBOX_EMPTY 0x40000000 |
|
|
#define | BCM2835_MBOX_CHANNEL_PM 0 |
|
#define | BCM2835_MBOX_CHANNEL_FB 1 |
|
#define | BCM2835_MBOX_CHANNEL_VUART 2 |
|
#define | BCM2835_MBOX_CHANNEL_VCHIQ 3 |
|
#define | BCM2835_MBOX_CHANNEL_LED 4 |
|
#define | BCM2835_MBOX_CHANNEL_BUTTON 5 |
|
#define | BCM2835_MBOX_CHANNEL_TOUCHS 6 |
|
#define | BCM2835_MBOX_CHANNEL_PROP_AVC 8 |
|
#define | BCM2835_MBOX_CHANNEL_PROP_VCA 9 |
|
|
#define | BCM2836_LOCAL_TIMER_CTRL 0x40000034 |
|
#define | BCM2836_LOCAL_TIMER_CTRL_IRQ_FLAG 0x80000000 |
|
#define | BCM2836_LOCAL_TIMER_CTRL_IRQ_EN 0x20000000 |
|
#define | BCM2836_LOCAL_TIMER_CTRL_TIMER_EN 0x10000000 |
|
#define | BCM2836_LOCAL_TIMER_RELOAD 0x0FFFFFFF |
|
#define | BCM2836_LOCAL_TIMER_IRQ_RELOAD 0x40000038 |
|
#define | BCM2836_LOCAL_TIMER_IRQ_CLEAR 0x80000000 |
|
#define | BCM2836_LOCAL_TIMER_RELOAD_NOW 0x40000000 |
|
#define | BCM2836_LOCAL_TIMER_IRQ_ROUTING 0x40000024 |
|
#define | BCM2836_LOCAL_TIMER_ROU_CORE0_IRQ 0x00 |
|
#define | BCM2836_LOCAL_TIMER_ROU_CORE1_IRQ 0x01 |
|
#define | BCM2836_LOCAL_TIMER_ROU_CORE2_IRQ 0x02 |
|
#define | BCM2836_LOCAL_TIMER_ROU_CORE3_IRQ 0x03 |
|
#define | BCM2836_LOCAL_TIMER_ROU_CORE0_FIQ 0x04 |
|
#define | BCM2836_LOCAL_TIMER_ROU_CORE1_FIQ 0x05 |
|
#define | BCM2836_LOCAL_TIMER_ROU_CORE2_FIQ 0x06 |
|
#define | BCM2836_LOCAL_TIMER_ROU_CORE3_FIQ 0x07 |
|
|
#define | BCM2836_GPU_IRQ_ROUTING 0x4000000C |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_IRQ_CORE0 0x00000000 |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_IRQ_CORE1 0x00000001 |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_IRQ_CORE2 0x00000002 |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_IRQ_CORE4 0x00000003 |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_FIQ_CORE0 0x00000000 |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_FIQ_CORE1 0x00000004 |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_FIQ_CORE2 0x00000008 |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_FIQ_CORE4 0x0000000C |
|
#define | BCM2836_GPU_IRQ_ROU_GPU_FIQ_CORE4 0x0000000C |
|
|
#define | BCM2836_CORE0_TIMER_IRQ_CTRL_BASE 0x40000040 |
|
#define | BCM2836_CORE1_TIMER_IRQ_CTRL_BASE 0x40000044 |
|
#define | BCM2836_CORE2_TIMER_IRQ_CTRL_BASE 0x40000048 |
|
#define | BCM2836_CORE3_TIMER_IRQ_CTRL_BASE 0x4000004C |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL(cpuidx) (BCM2836_CORE0_TIMER_IRQ_CTRL_BASE + 0x4 * (cpuidx)) |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL_TIMER0_IRQ 0x01 |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL_TIMER1_IRQ 0x02 |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL_TIMER2_IRQ 0x04 |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL_TIMER3_IRQ 0x08 |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL_TIMER0_FIQ 0x10 |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL_TIMER1_FIQ 0x20 |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL_TIMER2_FIQ 0x40 |
|
#define | BCM2836_CORE_TIMER_IRQ_CTRL_TIMER3_FIQ 0x80 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_BASE 0x40000050 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL(cpuidx) (BCM2836_MAILBOX_IRQ_CTRL_BASE + 0x4 * (cpuidx)) |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_MBOX0_IRQ 0x01 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_MBOX1_IRQ 0x02 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_MBOX2_IRQ 0x04 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_MBOX3_IRQ 0x08 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_MBOX0_FIQ 0x10 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_MBOX1_FIQ 0x20 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_MBOX2_FIQ 0x40 |
|
#define | BCM2836_MAILBOX_IRQ_CTRL_MBOX3_FIQ 0x80 |
|
#define | BCM2836_IRQ_SOURCE_REG_BASE 0x40000060 |
|
#define | BCM2836_IRQ_SOURCE_REG(cpuidx) (BCM2836_IRQ_SOURCE_REG_BASE + 0x4 * (cpuidx)) |
|
#define | BCM2836_FIQ_SOURCE_REG_BASE 0x40000070 |
|
#define | BCM2836_FIQ_SOURCE_REG(cpuidx) (BCM2836_FIQ_SOURCE_REG_BASE + 0x4 * (cpuidx)) |
|
#define | BCM2836_IRQ_SOURCE_TIMER0 0x00000001 |
|
#define | BCM2836_IRQ_SOURCE_TIMER1 0x00000002 |
|
#define | BCM2836_IRQ_SOURCE_TIMER2 0x00000004 |
|
#define | BCM2836_IRQ_SOURCE_TIMER3 0x00000008 |
|
#define | BCM2836_IRQ_SOURCE_MBOX0 0x00000010 |
|
#define | BCM2836_IRQ_SOURCE_MBOX1 0x00000020 |
|
#define | BCM2836_IRQ_SOURCE_MBOX2 0x00000040 |
|
#define | BCM2836_IRQ_SOURCE_MBOX3 0x00000080 |
|
#define | BCM2836_IRQ_SOURCE_GPU 0x00000100 |
|
#define | BCM2836_IRQ_SOURCE_PMU 0x00000200 |
|
#define | BCM2836_IRQ_SOURCE_LOCAL_TIMER 0x00000800 |
|
Register Definitions.