hardware.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * [origin: Linux kernel include/asm-arm/arch-at91/hardware.h]
  3. *
  4. * Copyright (C) 2003 SAN People
  5. * Copyright (C) 2003 ATMEL
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. */
  13. #ifndef __ASM_ARCH_HARDWARE_H
  14. #define __ASM_ARCH_HARDWARE_H
  15. #include <asm/sizes.h>
  16. #if defined(CONFIG_AT91RM9200)
  17. #include <asm/arch/at91rm9200.h>
  18. #elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20)
  19. #include <asm/arch/at91sam9260.h>
  20. #define AT91_BASE_SPI AT91SAM9260_BASE_SPI0
  21. #define AT91_ID_UHP AT91SAM9260_ID_UHP
  22. #define AT91_PMC_UHP AT91SAM926x_PMC_UHP
  23. #elif defined(CONFIG_AT91SAM9261)
  24. #include <asm/arch/at91sam9261.h>
  25. #define AT91_BASE_SPI AT91SAM9261_BASE_SPI0
  26. #define AT91_ID_UHP AT91SAM9261_ID_UHP
  27. #define AT91_PMC_UHP AT91SAM926x_PMC_UHP
  28. #elif defined(CONFIG_AT91SAM9263)
  29. #include <asm/arch/at91sam9263.h>
  30. #define AT91_BASE_SPI AT91SAM9263_BASE_SPI0
  31. #define AT91_ID_UHP AT91SAM9263_ID_UHP
  32. #define AT91_PMC_UHP AT91SAM926x_PMC_UHP
  33. #elif defined(CONFIG_AT91SAM9RL)
  34. #include <asm/arch/at91sam9rl.h>
  35. #define AT91_BASE_SPI AT91SAM9RL_BASE_SPI
  36. #define AT91_ID_UHP AT91SAM9RL_ID_UHP
  37. #elif defined(CONFIG_AT91CAP9)
  38. #include <asm/arch/at91cap9.h>
  39. #define AT91_BASE_SPI AT91CAP9_BASE_SPI0
  40. #define AT91_ID_UHP AT91CAP9_ID_UHP
  41. #define AT91_PMC_UHP AT91CAP9_PMC_UHP
  42. #elif defined(CONFIG_AT91X40)
  43. #include <asm/arch/at91x40.h>
  44. #else
  45. #error "Unsupported AT91 processor"
  46. #endif
  47. /* External Memory Map */
  48. #define AT91_CHIPSELECT_0 0x10000000
  49. #define AT91_CHIPSELECT_1 0x20000000
  50. #define AT91_CHIPSELECT_2 0x30000000
  51. #define AT91_CHIPSELECT_3 0x40000000
  52. #define AT91_CHIPSELECT_4 0x50000000
  53. #define AT91_CHIPSELECT_5 0x60000000
  54. #define AT91_CHIPSELECT_6 0x70000000
  55. #define AT91_CHIPSELECT_7 0x80000000
  56. /* SDRAM */
  57. #ifdef CONFIG_DRAM_BASE
  58. #define AT91_SDRAM_BASE CONFIG_DRAM_BASE
  59. #else
  60. #define AT91_SDRAM_BASE AT91_CHIPSELECT_1
  61. #endif
  62. /* Clocks */
  63. #define AT91_SLOW_CLOCK 32768 /* slow clock */
  64. #endif