Lines Matching refs:plat
24 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_write_speed() local
32 plat->tshsl_ns, plat->tsd2d_ns, in cadence_spi_write_speed()
33 plat->tchsh_ns, plat->tslch_ns); in cadence_spi_write_speed()
120 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_set_speed() local
124 if (hz > plat->max_hz) in cadence_spi_set_speed()
125 hz = plat->max_hz; in cadence_spi_set_speed()
155 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_probe() local
158 priv->regbase = plat->regbase; in cadence_spi_probe()
159 priv->ahbbase = plat->ahbbase; in cadence_spi_probe()
162 cadence_qspi_apb_controller_init(plat); in cadence_spi_probe()
189 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_xfer() local
214 plat->is_decoded_cs); in cadence_spi_xfer()
250 err = cadence_qspi_apb_indirect_read_setup(plat, in cadence_spi_xfer()
254 (plat, data_bytes, din); in cadence_spi_xfer()
259 (plat, priv->cmd_len, cmd_buf); in cadence_spi_xfer()
262 (plat, data_bytes, dout); in cadence_spi_xfer()
282 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_ofdata_to_platdata() local
287 plat->regbase = (void *)devfdt_get_addr_index(bus, 0); in cadence_spi_ofdata_to_platdata()
288 plat->ahbbase = (void *)devfdt_get_addr_index(bus, 1); in cadence_spi_ofdata_to_platdata()
289 plat->is_decoded_cs = fdtdec_get_bool(blob, node, "cdns,is-decoded-cs"); in cadence_spi_ofdata_to_platdata()
290 plat->fifo_depth = fdtdec_get_uint(blob, node, "cdns,fifo-depth", 128); in cadence_spi_ofdata_to_platdata()
291 plat->fifo_width = fdtdec_get_uint(blob, node, "cdns,fifo-width", 4); in cadence_spi_ofdata_to_platdata()
292 plat->trigger_address = fdtdec_get_uint(blob, node, in cadence_spi_ofdata_to_platdata()
303 plat->max_hz = fdtdec_get_uint(blob, subnode, "spi-max-frequency", in cadence_spi_ofdata_to_platdata()
307 plat->page_size = fdtdec_get_uint(blob, subnode, "page-size", 256); in cadence_spi_ofdata_to_platdata()
308 plat->block_size = fdtdec_get_uint(blob, subnode, "block-size", 16); in cadence_spi_ofdata_to_platdata()
309 plat->tshsl_ns = fdtdec_get_uint(blob, subnode, "cdns,tshsl-ns", 200); in cadence_spi_ofdata_to_platdata()
310 plat->tsd2d_ns = fdtdec_get_uint(blob, subnode, "cdns,tsd2d-ns", 255); in cadence_spi_ofdata_to_platdata()
311 plat->tchsh_ns = fdtdec_get_uint(blob, subnode, "cdns,tchsh-ns", 20); in cadence_spi_ofdata_to_platdata()
312 plat->tslch_ns = fdtdec_get_uint(blob, subnode, "cdns,tslch-ns", 20); in cadence_spi_ofdata_to_platdata()
315 __func__, plat->regbase, plat->ahbbase, plat->max_hz, in cadence_spi_ofdata_to_platdata()
316 plat->page_size); in cadence_spi_ofdata_to_platdata()