提交 da9fa17e 编写于 作者: P Peter A. G. Crosthwaite 提交者: Edgar E. Iglesias

xilinx_axidma: changed device name

Changed device name to xlnx,axi-dma. This is the exact name of the device in the
Xilinx EDK development tools.
Signed-off-by: NPeter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@gmail.com>
上级 cec6f8ca
...@@ -75,7 +75,7 @@ xilinx_axiethernetdma_create(void *dmach, ...@@ -75,7 +75,7 @@ xilinx_axiethernetdma_create(void *dmach,
{ {
DeviceState *dev = NULL; DeviceState *dev = NULL;
dev = qdev_create(NULL, "xilinx,axidma"); dev = qdev_create(NULL, "xlnx.axi-dma");
qdev_prop_set_uint32(dev, "freqhz", freqhz); qdev_prop_set_uint32(dev, "freqhz", freqhz);
qdev_prop_set_ptr(dev, "dmach", dmach); qdev_prop_set_ptr(dev, "dmach", dmach);
qdev_init_nofail(dev); qdev_init_nofail(dev);
......
...@@ -473,7 +473,7 @@ static int xilinx_axidma_init(SysBusDevice *dev) ...@@ -473,7 +473,7 @@ static int xilinx_axidma_init(SysBusDevice *dev)
xlx_dma_connect_dma(s->dmach, s, axidma_push); xlx_dma_connect_dma(s->dmach, s, axidma_push);
memory_region_init_io(&s->iomem, &axidma_ops, s, memory_region_init_io(&s->iomem, &axidma_ops, s,
"axidma", R_MAX * 4 * 2); "xlnx.axi-dma", R_MAX * 4 * 2);
sysbus_init_mmio(dev, &s->iomem); sysbus_init_mmio(dev, &s->iomem);
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
...@@ -502,7 +502,7 @@ static void axidma_class_init(ObjectClass *klass, void *data) ...@@ -502,7 +502,7 @@ static void axidma_class_init(ObjectClass *klass, void *data)
} }
static TypeInfo axidma_info = { static TypeInfo axidma_info = {
.name = "xilinx,axidma", .name = "xlnx.axi-dma",
.parent = TYPE_SYS_BUS_DEVICE, .parent = TYPE_SYS_BUS_DEVICE,
.instance_size = sizeof(struct XilinxAXIDMA), .instance_size = sizeof(struct XilinxAXIDMA),
.class_init = axidma_class_init, .class_init = axidma_class_init,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册