Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot
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
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
Florian Mayer
u-boot
Commits
d8bafe13
Commit
d8bafe13
authored
10 years ago
by
David Feng
Committed by
Albert ARIBAUD
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ARMv8: enable DM in vexpress64 board
Signed-off-by:
David Feng
<
fenghua@phytium.com.cn
>
parent
b263302a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/armltd/vexpress64/vexpress64.c
+13
-0
13 additions, 0 deletions
board/armltd/vexpress64/vexpress64.c
include/configs/vexpress_aemv8a.h
+12
-1
12 additions, 1 deletion
include/configs/vexpress_aemv8a.h
with
25 additions
and
1 deletion
board/armltd/vexpress64/vexpress64.c
+
13
−
0
View file @
d8bafe13
...
...
@@ -12,9 +12,22 @@
#include
<asm/io.h>
#include
<linux/compiler.h>
#include
<asm/semihosting.h>
#include
<dm/platdata.h>
#include
<dm/platform_data/serial_pl01x.h>
DECLARE_GLOBAL_DATA_PTR
;
static
const
struct
pl01x_serial_platdata
serial_platdata
=
{
.
base
=
V2M_UART0
,
.
type
=
TYPE_PL011
,
.
clock
=
2400
*
1000
,
};
U_BOOT_DEVICE
(
vexpress_serials
)
=
{
.
name
=
"serial_pl01x"
,
.
platdata
=
&
serial_platdata
,
};
int
board_init
(
void
)
{
return
0
;
...
...
This diff is collapsed.
Click to expand it.
include/configs/vexpress_aemv8a.h
+
12
−
1
View file @
d8bafe13
...
...
@@ -8,6 +8,8 @@
#ifndef __VEXPRESS_AEMV8A_H
#define __VEXPRESS_AEMV8A_H
#define CONFIG_DM
/* We use generic board for v8 Versatile Express */
#define CONFIG_SYS_GENERIC_BOARD
...
...
@@ -127,6 +129,7 @@
#define CONFIG_SYS_MEMTEST_END (V2M_BASE + 0x80000000)
/* Size of malloc() pool */
#define CONFIG_SYS_MALLOC_F_LEN 0x2000
#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (8 << 20))
/* Ethernet Configuration */
...
...
@@ -142,6 +145,14 @@
#endif
/* PL011 Serial Configuration */
#define CONFIG_BAUDRATE 115200
#ifdef CONFIG_DM
#define CONFIG_DM_SERIAL
#define CONFIG_PL01X_SERIAL
#else
#define CONFIG_SYS_SERIAL0 V2M_UART0
#define CONFIG_SYS_SERIAL1 V2M_UART1
#define CONFIG_CONS_INDEX 0
#define CONFIG_PL011_SERIAL
#ifdef CONFIG_TARGET_VEXPRESS64_JUNO
#define CONFIG_PL011_CLOCK 7273800
...
...
@@ -150,7 +161,7 @@
#endif
#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \
(void *)CONFIG_SYS_SERIAL1}
#
define CONFIG_CONS_INDEX 0
#
endif
#define CONFIG_BAUDRATE 115200
#define CONFIG_SYS_SERIAL0 V2M_UART0
...
...
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