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
384feb91
Commit
384feb91
authored
Apr 30, 2009
by
Greg Ungerer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m68knommu: add CPU reset code for the 532x ColdFire
Signed-off-by:
Greg Ungerer
<
gerg@uclinux.org
>
parent
6f5aa7ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
arch/m68k/include/asm/m532xsim.h
arch/m68k/include/asm/m532xsim.h
+12
-0
arch/m68knommu/platform/532x/config.c
arch/m68knommu/platform/532x/config.c
+9
-3
No files found.
arch/m68k/include/asm/m532xsim.h
View file @
384feb91
...
...
@@ -125,6 +125,18 @@
#define ACR_CM_OFF_IMP (3<<5)
#define ACR_WPROTECT (1<<2)
/*********************************************************************
*
* Reset Controller Module
*
*********************************************************************/
#define MCF_RCR 0xFC0A0000
#define MCF_RSR 0xFC0A0001
#define MCF_RCR_SWRESET 0x80
/* Software reset bit */
#define MCF_RCR_FRCSTOUT 0x40
/* Force external reset */
/*********************************************************************
*
* Inter-IC (I2C) Module
...
...
arch/m68knommu/platform/532x/config.c
View file @
384feb91
...
...
@@ -31,8 +31,6 @@
/***************************************************************************/
void
coldfire_reset
(
void
);
extern
unsigned
int
mcf_timervector
;
extern
unsigned
int
mcf_profilevector
;
extern
unsigned
int
mcf_timerlevel
;
...
...
@@ -164,6 +162,14 @@ void mcf_settimericr(unsigned int timer, unsigned int level)
/***************************************************************************/
static
void
m532x_cpu_reset
(
void
)
{
local_irq_disable
();
__raw_writeb
(
MCF_RCR_SWRESET
,
MCF_RCR
);
}
/***************************************************************************/
void
__init
config_BSP
(
char
*
commandp
,
int
size
)
{
mcf_setimr
(
MCFSIM_IMR_MASKALL
);
...
...
@@ -181,7 +187,7 @@ void __init config_BSP(char *commandp, int size)
mcf_timervector
=
64
+
32
;
mcf_profilevector
=
64
+
33
;
mach_reset
=
coldfire
_reset
;
mach_reset
=
m532x_cpu
_reset
;
#ifdef CONFIG_BDM_DISABLE
/*
...
...
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