* [PATCH] ARM: shmobile: kzm9g: Support Real Time Clock
@ 2012-06-19 5:30 Tetsuyuki Kobayashi
2012-06-19 8:06 ` Simon Horman
2012-06-20 6:10 ` Kuninori Morimoto
0 siblings, 2 replies; 3+ messages in thread
From: Tetsuyuki Kobayashi @ 2012-06-19 5:30 UTC (permalink / raw)
To: linux-sh
Hello, this is my first patch to this ML.
This depends on Morimoto-san's
[PATCH 0/27] ARM: shmobile: resend patch set
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>
---
arch/arm/configs/kzm9g_defconfig | 1 +
arch/arm/mach-shmobile/board-kzm9g.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/arch/arm/configs/kzm9g_defconfig b/arch/arm/configs/kzm9g_defconfig
index eeeb29f..7b2eecd 100644
--- a/arch/arm/configs/kzm9g_defconfig
+++ b/arch/arm/configs/kzm9g_defconfig
@@ -113,6 +113,7 @@ CONFIG_MMC_SH_MMCIF=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_RS5C372=y
CONFIG_DMADEVICES=y
CONFIG_SH_DMAE=y
CONFIG_ASYNC_TX_DMA=y
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index 3687f3b..ab6207b 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
@@ -531,6 +531,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),
}
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: shmobile: kzm9g: Support Real Time Clock
2012-06-19 5:30 [PATCH] ARM: shmobile: kzm9g: Support Real Time Clock Tetsuyuki Kobayashi
@ 2012-06-19 8:06 ` Simon Horman
2012-06-20 6:10 ` Kuninori Morimoto
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2012-06-19 8:06 UTC (permalink / raw)
To: linux-sh
On Tue, Jun 19, 2012 at 02:30:38PM +0900, Tetsuyuki Kobayashi wrote:
> Hello, this is my first patch to this ML.
>
> This depends on Morimoto-san's
> [PATCH 0/27] ARM: shmobile: resend patch set
>
>
>
>
> 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>
Hi Kobayashi-san,
I have verified that your patch works using the hwclock commands above.
Tested-by: Simon Horman <horms@verge.net.au>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: shmobile: kzm9g: Support Real Time Clock
2012-06-19 5:30 [PATCH] ARM: shmobile: kzm9g: Support Real Time Clock Tetsuyuki Kobayashi
2012-06-19 8:06 ` Simon Horman
@ 2012-06-20 6:10 ` Kuninori Morimoto
1 sibling, 0 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2012-06-20 6:10 UTC (permalink / raw)
To: linux-sh
Hi
> 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>
> ---
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Best regards
---
Kuninori Morimoto
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-20 6:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-19 5:30 [PATCH] ARM: shmobile: kzm9g: Support Real Time Clock Tetsuyuki Kobayashi
2012-06-19 8:06 ` Simon Horman
2012-06-20 6:10 ` Kuninori Morimoto
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.