162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/* Orion CPU Bridge Registers */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef __ASM_ARCH_BRIDGE_REGS_H
562306a36Sopenharmony_ci#define __ASM_ARCH_BRIDGE_REGS_H
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#include "orion5x.h"
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#define CPU_CONF		(ORION5X_BRIDGE_VIRT_BASE + 0x100)
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#define CPU_CTRL		(ORION5X_BRIDGE_VIRT_BASE + 0x104)
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define RSTOUTn_MASK		(ORION5X_BRIDGE_VIRT_BASE + 0x108)
1462306a36Sopenharmony_ci#define RSTOUTn_MASK_PHYS	(ORION5X_BRIDGE_PHYS_BASE + 0x108)
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#define CPU_SOFT_RESET		(ORION5X_BRIDGE_VIRT_BASE + 0x10c)
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci#define BRIDGE_CAUSE		(ORION5X_BRIDGE_VIRT_BASE + 0x110)
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#define POWER_MNG_CTRL_REG	(ORION5X_BRIDGE_VIRT_BASE + 0x11C)
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#define BRIDGE_INT_TIMER1_CLR	(~0x0004)
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#define MAIN_IRQ_CAUSE		(ORION5X_BRIDGE_VIRT_BASE + 0x200)
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci#define MAIN_IRQ_MASK		(ORION5X_BRIDGE_VIRT_BASE + 0x204)
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#define TIMER_VIRT_BASE		(ORION5X_BRIDGE_VIRT_BASE + 0x300)
2962306a36Sopenharmony_ci#define TIMER_PHYS_BASE		(ORION5X_BRIDGE_PHYS_BASE + 0x300)
3062306a36Sopenharmony_ci#endif
31