18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public 38c2ecf20Sopenharmony_ci * License version 2. This program is licensed "as is" without any 48c2ecf20Sopenharmony_ci * warranty of any kind, whether express or implied. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_BRIDGE_REGS_H 88c2ecf20Sopenharmony_ci#define __ASM_ARCH_BRIDGE_REGS_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include "mv78xx0.h" 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define CPU_CONTROL (BRIDGE_VIRT_BASE + 0x0104) 138c2ecf20Sopenharmony_ci#define L2_WRITETHROUGH 0x00020000 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define RSTOUTn_MASK (BRIDGE_VIRT_BASE + 0x0108) 168c2ecf20Sopenharmony_ci#define RSTOUTn_MASK_PHYS (BRIDGE_PHYS_BASE + 0x0108) 178c2ecf20Sopenharmony_ci#define SOFT_RESET_OUT_EN 0x00000004 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE + 0x010c) 208c2ecf20Sopenharmony_ci#define SOFT_RESET 0x00000001 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#define BRIDGE_INT_TIMER1_CLR (~0x0004) 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#define IRQ_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0200) 258c2ecf20Sopenharmony_ci#define IRQ_CAUSE_ERR_OFF 0x0000 268c2ecf20Sopenharmony_ci#define IRQ_CAUSE_LOW_OFF 0x0004 278c2ecf20Sopenharmony_ci#define IRQ_CAUSE_HIGH_OFF 0x0008 288c2ecf20Sopenharmony_ci#define IRQ_MASK_ERR_OFF 0x000c 298c2ecf20Sopenharmony_ci#define IRQ_MASK_LOW_OFF 0x0010 308c2ecf20Sopenharmony_ci#define IRQ_MASK_HIGH_OFF 0x0014 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#define TIMER_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0300) 338c2ecf20Sopenharmony_ci#define TIMER_PHYS_BASE (BRIDGE_PHYS_BASE + 0x0300) 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#endif 36