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
fbacc8df
Commit
fbacc8df
authored
Mar 27, 2015
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: SEAD3: Use symbolic addresses from sead-addr.h in LED driver.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
be2d960e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
arch/mips/mti-sead3/leds-sead3.c
arch/mips/mti-sead3/leds-sead3.c
+5
-2
No files found.
arch/mips/mti-sead3/leds-sead3.c
View file @
fbacc8df
...
...
@@ -4,6 +4,7 @@
* for more details.
*
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
* Copyright (C) 2015 Imagination Technologies, Inc.
*/
#include <linux/kernel.h>
#include <linux/module.h>
...
...
@@ -13,16 +14,18 @@
#include <linux/err.h>
#include <linux/io.h>
#include <asm/mips-boards/sead3-addr.h>
static
void
sead3_pled_set
(
struct
led_classdev
*
led_cdev
,
enum
led_brightness
value
)
{
writel
(
value
,
(
void
__iomem
*
)
0xBF000210
);
/* FIXME */
writel
(
value
,
(
void
__iomem
*
)
SEAD3_CPLD_P_LED
);
}
static
void
sead3_fled_set
(
struct
led_classdev
*
led_cdev
,
enum
led_brightness
value
)
{
writel
(
value
,
(
void
__iomem
*
)
0xBF000218
);
/* FIXME */
writel
(
value
,
(
void
__iomem
*
)
SEAD3_CPLD_F_LED
);
}
static
struct
led_classdev
sead3_pled
=
{
...
...
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