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
4c0b008d
Commit
4c0b008d
authored
Apr 30, 2009
by
Greg Ungerer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m68knommu: move CPU reset code for the 527x ColdFire into its platform code
Signed-off-by:
Greg Ungerer
<
gerg@uclinux.org
>
parent
55b33f31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
arch/m68k/include/asm/m527xsim.h
arch/m68k/include/asm/m527xsim.h
+9
-0
arch/m68knommu/platform/527x/config.c
arch/m68knommu/platform/527x/config.c
+9
-6
No files found.
arch/m68k/include/asm/m527xsim.h
View file @
4c0b008d
...
...
@@ -70,5 +70,14 @@
#define UART2_ENABLE_MASK 0x3f00
#endif
/*
* Reset Controll Unit (relative to IPSBAR).
*/
#define MCF_RCR 0x110000
#define MCF_RSR 0x110001
#define MCF_RCR_SWRESET 0x80
/* Software reset bit */
#define MCF_RCR_FRCSTOUT 0x40
/* Force external reset */
/****************************************************************************/
#endif
/* m527xsim_h */
arch/m68knommu/platform/527x/config.c
View file @
4c0b008d
...
...
@@ -15,7 +15,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>
...
...
@@ -24,10 +23,6 @@
/***************************************************************************/
void
coldfire_reset
(
void
);
/***************************************************************************/
static
struct
mcf_platform_uart
m527x_uart_platform
[]
=
{
{
.
mapbase
=
MCF_MBAR
+
MCFUART_BASE1
,
...
...
@@ -227,10 +222,18 @@ void mcf_autovector(unsigned int vec)
/***************************************************************************/
static
void
m527x_cpu_reset
(
void
)
{
local_irq_disable
();
__raw_writeb
(
MCF_RCR_SWRESET
,
MCF_IPSBAR
+
MCF_RCR
);
}
/***************************************************************************/
void
__init
config_BSP
(
char
*
commandp
,
int
size
)
{
mcf_disableall
();
mach_reset
=
coldfire
_reset
;
mach_reset
=
m527x_cpu
_reset
;
m527x_uarts_init
();
m527x_fec_init
();
}
...
...
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