Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60558
b: refs/heads/master
c: 542c98c
h: refs/heads/master
v: v3
  • Loading branch information
Mark A. Greer authored and Paul Mackerras committed Jun 25, 2007
1 parent c16701e commit 3e30dc2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3855fa5540617877907ca61c36d28e18d0f2473
refs/heads/master: 542c98c06712fdbbbfe6b9e92a8d0023cf45102a
28 changes: 28 additions & 0 deletions trunk/arch/powerpc/sysdev/mv64x60_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/mv643xx.h>
#include <linux/platform_device.h>

Expand Down Expand Up @@ -420,3 +421,30 @@ static int __init mv64x60_device_setup(void)
return err;
}
arch_initcall(mv64x60_device_setup);

static int __init mv64x60_add_mpsc_console(void)
{
struct device_node *np = NULL;
const char *prop;

prop = of_get_property(of_chosen, "linux,stdout-path", NULL);
if (prop == NULL)
goto not_mpsc;

np = of_find_node_by_path(prop);
if (!np)
goto not_mpsc;

if (!of_device_is_compatible(np, "marvell,mpsc"))
goto not_mpsc;

prop = of_get_property(np, "block-index", NULL);
if (!prop)
goto not_mpsc;

add_preferred_console("ttyMM", *(int *)prop, NULL);

not_mpsc:
return 0;
}
console_initcall(mv64x60_add_mpsc_console);

0 comments on commit 3e30dc2

Please sign in to comment.