[linux-m32r-ja:00286] Re: [Linux-m32r:00133] [PATCH] rtc: ds1302 rtc support

Hayato Fujiwara fujiwara @ linux-m32r.org
2007年 11月 19日 (月) 16:11:07 JST


藤原です.

ふと,Linux-m32rのほうに流れていたDS1302ドライバのパッチをM32R用に移植
してみました.
http://www.linux-m32r.org/pipermail/linux-m32r/2007-November/000132.html
移植したのはいいのですが,M32700UTはRTCへのアクセスがPLD経由で行なうた
めSecureEdgeの枠組とはずいぶん違ったものになってしまいました.とりあえ
ずパッチを投げはしますが,様子見といったところでしょうか.
# defineとかもかなり適当です.
使う場合はもとのpatchをあてた後に添付のpatchをあてて下さい.

---

$ diffstat rtc-ds1302_m32r.patch 
 arch/m32r/platforms/m32700ut/setup.c |    6 ++
 drivers/rtc/Kconfig                  |    2 
 drivers/rtc/rtc-ds1302.c             |   76 +++++++++++++++++++++++++++++++++++
 include/asm-m32r/rtc.h               |   26 -----------
 4 files changed, 84 insertions(+), 26 deletions(-)

At Wed, 07 Nov 2007 20:35:07 +0900,
Paul Mundt wrote:
> 
> This adds a basic ds1302 RTC driver, which is basically a cleanup and
> move of the in-tree SH SecureEdge5410 code (which is currently located
> in arch/sh/board/snapgear/rtc.c) to drivers/rtc.
> 
> This aims to be a building block that the M32R and CRIS code can
> be worked on top of, so we can get rid of drivers/char/ds1302.c and
> arch/cris/arch-v10/drivers/ds1302.c respectively, though more work is
> needed for this.
> 
> Signed-off-by: Paul Mundt <lethal @ linux-sh.org>
> 
> ---
> 
>  drivers/rtc/Kconfig      |    6 +
>  drivers/rtc/Makefile     |    1 
>  drivers/rtc/rtc-ds1302.c |  262 +++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 269 insertions(+)
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: rtc-ds1302_m32r.patch
型:         application/octet-stream
サイズ:     6210 バイト
説明:       無し
URL:        http://www.linux-m32r.org/pipermail/linux-m32r-ja/attachments/20071119/7ab0871b/attachment.obj 


linux-m32r-ja メーリングリストの案内