4 * ADM5120 specific reset routines
6 * Copyright (C) 2007 OpenWrt.org
7 * Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
9 * This code was based on the ADM5120 specific port of the Linux 2.6.10 kernel
10 * done by Jeroen Vreeken
11 * Copyright (C) 2005 Jeroen Vreeken (pe1rxq@amsat.org)
13 * Jeroen's code was based on the Linux 2.4.xx source codes found in various
14 * tarballs released by Edimax for it's ADM5120 based devices.
15 * Copyright (C) ADMtek Incorporated
17 * This program is free software; you can redistribute it and/or modify it
18 * under the terms of the GNU General Public License version 2 as published
19 * by the Free Software Foundation.
23 #include <linux/types.h>
24 #include <linux/kernel.h>
25 #include <linux/init.h>
27 #include <linux/irq.h>
30 #include <asm/addrspace.h>
32 #include <adm5120_info.h>
33 #include <adm5120_defs.h>
34 #include <adm5120_switch.h>
36 void (*adm5120_board_reset
)(void);
38 void adm5120_restart(char *command
)
40 /* TODO: stop switch before reset */
42 if (adm5120_board_reset
)
43 adm5120_board_reset();
45 SW_WRITE_REG(SWITCH_REG_SOFT_RESET
, 1);
48 void adm5120_halt(void)
This page took 0.047161 seconds and 5 git commands to generate.