forked from luck/tmp_suning_uos_patched
net/can/mpc52xx_can: improve properties and their description
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Cc: devicetree-discuss@ozlabs.org Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f158c2532
commit
81593c1cea
@ -181,9 +181,10 @@ External interrupts:
|
|||||||
fsl,mpc5200-mscan nodes
|
fsl,mpc5200-mscan nodes
|
||||||
-----------------------
|
-----------------------
|
||||||
In addition to the required compatible-, reg- and interrupt-properites, you can
|
In addition to the required compatible-, reg- and interrupt-properites, you can
|
||||||
also specify which clock shall be used for the bus:
|
also specify which clock source shall be used for the controller:
|
||||||
|
|
||||||
- fsl,mscan-clk-src - a string describing the clock source. Valid values
|
- fsl,mscan-clock-source- a string describing the clock source. Valid values
|
||||||
are "ip" for IP_CLK and "sys" for SYS_XTAL.
|
are: "ip" for ip bus clock
|
||||||
"sys" is the default in case the property is not
|
"ref" for reference clock (XTAL)
|
||||||
|
"ref" is default in case this property is not
|
||||||
present.
|
present.
|
||||||
|
@ -130,7 +130,7 @@ static int __devinit mpc5xxx_can_probe(struct of_device *ofdev,
|
|||||||
* choice as it has less jitter. For this reason, it is selected
|
* choice as it has less jitter. For this reason, it is selected
|
||||||
* by default.
|
* by default.
|
||||||
*/
|
*/
|
||||||
clk_src = of_get_property(np, "fsl,mscan-clk-src", NULL);
|
clk_src = of_get_property(np, "fsl,mscan-clock-source", NULL);
|
||||||
if (clk_src && strcmp(clk_src, "ip") == 0)
|
if (clk_src && strcmp(clk_src, "ip") == 0)
|
||||||
clock_src = MSCAN_CLKSRC_BUS;
|
clock_src = MSCAN_CLKSRC_BUS;
|
||||||
else
|
else
|
||||||
@ -227,7 +227,6 @@ static int mpc5xxx_can_resume(struct of_device *ofdev)
|
|||||||
|
|
||||||
static struct of_device_id __devinitdata mpc5xxx_can_table[] = {
|
static struct of_device_id __devinitdata mpc5xxx_can_table[] = {
|
||||||
{.compatible = "fsl,mpc5200-mscan"},
|
{.compatible = "fsl,mpc5200-mscan"},
|
||||||
{.compatible = "fsl,mpc5200b-mscan"},
|
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user