Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c71c14e5
Commit
c71c14e5
authored
Sep 29, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Fix assabet backlight and power supply settings.
parent
28a065f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
arch/arm/mach-sa1100/assabet.c
arch/arm/mach-sa1100/assabet.c
+16
-2
No files found.
arch/arm/mach-sa1100/assabet.c
View file @
c71c14e5
...
...
@@ -18,6 +18,7 @@
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/serial_core.h>
#include <linux/delay.h>
#include <asm/hardware.h>
#include <asm/mach-types.h>
...
...
@@ -73,12 +74,19 @@ static void assabet_backlight_power(int on)
ASSABET_BCR_clear
(
ASSABET_BCR_LIGHT_ON
);
}
/*
* Turn on/off the backlight. When turning the backlight on,
* we wait 500us after turning it on so we don't cause the
* supplies to droop when we enable the LCD controller (and
* cause a hard reset.)
*/
static
void
assabet_lcd_power
(
int
on
)
{
#ifndef ASSABET_PAL_VIDEO
if
(
on
)
if
(
on
)
{
ASSABET_BCR_set
(
ASSABET_BCR_LCD_ON
);
else
udelay
(
500
);
}
else
#endif
ASSABET_BCR_clear
(
ASSABET_BCR_LCD_ON
);
}
...
...
@@ -88,6 +96,12 @@ static int __init assabet_init(void)
if
(
!
machine_is_assabet
())
return
-
EINVAL
;
/*
* Ensure that the power supply is in "high power" mode.
*/
GPDR
|=
GPIO_GPIO16
;
GPSR
=
GPIO_GPIO16
;
/*
* Ensure that these pins are set as outputs and are driving
* logic 0. This ensures that we won't inadvertently toggle
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment