* [PATCH] MIPS: TXx9: remove useless RTC definitions
@ 2018-07-26 16:40 Alexandre Belloni
2018-07-26 17:40 ` Paul Burton
0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Belloni @ 2018-07-26 16:40 UTC (permalink / raw)
To: James Hogan, Paul Burton
Cc: Ralf Baechle, linux-kernel, linux-mips, Alexandre Belloni
The RTC definitions were moved to the driver, remove them from the platform
header.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
arch/mips/include/asm/txx9/tx4939.h | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/arch/mips/include/asm/txx9/tx4939.h b/arch/mips/include/asm/txx9/tx4939.h
index 6d667087f2aa..f173bef405d3 100644
--- a/arch/mips/include/asm/txx9/tx4939.h
+++ b/arch/mips/include/asm/txx9/tx4939.h
@@ -101,13 +101,6 @@ struct tx4939_irc_reg {
struct tx4939_le_reg maskext;
};
-struct tx4939_rtc_reg {
- __u32 ctl;
- __u32 adr;
- __u32 dat;
- __u32 tbc;
-};
-
struct tx4939_crypto_reg {
struct tx4939_le_reg csr;
struct tx4939_le_reg idesptr;
@@ -369,26 +362,6 @@ struct tx4939_vpc_desc {
#define TX4939_CLKCTR_SIO0RST 0x00000002
#define TX4939_CLKCTR_CYPRST 0x00000001
-/*
- * RTC
- */
-#define TX4939_RTCCTL_ALME 0x00000080
-#define TX4939_RTCCTL_ALMD 0x00000040
-#define TX4939_RTCCTL_BUSY 0x00000020
-
-#define TX4939_RTCCTL_COMMAND 0x00000007
-#define TX4939_RTCCTL_COMMAND_NOP 0x00000000
-#define TX4939_RTCCTL_COMMAND_GETTIME 0x00000001
-#define TX4939_RTCCTL_COMMAND_SETTIME 0x00000002
-#define TX4939_RTCCTL_COMMAND_GETALARM 0x00000003
-#define TX4939_RTCCTL_COMMAND_SETALARM 0x00000004
-
-#define TX4939_RTCTBC_PM 0x00000080
-#define TX4939_RTCTBC_COMP 0x0000007f
-
-#define TX4939_RTC_REG_RAMSIZE 0x00000100
-#define TX4939_RTC_REG_RWBSIZE 0x00000006
-
/*
* CRYPTO
*/
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: TXx9: remove useless RTC definitions
2018-07-26 16:40 [PATCH] MIPS: TXx9: remove useless RTC definitions Alexandre Belloni
@ 2018-07-26 17:40 ` Paul Burton
2018-07-26 19:35 ` Alexandre Belloni
0 siblings, 1 reply; 3+ messages in thread
From: Paul Burton @ 2018-07-26 17:40 UTC (permalink / raw)
To: Alexandre Belloni; +Cc: James Hogan, Ralf Baechle, linux-kernel, linux-mips
Hi Alexandre,
On Thu, Jul 26, 2018 at 06:40:54PM +0200, Alexandre Belloni wrote:
> The RTC definitions were moved to the driver, remove them from the platform
> header.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
> arch/mips/include/asm/txx9/tx4939.h | 27 ---------------------------
> 1 file changed, 27 deletions(-)
Thanks - applied to mips-next for 4.19, with a small change to also
remove the tx4939_rtc_reg macro.
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: TXx9: remove useless RTC definitions
2018-07-26 17:40 ` Paul Burton
@ 2018-07-26 19:35 ` Alexandre Belloni
0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Belloni @ 2018-07-26 19:35 UTC (permalink / raw)
To: Paul Burton; +Cc: James Hogan, Ralf Baechle, linux-kernel, linux-mips
On 26/07/2018 10:40:15-0700, Paul Burton wrote:
> Hi Alexandre,
>
> On Thu, Jul 26, 2018 at 06:40:54PM +0200, Alexandre Belloni wrote:
> > The RTC definitions were moved to the driver, remove them from the platform
> > header.
> >
> > Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> > ---
> > arch/mips/include/asm/txx9/tx4939.h | 27 ---------------------------
> > 1 file changed, 27 deletions(-)
>
> Thanks - applied to mips-next for 4.19, with a small change to also
> remove the tx4939_rtc_reg macro.
>
Ah, thanks, I missed that one as it was not used.
--
Alexandre Belloni, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-26 19:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 16:40 [PATCH] MIPS: TXx9: remove useless RTC definitions Alexandre Belloni
2018-07-26 17:40 ` Paul Burton
2018-07-26 19:35 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).