162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Parts of this file are based on Ralink's 2.6.21 BSP 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org> 762306a36Sopenharmony_ci * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> 862306a36Sopenharmony_ci * Copyright (C) 2013 John Crispin <john@phrozen.org> 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#ifndef _RT288X_REGS_H_ 1262306a36Sopenharmony_ci#define _RT288X_REGS_H_ 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci#define IOMEM(x) ((void __iomem *)(KSEG1ADDR(x))) 1562306a36Sopenharmony_ci#define RT2880_SYSC_BASE IOMEM(0x00300000) 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#define SYSC_REG_CHIP_NAME0 0x00 1862306a36Sopenharmony_ci#define SYSC_REG_CHIP_NAME1 0x04 1962306a36Sopenharmony_ci#define SYSC_REG_CHIP_ID 0x0c 2062306a36Sopenharmony_ci#define SYSC_REG_SYSTEM_CONFIG 0x10 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define RT2880_CHIP_NAME0 0x38325452 2362306a36Sopenharmony_ci#define RT2880_CHIP_NAME1 0x20203038 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#define CHIP_ID_ID_MASK 0xff 2662306a36Sopenharmony_ci#define CHIP_ID_ID_SHIFT 8 2762306a36Sopenharmony_ci#define CHIP_ID_REV_MASK 0xff 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci#define RT2880_SDRAM_BASE 0x08000000 3062306a36Sopenharmony_ci#define RT2880_MEM_SIZE_MIN 2 3162306a36Sopenharmony_ci#define RT2880_MEM_SIZE_MAX 128 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci#endif 34