blob: 2f54e1753d45e8ef928884d933adac7a406497d0 [file] [log] [blame]
Nicolas Pitrefdd8b072009-04-22 20:08:17 +01001/*
Nicolas Pitrefdd8b072009-04-22 20:08:17 +01002 * This file is licensed under the terms of the GNU General Public
3 * License version 2. This program is licensed "as is" without any
4 * warranty of any kind, whether express or implied.
5 */
6
7#ifndef __ASM_ARCH_BRIDGE_REGS_H
8#define __ASM_ARCH_BRIDGE_REGS_H
9
Arnd Bergmann4c811b92015-12-02 22:27:06 +010010#include "mv78xx0.h"
Nicolas Pitrefdd8b072009-04-22 20:08:17 +010011
Thomas Petazzoni5ae9f5d2012-09-11 14:27:16 +020012#define CPU_CONTROL (BRIDGE_VIRT_BASE + 0x0104)
Nicolas Pitrefdd8b072009-04-22 20:08:17 +010013#define L2_WRITETHROUGH 0x00020000
14
Thomas Petazzoni5ae9f5d2012-09-11 14:27:16 +020015#define RSTOUTn_MASK (BRIDGE_VIRT_BASE + 0x0108)
Ezequiel Garcia868eb612014-02-10 20:00:25 -030016#define RSTOUTn_MASK_PHYS (BRIDGE_PHYS_BASE + 0x0108)
Nicolas Pitrefdd8b072009-04-22 20:08:17 +010017#define SOFT_RESET_OUT_EN 0x00000004
18
Thomas Petazzoni5ae9f5d2012-09-11 14:27:16 +020019#define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE + 0x010c)
Nicolas Pitrefdd8b072009-04-22 20:08:17 +010020#define SOFT_RESET 0x00000001
21
Nicolas Pitrefdd8b072009-04-22 20:08:17 +010022#define BRIDGE_INT_TIMER1_CLR (~0x0004)
23
Thomas Petazzoni5ae9f5d2012-09-11 14:27:16 +020024#define IRQ_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0200)
Nicolas Pitrefdd8b072009-04-22 20:08:17 +010025#define IRQ_CAUSE_ERR_OFF 0x0000
26#define IRQ_CAUSE_LOW_OFF 0x0004
27#define IRQ_CAUSE_HIGH_OFF 0x0008
28#define IRQ_MASK_ERR_OFF 0x000c
29#define IRQ_MASK_LOW_OFF 0x0010
30#define IRQ_MASK_HIGH_OFF 0x0014
31
Thomas Petazzoni5ae9f5d2012-09-11 14:27:16 +020032#define TIMER_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0300)
33#define TIMER_PHYS_BASE (BRIDGE_PHYS_BASE + 0x0300)
Nicolas Pitrefdd8b072009-04-22 20:08:17 +010034
35#endif