CS5536 MFGPT Watchdog timer

43 views
Skip to first unread message

Michael Heide

unread,
Mar 25, 2013, 10:11:21 AM3/25/13
to loongs...@googlegroups.com
The Lemote Fuloong 2F has a AMD CS5536 Geode companion included. There's some MFGPT timers in it. Is it possible to use them as a Watchdog Timer in Linux? Like with Geode Systems? 

Thinking of an automatic reset in case of kernel crashes. 

(I wonder because CONFIG_GEODE_WDT depends on CONFIG_CS5535_MFGPT, which depends on x86 and Loongson is no x86. So I can't activate "AMD Geode CS5535/CS5536 Watchdog" on Loongson even there's some CS5536 Hardware. :-(
Remembers me on the SiS 315PRO / xgi V2  which is used with Fuloong F2: there are Binary Closed Source x86-only 3D GPU drivers...)

Roman Mamedov

unread,
Mar 25, 2013, 10:41:31 AM3/25/13
to loongs...@googlegroups.com, michae...@student.uni-siegen.de
CONFIG_CS5536_MFGPT enables and works fine on Yeeloong. Maybe you can modify
GEODE_WDT to use this support instead (not 5535)?

(You may have to remove "depends on BROKEN" in CS5536_MFGPT Kconfig.)

Also, did you try removing "depends on x86"? In general, don't be hesitant to
try changing Kconfig around, it's not set in stone, and some things might be
one way and not the other because no one considered the other way could be
better :)

--
With respect,
Roman
signature.asc

Michael Heide

unread,
Mar 25, 2013, 11:03:45 AM3/25/13
to Roman Mamedov, loongs...@googlegroups.com
Am Mon, 25 Mar 2013 20:41:31 +0600 schrieb Roman Mamedov <r...@romanrm.ru>:

> CONFIG_CS5536_MFGPT enables and works fine on Yeeloong. Maybe you can modify
> GEODE_WDT to use this support instead (not 5535)?
>
> (You may have to remove "depends on BROKEN" in CS5536_MFGPT Kconfig.)
>
> Also, did you try removing "depends on x86"? In general, don't be hesitant to
> try changing Kconfig around, it's not set in stone, and some things might be
> one way and not the other because no one considered the other way could be
> better :)

I agree with you, there's some cs5536_mfgpt.c file in
arch/mips/loongson/common/cs5536 which gets build (CONFIG_CS5536_MFGPT=y).

But exported symbols differ, structs differ, function names differ, etc.
I don't think this will work. But I'm not a coder. So maybe I simply should try this out. ;-)

Thanks Roman.

Regards
Michael

Fuxin Zhang

unread,
Mar 26, 2013, 4:53:04 AM3/26/13
to loongs...@googlegroups.com
于 2013/3/25 23:03, Michael Heide 写道:
> I agree with you, there's some cs5536_mfgpt.c file in
> arch/mips/loongson/common/cs5536 which gets build (CONFIG_CS5536_MFGPT=y).
>
> But exported symbols differ, structs differ, function names differ, etc.
> I don't think this will work. But I'm not a coder. So maybe I simply should try this out. ;-)
>
> Thanks Roman.
>
> Regards
> Michael
>
At least it can be used as a clock source. The related code should be
there for this. Watch dog is not tried but hopefully ok.

Regards

--
江苏中科梦兰电子科技有限公司
总经理 张福新
zha...@lemote.com

Reply all
Reply to author
Forward
0 new messages