Commit 259e2346 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Jason Cooper

arm: kirkwood: convert QNAP TS219 to use DT for the PCIe interface

Now that the PCIe mvebu driver is usable on Kirkwood, use it instead
of the legacy PCIe code, since it allows to describe the PCIe
interfaces in the Device Tree.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 40fa8e5d
/dts-v1/; /dts-v1/;
/include/ "kirkwood-ts219.dtsi" /include/ "kirkwood.dtsi"
/include/ "kirkwood-6281.dtsi" /include/ "kirkwood-6281.dtsi"
/include/ "kirkwood-ts219.dtsi"
/ { / {
ocp@f1000000 { ocp@f1000000 {
......
/dts-v1/; /dts-v1/;
/include/ "kirkwood-ts219.dtsi" /include/ "kirkwood.dtsi"
/include/ "kirkwood-6282.dtsi" /include/ "kirkwood-6282.dtsi"
/include/ "kirkwood-ts219.dtsi"
/ { / {
ocp@f1000000 { ocp@f1000000 {
......
/include/ "kirkwood.dtsi"
/ { / {
model = "QNAP TS219 family"; model = "QNAP TS219 family";
compatible = "qnap,ts219", "marvell,kirkwood"; compatible = "qnap,ts219", "marvell,kirkwood";
...@@ -74,5 +72,12 @@ sata@80000 { ...@@ -74,5 +72,12 @@ sata@80000 {
status = "okay"; status = "okay";
nr-ports = <2>; nr-ports = <2>;
}; };
pcie-controller {
status = "okay";
pcie@1,0 {
status = "okay";
};
};
}; };
}; };
...@@ -41,13 +41,3 @@ void __init qnap_dt_ts219_init(void) ...@@ -41,13 +41,3 @@ void __init qnap_dt_ts219_init(void)
pm_power_off = qnap_tsx1x_power_off; pm_power_off = qnap_tsx1x_power_off;
} }
/* FIXME: Will not work with DT. Maybe use MPP40_GPIO? */
static int __init ts219_pci_init(void)
{
if (machine_is_ts219())
kirkwood_pcie_init(KW_PCIE0);
return 0;
}
subsys_initcall(ts219_pci_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment