Patchwork [U-Boot,2/2] mx51evk: Add RTC support

login
register
mail settings
Submitter Fabio Estevam
Date Oct. 24, 2011, 4:37 p.m.
Message ID <1319474257-11851-2-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/121379/
State Accepted
Commit 9b6ede9229a7906cdc71877d994a92c03bf4c767
Headers show

Comments

Fabio Estevam - Oct. 24, 2011, 4:37 p.m.
MX51EVK has a MC13892 PMIC. Add RTC support.

Tested via 'date' command that reads the PMIC RTC registers:

MX51EVK U-Boot > date                                                           
Date: 1970-01-01 (Thursday)    Time:  0:40:35                                   

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 include/configs/mx51evk.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Stefano Babic - Oct. 25, 2011, 8:04 a.m.
On 10/24/2011 06:37 PM, Fabio Estevam wrote:
> MX51EVK has a MC13892 PMIC. Add RTC support.
> 
> Tested via 'date' command that reads the PMIC RTC registers:
> 
> MX51EVK U-Boot > date                                                           
> Date: 1970-01-01 (Thursday)    Time:  0:40:35                                   
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  include/configs/mx51evk.h |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h
> index 2c449b8..67b5f0b 100644
> --- a/include/configs/mx51evk.h
> +++ b/include/configs/mx51evk.h
> @@ -79,6 +79,7 @@
>  #define CONFIG_FSL_PMIC_CLK	2500000
>  #define CONFIG_FSL_PMIC_MODE	(SPI_MODE_0 | SPI_CS_HIGH)
>  #define CONFIG_FSL_PMIC_BITLEN	32
> +#define CONFIG_RTC_MC13XXX
>  
>  /*
>   * MMC Configs
> @@ -124,6 +125,8 @@
>  
>  #undef CONFIG_CMD_IMLS
>  
> +#define CONFIG_CMD_DATE
> +
>  #define CONFIG_BOOTDELAY	3
>  
>  #define CONFIG_ETHPRIME		"FEC0"

After fixing PATCH 1/2,

Acked-by: Stefano Babic <sbabic@denx.de>

Best regrads,
Stefano Babic

Patch

diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h
index 2c449b8..67b5f0b 100644
--- a/include/configs/mx51evk.h
+++ b/include/configs/mx51evk.h
@@ -79,6 +79,7 @@ 
 #define CONFIG_FSL_PMIC_CLK	2500000
 #define CONFIG_FSL_PMIC_MODE	(SPI_MODE_0 | SPI_CS_HIGH)
 #define CONFIG_FSL_PMIC_BITLEN	32
+#define CONFIG_RTC_MC13XXX
 
 /*
  * MMC Configs
@@ -124,6 +125,8 @@ 
 
 #undef CONFIG_CMD_IMLS
 
+#define CONFIG_CMD_DATE
+
 #define CONFIG_BOOTDELAY	3
 
 #define CONFIG_ETHPRIME		"FEC0"