2 * Copyright 2007-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later.
7 #ifndef __MACH_BF548_H__
8 #define __MACH_BF548_H__
10 #define OFFSET_(x) ((x) & 0x0000FFFF)
13 #define IMASK_IVG15 0x8000
14 #define IMASK_IVG14 0x4000
15 #define IMASK_IVG13 0x2000
16 #define IMASK_IVG12 0x1000
18 #define IMASK_IVG11 0x0800
19 #define IMASK_IVG10 0x0400
20 #define IMASK_IVG9 0x0200
21 #define IMASK_IVG8 0x0100
23 #define IMASK_IVG7 0x0080
24 #define IMASK_IVGTMR 0x0040
25 #define IMASK_IVGHW 0x0020
27 /***************************/
30 #define BFIN_DSUBBANKS 4
32 #define BFIN_DLINES 64
33 #define BFIN_ISUBBANKS 4
35 #define BFIN_ILINES 32
55 #define DMC_ENABLE (2<<2) /*yes, 2, not 1 */
57 /********************************* EBIU Settings ************************************/
58 #define AMBCTL0VAL ((CONFIG_BANK_1 << 16) | CONFIG_BANK_0)
59 #define AMBCTL1VAL ((CONFIG_BANK_3 << 16) | CONFIG_BANK_2)
61 #ifdef CONFIG_C_AMBEN_ALL
62 #define V_AMBEN AMBEN_ALL
67 #ifdef CONFIG_C_AMBEN_B0
68 #define V_AMBEN AMBEN_B0
70 #ifdef CONFIG_C_AMBEN_B0_B1
71 #define V_AMBEN AMBEN_B0_B1
73 #ifdef CONFIG_C_AMBEN_B0_B1_B2
74 #define V_AMBEN AMBEN_B0_B1_B2
76 #ifdef CONFIG_C_AMCKEN
77 #define V_AMCKEN AMCKEN
82 #define AMGCTLVAL (V_AMBEN | V_AMCKEN)
84 #if defined(CONFIG_BF542M)
86 #elif defined(CONFIG_BF544M)
88 #elif defined(CONFIG_BF547M)
90 #elif defined(CONFIG_BF548M)
92 #elif defined(CONFIG_BF549M)
96 #if defined(CONFIG_BF542)
99 #elif defined(CONFIG_BF544)
101 # define CPUID 0x27de
102 #elif defined(CONFIG_BF547)
104 # define CPUID 0x27de
105 #elif defined(CONFIG_BF548)
107 # define CPUID 0x27de
108 #elif defined(CONFIG_BF549)
110 # define CPUID 0x27de
114 #error "Unknown CPU type - This kernel doesn't seem to be configured properly"
117 #endif /* __MACH_BF48_H__ */