1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright (c) 2016 Yang Ling <gnaygnil@gmail.com> 4 * 5 * Loongson 1 RTC timer Register Definitions. 6 */ 7 8 #ifndef __ASM_MACH_LOONGSON32_REGS_RTC_H 9 #define __ASM_MACH_LOONGSON32_REGS_RTC_H 10 11 #define LS1X_RTC_REG(x) \ 12 ((void __iomem *)KSEG1ADDR(LS1X_RTC_BASE + (x))) 13 14 #define LS1X_RTC_CTRL LS1X_RTC_REG(0x40) 15 16 #define RTC_EXTCLK_OK (BIT(5) | BIT(8)) 17 #define RTC_EXTCLK_EN BIT(8) 18 19 #endif /* __ASM_MACH_LOONGSON32_REGS_RTC_H */