diff options
Diffstat (limited to 'arch/powerpc/sysdev/cpm_common.c')
-rw-r--r-- | arch/powerpc/sysdev/cpm_common.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/cpm_common.c b/arch/powerpc/sysdev/cpm_common.c index 947f42007734..51bf749a4f3a 100644 --- a/arch/powerpc/sysdev/cpm_common.c +++ b/arch/powerpc/sysdev/cpm_common.c | |||
@@ -37,6 +37,21 @@ | |||
37 | #include <linux/of_gpio.h> | 37 | #include <linux/of_gpio.h> |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | static int __init cpm_init(void) | ||
41 | { | ||
42 | struct device_node *np; | ||
43 | |||
44 | np = of_find_compatible_node(NULL, NULL, "fsl,cpm1"); | ||
45 | if (!np) | ||
46 | np = of_find_compatible_node(NULL, NULL, "fsl,cpm2"); | ||
47 | if (!np) | ||
48 | return -ENODEV; | ||
49 | cpm_muram_init(); | ||
50 | of_node_put(np); | ||
51 | return 0; | ||
52 | } | ||
53 | subsys_initcall(cpm_init); | ||
54 | |||
40 | #ifdef CONFIG_PPC_EARLY_DEBUG_CPM | 55 | #ifdef CONFIG_PPC_EARLY_DEBUG_CPM |
41 | static u32 __iomem *cpm_udbg_txdesc; | 56 | static u32 __iomem *cpm_udbg_txdesc; |
42 | static u8 __iomem *cpm_udbg_txbuf; | 57 | static u8 __iomem *cpm_udbg_txbuf; |