162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci#ifndef __ASM_ARCH_BRIDGE_REGS_H
462306a36Sopenharmony_ci#define __ASM_ARCH_BRIDGE_REGS_H
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#include "mv78xx0.h"
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#define CPU_CONTROL		(BRIDGE_VIRT_BASE + 0x0104)
962306a36Sopenharmony_ci#define L2_WRITETHROUGH		0x00020000
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#define RSTOUTn_MASK		(BRIDGE_VIRT_BASE + 0x0108)
1262306a36Sopenharmony_ci#define RSTOUTn_MASK_PHYS	(BRIDGE_PHYS_BASE + 0x0108)
1362306a36Sopenharmony_ci#define SOFT_RESET_OUT_EN	0x00000004
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#define SYSTEM_SOFT_RESET	(BRIDGE_VIRT_BASE + 0x010c)
1662306a36Sopenharmony_ci#define SOFT_RESET		0x00000001
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci#define BRIDGE_INT_TIMER1_CLR	(~0x0004)
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#define IRQ_VIRT_BASE		(BRIDGE_VIRT_BASE + 0x0200)
2162306a36Sopenharmony_ci#define IRQ_CAUSE_ERR_OFF	0x0000
2262306a36Sopenharmony_ci#define IRQ_CAUSE_LOW_OFF	0x0004
2362306a36Sopenharmony_ci#define IRQ_CAUSE_HIGH_OFF	0x0008
2462306a36Sopenharmony_ci#define IRQ_MASK_ERR_OFF	0x000c
2562306a36Sopenharmony_ci#define IRQ_MASK_LOW_OFF	0x0010
2662306a36Sopenharmony_ci#define IRQ_MASK_HIGH_OFF	0x0014
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#define TIMER_VIRT_BASE		(BRIDGE_VIRT_BASE + 0x0300)
2962306a36Sopenharmony_ci#define TIMER_PHYS_BASE		(BRIDGE_PHYS_BASE + 0x0300)
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci#endif
32