Path: blob/master/arch/blackfin/mach-bf533/include/mach/bf533.h
10820 views
/*1* SYSTEM MMR REGISTER AND MEMORY MAP FOR ADSP-BF5612*3* Copyright 2005-2008 Analog Devices Inc.4*5* Licensed under the GPL-2 or later.6*/78#ifndef __MACH_BF533_H__9#define __MACH_BF533_H__1011#define OFFSET_(x) ((x) & 0x0000FFFF)1213/*some misc defines*/14#define IMASK_IVG15 0x800015#define IMASK_IVG14 0x400016#define IMASK_IVG13 0x200017#define IMASK_IVG12 0x10001819#define IMASK_IVG11 0x080020#define IMASK_IVG10 0x040021#define IMASK_IVG9 0x020022#define IMASK_IVG8 0x01002324#define IMASK_IVG7 0x008025#define IMASK_IVGTMR 0x004026#define IMASK_IVGHW 0x00202728/***************************/293031#define BFIN_DSUBBANKS 432#define BFIN_DWAYS 233#define BFIN_DLINES 6434#define BFIN_ISUBBANKS 435#define BFIN_IWAYS 436#define BFIN_ILINES 323738#define WAY0_L 0x139#define WAY1_L 0x240#define WAY01_L 0x341#define WAY2_L 0x442#define WAY02_L 0x543#define WAY12_L 0x644#define WAY012_L 0x74546#define WAY3_L 0x847#define WAY03_L 0x948#define WAY13_L 0xA49#define WAY013_L 0xB5051#define WAY32_L 0xC52#define WAY320_L 0xD53#define WAY321_L 0xE54#define WAYALL_L 0xF5556#define DMC_ENABLE (2<<2) /*yes, 2, not 1 */5758/* IAR0 BIT FIELDS*/59#define RTC_ERROR_BIT 0x0FFFFFFF60#define UART_ERROR_BIT 0xF0FFFFFF61#define SPORT1_ERROR_BIT 0xFF0FFFFF62#define SPI_ERROR_BIT 0xFFF0FFFF63#define SPORT0_ERROR_BIT 0xFFFF0FFF64#define PPI_ERROR_BIT 0xFFFFF0FF65#define DMA_ERROR_BIT 0xFFFFFF0F66#define PLLWAKE_ERROR_BIT 0xFFFFFFFF6768/* IAR1 BIT FIELDS*/69#define DMA7_UARTTX_BIT 0x0FFFFFFF70#define DMA6_UARTRX_BIT 0xF0FFFFFF71#define DMA5_SPI_BIT 0xFF0FFFFF72#define DMA4_SPORT1TX_BIT 0xFFF0FFFF73#define DMA3_SPORT1RX_BIT 0xFFFF0FFF74#define DMA2_SPORT0TX_BIT 0xFFFFF0FF75#define DMA1_SPORT0RX_BIT 0xFFFFFF0F76#define DMA0_PPI_BIT 0xFFFFFFFF7778/* IAR2 BIT FIELDS*/79#define WDTIMER_BIT 0x0FFFFFFF80#define MEMDMA1_BIT 0xF0FFFFFF81#define MEMDMA0_BIT 0xFF0FFFFF82#define PFB_BIT 0xFFF0FFFF83#define PFA_BIT 0xFFFF0FFF84#define TIMER2_BIT 0xFFFFF0FF85#define TIMER1_BIT 0xFFFFFF0F86#define TIMER0_BIT 0xFFFFFFFF8788/********************************* EBIU Settings ************************************/89#define AMBCTL0VAL ((CONFIG_BANK_1 << 16) | CONFIG_BANK_0)90#define AMBCTL1VAL ((CONFIG_BANK_3 << 16) | CONFIG_BANK_2)9192#ifdef CONFIG_C_AMBEN_ALL93#define V_AMBEN AMBEN_ALL94#endif95#ifdef CONFIG_C_AMBEN96#define V_AMBEN 0x097#endif98#ifdef CONFIG_C_AMBEN_B099#define V_AMBEN AMBEN_B0100#endif101#ifdef CONFIG_C_AMBEN_B0_B1102#define V_AMBEN AMBEN_B0_B1103#endif104#ifdef CONFIG_C_AMBEN_B0_B1_B2105#define V_AMBEN AMBEN_B0_B1_B2106#endif107#ifdef CONFIG_C_AMCKEN108#define V_AMCKEN AMCKEN109#else110#define V_AMCKEN 0x0111#endif112#ifdef CONFIG_C_CDPRIO113#define V_CDPRIO 0x100114#else115#define V_CDPRIO 0x0116#endif117118#define AMGCTLVAL (V_AMBEN | V_AMCKEN | V_CDPRIO)119120#ifdef CONFIG_BF533121#define CPU "BF533"122#define CPUID 0x27a5123#endif124#ifdef CONFIG_BF532125#define CPU "BF532"126#define CPUID 0x27a5127#endif128#ifdef CONFIG_BF531129#define CPU "BF531"130#define CPUID 0x27a5131#endif132133#ifndef CPU134#error "Unknown CPU type - This kernel doesn't seem to be configured properly"135#endif136137#endif /* __MACH_BF533_H__ */138139140