Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308358
b: refs/heads/master
c: 394025e
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed May 11, 2012
1 parent b575987 commit 2326379
Show file tree
Hide file tree
Showing 2 changed files with 20 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: bf22e530d5a9a1c869c02f5ee3f92f334f145802
refs/heads/master: 394025ef422bc4a6c4e5040abb41260749e662be
19 changes: 19 additions & 0 deletions trunk/arch/arm/mach-imx/imx53-dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
* http://www.gnu.org/copyleft/gpl.html
*/

#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
Expand Down Expand Up @@ -80,6 +83,19 @@ static const struct of_device_id imx53_iomuxc_of_match[] __initconst = {
{ /* sentinel */ }
};

static void __init imx53_qsb_init(void)
{
struct clk *clk;

clk = clk_get_sys(NULL, "ssi_ext1");
if (IS_ERR(clk)) {
pr_err("failed to get clk ssi_ext1\n");
return;
}

clk_register_clkdev(clk, NULL, "0-000a");
}

static void __init imx53_dt_init(void)
{
struct device_node *node;
Expand All @@ -96,6 +112,9 @@ static void __init imx53_dt_init(void)
of_node_put(node);
}

if (of_machine_is_compatible("fsl,imx53-qsb"))
imx53_qsb_init();

of_platform_populate(NULL, of_default_bus_match_table,
imx53_auxdata_lookup, NULL);
}
Expand Down

0 comments on commit 2326379

Please sign in to comment.