to make u-boot work for fat32 filesystem
[jz_uboot.git] / include / asm-blackfin / setup.h
blob6ce96880ac33a3bb1ea4aba7b3a34e8ffd438539
1 /*
2 * U-boot - setup.h
4 * Copyright (c) 2005 blackfin.uclinux.org
6 * This file is based on
7 * asm/setup.h -- Definition of the Linux/Blackfin setup information
8 * Copyright Lineo, Inc 2001 Tony Kou
10 * See file CREDITS for list of people who contributed to this
11 * project.
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.
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.
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
29 #ifndef _BLACKFIN_SETUP_H
30 #define _BLACKFIN_SETUP_H
32 #include <linux/config.h>
35 * Linux/Blackfin Architectures
38 #define MACH_BFIN 1
40 #ifdef __KERNEL__
42 #ifndef __ASSEMBLY__
43 extern unsigned long blackfin_machtype;
44 #endif
46 #if defined(CONFIG_BFIN)
47 #define MACH_IS_BFIN (blackfin_machtype == MACH_BFIN)
48 #endif
50 #ifndef MACH_TYPE
51 #define MACH_TYPE (blackfin_machtype)
52 #endif
54 #endif
57 * CPU, FPU and MMU types
59 * Note: we don't need now:
63 #ifndef __ASSEMBLY__
64 extern unsigned long blackfin_cputype;
65 #ifdef CONFIG_VME
66 extern unsigned long vme_brdtype;
67 #endif
70 * Miscellaneous
73 #define NUM_MEMINFO 4
74 #define CL_SIZE 256
76 extern int blackfin_num_memory; /* # of memory blocks found (and used) */
77 extern int blackfin_realnum_memory; /* real # of memory blocks found */
78 extern struct mem_info blackfin_memory[NUM_MEMINFO]; /* memory description */
80 struct mem_info {
81 unsigned long addr; /* physical address of memory chunk */
82 unsigned long size; /* length of memory chunk (in bytes) */
84 #endif
86 #endif