提交 5be97ca4 编写于 作者: S Simon Horman

ARM: shmobile: bockw-reference: Initialise SCIF device using DT

Initialise SCIF device using DT when booting bockw
using DT reference.
Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 9930dc8e
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
model = "bockw"; model = "bockw";
compatible = "renesas,bockw-reference", "renesas,r8a7778"; compatible = "renesas,bockw-reference", "renesas,r8a7778";
aliases {
serial0 = &scif0;
};
chosen { chosen {
bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw"; bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
}; };
...@@ -70,9 +74,6 @@ ...@@ -70,9 +74,6 @@
}; };
&pfc { &pfc {
pinctrl-0 = <&scif0_pins>;
pinctrl-names = "default";
scif0_pins: serial0 { scif0_pins: serial0 {
renesas,groups = "scif0_data_a", "scif0_ctrl"; renesas,groups = "scif0_data_a", "scif0_ctrl";
renesas,function = "scif0"; renesas,function = "scif0";
...@@ -124,3 +125,10 @@ ...@@ -124,3 +125,10 @@
}; };
}; };
}; };
&scif0 {
pinctrl-0 = <&scif0_pins>;
pinctrl-names = "default";
status = "okay";
};
...@@ -292,12 +292,6 @@ void __init r8a7778_add_dt_devices(void) ...@@ -292,12 +292,6 @@ void __init r8a7778_add_dt_devices(void)
} }
#endif #endif
r8a7778_register_scif(0);
r8a7778_register_scif(1);
r8a7778_register_scif(2);
r8a7778_register_scif(3);
r8a7778_register_scif(4);
r8a7778_register_scif(5);
r8a7778_register_tmu(0); r8a7778_register_tmu(0);
} }
...@@ -506,6 +500,12 @@ static void __init r8a7778_register_hpb_dmae(void) ...@@ -506,6 +500,12 @@ static void __init r8a7778_register_hpb_dmae(void)
void __init r8a7778_add_standard_devices(void) void __init r8a7778_add_standard_devices(void)
{ {
r8a7778_add_dt_devices(); r8a7778_add_dt_devices();
r8a7778_register_scif(0);
r8a7778_register_scif(1);
r8a7778_register_scif(2);
r8a7778_register_scif(3);
r8a7778_register_scif(4);
r8a7778_register_scif(5);
r8a7778_register_i2c(0); r8a7778_register_i2c(0);
r8a7778_register_i2c(1); r8a7778_register_i2c(1);
r8a7778_register_i2c(2); r8a7778_register_i2c(2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册