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
a0bdf49e
Commit
a0bdf49e
authored
20 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
INKA4x0: Allow initialization of LCD backlight dimming from
"brightness" environment variable.
parent
e9684a53
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG
+3
-0
3 additions, 0 deletions
CHANGELOG
board/inka4x0/inka4x0.c
+15
-0
15 additions, 0 deletions
board/inka4x0/inka4x0.c
include/configs/inka4x0.h
+1
-0
1 addition, 0 deletions
include/configs/inka4x0.h
include/mpc5xxx.h
+1
-0
1 addition, 0 deletions
include/mpc5xxx.h
with
20 additions
and
0 deletions
CHANGELOG
+
3
−
0
View file @
a0bdf49e
...
...
@@ -5,6 +5,9 @@ Changes for U-Boot 1.1.3:
* Patch by Stefan Roese, 14 March 2005:
Update for esd voh405 fpga image
* INKA4x0: Allow initialization of LCD backlight dimming from
"brightness" environment variable.
* Add port initialization for digital I/O on INKA4x0
* Patch by Stefan Roese, 01 March 2005:
...
...
This diff is collapsed.
Click to expand it.
board/inka4x0/inka4x0.c
+
15
−
0
View file @
a0bdf49e
...
...
@@ -177,6 +177,16 @@ void flash_preinit(void)
int
misc_init_f
(
void
)
{
uchar
tmp
[
10
];
int
i
,
br
;
i
=
getenv_r
(
"brightness"
,
tmp
,
sizeof
(
tmp
));
br
=
(
i
>
0
)
?
(
int
)
simple_strtoul
(
tmp
,
NULL
,
10
)
:
CFG_BRIGHTNESS
;
if
(
br
>
255
)
br
=
255
;
/* Initialize GPIO output pins.
*/
/* Configure GPT as GPIO output */
...
...
@@ -187,6 +197,11 @@ int misc_init_f (void)
*
(
vu_long
*
)
MPC5XXX_GPT4_ENABLE
=
*
(
vu_long
*
)
MPC5XXX_GPT5_ENABLE
=
0x24
;
/* Configure GPT7 as PWM timer, 1kHz, no ints. */
*
(
vu_long
*
)
MPC5XXX_GPT7_ENABLE
=
0
;
/* Disable */
*
(
vu_long
*
)
MPC5XXX_GPT7_COUNTER
=
0x020000fe
;
*
(
vu_long
*
)
MPC5XXX_GPT7_PWMCFG
=
(
br
<<
16
);
*
(
vu_long
*
)
MPC5XXX_GPT7_ENABLE
=
0x3
;
/* Enable PWM mode and start */
/* Configure PSC3_6,7 as GPIO output */
*
(
vu_long
*
)
MPC5XXX_GPIO_ENABLE
|=
0x00003000
;
...
...
This diff is collapsed.
Click to expand it.
include/configs/inka4x0.h
+
1
−
0
View file @
a0bdf49e
...
...
@@ -324,5 +324,6 @@
#define CFG_ATA_STRIDE 4
#define CONFIG_ATAPI 1
#define CFG_BRIGHTNESS 0x20
#endif
/* __CONFIG_H */
This diff is collapsed.
Click to expand it.
include/mpc5xxx.h
+
1
−
0
View file @
a0bdf49e
...
...
@@ -248,6 +248,7 @@
#define MPC5XXX_GPT7_ENABLE (MPC5XXX_GPT + 0x70)
#define MPC5XXX_GPT7_COUNTER (MPC5XXX_GPT + 0x74)
#define MPC5XXX_GPT7_PWMCFG (MPC5XXX_GPT + 0x78)
/* ATA registers */
#define MPC5XXX_ATA_HOST_CONFIG (MPC5XXX_ATA + 0x0000)
...
...
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