Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
8139567b
Commit
8139567b
authored
Jan 09, 2007
by
Markus Klotzbuecher
Committed by
Markus Klotzbuecher
Jan 09, 2007
Browse files
SMC1 uses external CLK4 instead of BRG on spc1920
parent
d8d9de1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
cpu/mpc8xx/serial.c
View file @
8139567b
...
...
@@ -227,8 +227,17 @@ static int smc_init (void)
sp
->
smc_smcm
=
0
;
sp
->
smc_smce
=
0xff
;
#ifdef CFG_SPC1920_SMC1_CLK4
/* clock source is PLD */
*
((
volatile
uchar
*
)
CFG_SPC1920_PLD_BASE
+
6
)
=
0xff
;
#ifdef CFG_SPC1920_SMC1_CLK4
/* clock source is PLD */
/* set freq to 19200 Baud */
*
((
volatile
uchar
*
)
CFG_SPC1920_PLD_BASE
+
6
)
=
0x3
;
/* configure clk4 as input */
im
->
im_ioport
.
iop_pdpar
|=
0x800
;
im
->
im_ioport
.
iop_pddir
&=
~
0x800
;
cp
->
cp_simode
=
0x0000
;
cp
->
cp_simode
|=
0x7000
;
#else
/* Set up the baud rate generator */
smc_setbrg
();
...
...
include/configs/spc1920.h
View file @
8139567b
...
...
@@ -44,7 +44,7 @@
#define CONFIG_BAUDRATE 19200
/* use PLD CLK4 instead of brg */
#
un
def CFG_SPC1920_SMC1_CLK4
#def
ine
CFG_SPC1920_SMC1_CLK4
#define CONFIG_8xx_OSCLK 10000000
/* 10 MHz oscillator on EXTCLK */
#define CONFIG_8xx_CPUCLK_DEFAULT 50000000
...
...
Write
Preview
Supports
Markdown
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