-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIPS: Loongson1: Remove several redundant RTC-related macros
Move the RTC-related macros to regs-rtc.h. Signed-off-by: Yang Ling <gnaygnil@gmail.com> Cc: keguang.zhang@gmail.com Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14642/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
- Loading branch information
Yang Ling
authored and
Ralf Baechle
committed
Jan 3, 2017
1 parent
3ae34be
commit e31e450
Showing
3 changed files
with
38 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) 2016 Yang Ling <gnaygnil@gmail.com> | ||
* | ||
* Loongson 1 RTC timer Register Definitions. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
*/ | ||
|
||
#ifndef __ASM_MACH_LOONGSON32_REGS_RTC_H | ||
#define __ASM_MACH_LOONGSON32_REGS_RTC_H | ||
|
||
#define LS1X_RTC_REG(x) \ | ||
((void __iomem *)KSEG1ADDR(LS1X_RTC_BASE + (x))) | ||
|
||
#define LS1X_RTC_CTRL LS1X_RTC_REG(0x40) | ||
|
||
#define RTC_EXTCLK_OK (BIT(5) | BIT(8)) | ||
#define RTC_EXTCLK_EN BIT(8) | ||
|
||
#endif /* __ASM_MACH_LOONGSON32_REGS_RTC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters