Patchwork [U-Boot,13/31] M28: Enable I2C, EEPROM and RTC

login
register
mail settings
Submitter Marek Vasut
Date Sept. 8, 2011, 8:42 p.m.
Message ID <1315514579-19215-14-git-send-email-marek.vasut@gmail.com>
Download mbox | patch
Permalink /patch/113964/
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: Heiko Schocher <hs@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
---
 include/configs/m28evk.h |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)
Heiko Schocher - Sept. 9, 2011, 5:45 a.m.
Hello Marek,

Marek Vasut wrote:
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Heiko Schocher <hs@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Detlev Zundel <dzu@denx.de>
> ---
>  include/configs/m28evk.h |   29 +++++++++++++++++++++++++++++
>  1 files changed, 29 insertions(+), 0 deletions(-)

Acked-by: Heiko Schocher<hs@denx.de>

bye,
Heiko

Patch

diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index 9e0d705..7e664fc 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -44,9 +44,12 @@ 
 #define	CONFIG_DOS_PARTITION
 
 #define	CONFIG_CMD_CACHE
+#define	CONFIG_CMD_DATE
 #define	CONFIG_CMD_DHCP
+#define	CONFIG_CMD_EEPROM
 #define	CONFIG_CMD_EXT2
 #define	CONFIG_CMD_FAT
+#define	CONFIG_CMD_I2C
 #define	CONFIG_CMD_MII
 #define	CONFIG_CMD_MMC
 #define	CONFIG_CMD_NET
@@ -120,6 +123,32 @@ 
 #endif
 
 /*
+ * I2C
+ */
+#ifdef	CONFIG_CMD_I2C
+#define	CONFIG_I2C_MXS
+#define	CONFIG_HARD_I2C
+#define	CONFIG_SYS_I2C_SPEED		400000
+#endif
+
+/*
+ * EEPROM
+ */
+#ifdef	CONFIG_CMD_EEPROM
+#define	CONFIG_SYS_I2C_MULTI_EEPROMS
+#define	CONFIG_SYS_I2C_EEPROM_ADDR_LEN	2
+#endif
+
+/*
+ * RTC
+ */
+#ifdef	CONFIG_CMD_DATE
+#define	CONFIG_RTC_M41T62
+#define	CONFIG_SYS_I2C_RTC_ADDR		0x68
+#define	CONFIG_SYS_M41T11_BASE_YEAR	2000
+#endif
+
+/*
  * Boot Linux
  */
 #define	CONFIG_CMDLINE_TAG