Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
e96c33d9
Commit
e96c33d9
authored
Mar 03, 2009
by
Nicolas Pitre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Kirkwood: SheevaPlug LED support
Signed-off-by:
Nicolas Pitre
<
nico@marvell.com
>
parent
3ec0d474
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
arch/arm/mach-kirkwood/sheevaplug-setup.c
arch/arm/mach-kirkwood/sheevaplug-setup.c
+25
-0
No files found.
arch/arm/mach-kirkwood/sheevaplug-setup.c
View file @
e96c33d9
...
...
@@ -15,6 +15,7 @@
#include <linux/mtd/partitions.h>
#include <linux/mv643xx_eth.h>
#include <linux/gpio.h>
#include <linux/leds.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <mach/kirkwood.h>
...
...
@@ -73,8 +74,31 @@ static struct mvsdio_platform_data sheevaplug_mvsdio_data = {
// unfortunately the CD signal has not been connected */
};
static
struct
gpio_led
sheevaplug_led_pins
[]
=
{
{
.
name
=
"plug:green:health"
,
.
default_trigger
=
"default-on"
,
.
gpio
=
49
,
.
active_low
=
1
,
},
};
static
struct
gpio_led_platform_data
sheevaplug_led_data
=
{
.
leds
=
sheevaplug_led_pins
,
.
num_leds
=
ARRAY_SIZE
(
sheevaplug_led_pins
),
};
static
struct
platform_device
sheevaplug_leds
=
{
.
name
=
"leds-gpio"
,
.
id
=
-
1
,
.
dev
=
{
.
platform_data
=
&
sheevaplug_led_data
,
}
};
static
unsigned
int
sheevaplug_mpp_config
[]
__initdata
=
{
MPP29_GPIO
,
/* USB Power Enable */
MPP49_GPIO
,
/* LED */
0
};
...
...
@@ -97,6 +121,7 @@ static void __init sheevaplug_init(void)
kirkwood_sdio_init
(
&
sheevaplug_mvsdio_data
);
platform_device_register
(
&
sheevaplug_nand_flash
);
platform_device_register
(
&
sheevaplug_leds
);
}
MACHINE_START
(
SHEEVAPLUG
,
"Marvell SheevaPlug Reference Board"
)
...
...
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