summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2013-03-15 16:41:59 +0000
committerPeter Maydell <peter.maydell@linaro.org>2013-03-15 16:41:59 +0000
commite0891bd8bfd3349fc3fecde30e51900059f53f11 (patch)
treef3616fb3fc47694deb4a93f49b39831d29c3767f /hw
parent2790cd911e563f7fec7eeb7856b7f5f54437cc0a (diff)
downloadhqemu-e0891bd8bfd3349fc3fecde30e51900059f53f11.zip
hqemu-e0891bd8bfd3349fc3fecde30e51900059f53f11.tar.gz
xilinx_spips: Fix bus setup conditional check
The R_LQPSI_CFG register has the LQSPI_CFG_SEP_BUS and LQSPI_CFG_TWO_MEM bits. Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-id: d76c8e364c80a42352ae4f0661aff2cd17ad32a4.1362373359.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/xilinx_spips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xilinx_spips.c b/hw/xilinx_spips.c
index 853f4e0..efa1449 100644
--- a/hw/xilinx_spips.c
+++ b/hw/xilinx_spips.c
@@ -143,8 +143,8 @@ typedef struct {
static inline int num_effective_busses(XilinxSPIPS *s)
{
- return (s->regs[R_LQSPI_STS] & LQSPI_CFG_SEP_BUS &&
- s->regs[R_LQSPI_STS] & LQSPI_CFG_TWO_MEM) ? s->num_busses : 1;
+ return (s->regs[R_LQSPI_CFG] & LQSPI_CFG_SEP_BUS &&
+ s->regs[R_LQSPI_CFG] & LQSPI_CFG_TWO_MEM) ? s->num_busses : 1;
}
static void xilinx_spips_update_cs_lines(XilinxSPIPS *s)
OpenPOWER on IntegriCloud