18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2015 John Crispin <john@phrozen.org>
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef _MT7621_REGS_H_
88c2ecf20Sopenharmony_ci#define _MT7621_REGS_H_
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define MT7621_PALMBUS_BASE		0x1C000000
118c2ecf20Sopenharmony_ci#define MT7621_PALMBUS_SIZE		0x03FFFFFF
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define MT7621_SYSC_BASE		0x1E000000
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define SYSC_REG_CHIP_NAME0		0x00
168c2ecf20Sopenharmony_ci#define SYSC_REG_CHIP_NAME1		0x04
178c2ecf20Sopenharmony_ci#define SYSC_REG_CHIP_REV		0x0c
188c2ecf20Sopenharmony_ci#define SYSC_REG_SYSTEM_CONFIG0		0x10
198c2ecf20Sopenharmony_ci#define SYSC_REG_SYSTEM_CONFIG1		0x14
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#define CHIP_REV_PKG_MASK		0x1
228c2ecf20Sopenharmony_ci#define CHIP_REV_PKG_SHIFT		16
238c2ecf20Sopenharmony_ci#define CHIP_REV_VER_MASK		0xf
248c2ecf20Sopenharmony_ci#define CHIP_REV_VER_SHIFT		8
258c2ecf20Sopenharmony_ci#define CHIP_REV_ECO_MASK		0xf
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#define MT7621_DRAM_BASE                0x0
288c2ecf20Sopenharmony_ci#define MT7621_DDR2_SIZE_MIN		32
298c2ecf20Sopenharmony_ci#define MT7621_DDR2_SIZE_MAX		256
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#define MT7621_CHIP_NAME0		0x3637544D
328c2ecf20Sopenharmony_ci#define MT7621_CHIP_NAME1		0x20203132
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif
35