Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
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
Clea OS
bsp
nxp
linux-seco-imx
Commits
e96c33d9
Commit
e96c33d9
authored
16 years ago
by
Nicolas Pitre
Browse files
Options
Downloads
Patches
Plain Diff
[ARM] Kirkwood: SheevaPlug LED support
Signed-off-by:
Nicolas Pitre
<
nico@marvell.com
>
parent
3ec0d474
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/arm/mach-kirkwood/sheevaplug-setup.c
+25
-0
25 additions, 0 deletions
arch/arm/mach-kirkwood/sheevaplug-setup.c
with
25 additions
and
0 deletions
arch/arm/mach-kirkwood/sheevaplug-setup.c
+
25
−
0
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"
)
...
...
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