pantheon.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * (C) Copyright 2011
  3. * Marvell Semiconductor <www.marvell.com>
  4. * Written-by: Lei Wen <leiwen@marvell.com>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  22. * MA 02110-1301 USA
  23. */
  24. #ifndef _PANTHEON_H
  25. #define _PANTHEON_H
  26. /* Common APB clock register bit definitions */
  27. #define APBC_APBCLK (1<<0) /* APB Bus Clock Enable */
  28. #define APBC_FNCLK (1<<1) /* Functional Clock Enable */
  29. #define APBC_RST (1<<2) /* Reset Generation */
  30. /* Functional Clock Selection Mask */
  31. #define APBC_FNCLKSEL(x) (((x) & 0xf) << 4)
  32. /* Common APMU register bit definitions */
  33. #define APMU_PERI_CLK (1<<4) /* Peripheral Clock Enable */
  34. #define APMU_AXI_CLK (1<<3) /* AXI Clock Enable*/
  35. #define APMU_PERI_RST (1<<1) /* Peripheral Reset */
  36. #define APMU_AXI_RST (1<<0) /* AXI Reset */
  37. /* Register Base Addresses */
  38. #define PANTHEON_DRAM_BASE 0xB0000000
  39. #define PANTHEON_TIMER_BASE 0xD4014000
  40. #define PANTHEON_WD_TIMER_BASE 0xD4080000
  41. #define PANTHEON_APBC_BASE 0xD4015000
  42. #define PANTHEON_UART1_BASE 0xD4017000
  43. #define PANTHEON_UART2_BASE 0xD4018000
  44. #define PANTHEON_GPIO_BASE 0xD4019000
  45. #define PANTHEON_MFPR_BASE 0xD401E000
  46. #define PANTHEON_MPMU_BASE 0xD4050000
  47. #define PANTHEON_APMU_BASE 0xD4282800
  48. #define PANTHEON_CPU_BASE 0xD4282C00
  49. #endif /* _PANTHEON_H */