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
237f483c
Commit
237f483c
authored
May 10, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: fix serial clock for embedded EP405 board.
parent
6551182b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
arch/ppc/boot/simple/embed_config.c
arch/ppc/boot/simple/embed_config.c
+18
-0
No files found.
arch/ppc/boot/simple/embed_config.c
View file @
237f483c
...
@@ -706,12 +706,30 @@ embed_config(bd_t **bdp)
...
@@ -706,12 +706,30 @@ embed_config(bd_t **bdp)
#endif
#endif
#ifdef CONFIG_EP405
#ifdef CONFIG_EP405
#include <linux/serial_reg.h>
void
void
embed_config
(
bd_t
**
bdp
)
embed_config
(
bd_t
**
bdp
)
{
{
u32
chcr0
;
u_char
*
cp
;
u_char
*
cp
;
bd_t
*
bd
;
bd_t
*
bd
;
/* Different versions of the PlanetCore firmware vary in how
they set up the serial port - in particular whether they
use the internal or external serial clock for UART0. Make
sure the UART is in a known state. */
/* FIXME: We should use the board's 11.0592MHz external serial
clock - it will be more accurate for serial rates. For
now, however the baud rates in ep405.h are for the internal
clock. */
chcr0
=
mfdcr
(
DCRN_CHCR0
);
if
(
(
chcr0
&
0x1fff
)
!=
0x103e
)
{
mtdcr
(
DCRN_CHCR0
,
(
chcr0
&
0xffffe000
)
|
0x103e
);
/* The following tricks serial_init() into resetting the baud rate */
writeb
(
0
,
UART0_IO_BASE
+
UART_LCR
);
}
bd
=
&
bdinfo
;
bd
=
&
bdinfo
;
*
bdp
=
bd
;
*
bdp
=
bd
;
#if 1
#if 1
...
...
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