mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
spi: cadence_qspi_apb: Support 32 bit AHB address
AHB address can be as long as 32 bit, hence remove the CQSPI_REG_INDIRECTRDSTARTADDR mask. Since AHB address is passed from DT and read as u32 value, it anyway does not make sense to mask upper bits. Signed-off-by: Vignesh R <vigneshr@ti.com> Tested-by: Marek Vasut <marex@denx.de> Acked-by: Marek Vasut <marex@denx.de> Reviewed-by: Jagan Teki <jteki@openedev.com>
This commit is contained in:
parent
fdf02a36c5
commit
dac3bf20fb
@ -45,7 +45,6 @@
|
|||||||
#define CQSPI_INST_TYPE_QUAD (2)
|
#define CQSPI_INST_TYPE_QUAD (2)
|
||||||
|
|
||||||
#define CQSPI_STIG_DATA_LEN_MAX (8)
|
#define CQSPI_STIG_DATA_LEN_MAX (8)
|
||||||
#define CQSPI_INDIRECTTRIGGER_ADDR_MASK (0xFFFFF)
|
|
||||||
|
|
||||||
#define CQSPI_DUMMY_CLKS_PER_BYTE (8)
|
#define CQSPI_DUMMY_CLKS_PER_BYTE (8)
|
||||||
#define CQSPI_DUMMY_BYTES_MAX (4)
|
#define CQSPI_DUMMY_BYTES_MAX (4)
|
||||||
@ -573,7 +572,7 @@ int cadence_qspi_apb_indirect_read_setup(struct cadence_spi_platdata *plat,
|
|||||||
addr_bytes = cmdlen - 1;
|
addr_bytes = cmdlen - 1;
|
||||||
|
|
||||||
/* Setup the indirect trigger address */
|
/* Setup the indirect trigger address */
|
||||||
writel(((u32)plat->ahbbase & CQSPI_INDIRECTTRIGGER_ADDR_MASK),
|
writel((u32)plat->ahbbase,
|
||||||
plat->regbase + CQSPI_REG_INDIRECTTRIGGER);
|
plat->regbase + CQSPI_REG_INDIRECTTRIGGER);
|
||||||
|
|
||||||
/* Configure the opcode */
|
/* Configure the opcode */
|
||||||
@ -714,7 +713,7 @@ int cadence_qspi_apb_indirect_write_setup(struct cadence_spi_platdata *plat,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
/* Setup the indirect trigger address */
|
/* Setup the indirect trigger address */
|
||||||
writel(((u32)plat->ahbbase & CQSPI_INDIRECTTRIGGER_ADDR_MASK),
|
writel((u32)plat->ahbbase,
|
||||||
plat->regbase + CQSPI_REG_INDIRECTTRIGGER);
|
plat->regbase + CQSPI_REG_INDIRECTTRIGGER);
|
||||||
|
|
||||||
/* Configure the opcode */
|
/* Configure the opcode */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user