|
@@ -35,8 +35,10 @@ static struct mpc512x_reset_module __iomem *reset_module_base;
|
|
|
static void __init mpc512x_restart_init(void)
|
|
|
{
|
|
|
struct device_node *np;
|
|
|
+ const char *reset_compat;
|
|
|
|
|
|
- np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-reset");
|
|
|
+ reset_compat = mpc512x_select_reset_compat();
|
|
|
+ np = of_find_compatible_node(NULL, NULL, reset_compat);
|
|
|
if (!np)
|
|
|
return;
|
|
|
|
|
@@ -355,6 +357,17 @@ const char *mpc512x_select_psc_compat(void)
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
+const char *mpc512x_select_reset_compat(void)
|
|
|
+{
|
|
|
+ if (of_machine_is_compatible("fsl,mpc5121"))
|
|
|
+ return "fsl,mpc5121-reset";
|
|
|
+
|
|
|
+ if (of_machine_is_compatible("fsl,mpc5125"))
|
|
|
+ return "fsl,mpc5125-reset";
|
|
|
+
|
|
|
+ return NULL;
|
|
|
+}
|
|
|
+
|
|
|
static unsigned int __init get_fifo_size(struct device_node *np,
|
|
|
char *prop_name)
|
|
|
{
|