mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
2790cd911e
commit
e0891bd8bf
1 changed files with 2 additions and 2 deletions
|
@ -143,8 +143,8 @@ typedef struct {
|
||||||
|
|
||||||
static inline int num_effective_busses(XilinxSPIPS *s)
|
static inline int num_effective_busses(XilinxSPIPS *s)
|
||||||
{
|
{
|
||||||
return (s->regs[R_LQSPI_STS] & LQSPI_CFG_SEP_BUS &&
|
return (s->regs[R_LQSPI_CFG] & LQSPI_CFG_SEP_BUS &&
|
||||||
s->regs[R_LQSPI_STS] & LQSPI_CFG_TWO_MEM) ? s->num_busses : 1;
|
s->regs[R_LQSPI_CFG] & LQSPI_CFG_TWO_MEM) ? s->num_busses : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xilinx_spips_update_cs_lines(XilinxSPIPS *s)
|
static void xilinx_spips_update_cs_lines(XilinxSPIPS *s)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue