2 * System MMR Register and memory map for ADSP-BF537
4 * Copyright 2005-2008 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
9 #ifndef __MACH_BF537_H__
10 #define __MACH_BF537_H__
12 /* Masks for generic ERROR IRQ demultiplexing used in int-priority-sc.c */
14 #define SPI_ERR_MASK (TXCOL | RBSY | MODF | TXE) /* SPI_STAT */
15 #define SPORT_ERR_MASK (ROVF | RUVF | TOVF | TUVF) /* SPORTx_STAT */
16 #define PPI_ERR_MASK (0xFFFF & ~FLD) /* PPI_STATUS */
17 #define EMAC_ERR_MASK (PHYINT | MMCINT | RXFSINT | TXFSINT | WAKEDET | RXDMAERR | TXDMAERR | STMDONE) /* EMAC_SYSTAT */
18 #define UART_ERR_MASK_STAT1 (0x4) /* UARTx_IIR */
19 #define UART_ERR_MASK_STAT0 (0x2) /* UARTx_IIR */
20 #define CAN_ERR_MASK (EWTIF | EWRIF | EPIF | BOIF | WUIF | UIAIF | AAIF | RMLIF | UCEIF | EXTIF | ADIF) /* CAN_GIF */
22 #define OFFSET_(x) ((x) & 0x0000FFFF)
25 #define IMASK_IVG15 0x8000
26 #define IMASK_IVG14 0x4000
27 #define IMASK_IVG13 0x2000
28 #define IMASK_IVG12 0x1000
30 #define IMASK_IVG11 0x0800
31 #define IMASK_IVG10 0x0400
32 #define IMASK_IVG9 0x0200
33 #define IMASK_IVG8 0x0100
35 #define IMASK_IVG7 0x0080
36 #define IMASK_IVGTMR 0x0040
37 #define IMASK_IVGHW 0x0020
39 /***************************/
42 #define BFIN_DSUBBANKS 4
44 #define BFIN_DLINES 64
45 #define BFIN_ISUBBANKS 4
47 #define BFIN_ILINES 32
67 #define DMC_ENABLE (2<<2) /*yes, 2, not 1 */
69 /********************************* EBIU Settings ************************************/
70 #define AMBCTL0VAL ((CONFIG_BANK_1 << 16) | CONFIG_BANK_0)
71 #define AMBCTL1VAL ((CONFIG_BANK_3 << 16) | CONFIG_BANK_2)
73 #ifdef CONFIG_C_AMBEN_ALL
74 #define V_AMBEN AMBEN_ALL
79 #ifdef CONFIG_C_AMBEN_B0
80 #define V_AMBEN AMBEN_B0
82 #ifdef CONFIG_C_AMBEN_B0_B1
83 #define V_AMBEN AMBEN_B0_B1
85 #ifdef CONFIG_C_AMBEN_B0_B1_B2
86 #define V_AMBEN AMBEN_B0_B1_B2
88 #ifdef CONFIG_C_AMCKEN
89 #define V_AMCKEN AMCKEN
93 #ifdef CONFIG_C_CDPRIO
94 #define V_CDPRIO 0x100
99 #define AMGCTLVAL (V_AMBEN | V_AMCKEN | V_CDPRIO)
115 #error "Unknown CPU type - This kernel doesn't seem to be configured properly"
118 #endif /* __MACH_BF537_H__ */