]> Git Repo - qemu.git/commit - hw/xilinx_zynq.c
xilinx_zynq: Add one variable to avoid overwriting QSPI bus
authorwalimis <[email protected]>
Tue, 11 Dec 2012 11:30:37 +0000 (11:30 +0000)
committerPeter Maydell <[email protected]>
Tue, 11 Dec 2012 11:30:37 +0000 (11:30 +0000)
commit79f5d67e9db35d53b478699393590392f7be03ac
treebd6781b94c44260f8662f65550a933e72cfbd051
parentee3f095680e4f578f4f1371a90acc20375b48966
xilinx_zynq: Add one variable to avoid overwriting QSPI bus

commit 7b482bcf xilinx_zynq: added QSPI controller

Adds one QSPI controller, which has two spi buses, one is for
spi0, and another is for spi1. But when initializing the spi1
bus, "dev" has been overwrited by the ssi_create_slave_no_init() function,
so that qdev_get_child_bus() returns NULL and the last two m25p80 flashes
won't be attached to the spi1 bus, but to main-system-bus.

Here we add one variable to avoid overwriting.

Signed-off-by: Liming Wang <[email protected]>
Reviewed-by: Peter Crosthwaite <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/xilinx_zynq.c
This page took 0.026021 seconds and 4 git commands to generate.