Home | History | Annotate | Download | only in arch-rockchip
      1 /* SPDX-License-Identifier: GPL-2.0+ */
      2 /*
      3  * Copyright 2015 Google, Inc
      4  */
      5 
      6 #ifndef _ASM_ARCH_HARDWARE_H
      7 #define _ASM_ARCH_HARDWARE_H
      8 
      9 #define RK_CLRSETBITS(clr, set)		((((clr) | (set)) << 16) | (set))
     10 #define RK_SETBITS(set)			RK_CLRSETBITS(0, set)
     11 #define RK_CLRBITS(clr)			RK_CLRSETBITS(clr, 0)
     12 
     13 #define TIMER7_BASE		0xff810020
     14 
     15 #define rk_clrsetreg(addr, clr, set)	\
     16 				writel(((clr) | (set)) << 16 | (set), addr)
     17 #define rk_clrreg(addr, clr)		writel((clr) << 16, addr)
     18 #define rk_setreg(addr, set)		writel((set) << 16 | (set), addr)
     19 
     20 #endif
     21