1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 226ad30e9SSimon Glass /* 326ad30e9SSimon Glass * Copyright 2015 Google, Inc 426ad30e9SSimon Glass */ 526ad30e9SSimon Glass 626ad30e9SSimon Glass #ifndef _ASM_ARCH_HARDWARE_H 726ad30e9SSimon Glass #define _ASM_ARCH_HARDWARE_H 826ad30e9SSimon Glass 9affd4a9fSSimon Glass #define RK_CLRSETBITS(clr, set) ((((clr) | (set)) << 16) | (set)) 1026ad30e9SSimon Glass #define RK_SETBITS(set) RK_CLRSETBITS(0, set) 1126ad30e9SSimon Glass #define RK_CLRBITS(clr) RK_CLRSETBITS(clr, 0) 1226ad30e9SSimon Glass 1326ad30e9SSimon Glass #define TIMER7_BASE 0xff810020 1426ad30e9SSimon Glass 15affd4a9fSSimon Glass #define rk_clrsetreg(addr, clr, set) \ 16affd4a9fSSimon Glass writel(((clr) | (set)) << 16 | (set), addr) 1726ad30e9SSimon Glass #define rk_clrreg(addr, clr) writel((clr) << 16, addr) 18affd4a9fSSimon Glass #define rk_setreg(addr, set) writel((set) << 16 | (set), addr) 1926ad30e9SSimon Glass 2026ad30e9SSimon Glass #endif 21