| To: | Linux-MIPS <linux-mips@linux-mips.org> |
|---|---|
| Subject: | [PATCH 3/3] Alchemy: allow boards to override default reset/poweroff functions. |
| From: | Manuel Lauss <mano@roarinelk.homelinux.net> |
| Date: | Sat, 8 Nov 2008 13:08:50 +0100 |
| Cc: | Sergei Shtylyov <sshtylyov@ru.mvista.com>, Florian Fainelli <florian@openwrt.org>, Bruno Randolf <bruno.randolf@4g-systems.biz>, Manuel Lauss <mano@roarinelk.homelinux.net> |
| In-reply-to: | <b66aea73a24b5eb990339845892f4a43ccd7efaa.1226143942.git.mano@roarinelk.homelinux.net> |
| In-reply-to: | <cover.1226143942.git.mano@roarinelk.homelinux.net> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <cover.1226143942.git.mano@roarinelk.homelinux.net> <0b1dcd4090411d59e2272ca94da0fb4f5a4bbceb.1226143942.git.mano@roarinelk.homelinux.net> <b66aea73a24b5eb990339845892f4a43ccd7efaa.1226143942.git.mano@roarinelk.homelinux.net> |
| References: | <cover.1226143942.git.mano@roarinelk.homelinux.net> |
| Sender: | linux-mips-bounce@linux-mips.org |
Not all boards may want to use the alchemy reset/poweroff functions;
set the defaults before calling board init code so boards can override
them if necessary.
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
---
arch/mips/alchemy/common/setup.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/mips/alchemy/common/setup.c b/arch/mips/alchemy/common/setup.c
index cd94985..b533d91 100644
--- a/arch/mips/alchemy/common/setup.c
+++ b/arch/mips/alchemy/common/setup.c
@@ -51,6 +51,10 @@ void __init plat_mem_setup(void)
set_cpuspec();
sp = cur_cpu_spec[0];
+ _machine_restart = au1000_restart;
+ _machine_halt = au1000_halt;
+ pm_power_off = au1000_power_off;
+
board_setup(); /* board specific setup */
prid = read_c0_prid();
@@ -78,10 +82,6 @@ void __init plat_mem_setup(void)
/* Clear to obtain best system bus performance */
clear_c0_config(1 << 19); /* Clear Config[OD] */
- _machine_restart = au1000_restart;
- _machine_halt = au1000_halt;
- pm_power_off = au1000_power_off;
-
/* IO/MEM resources. */
set_io_port_base(0);
ioport_resource.start = IOPORT_RESOURCE_START;
--
1.6.0.3
|
| Previous by Date: | [PATCH 1/3] Alchemy: merge small board files into single files, Manuel Lauss |
|---|---|
| Next by Date: | [PATCH] Alchemy: revamp IRQ code., Manuel Lauss |
| Previous by Thread: | [PATCH 2/3] Alchemy: Move evalboard code to common directory, Manuel Lauss |
| Next by Thread: | Re: [PATCH 2/3] Alchemy: Move evalboard code to common directory, Kevin Hickey |
| Indexes: | [Date] [Thread] [Top] [All Lists] |