]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx51evk: Add RTC support
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 24 Oct 2011 06:44:16 +0000 (06:44 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:19 +0000 (22:56 +0100)
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

index 2983a95e165bbefafec3cc7473e6441db46f572e..85cc87e3574d7cb1ca19d4ba6e49582141469072 100644 (file)
@@ -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
 
 #undef CONFIG_CMD_IMLS
 
+#define CONFIG_CMD_DATE
+
 #define CONFIG_BOOTDELAY       3
 
 #define CONFIG_ETHPRIME                "FEC0"