Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
38c9fb74
Commit
38c9fb74
authored
Sep 15, 2009
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: Fulong: Convert reset initialization to initcall.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
1f320d05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
arch/mips/include/asm/mips-boards/generic.h
arch/mips/include/asm/mips-boards/generic.h
+0
-2
arch/mips/lemote/lm2e/reset.c
arch/mips/lemote/lm2e/reset.c
+6
-1
arch/mips/lemote/lm2e/setup.c
arch/mips/lemote/lm2e/setup.c
+0
-3
No files found.
arch/mips/include/asm/mips-boards/generic.h
View file @
38c9fb74
...
@@ -87,8 +87,6 @@
...
@@ -87,8 +87,6 @@
extern
int
mips_revision_sconid
;
extern
int
mips_revision_sconid
;
extern
void
mips_reboot_setup
(
void
);
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
extern
void
mips_pcibios_init
(
void
);
extern
void
mips_pcibios_init
(
void
);
#else
#else
...
...
arch/mips/lemote/lm2e/reset.c
View file @
38c9fb74
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
* Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
* Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
* Author: Fuxin Zhang, zhangfx@lemote.com
* Author: Fuxin Zhang, zhangfx@lemote.com
*/
*/
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/pm.h>
#include <asm/reboot.h>
#include <asm/reboot.h>
...
@@ -33,9 +34,13 @@ static void loongson2e_power_off(void)
...
@@ -33,9 +34,13 @@ static void loongson2e_power_off(void)
loongson2e_halt
();
loongson2e_halt
();
}
}
void
mips_reboot_setup
(
void
)
static
int
__init
mips_reboot_setup
(
void
)
{
{
_machine_restart
=
loongson2e_restart
;
_machine_restart
=
loongson2e_restart
;
_machine_halt
=
loongson2e_halt
;
_machine_halt
=
loongson2e_halt
;
pm_power_off
=
loongson2e_power_off
;
pm_power_off
=
loongson2e_power_off
;
return
0
;
}
}
arch_initcall
(
mips_reboot_setup
);
arch/mips/lemote/lm2e/setup.c
View file @
38c9fb74
...
@@ -41,8 +41,6 @@
...
@@ -41,8 +41,6 @@
#include <linux/screen_info.h>
#include <linux/screen_info.h>
#endif
#endif
extern
void
mips_reboot_setup
(
void
);
unsigned
long
cpu_clock_freq
;
unsigned
long
cpu_clock_freq
;
unsigned
long
bus_clock
;
unsigned
long
bus_clock
;
unsigned
int
memsize
;
unsigned
int
memsize
;
...
@@ -77,7 +75,6 @@ void __init plat_mem_setup(void)
...
@@ -77,7 +75,6 @@ void __init plat_mem_setup(void)
{
{
set_io_port_base
((
unsigned
long
)
ioremap
(
LOONGSON2E_IO_PORT_BASE
,
set_io_port_base
((
unsigned
long
)
ioremap
(
LOONGSON2E_IO_PORT_BASE
,
IO_SPACE_LIMIT
-
LOONGSON2E_PCI_IO_START
+
1
));
IO_SPACE_LIMIT
-
LOONGSON2E_PCI_IO_START
+
1
));
mips_reboot_setup
();
__wbflush
=
wbflush_loongson2e
;
__wbflush
=
wbflush_loongson2e
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment