setup.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. #ifndef _BLACKFIN_SETUP_H
  29. #define _BLACKFIN_SETUP_H
  30. #include <linux/config.h>
  31. /*
  32. * Linux/Blackfin Architectures
  33. */
  34. #define MACH_BFIN 1
  35. #ifdef __KERNEL__
  36. #ifndef __ASSEMBLY__
  37. extern unsigned long blackfin_machtype;
  38. #endif
  39. #if defined(CONFIG_BFIN)
  40. #define MACH_IS_BFIN (blackfin_machtype == MACH_BFIN)
  41. #endif
  42. #ifndef MACH_TYPE
  43. #define MACH_TYPE (blackfin_machtype)
  44. #endif
  45. #endif
  46. /*
  47. * CPU, FPU and MMU types
  48. *
  49. * Note: we don't need now:
  50. *
  51. */
  52. #ifndef __ASSEMBLY__
  53. extern unsigned long blackfin_cputype;
  54. #ifdef CONFIG_VME
  55. extern unsigned long vme_brdtype;
  56. #endif
  57. /*
  58. * Miscellaneous
  59. */
  60. #define NUM_MEMINFO 4
  61. #define CL_SIZE 256
  62. extern int blackfin_num_memory; /* # of memory blocks found (and used) */
  63. extern int blackfin_realnum_memory; /* real # of memory blocks found */
  64. extern struct mem_info blackfin_memory[NUM_MEMINFO]; /* memory description */
  65. struct mem_info {
  66. unsigned long addr; /* physical address of memory chunk */
  67. unsigned long size; /* length of memory chunk (in bytes) */
  68. };
  69. #endif
  70. #endif