1 /* 2 * Copyright (c) 2016 Yang Ling <gnaygnil@gmail.com> 3 * 4 * Loongson 1 RTC timer Register Definitions. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your 9 * option) any later version. 10 */ 11 12 #ifndef __ASM_MACH_LOONGSON32_REGS_RTC_H 13 #define __ASM_MACH_LOONGSON32_REGS_RTC_H 14 15 #define LS1X_RTC_REG(x) \ 16 ((void __iomem *)KSEG1ADDR(LS1X_RTC_BASE + (x))) 17 18 #define LS1X_RTC_CTRL LS1X_RTC_REG(0x40) 19 20 #define RTC_EXTCLK_OK (BIT(5) | BIT(8)) 21 #define RTC_EXTCLK_EN BIT(8) 22 23 #endif /* __ASM_MACH_LOONGSON32_REGS_RTC_H */ 24