Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
3367fd50
Commit
3367fd50
authored
Mar 08, 2006
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Momentum: Resurrect after things were moved around a while ago.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
bb7d83f7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
23 deletions
+29
-23
arch/mips/kernel/irq-mv6434x.c
arch/mips/kernel/irq-mv6434x.c
+5
-3
arch/mips/momentum/jaguar_atx/prom.c
arch/mips/momentum/jaguar_atx/prom.c
+1
-1
arch/mips/momentum/jaguar_atx/setup.c
arch/mips/momentum/jaguar_atx/setup.c
+3
-2
arch/mips/momentum/ocelot_c/irq.c
arch/mips/momentum/ocelot_c/irq.c
+1
-1
arch/mips/momentum/ocelot_c/prom.c
arch/mips/momentum/ocelot_c/prom.c
+1
-1
arch/mips/momentum/ocelot_c/setup.c
arch/mips/momentum/ocelot_c/setup.c
+14
-13
arch/mips/pci/pci-ocelot-c.c
arch/mips/pci/pci-ocelot-c.c
+4
-2
No files found.
arch/mips/kernel/irq-mv6434x.c
View file @
3367fd50
...
...
@@ -11,12 +11,14 @@
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <asm/ptrace.h>
#include <linux/sched.h>
#include <linux/kernel_stat.h>
#include <linux/mv643xx.h>
#include <linux/sched.h>
#include <asm/ptrace.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <
linux/mv643xx
.h>
#include <
asm/marvell
.h>
static
unsigned
int
irq_base
;
...
...
arch/mips/momentum/jaguar_atx/prom.c
View file @
3367fd50
...
...
@@ -21,10 +21,10 @@
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/bootmem.h>
#include <linux/mv643xx.h>
#include <asm/addrspace.h>
#include <asm/bootinfo.h>
#include <asm/mv64340.h>
#include <asm/pmon.h>
#include "jaguar_atx_fpga.h"
...
...
arch/mips/momentum/jaguar_atx/setup.c
View file @
3367fd50
...
...
@@ -2,7 +2,7 @@
* BRIEF MODULE DESCRIPTION
* Momentum Computer Jaguar-ATX board dependent boot routines
*
* Copyright (C) 1996, 1997, 2001,
2004
Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 1996, 1997, 2001,
04, 06
Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 2000 RidgeRun, Inc.
* Copyright (C) 2001 Red Hat, Inc.
* Copyright (C) 2002 Momentum Computer
...
...
@@ -55,6 +55,8 @@
#include <linux/interrupt.h>
#include <linux/timex.h>
#include <linux/vmalloc.h>
#include <linux/mv643xx.h>
#include <asm/time.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
...
...
@@ -64,7 +66,6 @@
#include <asm/ptrace.h>
#include <asm/reboot.h>
#include <asm/tlbflush.h>
#include <asm/mv64340.h>
#include "jaguar_atx_fpga.h"
...
...
arch/mips/momentum/ocelot_c/irq.c
View file @
3367fd50
...
...
@@ -41,11 +41,11 @@
#include <linux/slab.h>
#include <linux/random.h>
#include <linux/bitops.h>
#include <linux/mv643xx.h>
#include <asm/bootinfo.h>
#include <asm/io.h>
#include <asm/irq_cpu.h>
#include <asm/mipsregs.h>
#include <asm/mv64340.h>
#include <asm/system.h>
extern
asmlinkage
void
ocelot_handle_int
(
void
);
...
...
arch/mips/momentum/ocelot_c/prom.c
View file @
3367fd50
...
...
@@ -19,10 +19,10 @@
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/bootmem.h>
#include <linux/mv643xx.h>
#include <asm/addrspace.h>
#include <asm/bootinfo.h>
#include <asm/mv64340.h>
#include <asm/pmon.h>
#include "ocelot_c_fpga.h"
...
...
arch/mips/momentum/ocelot_c/setup.c
View file @
3367fd50
...
...
@@ -54,6 +54,7 @@
#include <linux/pm.h>
#include <linux/timex.h>
#include <linux/vmalloc.h>
#include <linux/mv643xx.h>
#include <asm/time.h>
#include <asm/bootinfo.h>
...
...
@@ -64,9 +65,9 @@
#include <asm/processor.h>
#include <asm/ptrace.h>
#include <asm/reboot.h>
#include <asm/marvell.h>
#include <linux/bootmem.h>
#include <linux/blkdev.h>
#include <asm/mv64340.h>
#include "ocelot_c_fpga.h"
unsigned
long
marvell_base
;
...
...
@@ -252,22 +253,22 @@ void __init plat_setup(void)
/* shut down ethernet ports, just to be sure our memory doesn't get
* corrupted by random ethernet traffic.
*/
MV_WRITE
(
MV643
40
_ETH_TRANSMIT_QUEUE_COMMAND_REG
(
0
),
0xff
<<
8
);
MV_WRITE
(
MV643
40
_ETH_TRANSMIT_QUEUE_COMMAND_REG
(
1
),
0xff
<<
8
);
MV_WRITE
(
MV643
40
_ETH_RECEIVE_QUEUE_COMMAND_REG
(
0
),
0xff
<<
8
);
MV_WRITE
(
MV643
40
_ETH_RECEIVE_QUEUE_COMMAND_REG
(
1
),
0xff
<<
8
);
MV_WRITE
(
MV643
XX
_ETH_TRANSMIT_QUEUE_COMMAND_REG
(
0
),
0xff
<<
8
);
MV_WRITE
(
MV643
XX
_ETH_TRANSMIT_QUEUE_COMMAND_REG
(
1
),
0xff
<<
8
);
MV_WRITE
(
MV643
XX
_ETH_RECEIVE_QUEUE_COMMAND_REG
(
0
),
0xff
<<
8
);
MV_WRITE
(
MV643
XX
_ETH_RECEIVE_QUEUE_COMMAND_REG
(
1
),
0xff
<<
8
);
do
{}
while
(
MV_READ
(
MV643
40
_ETH_RECEIVE_QUEUE_COMMAND_REG
(
0
))
&
0xff
);
while
(
MV_READ
(
MV643
XX
_ETH_RECEIVE_QUEUE_COMMAND_REG
(
0
))
&
0xff
);
do
{}
while
(
MV_READ
(
MV643
40
_ETH_RECEIVE_QUEUE_COMMAND_REG
(
1
))
&
0xff
);
while
(
MV_READ
(
MV643
XX
_ETH_RECEIVE_QUEUE_COMMAND_REG
(
1
))
&
0xff
);
do
{}
while
(
MV_READ
(
MV643
40
_ETH_TRANSMIT_QUEUE_COMMAND_REG
(
0
))
&
0xff
);
while
(
MV_READ
(
MV643
XX
_ETH_TRANSMIT_QUEUE_COMMAND_REG
(
0
))
&
0xff
);
do
{}
while
(
MV_READ
(
MV643
40
_ETH_TRANSMIT_QUEUE_COMMAND_REG
(
1
))
&
0xff
);
MV_WRITE
(
MV643
40
_ETH_PORT_SERIAL_CONTROL_REG
(
0
),
MV_READ
(
MV643
40
_ETH_PORT_SERIAL_CONTROL_REG
(
0
))
&
~
1
);
MV_WRITE
(
MV643
40
_ETH_PORT_SERIAL_CONTROL_REG
(
1
),
MV_READ
(
MV643
40
_ETH_PORT_SERIAL_CONTROL_REG
(
1
))
&
~
1
);
while
(
MV_READ
(
MV643
XX
_ETH_TRANSMIT_QUEUE_COMMAND_REG
(
1
))
&
0xff
);
MV_WRITE
(
MV643
XX
_ETH_PORT_SERIAL_CONTROL_REG
(
0
),
MV_READ
(
MV643
XX
_ETH_PORT_SERIAL_CONTROL_REG
(
0
))
&
~
1
);
MV_WRITE
(
MV643
XX
_ETH_PORT_SERIAL_CONTROL_REG
(
1
),
MV_READ
(
MV643
XX
_ETH_PORT_SERIAL_CONTROL_REG
(
1
))
&
~
1
);
/* Turn off the Bit-Error LED */
OCELOT_FPGA_WRITE
(
0x80
,
CLR
);
...
...
arch/mips/pci/pci-ocelot-c.c
View file @
3367fd50
...
...
@@ -3,15 +3,17 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 2004
, 06
by Ralf Baechle (ralf@linux-mips.org)
*/
#include <linux/types.h>
#include <linux/pci.h>
#include <
asm/mv64340
.h>
#include <
linux/mv643xx
.h>
#include <linux/init.h>
#include <asm/marvell.h>
/*
* We assume the address ranges have already been setup appropriately by
* the firmware. PMON in case of the Ocelot C does that.
...
...
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