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
dd65b1de
Commit
dd65b1de
authored
Apr 30, 2009
by
Greg Ungerer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m68knommu: move CPU reset code for the 528x ColdFire into its platform code
Signed-off-by:
Greg Ungerer
<
gerg@uclinux.org
>
parent
4c0b008d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
arch/m68k/include/asm/m528xsim.h
arch/m68k/include/asm/m528xsim.h
+8
-0
arch/m68knommu/platform/528x/config.c
arch/m68knommu/platform/528x/config.c
+9
-4
No files found.
arch/m68k/include/asm/m528xsim.h
View file @
dd65b1de
...
...
@@ -56,6 +56,14 @@
#define MCF5282_INTC0_ICR17 (volatile u8 *) (MCF_IPSBAR + 0x0C51)
/*
* Reset Control 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 */
/*********************************************************************
*
...
...
arch/m68knommu/platform/528x/config.c
View file @
dd65b1de
...
...
@@ -31,10 +31,6 @@
/***************************************************************************/
void
coldfire_reset
(
void
);
/***************************************************************************/
static
struct
mcf_platform_uart
m528x_uart_platform
[]
=
{
{
.
mapbase
=
MCF_MBAR
+
MCFUART_BASE1
,
...
...
@@ -171,6 +167,14 @@ void mcf_autovector(unsigned int vec)
/***************************************************************************/
static
void
m528x_cpu_reset
(
void
)
{
local_irq_disable
();
__raw_writeb
(
MCF_RCR_SWRESET
,
MCF_IPSBAR
+
MCF_RCR
);
}
/***************************************************************************/
#ifdef CONFIG_WILDFIRE
void
wildfire_halt
(
void
)
{
...
...
@@ -214,6 +218,7 @@ void __init config_BSP(char *commandp, int size)
static
int
__init
init_BSP
(
void
)
{
mach_reset
=
m528x_cpu_reset
;
m528x_uarts_init
();
m528x_fec_init
();
platform_add_devices
(
m528x_devices
,
ARRAY_SIZE
(
m528x_devices
));
...
...
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