Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
bff679dd
Commit
bff679dd
authored
12 years ago
by
Yann Vernier
Committed by
Albert ARIBAUD
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
arm: ks8695: use defined constants for UART
CONFIG_BAUDRATE and KS8695_UART_LINEC_WLEN8 used for UART registers
parent
522de019
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/arm/cpu/arm920t/ks8695/lowlevel_init.S
+3
-3
3 additions, 3 deletions
arch/arm/cpu/arm920t/ks8695/lowlevel_init.S
with
3 additions
and
3 deletions
arch/arm/cpu/arm920t/ks8695/lowlevel_init.S
+
3
−
3
View file @
bff679dd
...
@@ -72,10 +72,10 @@ lowlevel_init:
...
@@ -72,10 +72,10 @@ lowlevel_init:
*
enable
UART
for
early
debug
trace
*
enable
UART
for
early
debug
trace
*/
*/
ldr
r1
,
=(
KS8695_IO_BASE
+
KS8695_UART_DIVISOR
)
ldr
r1
,
=(
KS8695_IO_BASE
+
KS8695_UART_DIVISOR
)
mov
r2
,
#
0xd9
mov
r2
,
#
((
25000000
+
CONFIG_BAUDRATE
/
2
)
/
CONFIG_BAUDRATE
)
str
r2
,
[
r1
]
/*
115200
baud
*/
str
r2
,
[
r1
]
ldr
r1
,
=(
KS8695_IO_BASE
+
KS8695_UART_LINE_CTRL
)
ldr
r1
,
=(
KS8695_IO_BASE
+
KS8695_UART_LINE_CTRL
)
mov
r2
,
#
0x03
mov
r2
,
#
KS8695_UART_LINEC_WLEN8
str
r2
,
[
r1
]
/*
8
data
bits
,
no
parity
,
1
stop
*/
str
r2
,
[
r1
]
/*
8
data
bits
,
no
parity
,
1
stop
*/
ldr
r1
,
=(
KS8695_IO_BASE
+
KS8695_UART_TX_HOLDING
)
ldr
r1
,
=(
KS8695_IO_BASE
+
KS8695_UART_TX_HOLDING
)
mov
r2
,
#
0x41
mov
r2
,
#
0x41
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment