projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spi: xilinx_spi: Fix to configure CPOL, CPHA mask
[oweals/u-boot.git]
/
drivers
/
spi
/
fsl_dspi.c
diff --git
a/drivers/spi/fsl_dspi.c
b/drivers/spi/fsl_dspi.c
index 3881b2e8a54630938667d08ca911a5f06854542d..887edd801a42d1a87662ca7e3f0f036f19e50cc2 100644
(file)
--- a/
drivers/spi/fsl_dspi.c
+++ b/
drivers/spi/fsl_dspi.c
@@
-654,7
+654,7
@@
static int fsl_dspi_ofdata_to_platdata(struct udevice *bus)
plat->num_chipselect =
fdtdec_get_int(blob, node, "num-cs", FSL_DSPI_MAX_CHIPSELECT);
plat->num_chipselect =
fdtdec_get_int(blob, node, "num-cs", FSL_DSPI_MAX_CHIPSELECT);
- addr =
fdtdec_get_addr(blob, node, "reg"
);
+ addr =
dev_get_addr(bus
);
if (addr == FDT_ADDR_T_NONE) {
debug("DSPI: Can't get base address or size\n");
return -ENOMEM;
if (addr == FDT_ADDR_T_NONE) {
debug("DSPI: Can't get base address or size\n");
return -ENOMEM;