pantheon.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. /* Register Base Addresses */
  33. #define PANTHEON_DRAM_BASE 0xB0000000
  34. #define PANTHEON_TIMER_BASE 0xD4014000
  35. #define PANTHEON_WD_TIMER_BASE 0xD4080000
  36. #define PANTHEON_APBC_BASE 0xD4015000
  37. #define PANTHEON_UART1_BASE 0xD4017000
  38. #define PANTHEON_UART2_BASE 0xD4018000
  39. #define PANTHEON_GPIO_BASE 0xD4019000
  40. #define PANTHEON_MFPR_BASE 0xD401E000
  41. #define PANTHEON_MPMU_BASE 0xD4050000
  42. #define PANTHEON_CPU_BASE 0xD4282C00
  43. #endif /* _PANTHEON_H */