bridge-regs.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Mbus-L to Mbus Bridge Registers */
  3. #ifndef __ASM_ARCH_BRIDGE_REGS_H
  4. #define __ASM_ARCH_BRIDGE_REGS_H
  5. #include "dove.h"
  6. #define CPU_CONFIG (BRIDGE_VIRT_BASE + 0x0000)
  7. #define CPU_CONTROL (BRIDGE_VIRT_BASE + 0x0104)
  8. #define CPU_CTRL_PCIE0_LINK 0x00000001
  9. #define CPU_RESET 0x00000002
  10. #define CPU_CTRL_PCIE1_LINK 0x00000008
  11. #define RSTOUTn_MASK (BRIDGE_VIRT_BASE + 0x0108)
  12. #define RSTOUTn_MASK_PHYS (BRIDGE_PHYS_BASE + 0x0108)
  13. #define SOFT_RESET_OUT_EN 0x00000004
  14. #define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE + 0x010c)
  15. #define SOFT_RESET 0x00000001
  16. #define BRIDGE_CAUSE (BRIDGE_VIRT_BASE + 0x0110)
  17. #define BRIDGE_INT_TIMER1_CLR (~0x0004)
  18. #define IRQ_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0200)
  19. #define IRQ_CAUSE_LOW_OFF 0x0000
  20. #define IRQ_MASK_LOW_OFF 0x0004
  21. #define FIQ_MASK_LOW_OFF 0x0008
  22. #define ENDPOINT_MASK_LOW_OFF 0x000c
  23. #define IRQ_CAUSE_HIGH_OFF 0x0010
  24. #define IRQ_MASK_HIGH_OFF 0x0014
  25. #define FIQ_MASK_HIGH_OFF 0x0018
  26. #define ENDPOINT_MASK_HIGH_OFF 0x001c
  27. #define PCIE_INTERRUPT_MASK_OFF 0x0020
  28. #define IRQ_MASK_LOW (IRQ_VIRT_BASE + IRQ_MASK_LOW_OFF)
  29. #define FIQ_MASK_LOW (IRQ_VIRT_BASE + FIQ_MASK_LOW_OFF)
  30. #define ENDPOINT_MASK_LOW (IRQ_VIRT_BASE + ENDPOINT_MASK_LOW_OFF)
  31. #define IRQ_MASK_HIGH (IRQ_VIRT_BASE + IRQ_MASK_HIGH_OFF)
  32. #define FIQ_MASK_HIGH (IRQ_VIRT_BASE + FIQ_MASK_HIGH_OFF)
  33. #define ENDPOINT_MASK_HIGH (IRQ_VIRT_BASE + ENDPOINT_MASK_HIGH_OFF)
  34. #define PCIE_INTERRUPT_MASK (IRQ_VIRT_BASE + PCIE_INTERRUPT_MASK_OFF)
  35. #define POWER_MANAGEMENT (BRIDGE_VIRT_BASE + 0x011c)
  36. #define TIMER_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0300)
  37. #define TIMER_PHYS_BASE (BRIDGE_PHYS_BASE + 0x0300)
  38. #endif