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
Reform
reform-boundary-uboot
Commits
f2dfe44f
Commit
f2dfe44f
authored
20 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
DP405 board update
parent
20aacbf0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
board/esd/dp405/Makefile
+1
-1
1 addition, 1 deletion
board/esd/dp405/Makefile
board/esd/dp405/dp405.c
+14
-8
14 additions, 8 deletions
board/esd/dp405/dp405.c
board/esd/dp405/fpgadata.c
+1774
-1768
1774 additions, 1768 deletions
board/esd/dp405/fpgadata.c
with
1789 additions
and
1777 deletions
board/esd/dp405/Makefile
+
1
−
1
View file @
f2dfe44f
...
...
@@ -30,7 +30,7 @@ CPLD = ../common/xilinx_jtag/lenval.o \
../common/xilinx_jtag/micro.o
\
../common/xilinx_jtag/ports.o
OBJS
=
$(
BOARD
)
.o flash.o
$(
CPLD
)
OBJS
=
$(
BOARD
)
.o flash.o
../common/misc.o
$(
CPLD
)
$(LIB)
:
$(OBJS) $(SOBJS)
$(
AR
)
crv
$@
$(
OBJS
)
...
...
This diff is collapsed.
Click to expand it.
board/esd/dp405/dp405.c
+
14
−
8
View file @
f2dfe44f
...
...
@@ -62,6 +62,14 @@ int board_early_init_f (void)
*/
mtebc
(
epcr
,
0xa8400000
);
/* ebc always driven */
/*
* Reset CPLD via GPIO13 (CS4) pin
*/
out32
(
GPIO0_OR
,
in32
(
GPIO0_OR
)
&
~
(
0x80000000
>>
13
));
udelay
(
1000
);
/* wait 1ms */
out32
(
GPIO0_OR
,
in32
(
GPIO0_OR
)
|
(
0x80000000
>>
13
));
udelay
(
1000
);
/* wait 1ms */
return
0
;
}
...
...
@@ -76,13 +84,11 @@ int misc_init_f (void)
int
misc_init_r
(
void
)
{
/*
* Reset CPLD via GPIO13 (CS4) pin
*/
out32
(
GPIO0_OR
,
in32
(
GPIO0_OR
)
&
~
(
0x80000000
>>
13
));
udelay
(
1000
);
/* wait 1ms */
out32
(
GPIO0_OR
,
in32
(
GPIO0_OR
)
|
(
0x80000000
>>
13
));
udelay
(
1000
);
/* wait 1ms */
DECLARE_GLOBAL_DATA_PTR
;
/* adjust flash start and offset */
gd
->
bd
->
bi_flashstart
=
0
-
gd
->
bd
->
bi_flashsize
;
gd
->
bd
->
bi_flashoffset
=
0
;
return
(
0
);
}
...
...
@@ -110,7 +116,7 @@ int checkboard (void)
id1
=
trans
[(
~
(
in32
(
GPIO0_IR
)
>>
5
))
&
0x0000000f
];
id2
=
trans
[(
~
(
in32
(
GPIO0_IR
)
>>
9
))
&
0x0000000f
];
printf
(
" (ID=0x%1X%1X
)
\n
"
,
id1
,
id2
);
printf
(
" (ID=0x%1X%1X
, PLD=0x%02X)
\n
"
,
id2
,
id1
,
in8
(
0xf0001000
)
);
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
board/esd/dp405/fpgadata.c
+
1774
−
1768
View file @
f2dfe44f
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
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