Lines Matching refs:pdata
62 struct mpc8xxx_spi_probe_info *to_of_pinfo(struct fsl_spi_platform_data *pdata) in MPC8XXX_SPI_RX_BUF()
64 return container_of(pdata, struct mpc8xxx_spi_probe_info, pdata); in MPC8XXX_SPI_RX_BUF()
87 struct fsl_spi_platform_data *pdata = dev_get_platdata(dev); in mpc8xxx_spi_probe() local
103 mpc8xxx_spi->flags = pdata->flags; in mpc8xxx_spi_probe()
104 mpc8xxx_spi->spibrg = pdata->sysclk; in mpc8xxx_spi_probe()
110 master->bus_num = pdata->bus_num; in mpc8xxx_spi_probe()
111 master->num_chipselect = pdata->max_chipselect; in mpc8xxx_spi_probe()
141 struct fsl_spi_platform_data *pdata; in of_mpc8xxx_spi_probe() local
149 pdata = &pinfo->pdata; in of_mpc8xxx_spi_probe()
150 dev->platform_data = pdata; in of_mpc8xxx_spi_probe()
153 pdata->bus_num = -1; in of_mpc8xxx_spi_probe()
157 pdata->sysclk = get_brgfreq(); in of_mpc8xxx_spi_probe()
158 if (pdata->sysclk == -1) { in of_mpc8xxx_spi_probe()
159 pdata->sysclk = fsl_get_sys_freq(); in of_mpc8xxx_spi_probe()
160 if (pdata->sysclk == -1) in of_mpc8xxx_spi_probe()
164 ret = of_property_read_u32(np, "clock-frequency", &pdata->sysclk); in of_mpc8xxx_spi_probe()
171 pdata->flags = SPI_QE_CPU_MODE; in of_mpc8xxx_spi_probe()
173 pdata->flags = SPI_CPM_MODE | SPI_QE; in of_mpc8xxx_spi_probe()
175 pdata->flags = SPI_CPM_MODE | SPI_CPM2; in of_mpc8xxx_spi_probe()
177 pdata->flags = SPI_CPM_MODE | SPI_CPM1; in of_mpc8xxx_spi_probe()