hmatrix.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (C) 2008 Atmel Corporation
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. #ifndef __ASM_AVR32_ARCH_HMATRIX_H__
  23. #define __ASM_AVR32_ARCH_HMATRIX_H__
  24. #include <asm/hmatrix-common.h>
  25. /* Bitfields in SFR4 (EBI) */
  26. #define HMATRIX_EBI_SDRAM_ENABLE_OFFSET 1
  27. #define HMATRIX_EBI_SDRAM_ENABLE_SIZE 1
  28. #define HMATRIX_EBI_NAND_ENABLE_OFFSET 3
  29. #define HMATRIX_EBI_NAND_ENABLE_SIZE 1
  30. #define HMATRIX_EBI_CF0_ENABLE_OFFSET 4
  31. #define HMATRIX_EBI_CF0_ENABLE_SIZE 1
  32. #define HMATRIX_EBI_CF1_ENABLE_OFFSET 5
  33. #define HMATRIX_EBI_CF1_ENABLE_SIZE 1
  34. #define HMATRIX_EBI_PULLUP_DISABLE_OFFSET 8
  35. #define HMATRIX_EBI_PULLUP_DISABLE_SIZE 1
  36. /* HSB masters */
  37. #define HMATRIX_MASTER_CPU_DCACHE 0
  38. #define HMATRIX_MASTER_CPU_ICACHE 1
  39. #define HMATRIX_MASTER_PDC 2
  40. #define HMATRIX_MASTER_ISI 3
  41. #define HMATRIX_MASTER_USBA 4
  42. #define HMATRIX_MASTER_LCDC 5
  43. #define HMATRIX_MASTER_MACB0 6
  44. #define HMATRIX_MASTER_MACB1 7
  45. #define HMATRIX_MASTER_DMACA_M0 8
  46. #define HMATRIX_MASTER_DMACA_M1 9
  47. /* HSB slaves */
  48. #define HMATRIX_SLAVE_SRAM0 0
  49. #define HMATRIX_SLAVE_SRAM1 1
  50. #define HMATRIX_SLAVE_PBA 2
  51. #define HMATRIX_SLAVE_PBB 3
  52. #define HMATRIX_SLAVE_EBI 4
  53. #define HMATRIX_SLAVE_USBA 5
  54. #define HMATRIX_SLAVE_LCDC 6
  55. #define HMATRIX_SLAVE_DMACA 7
  56. #endif /* __ASM_AVR32_ARCH_HMATRIX_H__ */