]>
Commit | Line | Data |
---|---|---|
6cb142fa WD |
1 | /* |
2 | * U-boot - setup.h | |
3 | * | |
4 | * Copyright (c) 2005 blackfin.uclinux.org | |
5 | * | |
6 | * This file is based on | |
7 | * asm/setup.h -- Definition of the Linux/Blackfin setup information | |
8 | * Copyright Lineo, Inc 2001 Tony Kou | |
9 | * | |
10 | * See file CREDITS for list of people who contributed to this | |
11 | * project. | |
12 | * | |
13 | * This program is free software; you can redistribute it and/or | |
14 | * modify it under the terms of the GNU General Public License as | |
15 | * published by the Free Software Foundation; either version 2 of | |
16 | * the License, or (at your option) any later version. | |
17 | * | |
18 | * This program is distributed in the hope that it will be useful, | |
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | * GNU General Public License for more details. | |
22 | * | |
23 | * You should have received a copy of the GNU General Public License | |
24 | * along with this program; if not, write to the Free Software | |
25 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, | |
26 | * MA 02111-1307 USA | |
27 | */ | |
28 | ||
29 | #ifndef _BLACKFIN_SETUP_H | |
30 | #define _BLACKFIN_SETUP_H | |
31 | ||
32 | #include <linux/config.h> | |
33 | ||
34 | /* | |
35 | * Linux/Blackfin Architectures | |
36 | */ | |
37 | ||
38 | #define MACH_BFIN 1 | |
39 | ||
40 | #ifdef __KERNEL__ | |
41 | ||
42 | #ifndef __ASSEMBLY__ | |
43 | extern unsigned long blackfin_machtype; | |
44 | #endif | |
45 | ||
46 | #if defined(CONFIG_BFIN) | |
47 | #define MACH_IS_BFIN (blackfin_machtype == MACH_BFIN) | |
48 | #endif | |
49 | ||
50 | #ifndef MACH_TYPE | |
51 | #define MACH_TYPE (blackfin_machtype) | |
52 | #endif | |
53 | ||
54 | #endif | |
55 | ||
56 | /* | |
57 | * CPU, FPU and MMU types | |
58 | * | |
59 | * Note: we don't need now: | |
60 | * | |
61 | */ | |
62 | ||
63 | #ifndef __ASSEMBLY__ | |
64 | extern unsigned long blackfin_cputype; | |
65 | #ifdef CONFIG_VME | |
66 | extern unsigned long vme_brdtype; | |
67 | #endif | |
68 | ||
69 | /* | |
70 | * Miscellaneous | |
71 | */ | |
72 | ||
73 | #define NUM_MEMINFO 4 | |
74 | #define CL_SIZE 256 | |
75 | ||
76 | extern int blackfin_num_memory; /* # of memory blocks found (and used) */ | |
77 | extern int blackfin_realnum_memory; /* real # of memory blocks found */ | |
6cb142fa WD |
78 | |
79 | struct mem_info { | |
80 | unsigned long addr; /* physical address of memory chunk */ | |
81 | unsigned long size; /* length of memory chunk (in bytes) */ | |
82 | }; | |
3f0606ad AL |
83 | |
84 | extern struct mem_info blackfin_memory[NUM_MEMINFO]; /* memory description */ | |
6cb142fa WD |
85 | #endif |
86 | ||
87 | #endif |