1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

Add a watchdog driver for rdc321x (needs testing) and try to detect the rdc cpu

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8505 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2007-08-27 10:37:12 +00:00
parent 2fddc9a438
commit 1dfc3f9393
8 changed files with 351 additions and 11 deletions

View File

@@ -31,6 +31,8 @@
#include <asm/gpio.h>
#define PFX "rdc321x: "
/* FIXME : Flash */
static struct resource rdc_flash_resource[] = {
[0] = {
@@ -54,17 +56,26 @@ static struct platform_device rdc321x_leds = {
.num_resources = 0,
};
static struct platform_device rdc321x_wdt = {
.name = "rdc321x-wdt",
.id = -1,
.num_resources = 0,
};
static int __init rdc_board_setup(void)
{
int err;
err = platform_device_register(&rdc_flash_device);
if (err)
printk(KERN_ALERT "rdc321x: failed to register flash\n");
printk(KERN_ALERT PFX "failed to register flash\n");
err = platform_device_register(&rdc321x_leds);
if (err)
printk(KERN_ALERT "rdc321x: failed to register LEDS\n");
printk(KERN_ALERT PFX "failed to register LEDS\n");
err = platform_device_register(&rdc321x_wdt);
printk(KERN_ALERT PFX "failed to register watchdog\n");
return err;
}