* [PATCH] bus: imx-weim: populate devices on a simple bus
@ 2014-07-04 9:00 Liu Ying
2014-07-07 5:49 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Liu Ying @ 2014-07-04 9:00 UTC (permalink / raw)
To: linux-arm-kernel
There could be some memory map devices located in
a certain chip select region of the i.MX WEIM.
The devices could be attached to a simple bus(for
example, a AXI bus) whose root node is one child
device tree node of the i.MX WEIM device tree node.
There should be a bridge(very likely, software
transparent) bewteen the i.MX WEIM and the simple bus.
This patch makes the i.MX WEIM driver possible to
populate devices on a simple bus. In this way, people
may try various IPs(in a FPGA, maybe) outside of i.MX
chips with the i.MX WEIM embedded.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
---
drivers/bus/imx-weim.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c
index f8ee13c..75c9681 100644
--- a/drivers/bus/imx-weim.c
+++ b/drivers/bus/imx-weim.c
@@ -162,7 +162,9 @@ static int __init weim_parse_dt(struct platform_device *pdev,
}
}
- ret = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
+ ret = of_platform_populate(pdev->dev.of_node,
+ of_default_bus_match_table,
+ NULL, &pdev->dev);
if (ret)
dev_err(&pdev->dev, "%s fail to create devices.\n",
pdev->dev.of_node->full_name);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] bus: imx-weim: populate devices on a simple bus
2014-07-04 9:00 [PATCH] bus: imx-weim: populate devices on a simple bus Liu Ying
@ 2014-07-07 5:49 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2014-07-07 5:49 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jul 04, 2014 at 05:00:41PM +0800, Liu Ying wrote:
> There could be some memory map devices located in
> a certain chip select region of the i.MX WEIM.
> The devices could be attached to a simple bus(for
> example, a AXI bus) whose root node is one child
> device tree node of the i.MX WEIM device tree node.
> There should be a bridge(very likely, software
> transparent) bewteen the i.MX WEIM and the simple bus.
> This patch makes the i.MX WEIM driver possible to
> populate devices on a simple bus. In this way, people
> may try various IPs(in a FPGA, maybe) outside of i.MX
> chips with the i.MX WEIM embedded.
>
> Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-07 5:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-04 9:00 [PATCH] bus: imx-weim: populate devices on a simple bus Liu Ying
2014-07-07 5:49 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).