map.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * arch/arm/mach-meson3/include/mach/map.h
  3. *
  4. * Copyright (C) 2010 AMLOGIC, INC.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. * this file used to map common VAR in plat-meson to mach-mesonX
  21. *
  22. */
  23. #ifndef _MACH_MAP_H
  24. #define _MACH_MAP_H
  25. #include <mach/regs.h>
  26. #include <mach/am_regs.h>
  27. #include <mach/reg_addr.h>
  28. #define CPU_0_IRQ_IN0_INTR_MASK SYS_CPU_0_IRQ_IN0_INTR_MASK
  29. #define CPU_0_IRQ_IN1_INTR_MASK SYS_CPU_0_IRQ_IN1_INTR_MASK
  30. #define CPU_0_IRQ_IN2_INTR_MASK SYS_CPU_0_IRQ_IN2_INTR_MASK
  31. #define CPU_0_IRQ_IN3_INTR_MASK SYS_CPU_0_IRQ_IN3_INTR_MASK
  32. #define CPU_0_IRQ_IN0_INTR_STAT_CLR SYS_CPU_0_IRQ_IN0_INTR_STAT_CLR
  33. #define CPU_0_IRQ_IN1_INTR_STAT_CLR SYS_CPU_0_IRQ_IN1_INTR_STAT_CLR
  34. #define CPU_0_IRQ_IN2_INTR_STAT_CLR SYS_CPU_0_IRQ_IN2_INTR_STAT_CLR
  35. #define CPU_0_IRQ_IN3_INTR_STAT_CLR SYS_CPU_0_IRQ_IN3_INTR_STAT_CLR
  36. #define CPU_0_IRQ_IN0_INTR_FIRQ_SEL SYS_CPU_0_IRQ_IN0_INTR_FIRQ_SEL
  37. #define CPU_0_IRQ_IN1_INTR_FIRQ_SEL SYS_CPU_0_IRQ_IN1_INTR_FIRQ_SEL
  38. #define CPU_0_IRQ_IN2_INTR_FIRQ_SEL SYS_CPU_0_IRQ_IN2_INTR_FIRQ_SEL
  39. #define CPU_0_IRQ_IN3_INTR_FIRQ_SEL SYS_CPU_0_IRQ_IN3_INTR_FIRQ_SEL
  40. #define SRAM_PHY_ADDR IO_AHB_BUS_PHY_BASE
  41. #define MESON_I2C_1_START P_I2C_M_0_CONTROL_REG
  42. #define MESON_I2C_1_END (P_I2C_M_0_RDATA_REG1-1)
  43. #define MESON_I2C_2_START P_I2C_M_1_CONTROL_REG
  44. #define MESON_I2C_2_END (P_I2C_M_1_RDATA_REG1-1)
  45. #define MESON_I2C_3_START P_I2C_S_CONTROL_REG
  46. #define MESON_I2C_3_SLAVE_END (P_I2C_S_CNTL1_REG-1)
  47. #endif