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
98960e9e
Commit
98960e9e
authored
Nov 26, 2002
by
Miles Bader
Committed by
Linus Torvalds
Nov 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Random minor fixes for v850 `anna' platform
Random minor fixes for v850 `anna' platform
parent
53b17bee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
arch/v850/kernel/anna.c
arch/v850/kernel/anna.c
+10
-7
include/asm-v850/anna.h
include/asm-v850/anna.h
+16
-0
No files found.
arch/v850/kernel/anna.c
View file @
98960e9e
...
...
@@ -27,11 +27,14 @@
#include "mach.h"
/* SRAM and SDRAM are vaguely contiguous (with a hole in between; see
mach_reserve_bootmem for details)
, so just
use both as one big area. */
/* SRAM and SDRAM are vaguely contiguous (with a
big
hole in between; see
mach_reserve_bootmem for details)
;
use both as one big area. */
#define RAM_START SRAM_ADDR
#define RAM_END (SDRAM_ADDR + SDRAM_SIZE)
/* The bits of this port are connected to an 8-LED bar-graph. */
#define LEDS_PORT 0
static
void
anna_led_tick
(
void
);
...
...
@@ -44,7 +47,7 @@ void __init mach_early_init (void)
ANNA_BPC
=
0
;
ANNA_BSC
=
0xAAAA
;
ANNA_BEC
=
0
;
ANNA_BHC
=
0x
00FF
;
/* icache all memory, dcache none
*/
ANNA_BHC
=
0x
FFFF
;
/* icache all memory, dcache all
*/
ANNA_BCT
(
0
)
=
0xB088
;
ANNA_BCT
(
1
)
=
0x0008
;
ANNA_DWC
(
0
)
=
0x0027
;
...
...
@@ -64,7 +67,7 @@ void __init mach_setup (char **cmdline)
nb85e_uart_cons_init
(
1
);
#endif
ANNA_PORT_PM
(
0
)
=
0
;
/* Make all LED pins output pins. */
ANNA_PORT_PM
(
LEDS_PORT
)
=
0
;
/* Make all LED pins output pins. */
mach_tick
=
anna_led_tick
;
}
...
...
@@ -132,7 +135,7 @@ void machine_halt (void)
disable_reset_guard
();
#endif
local_irq_disable
();
/* Ignore all interrupts. */
ANNA_PORT_IO
(
0
)
=
0xAA
;
/* Note that we halted. */
ANNA_PORT_IO
(
LEDS_PORT
)
=
0xAA
;
/* Note that we halted. */
for
(;;)
asm
(
"halt; nop; nop; nop; nop; nop"
);
}
...
...
@@ -185,9 +188,9 @@ static void anna_led_tick ()
if
(
pos
+
dir
<=
max_pos
)
{
/* Each bit of port 0 has a LED. */
clear_bit
(
pos
,
&
ANNA_PORT_IO
(
0
));
clear_bit
(
pos
,
&
ANNA_PORT_IO
(
LEDS_PORT
));
pos
+=
dir
;
set_bit
(
pos
,
&
ANNA_PORT_IO
(
0
));
set_bit
(
pos
,
&
ANNA_PORT_IO
(
LEDS_PORT
));
}
}
...
...
include/asm-v850/anna.h
View file @
98960e9e
...
...
@@ -127,6 +127,22 @@ extern void anna_uart_pre_configure (unsigned chan,
unsigned
cflags
,
unsigned
baud
);
#endif
/* This board supports RTS/CTS for the on-chip UART, but only for channel 1. */
/* CTS for UART channel 1 is pin P37 (bit 7 of port 3). */
#define NB85E_UART_CTS(chan) ((chan) == 1 ? !(ANNA_PORT_IO(3) & 0x80) : 1)
/* RTS for UART channel 1 is pin P07 (bit 7 of port 0). */
#define NB85E_UART_SET_RTS(chan, val) \
do { \
if (chan == 1) { \
unsigned old = ANNA_PORT_IO(0); \
if (val) \
ANNA_PORT_IO(0) = old & ~0x80; \
else \
ANNA_PORT_IO(0) = old | 0x80; \
} \
} while (0)
/* Timer C details. */
#define NB85E_TIMER_C_BASE_ADDR 0xFFFFF600
...
...
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