diff options
author | Andrew Lunn <andrew@lunn.ch> | 2014-02-25 18:34:01 +0100 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-02-25 20:32:16 +0000 |
commit | b02b64384696ad13d6a827dc7775489d01b3dfd9 (patch) | |
tree | afdb11754f61b7004c181b2d3f1221a63c7edc4f /arch/arm/mach-mvebu/kirkwood.c | |
parent | 1b82af4f1749119fca8e07451223da10d3ca938d (diff) | |
download | talos-op-linux-b02b64384696ad13d6a827dc7775489d01b3dfd9.tar.gz talos-op-linux-b02b64384696ad13d6a827dc7775489d01b3dfd9.zip |
ARM: kirkwood: Add HP T5325 thin client
Convert the kirkwood t5325-setup.c to mostly device tree for
mach-mvebu. Part of the audio setup needs to remain in C for the
moment until suitable bindings are designed and implemented. So add
board code, triggered by the compatibility string.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-mvebu/kirkwood.c')
-rw-r--r-- | arch/arm/mach-mvebu/kirkwood.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/kirkwood.c b/arch/arm/mach-mvebu/kirkwood.c index 8a38b10532e5..120207fc36f1 100644 --- a/arch/arm/mach-mvebu/kirkwood.c +++ b/arch/arm/mach-mvebu/kirkwood.c @@ -25,6 +25,7 @@ #include "kirkwood.h" #include "kirkwood-pm.h" #include "common.h" +#include "board.h" static struct resource kirkwood_cpufreq_resources[] = { [0] = { @@ -158,6 +159,11 @@ void kirkwood_disable_mbus_error_propagation(void) writel(readl(cpu_config) & ~CPU_CONFIG_ERROR_PROP, cpu_config); } +static struct of_dev_auxdata auxdata[] __initdata = { + OF_DEV_AUXDATA("marvell,kirkwood-audio", 0xf10a0000, + "mvebu-audio", NULL), + { /* sentinel */ } +}; static void __init kirkwood_dt_init(void) { @@ -174,7 +180,10 @@ static void __init kirkwood_dt_init(void) kirkwood_pm_init(); kirkwood_dt_eth_fixup(); - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); + if (of_machine_is_compatible("hp,t5325")) + t5325_init(); + + of_platform_populate(NULL, of_default_bus_match_table, auxdata, NULL); } static const char * const kirkwood_dt_board_compat[] = { |