bridge-regs.h 852 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef __ASM_ARCH_BRIDGE_REGS_H
  3. #define __ASM_ARCH_BRIDGE_REGS_H
  4. #include "mv78xx0.h"
  5. #define CPU_CONTROL (BRIDGE_VIRT_BASE + 0x0104)
  6. #define L2_WRITETHROUGH 0x00020000
  7. #define RSTOUTn_MASK (BRIDGE_VIRT_BASE + 0x0108)
  8. #define RSTOUTn_MASK_PHYS (BRIDGE_PHYS_BASE + 0x0108)
  9. #define SOFT_RESET_OUT_EN 0x00000004
  10. #define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE + 0x010c)
  11. #define SOFT_RESET 0x00000001
  12. #define BRIDGE_INT_TIMER1_CLR (~0x0004)
  13. #define IRQ_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0200)
  14. #define IRQ_CAUSE_ERR_OFF 0x0000
  15. #define IRQ_CAUSE_LOW_OFF 0x0004
  16. #define IRQ_CAUSE_HIGH_OFF 0x0008
  17. #define IRQ_MASK_ERR_OFF 0x000c
  18. #define IRQ_MASK_LOW_OFF 0x0010
  19. #define IRQ_MASK_HIGH_OFF 0x0014
  20. #define TIMER_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0300)
  21. #define TIMER_PHYS_BASE (BRIDGE_PHYS_BASE + 0x0300)
  22. #endif