/* * Copyright 2007-2010 Analog Devices Inc. * * Licensed under the Clear BSD license or the GPL-2 (or later) */ #ifndef _DEF_BF522_H #define _DEF_BF522_H /* ************************************************************** */ /* SYSTEM & MMR ADDRESS DEFINITIONS COMMON TO ALL ADSP-BF52x */ /* ************************************************************** */ /* ==== begin from defBF534.h ==== */ /* Clock and System Control (0xFFC00000 - 0xFFC000FF) */ #define PLL_CTL 0xFFC00000 /* PLL Control Register */ #define PLL_DIV 0xFFC00004 /* PLL Divide Register */ #define VR_CTL 0xFFC00008 /* Voltage Regulator Control Register */ #define PLL_STAT 0xFFC0000C /* PLL Status Register */ #define PLL_LOCKCNT 0xFFC00010 /* PLL Lock Count Register */ #define CHIPID 0xFFC00014 /* Device ID Register */ /* System Interrupt Controller (0xFFC00100 - 0xFFC001FF) */ #define SWRST 0xFFC00100 /* Software Reset Register */ #define SYSCR 0xFFC00104 /* System Configuration Register */ #define SIC_RVECT 0xFFC00108 /* Interrupt Reset Vector Address Register */ #define SIC_IMASK0 0xFFC0010C /* Interrupt Mask Register */ #define SIC_IAR0 0xFFC00110 /* Interrupt Assignment Register 0 */ #define SIC_IAR1 0xFFC00114 /* Interrupt Assignment Register 1 */ #define SIC_IAR2 0xFFC00118 /* Interrupt Assignment Register 2 */ #define SIC_IAR3 0xFFC0011C /* Interrupt Assignment Register 3 */ #define SIC_ISR0 0xFFC00120 /* Interrupt Status Register */ #define SIC_IWR0 0xFFC00124 /* Interrupt Wakeup Register */ /* SIC Additions to ADSP-BF52x (0xFFC0014C - 0xFFC00162) */ #define SIC_IMASK1 0xFFC0014C /* Interrupt Mask register of SIC2 */ #define SIC_IAR4 0xFFC00150 /* Interrupt Assignment register4 */ #define SIC_IAR5 0xFFC00154 /* Interrupt Assignment register5 */ #define SIC_IAR6 0xFFC00158 /* Interrupt Assignment register6 */ #define SIC_IAR7 0xFFC0015C /* Interrupt Assignment register7 */ #define SIC_ISR1 0xFFC00160 /* Interrupt Statur register */ #define SIC_IWR1 0xFFC00164 /* Interrupt Wakeup register */ /* Watchdog Timer (0xFFC00200 - 0xFFC002FF) */ #define WDOG_CTL 0xFFC00200 /* Watchdog Control Register */ #define WDOG_CNT 0xFFC00204 /* Watchdog Count Register */ #define WDOG_STAT 0xFFC00208 /* Watchdog Status Register */ /* Real Time Clock (0xFFC00300 - 0xFFC003FF) */ #define RTC_STAT 0xFFC00300 /* RTC Status Register */ #define RTC_ICTL 0xFFC00304 /* RTC Interrupt Control Register */ #define RTC_ISTAT 0xFFC00308 /* RTC Interrupt Status Register */ #define RTC_SWCNT 0xFFC0030C /* RTC Stopwatch Count Register */ #define RTC_ALARM 0xFFC00310 /* RTC Alarm Time Register */ #define RTC_FAST 0xFFC00314 /* RTC Prescaler Enable Register */ #define RTC_PREN 0xFFC00314 /* RTC Prescaler Enable Alternate Macro */ /* UART0 Controller (0xFFC00400 - 0xFFC004FF) */ #define UART0_THR 0xFFC00400 /* Transmit Holding register */ #define UART0_RBR 0xFFC00400 /* Receive Buffer register */ #define UART0_DLL 0xFFC00400 /* Divisor Latch (Low-Byte) */ #define UART0_IER 0xFFC00404 /* Interrupt Enable Register */ #define UART0_DLH 0xFFC00404 /* Divisor Latch (High-Byte) */ #define UART0_IIR 0xFFC00408 /* Interrupt Identification Register */ #define UART0_LCR 0xFFC0040C /* Line Control Register */ #define UART0_MCR 0xFFC00410 /* Modem Control Register */ #define UART0_LSR 0xFFC00414 /* Line Status Register */ #define UART0_MSR 0xFFC00418 /* Modem Status Register */ #define UART0_SCR 0xFFC0041C /* SCR Scratch Register */ #define UART0_GCTL 0xFFC00424 /* Global Control Register */ /* SPI Controller (0xFFC00500 - 0xFFC005FF) */ #define SPI0_REGBASE 0xFFC00500 #define SPI_CTL 0xFFC00500 /* SPI Control Register */ #define SPI_FLG 0xFFC00504 /* SPI Flag register */ #define SPI_STAT 0xFFC00508 /* SPI Status register */ #define SPI_TDBR 0xFFC0050C /* SPI Transmit Data Buffer Register */ #define SPI_RDBR 0xFFC00510 /* SPI Receive Data Buffer Register */ #define SPI_BAUD 0xFFC00514 /* SPI Baud rate Register */ #define SPI_SHADOW 0xFFC00518 /* SPI_RDBR Shadow Register */ /* TIMER0-7 Registers (0xFFC00600 - 0xFFC006FF) */ #define TIMER0_CONFIG 0xFFC00600 /* Timer 0 Configuration Register */ #define TIMER0_COUNTER 0xFFC00604 /* Timer 0 Counter Register */ #define TIMER0_PERIOD 0xFFC00608 /* Timer 0 Period Register */ #define TIMER0_WIDTH 0xFFC0060C /* Timer 0 Width Register */ #define TIMER1_CONFIG 0xFFC00610 /* Timer 1 Configuration Register */ #define TIMER1_COUNTER 0xFFC00614 /* Timer 1 Counter Register */ #define TIMER1_PERIOD 0xFFC00618 /* Timer 1 Period Register */ #define TIMER1_WIDTH 0xFFC0061C /* Timer 1 Width Register */ #define TIMER2_CONFIG 0xFFC00620 /* Timer 2 Configuration Register */ #define TIMER2_COUNTER 0xFFC00624 /* Timer 2 Counter Register */ #define TIMER2_PERIOD 0xFFC00628 /* Timer 2 Period Register */ #define TIMER2_WIDTH 0xFFC0062C /* Timer 2 Width Register */ #define TIMER3_CONFIG 0xFFC00630 /* Timer 3 Configuration Register */ #define TIMER3_COUNTER 0xFFC00634 /* Timer 3 Counter Register */ #define TIMER3_PERIOD 0xFFC00638 /* Timer 3 Period Register */ #define TIMER3_WIDTH 0xFFC0063C /* Timer 3 Width Register */ #define TIMER4_CONFIG 0xFFC00640 /* Timer 4 Configuration Register */ #define TIMER4_COUNTER 0xFFC00644 /* Timer 4 Counter Register */ #define TIMER4_PERIOD 0xFFC00648 /* Timer 4 Period Register */ #define TIMER4_WIDTH 0xFFC0064C /* Timer 4 Width Register */ #define TIMER5_CONFIG 0xFFC00650 /* Timer 5 Configuration Register */ #define TIMER5_COUNTER 0xFFC00654 /* Timer 5 Counter Register */ #define TIMER5_PERIOD 0xFFC00658 /* Timer 5 Period Register */ #define TIMER5_WIDTH 0xFFC0065C /* Timer 5 Width Register */ #define TIMER6_CONFIG 0xFFC00660 /* Timer 6 Configuration Register */ #define TIMER6_COUNTER 0xFFC00664 /* Timer 6 Counter Register */