sama7g5.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Chip-specific header file for the SAMA7G5 SoC
  4. *
  5. * Copyright (C) 2020 Microchip Technology, Inc. and its subsidiaries
  6. * Eugen Hristev <eugen.hristev@microchip.com>
  7. */
  8. #ifndef __SAMA7G5_H__
  9. #define __SAMA7G5_H__
  10. /*
  11. * Peripheral identifiers/interrupts.
  12. */
  13. #define ATMEL_ID_FLEXCOM0 38
  14. #define ATMEL_ID_FLEXCOM1 39
  15. #define ATMEL_ID_FLEXCOM2 40
  16. #define ATMEL_ID_FLEXCOM3 41
  17. #define ATMEL_ID_SDMMC0 80
  18. #define ATMEL_ID_SDMMC1 81
  19. #define ATMEL_ID_PIT64B0 70
  20. #define ATMEL_ID_PIT64B ATMEL_ID_PIT64B0
  21. #define ATMEL_CHIPID_CIDR 0xe0020000
  22. #define ATMEL_CHIPID_EXID 0xe0020004
  23. /*
  24. * User Peripherals physical base addresses.
  25. */
  26. #define ATMEL_BASE_PIOA 0xe0014000
  27. #define ATMEL_BASE_PIOB (ATMEL_BASE_PIOA + 0x40)
  28. #define ATMEL_BASE_PIOC (ATMEL_BASE_PIOB + 0x40)
  29. #define ATMEL_BASE_PIOD (ATMEL_BASE_PIOC + 0x40)
  30. #define ATMEL_BASE_PIOE (ATMEL_BASE_PIOD + 0x40)
  31. #define ATMEL_PIO_PORTS 5
  32. #define CPU_HAS_PCR
  33. #define ATMEL_BASE_PMC 0xe0018000
  34. #define ATMEL_BASE_WDT 0xe001c000
  35. #define ATMEL_BASE_RSTC 0xe001d000
  36. #define ATMEL_BASE_WDTS 0xe001d180
  37. #define ATMEL_BASE_SCKCR 0xe001d050
  38. #define ATMEL_BASE_SDMMC0 0xe1204000
  39. #define ATMEL_BASE_SDMMC1 0xe1208000
  40. #define ATMEL_BASE_PIT64B0 0xe1800000
  41. #define ATMEL_BASE_FLEXCOM0 0xe1818000
  42. #define ATMEL_BASE_FLEXCOM1 0xe181c000
  43. #define ATMEL_BASE_FLEXCOM2 0xe1820000
  44. #define ATMEL_BASE_FLEXCOM3 0xe1824000
  45. #define ATMEL_BASE_FLEXCOM4 0xe2018000
  46. #define ATMEL_BASE_TZC400 0xe3000000
  47. #define ATMEL_BASE_UMCTL2 0xe3800000
  48. #define ATMEL_BASE_UMCTL2_MP 0xe38003f8
  49. #define ATMEL_BASE_PUBL 0xe3804000
  50. #define ATMEL_NUM_FLEXCOM 12
  51. #define ATMEL_PIO_PORTS 5
  52. #define ATMEL_BASE_PIT64BC ATMEL_BASE_PIT64B0
  53. #ifndef __ASSEMBLY__
  54. char *get_cpu_name(void);
  55. #endif
  56. #endif /* #ifndef __SAMA7G5_H__ */