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
3e9a2992
Commit
3e9a2992
authored
18 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Fix udelay bug in vfd.c for trab board
Patch by Martin Krause, 27 Oct 2005
parent
e00f41eb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+3
-0
3 additions, 0 deletions
CHANGELOG
board/trab/vfd.c
+5
-1
5 additions, 1 deletion
board/trab/vfd.c
with
8 additions
and
1 deletion
CHANGELOG
+
3
−
0
View file @
3e9a2992
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4:
Changes since U-Boot 1.1.4:
======================================================================
======================================================================
* Fix udelay bug in vfd.c for trab board
Patch by Martin Krause, 27 Oct 2005
* Disable JFFS2 support for trab board
* Disable JFFS2 support for trab board
Patch by Martin Krause, 27 Oct 2005
Patch by Martin Krause, 27 Oct 2005
...
...
This diff is collapsed.
Click to expand it.
board/trab/vfd.c
+
5
−
1
View file @
3e9a2992
...
@@ -358,6 +358,8 @@ void transfer_pic(int display, unsigned char *adr, int height, int width)
...
@@ -358,6 +358,8 @@ void transfer_pic(int display, unsigned char *adr, int height, int width)
*/
*/
int
vfd_init_clocks
(
void
)
int
vfd_init_clocks
(
void
)
{
{
int
i
;
S3C24X0_GPIO
*
const
gpio
=
S3C24X0_GetBase_GPIO
();
S3C24X0_GPIO
*
const
gpio
=
S3C24X0_GetBase_GPIO
();
S3C24X0_TIMERS
*
const
timers
=
S3C24X0_GetBase_TIMERS
();
S3C24X0_TIMERS
*
const
timers
=
S3C24X0_GetBase_TIMERS
();
S3C24X0_LCD
*
const
lcd
=
S3C24X0_GetBase_LCD
();
S3C24X0_LCD
*
const
lcd
=
S3C24X0_GetBase_LCD
();
...
@@ -367,7 +369,9 @@ int vfd_init_clocks (void)
...
@@ -367,7 +369,9 @@ int vfd_init_clocks (void)
*/
*/
gpio
->
PCUP
=
(
gpio
->
PCUP
&
0xFFF0
);
/* activate GPC0...GPC3 pullups */
gpio
->
PCUP
=
(
gpio
->
PCUP
&
0xFFF0
);
/* activate GPC0...GPC3 pullups */
gpio
->
PCCON
=
(
gpio
->
PCCON
&
0xFFFFFF00
);
/* configure GPC0...GPC3 as inputs */
gpio
->
PCCON
=
(
gpio
->
PCCON
&
0xFFFFFF00
);
/* configure GPC0...GPC3 as inputs */
udelay
(
10
);
/* allow signals to settle */
/* allow signals to settle */
for
(
i
=
0
;
i
<
10000
;
i
++
)
/* udelay isn't working yet at this point! */
__asm
(
"NOP"
);
vfd_board_id
=
(
~
gpio
->
PCDAT
)
&
0x000F
;
/* read GPC0...GPC3 port pins */
vfd_board_id
=
(
~
gpio
->
PCDAT
)
&
0x000F
;
/* read GPC0...GPC3 port pins */
VFD_DISABLE
;
/* activate blank for the vfd */
VFD_DISABLE
;
/* activate blank for the vfd */
...
...
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