Patchwork [U-Boot,25/31] M28: Enable the internal RTC instead of the M41T62

login
register
mail settings
Submitter Marek Vasut
Date Sept. 8, 2011, 8:42 p.m.
Message ID <1315514579-19215-26-git-send-email-marek.vasut@gmail.com>
Download mbox | patch
Permalink /patch/113977/
State Changes Requested
Headers show

Comments

Marek Vasut - Sept. 8, 2011, 8:42 p.m.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
---
 include/configs/m28evk.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Stefano Babic - Sept. 9, 2011, 12:45 p.m.
On 09/08/2011 10:42 PM, Marek Vasut wrote:
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Detlev Zundel <dzu@denx.de>
> ---

Only to remember: we have already agree you will squash your patches
together regarding m28evk. I will only set this patch (and the other
similar patches) in state "Change requested" on patchwork.

Best regards,
Stefano Babic
Marek Vasut - Sept. 9, 2011, 12:51 p.m.
On Friday, September 09, 2011 02:45:16 PM Stefano Babic wrote:
> On 09/08/2011 10:42 PM, Marek Vasut wrote:
> > Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> > Cc: Stefano Babic <sbabic@denx.de>
> > Cc: Wolfgang Denk <wd@denx.de>
> > Cc: Detlev Zundel <dzu@denx.de>
> > ---
> 
> Only to remember: we have already agree you will squash your patches
> together regarding m28evk. I will only set this patch (and the other
> similar patches) in state "Change requested" on patchwork.

Yea sure, I'll squash them ... have it like:
* Add CPU support
* ... drivers ...
* M28EVK
* README.m28

> 
> Best regards,
> Stefano Babic
Stefano Babic - Sept. 9, 2011, 12:55 p.m.
On 09/09/2011 02:51 PM, Marek Vasut wrote:
> On Friday, September 09, 2011 02:45:16 PM Stefano Babic wrote:
>> On 09/08/2011 10:42 PM, Marek Vasut wrote:
>>> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
>>> Cc: Stefano Babic <sbabic@denx.de>
>>> Cc: Wolfgang Denk <wd@denx.de>
>>> Cc: Detlev Zundel <dzu@denx.de>
>>> ---
>>
>> Only to remember: we have already agree you will squash your patches
>> together regarding m28evk. I will only set this patch (and the other
>> similar patches) in state "Change requested" on patchwork.
> 
> Yea sure, I'll squash them ... have it like:
> * Add CPU support
> * ... drivers ...
> * M28EVK
> * README.m28

That's fine with me.

Best regards,
Stefano Babic

Patch

diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index 5cf62a2..dbeb37e 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -166,10 +166,16 @@ 
  * RTC
  */
 #ifdef	CONFIG_CMD_DATE
+/* Use the internal RTC in the MXS chip */
+#define	CONFIG_RTC_INTERNAL
+#ifdef	CONFIG_RTC_INTERNAL
+#define	CONFIG_RTC_MXS
+#else
 #define	CONFIG_RTC_M41T62
 #define	CONFIG_SYS_I2C_RTC_ADDR		0x68
 #define	CONFIG_SYS_M41T11_BASE_YEAR	2000
 #endif
+#endif
 
 /*
  * SPI