Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Sat, 8 Nov 2008
 09:37:30 -0800
Received: from ausesmta2-3.messageone.com ([64.20.241.45]) by mail.onstor.com
 with Microsoft SMTPSVC(6.0.3790.3959);	 Sat, 8 Nov 2008 04:10:40 -0800
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])	by
 ausesmta2-3.messageone.com (8.13.8/8.13.8) with ESMTP id mA8CAdmB024678	for
 <andy.sharp@onstor.com>; Sat, 8 Nov 2008 06:10:39 -0600
Received: from localhost.localdomain ([127.0.0.1]:61388 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S23391486AbYKHMKT
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Sat, 8 Nov 2008 12:10:19 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 08 Nov 2008 12:10:03
 +0000 (GMT)
Received: from fnoeppeil48.netpark.at ([217.175.205.176]:40838 "EHLO
	roarinelk.homelinux.net") by ftp.linux-mips.org with ESMTP	id
 S23391432AbYKHMIw (ORCPT <rfc822;linux-mips@linux-mips.org>);	Sat, 8 Nov 2008
 12:08:52 +0000
Received: (qmail 14703 invoked from network); 8 Nov 2008 13:06:30 +0100
Received: from scarran.roarinelk.net (HELO localhost.localdomain)
 (192.168.0.242)  by 192.168.0.1 with SMTP; 8 Nov 2008 13:06:30 +0100
From: Manuel Lauss <mano@roarinelk.homelinux.net>
To: Linux-MIPS <linux-mips@linux-mips.org>
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>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Sat, 8 Nov 2008 04:08:50 -0800
Subject: [PATCH 3/3] Alchemy: allow boards to override default
 reset/poweroff functions.
Thread-Topic: [PATCH 3/3] Alchemy: allow boards to override default
 reset/poweroff functions.
Thread-Index: AclByK+Agou24uHmQ7O7yXnU5hBlYA==
Message-ID:
 <96acd0ad43befb07726bada5ff84ee252050a435.1226143942.git.mano@roarinelk.homelinux.net>
References: <cover.1226143942.git.mano@roarinelk.homelinux.net>
In-Reply-To: <cover.1226143942.git.mano@roarinelk.homelinux.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 08 Nov 2008 12:10:40.0546 (UTC)
 FILETIME=[04593020:01C9419B]
errors-to: linux-mips-bounce@linux-mips.org
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: bRoyxa7UQjLX9M5dAcfK7Q==
x-messageone-virus-version: vendor=fsecure
 engine=4.65.7400:2.4.4,1.2.40,4.0.164
 definitions=2008-11-08_01:2008-11-06,2008-11-08,2008-11-08 signatures=0
x-messageone-virus-scanned: Clean
x-messageone-envelope-sender: linux-mips-bounce@linux-mips.org
x-messageone-spam-details: rule=m773emszm_notspam policy=m773emszm score=0
 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam
 adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0811080043
x-messageone-spam-score: 0
x-messageone-spam-bar:
x-list: linux-mips
x-archive-position: 21246
x-ecartis-version: Ecartis v1.0.0
x-original-sender: mano@roarinelk.homelinux.net
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

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/se=
tup.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 =3D cur_cpu_spec[0];
=20
+	_machine_restart =3D au1000_restart;
+	_machine_halt =3D au1000_halt;
+	pm_power_off =3D au1000_power_off;
+
 	board_setup();  /* board specific setup */
=20
 	prid =3D 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] */
=20
-	_machine_restart =3D au1000_restart;
-	_machine_halt =3D au1000_halt;
-	pm_power_off =3D au1000_power_off;
-
 	/* IO/MEM resources. */
 	set_io_port_base(0);
 	ioport_resource.start =3D IOPORT_RESOURCE_START;
--=20
1.6.0.3


