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
nexedi
linux
Commits
05728aec
Commit
05728aec
authored
Apr 30, 2009
by
Greg Ungerer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m68knommu: move CPU reset code for the 5272 ColdFire into its platform code
Signed-off-by:
Greg Ungerer
<
gerg@uclinux.org
>
parent
dd65b1de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
arch/m68knommu/platform/5272/config.c
arch/m68knommu/platform/5272/config.c
+14
-4
No files found.
arch/m68knommu/platform/5272/config.c
View file @
05728aec
...
...
@@ -12,7 +12,6 @@
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <asm/machdep.h>
#include <asm/coldfire.h>
...
...
@@ -21,8 +20,6 @@
/***************************************************************************/
void
coldfire_reset
(
void
);
extern
unsigned
int
mcf_timervector
;
extern
unsigned
int
mcf_profilevector
;
extern
unsigned
int
mcf_timerlevel
;
...
...
@@ -170,6 +167,19 @@ void mcf_settimericr(int timer, int level)
/***************************************************************************/
static
void
m5272_cpu_reset
(
void
)
{
local_irq_disable
();
/* Set watchdog to reset, and enabled */
__raw_writew
(
0
,
MCF_MBAR
+
MCFSIM_WIRR
);
__raw_writew
(
1
,
MCF_MBAR
+
MCFSIM_WRRR
);
__raw_writew
(
0
,
MCF_MBAR
+
MCFSIM_WCR
);
for
(;;)
/* wait for watchdog to timeout */
;
}
/***************************************************************************/
void
__init
config_BSP
(
char
*
commandp
,
int
size
)
{
#if defined (CONFIG_MOD5272)
...
...
@@ -194,7 +204,7 @@ void __init config_BSP(char *commandp, int size)
mcf_timervector
=
69
;
mcf_profilevector
=
70
;
mach_reset
=
coldfire
_reset
;
mach_reset
=
m5272_cpu
_reset
;
}
/***************************************************************************/
...
...
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