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
01cc8262
Commit
01cc8262
authored
Jul 08, 2009
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'jwb/merge' into merge
parents
faf80d62
a22ebd06
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
166 additions
and
56 deletions
+166
-56
arch/powerpc/boot/dts/warp.dts
arch/powerpc/boot/dts/warp.dts
+2
-1
arch/powerpc/configs/44x/warp_defconfig
arch/powerpc/configs/44x/warp_defconfig
+157
-43
arch/powerpc/platforms/44x/warp.c
arch/powerpc/platforms/44x/warp.c
+7
-12
No files found.
arch/powerpc/boot/dts/warp.dts
View file @
01cc8262
...
@@ -261,10 +261,11 @@
...
@@ -261,10 +261,11 @@
compatible
=
"gpio-leds"
;
compatible
=
"gpio-leds"
;
green
{
green
{
gpios
=
<&
GPIO1
0
0
>;
gpios
=
<&
GPIO1
0
0
>;
default
-
state
=
"
on
"
;
default
-
state
=
"
keep
"
;
};
};
red
{
red
{
gpios
=
<&
GPIO1
1
0
>;
gpios
=
<&
GPIO1
1
0
>;
default
-
state
=
"keep"
;
};
};
};
};
...
...
arch/powerpc/configs/44x/warp_defconfig
View file @
01cc8262
This diff is collapsed.
Click to expand it.
arch/powerpc/platforms/44x/warp.c
View file @
01cc8262
...
@@ -64,8 +64,6 @@ define_machine(warp) {
...
@@ -64,8 +64,6 @@ define_machine(warp) {
};
};
static
u32
post_info
;
static
int
__init
warp_post_info
(
void
)
static
int
__init
warp_post_info
(
void
)
{
{
struct
device_node
*
np
;
struct
device_node
*
np
;
...
@@ -87,10 +85,9 @@ static int __init warp_post_info(void)
...
@@ -87,10 +85,9 @@ static int __init warp_post_info(void)
iounmap
(
fpga
);
iounmap
(
fpga
);
if
(
post1
||
post2
)
{
if
(
post1
||
post2
)
printk
(
KERN_INFO
"Warp POST %08x %08x
\n
"
,
post1
,
post2
);
printk
(
KERN_INFO
"Warp POST %08x %08x
\n
"
,
post1
,
post2
);
post_info
=
1
;
else
}
else
printk
(
KERN_INFO
"Warp POST OK
\n
"
);
printk
(
KERN_INFO
"Warp POST OK
\n
"
);
return
0
;
return
0
;
...
@@ -166,6 +163,9 @@ static irqreturn_t temp_isr(int irq, void *context)
...
@@ -166,6 +163,9 @@ static irqreturn_t temp_isr(int irq, void *context)
value
^=
1
;
value
^=
1
;
mdelay
(
500
);
mdelay
(
500
);
}
}
/* Not reached */
return
IRQ_HANDLED
;
}
}
static
int
pika_setup_leds
(
void
)
static
int
pika_setup_leds
(
void
)
...
@@ -179,15 +179,10 @@ static int pika_setup_leds(void)
...
@@ -179,15 +179,10 @@ static int pika_setup_leds(void)
}
}
for_each_child_of_node
(
np
,
child
)
for_each_child_of_node
(
np
,
child
)
if
(
strcmp
(
child
->
name
,
"green"
)
==
0
)
{
if
(
strcmp
(
child
->
name
,
"green"
)
==
0
)
green_led
=
of_get_gpio
(
child
,
0
);
green_led
=
of_get_gpio
(
child
,
0
);
/* Turn back on the green LED */
else
if
(
strcmp
(
child
->
name
,
"red"
)
==
0
)
gpio_set_value
(
green_led
,
1
);
}
else
if
(
strcmp
(
child
->
name
,
"red"
)
==
0
)
{
red_led
=
of_get_gpio
(
child
,
0
);
red_led
=
of_get_gpio
(
child
,
0
);
/* Set based on post */
gpio_set_value
(
red_led
,
post_info
);
}
of_node_put
(
np
);
of_node_put
(
np
);
...
...
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