drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / mips / include / asm / mach-ralink / rt288x.h
blob66d190358e3a247a1a912bf762a1d29a714fd268
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
4 * Parts of this file are based on Ralink's 2.6.21 BSP
6 * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
7 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
8 * Copyright (C) 2013 John Crispin <john@phrozen.org>
9 */
11 #ifndef _RT288X_REGS_H_
12 #define _RT288X_REGS_H_
14 #define IOMEM(x) ((void __iomem *)(KSEG1ADDR(x)))
15 #define RT2880_SYSC_BASE IOMEM(0x00300000)
17 #define SYSC_REG_CHIP_NAME0 0x00
18 #define SYSC_REG_CHIP_NAME1 0x04
19 #define SYSC_REG_CHIP_ID 0x0c
20 #define SYSC_REG_SYSTEM_CONFIG 0x10
22 #define RT2880_CHIP_NAME0 0x38325452
23 #define RT2880_CHIP_NAME1 0x20203038
25 #define CHIP_ID_ID_MASK 0xff
26 #define CHIP_ID_ID_SHIFT 8
27 #define CHIP_ID_REV_MASK 0xff
29 #define RT2880_SDRAM_BASE 0x08000000
30 #define RT2880_MEM_SIZE_MIN 2
31 #define RT2880_MEM_SIZE_MAX 128
33 #endif