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
d7e69302
Commit
d7e69302
authored
May 25, 2003
by
Greg Ungerer
Committed by
Jaroslav Kysela
May 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add m68knommu/5282 config init code
This creates specific ColdFire/5282 configuration initialization.
parent
3e8cdccb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
0 deletions
+79
-0
arch/m68knommu/platform/5282/config.c
arch/m68knommu/platform/5282/config.c
+79
-0
No files found.
arch/m68knommu/platform/5282/config.c
0 → 100644
View file @
d7e69302
/***************************************************************************/
/*
* linux/arch/m68knommu/platform/5282/config.c
*
* Sub-architcture dependant initialization code for the Motorola
* 5282 CPU.
*
* Copyright (C) 1999-2003, Greg Ungerer (gerg@snapgear.com)
* Copyright (C) 2001-2003, SnapGear Inc. (www.snapgear.com)
*/
/***************************************************************************/
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/param.h>
#include <linux/init.h>
#include <asm/dma.h>
#include <asm/traps.h>
#include <asm/machdep.h>
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
#include <asm/mcfdma.h>
/***************************************************************************/
void
coldfire_pit_tick
(
void
);
void
coldfire_pit_init
(
void
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
));
unsigned
long
coldfire_pit_offset
(
void
);
void
coldfire_trap_init
(
void
);
void
coldfire_reset
(
void
);
/***************************************************************************/
/*
* DMA channel base address table.
*/
unsigned
int
dma_base_addr
[
MAX_M68K_DMA_CHANNELS
]
=
{
MCF_MBAR
+
MCFDMA_BASE0
,
};
/***************************************************************************/
void
mcf_disableall
(
void
)
{
*
((
volatile
unsigned
long
*
)
(
MCF_IPSBAR
+
MCFICM_INTC0
+
MCFINTC_IMRH
))
=
0xffffffff
;
*
((
volatile
unsigned
long
*
)
(
MCF_IPSBAR
+
MCFICM_INTC0
+
MCFINTC_IMRL
))
=
0xffffffff
;
}
/***************************************************************************/
void
mcf_autovector
(
unsigned
int
vec
)
{
/* Everything is auto-vectored on the 5272 */
}
/***************************************************************************/
void
config_BSP
(
char
*
commandp
,
int
size
)
{
mcf_disableall
();
#if defined(CONFIG_BOOTPARAM)
strncpy
(
commandp
,
CONFIG_BOOTPARAM_STRING
,
size
);
commandp
[
size
-
1
]
=
0
;
#else
memset
(
commandp
,
0
,
size
);
#endif
mach_sched_init
=
coldfire_pit_init
;
mach_tick
=
coldfire_pit_tick
;
mach_gettimeoffset
=
coldfire_pit_offset
;
mach_trap_init
=
coldfire_trap_init
;
mach_reset
=
coldfire_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