diff options
author | Phil Edworthy <PHIL.EDWORTHY@renesas.com> | 2016-11-29 12:58:34 +0000 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2016-12-15 16:57:28 +0100 |
commit | 6d72810c6640e13b4c1e25f6c26ac8c304d5b54e (patch) | |
tree | 4aaae14e4bb9eaa8eb288a1bdb6ff8c955fdfeda /drivers/spi | |
parent | 22e63ff3a23d189187d96dbcec50e94233027b3a (diff) | |
download | u-boot-imx-6d72810c6640e13b4c1e25f6c26ac8c304d5b54e.zip u-boot-imx-6d72810c6640e13b4c1e25f6c26ac8c304d5b54e.tar.gz u-boot-imx-6d72810c6640e13b4c1e25f6c26ac8c304d5b54e.tar.bz2 |
spi: cadence_qspi: Move DT prop code to match layout
Move the code to read the "sram-size" property into the other code
that reads properties from the node, rather than the SF subnode.
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/cadence_qspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c index 55192d6..f16f90d 100644 --- a/drivers/spi/cadence_qspi.c +++ b/drivers/spi/cadence_qspi.c @@ -296,6 +296,7 @@ static int cadence_spi_ofdata_to_platdata(struct udevice *bus) plat->regbase = (void *)data[0]; plat->ahbbase = (void *)data[2]; + plat->sram_size = fdtdec_get_int(blob, node, "sram-size", 128); /* All other paramters are embedded in the child node */ subnode = fdt_first_subnode(blob, node); @@ -315,7 +316,6 @@ static int cadence_spi_ofdata_to_platdata(struct udevice *bus) plat->tsd2d_ns = fdtdec_get_int(blob, subnode, "tsd2d-ns", 255); plat->tchsh_ns = fdtdec_get_int(blob, subnode, "tchsh-ns", 20); plat->tslch_ns = fdtdec_get_int(blob, subnode, "tslch-ns", 20); - plat->sram_size = fdtdec_get_int(blob, node, "sram-size", 128); debug("%s: regbase=%p ahbbase=%p max-frequency=%d page-size=%d\n", __func__, plat->regbase, plat->ahbbase, plat->max_hz, |