summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/board-kzm9g.c
diff options
context:
space:
mode:
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>2012-06-20 10:57:51 (GMT)
committerRafael J. Wysocki <rjw@sisk.pl>2012-06-21 10:02:56 (GMT)
commit080e0d1384a3fce16b7d5324dbfc47c136cc3573 (patch)
treeb35bdb5729d407670b8edb87d189b57ffaa6f806 /arch/arm/mach-shmobile/board-kzm9g.c
parentaccb90c8f3b5c22c9d2893c775e98abb4a0d6bd3 (diff)
downloadlinux-fsl-qoriq-080e0d1384a3fce16b7d5324dbfc47c136cc3573.tar.xz
ARM: shmobile: kzm9g: Support Real Time Clock
KZM-A9-GT board has RTC device r2025d at I2C channel 0 with slave address 0x64. This patch enables reading and writing hardware real time clock on KZM-A9-GT board. Interrupt is not yet supported. How to test this patch using user space command. Read RTC # hwclock -r Copy system clock to RTC # hwclock -w Shutdown and power off the board, and wait a while, then power on again. Check RTC still keeps correct date. Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp> Tested-by: Simon Horman <horms@verge.net.au> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/board-kzm9g.c')
-rw-r--r--arch/arm/mach-shmobile/board-kzm9g.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index 7523e9e..a5cb113 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
@@ -338,6 +338,9 @@ static struct pcf857x_platform_data pcf8575_pdata = {
static struct i2c_board_info i2c0_devices[] = {
{
I2C_BOARD_INFO("ak4648", 0x12),
+ },
+ {
+ I2C_BOARD_INFO("r2025sd", 0x32),
}
};