提交 c11bd557 编写于 作者: S Stephen Warren

mmc: tegra: use bus-width property instead of support-8bit

Update the driver to parse the new unified bus-width property introduced
in commit 7f217794 "mmc: dt: Consolidate DT bindings", instead of the legacy
support-8bit property.
Signed-off-by: NStephen Warren <swarren@nvidia.com>
Acked-by: NChris Ball <cjb@laptop.org>
上级 b4e395b2
...@@ -223,6 +223,7 @@ static struct tegra_sdhci_platform_data * __devinit sdhci_tegra_dt_parse_pdata( ...@@ -223,6 +223,7 @@ static struct tegra_sdhci_platform_data * __devinit sdhci_tegra_dt_parse_pdata(
{ {
struct tegra_sdhci_platform_data *plat; struct tegra_sdhci_platform_data *plat;
struct device_node *np = pdev->dev.of_node; struct device_node *np = pdev->dev.of_node;
u32 bus_width;
if (!np) if (!np)
return NULL; return NULL;
...@@ -236,7 +237,9 @@ static struct tegra_sdhci_platform_data * __devinit sdhci_tegra_dt_parse_pdata( ...@@ -236,7 +237,9 @@ static struct tegra_sdhci_platform_data * __devinit sdhci_tegra_dt_parse_pdata(
plat->cd_gpio = of_get_named_gpio(np, "cd-gpios", 0); plat->cd_gpio = of_get_named_gpio(np, "cd-gpios", 0);
plat->wp_gpio = of_get_named_gpio(np, "wp-gpios", 0); plat->wp_gpio = of_get_named_gpio(np, "wp-gpios", 0);
plat->power_gpio = of_get_named_gpio(np, "power-gpios", 0); plat->power_gpio = of_get_named_gpio(np, "power-gpios", 0);
if (of_find_property(np, "support-8bit", NULL))
if (of_property_read_u32(np, "bus-width", &bus_width) == 0 &&
bus_width == 8)
plat->is_8bit = 1; plat->is_8bit = 1;
return plat; return plat;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册