Path: blob/master/arch/blackfin/mach-bf561/include/mach/bf561.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_BF561_H__9#define __MACH_BF561_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/***************************29* Blackfin Cache setup30*/313233#define BFIN_ISUBBANKS 434#define BFIN_IWAYS 435#define BFIN_ILINES 323637#define BFIN_DSUBBANKS 438#define BFIN_DWAYS 239#define BFIN_DLINES 644041#define WAY0_L 0x142#define WAY1_L 0x243#define WAY01_L 0x344#define WAY2_L 0x445#define WAY02_L 0x546#define WAY12_L 0x647#define WAY012_L 0x74849#define WAY3_L 0x850#define WAY03_L 0x951#define WAY13_L 0xA52#define WAY013_L 0xB5354#define WAY32_L 0xC55#define WAY320_L 0xD56#define WAY321_L 0xE57#define WAYALL_L 0xF5859#define DMC_ENABLE (2<<2) /*yes, 2, not 1 */6061/* IAR0 BIT FIELDS */62#define PLL_WAKEUP_BIT 0xFFFFFFFF63#define DMA1_ERROR_BIT 0xFFFFFF0F64#define DMA2_ERROR_BIT 0xFFFFF0FF65#define IMDMA_ERROR_BIT 0xFFFF0FFF66#define PPI1_ERROR_BIT 0xFFF0FFFF67#define PPI2_ERROR_BIT 0xFF0FFFFF68#define SPORT0_ERROR_BIT 0xF0FFFFFF69#define SPORT1_ERROR_BIT 0x0FFFFFFF70/* IAR1 BIT FIELDS */71#define SPI_ERROR_BIT 0xFFFFFFFF72#define UART_ERROR_BIT 0xFFFFFF0F73#define RESERVED_ERROR_BIT 0xFFFFF0FF74#define DMA1_0_BIT 0xFFFF0FFF75#define DMA1_1_BIT 0xFFF0FFFF76#define DMA1_2_BIT 0xFF0FFFFF77#define DMA1_3_BIT 0xF0FFFFFF78#define DMA1_4_BIT 0x0FFFFFFF79/* IAR2 BIT FIELDS */80#define DMA1_5_BIT 0xFFFFFFFF81#define DMA1_6_BIT 0xFFFFFF0F82#define DMA1_7_BIT 0xFFFFF0FF83#define DMA1_8_BIT 0xFFFF0FFF84#define DMA1_9_BIT 0xFFF0FFFF85#define DMA1_10_BIT 0xFF0FFFFF86#define DMA1_11_BIT 0xF0FFFFFF87#define DMA2_0_BIT 0x0FFFFFFF88/* IAR3 BIT FIELDS */89#define DMA2_1_BIT 0xFFFFFFFF90#define DMA2_2_BIT 0xFFFFFF0F91#define DMA2_3_BIT 0xFFFFF0FF92#define DMA2_4_BIT 0xFFFF0FFF93#define DMA2_5_BIT 0xFFF0FFFF94#define DMA2_6_BIT 0xFF0FFFFF95#define DMA2_7_BIT 0xF0FFFFFF96#define DMA2_8_BIT 0x0FFFFFFF97/* IAR4 BIT FIELDS */98#define DMA2_9_BIT 0xFFFFFFFF99#define DMA2_10_BIT 0xFFFFFF0F100#define DMA2_11_BIT 0xFFFFF0FF101#define TIMER0_BIT 0xFFFF0FFF102#define TIMER1_BIT 0xFFF0FFFF103#define TIMER2_BIT 0xFF0FFFFF104#define TIMER3_BIT 0xF0FFFFFF105#define TIMER4_BIT 0x0FFFFFFF106/* IAR5 BIT FIELDS */107#define TIMER5_BIT 0xFFFFFFFF108#define TIMER6_BIT 0xFFFFFF0F109#define TIMER7_BIT 0xFFFFF0FF110#define TIMER8_BIT 0xFFFF0FFF111#define TIMER9_BIT 0xFFF0FFFF112#define TIMER10_BIT 0xFF0FFFFF113#define TIMER11_BIT 0xF0FFFFFF114#define PROG0_INTA_BIT 0x0FFFFFFF115/* IAR6 BIT FIELDS */116#define PROG0_INTB_BIT 0xFFFFFFFF117#define PROG1_INTA_BIT 0xFFFFFF0F118#define PROG1_INTB_BIT 0xFFFFF0FF119#define PROG2_INTA_BIT 0xFFFF0FFF120#define PROG2_INTB_BIT 0xFFF0FFFF121#define DMA1_WRRD0_BIT 0xFF0FFFFF122#define DMA1_WRRD1_BIT 0xF0FFFFFF123#define DMA2_WRRD0_BIT 0x0FFFFFFF124/* IAR7 BIT FIELDS */125#define DMA2_WRRD1_BIT 0xFFFFFFFF126#define IMDMA_WRRD0_BIT 0xFFFFFF0F127#define IMDMA_WRRD1_BIT 0xFFFFF0FF128#define WATCH_BIT 0xFFFF0FFF129#define RESERVED_1_BIT 0xFFF0FFFF130#define RESERVED_2_BIT 0xFF0FFFFF131#define SUPPLE_0_BIT 0xF0FFFFFF132#define SUPPLE_1_BIT 0x0FFFFFFF133134/* Miscellaneous Values */135136/****************************** EBIU Settings ********************************/137#define AMBCTL0VAL ((CONFIG_BANK_1 << 16) | CONFIG_BANK_0)138#define AMBCTL1VAL ((CONFIG_BANK_3 << 16) | CONFIG_BANK_2)139140#if defined(CONFIG_C_AMBEN_ALL)141#define V_AMBEN AMBEN_ALL142#elif defined(CONFIG_C_AMBEN)143#define V_AMBEN 0x0144#elif defined(CONFIG_C_AMBEN_B0)145#define V_AMBEN AMBEN_B0146#elif defined(CONFIG_C_AMBEN_B0_B1)147#define V_AMBEN AMBEN_B0_B1148#elif defined(CONFIG_C_AMBEN_B0_B1_B2)149#define V_AMBEN AMBEN_B0_B1_B2150#endif151152#ifdef CONFIG_C_AMCKEN153#define V_AMCKEN AMCKEN154#else155#define V_AMCKEN 0x0156#endif157158#ifdef CONFIG_C_B0PEN159#define V_B0PEN 0x10160#else161#define V_B0PEN 0x00162#endif163164#ifdef CONFIG_C_B1PEN165#define V_B1PEN 0x20166#else167#define V_B1PEN 0x00168#endif169170#ifdef CONFIG_C_B2PEN171#define V_B2PEN 0x40172#else173#define V_B2PEN 0x00174#endif175176#ifdef CONFIG_C_B3PEN177#define V_B3PEN 0x80178#else179#define V_B3PEN 0x00180#endif181182#ifdef CONFIG_C_CDPRIO183#define V_CDPRIO 0x100184#else185#define V_CDPRIO 0x0186#endif187188#define AMGCTLVAL (V_AMBEN | V_AMCKEN | V_CDPRIO | V_B0PEN | V_B1PEN | V_B2PEN | V_B3PEN | 0x0002)189190#ifdef CONFIG_BF561191#define CPU "BF561"192#define CPUID 0x27bb193#endif194195#ifndef CPU196#error "Unknown CPU type - This kernel doesn't seem to be configured properly"197#endif198199#endif /* __MACH_BF561_H__ */200201202