Home
last modified time | relevance | path

Searched refs:platdata (Results 1 – 25 of 95) sorted by relevance

1234

/external/u-boot/drivers/usb/musb-new/
Dti-musb.c69 struct ti_musb_platdata *platdata = dev_get_platdata(dev); in ti_musb_set_phy_power() local
72 clrsetbits_le32(platdata->ctrl_mod_base, in ti_musb_set_phy_power()
76 clrsetbits_le32(platdata->ctrl_mod_base, 0, in ti_musb_set_phy_power()
83 struct ti_musb_platdata *platdata = dev_get_platdata(dev); in ti_musb_ofdata_to_platdata() local
90 platdata->base = (void *)devfdt_get_addr_index(dev, 1); in ti_musb_ofdata_to_platdata()
94 platdata->ctrl_mod_base = (void *)fdtdec_get_addr(fdt, ctrl_mod, "reg"); in ti_musb_ofdata_to_platdata()
98 platdata->ctrl_mod_base += AM335X_USB1_CTRL; in ti_musb_ofdata_to_platdata()
104 platdata->musb_config.multipoint = fdtdec_get_int(fdt, node, in ti_musb_ofdata_to_platdata()
107 if (platdata->musb_config.multipoint < 0) { in ti_musb_ofdata_to_platdata()
112 platdata->musb_config.dyn_fifo = 1; in ti_musb_ofdata_to_platdata()
[all …]
/external/u-boot/drivers/demo/
Ddemo-pdata.c25 .platdata = &red_square,
30 .platdata = &red_square,
35 .platdata = &green_triangle,
40 .platdata = &yellow_hexagon,
45 .platdata = &yellow_hexagon,
/external/u-boot/drivers/core/
Ddevice.c33 const char *name, void *platdata, in device_bind_common() argument
62 dev->platdata = platdata; in device_bind_common()
88 bool alloc = !platdata; in device_bind_common()
100 dev->platdata = calloc(1, in device_bind_common()
102 if (!dev->platdata) { in device_bind_common()
106 if (CONFIG_IS_ENABLED(OF_PLATDATA) && platdata) { in device_bind_common()
107 memcpy(dev->platdata, platdata, in device_bind_common()
205 free(dev->platdata); in device_bind_common()
206 dev->platdata = NULL; in device_bind_common()
226 const char *name, void *platdata, int of_offset, in device_bind() argument
[all …]
/external/u-boot/drivers/serial/
Dserial_s5p.c91 struct s5p_serial_platdata *plat = dev->platdata; in s5p_serial_setbrg()
114 struct s5p_serial_platdata *plat = dev->platdata; in s5p_serial_probe()
143 struct s5p_serial_platdata *plat = dev->platdata; in s5p_serial_getc()
155 struct s5p_serial_platdata *plat = dev->platdata; in s5p_serial_putc()
169 struct s5p_serial_platdata *plat = dev->platdata; in s5p_serial_pending()
181 struct s5p_serial_platdata *plat = dev->platdata; in s5p_serial_ofdata_to_platdata()
Dserial_meson.c59 struct meson_serial_platdata *plat = dev->platdata; in meson_serial_probe()
69 struct meson_serial_platdata *plat = dev->platdata; in meson_serial_getc()
80 struct meson_serial_platdata *plat = dev->platdata; in meson_serial_putc()
93 struct meson_serial_platdata *plat = dev->platdata; in meson_serial_pending()
105 struct meson_serial_platdata *plat = dev->platdata; in meson_serial_ofdata_to_platdata()
Dmcfuart.c160 struct coldfire_serial_platdata *plat = dev->platdata; in coldfire_serial_probe()
168 struct coldfire_serial_platdata *plat = dev->platdata; in coldfire_serial_putc()
182 struct coldfire_serial_platdata *plat = dev->platdata; in coldfire_serial_getc()
194 struct coldfire_serial_platdata *plat = dev->platdata; in coldfire_serial_setbrg()
204 struct coldfire_serial_platdata *plat = dev->platdata; in coldfire_serial_pending()
Daltera_jtag_uart.c39 struct altera_jtaguart_platdata *plat = dev->platdata; in altera_jtaguart_putc()
58 struct altera_jtaguart_platdata *plat = dev->platdata; in altera_jtaguart_pending()
70 struct altera_jtaguart_platdata *plat = dev->platdata; in altera_jtaguart_getc()
85 struct altera_jtaguart_platdata *plat = dev->platdata; in altera_jtaguart_probe()
Daltera_uart.c36 struct altera_uart_platdata *plat = dev->platdata; in altera_uart_setbrg()
48 struct altera_uart_platdata *plat = dev->platdata; in altera_uart_putc()
61 struct altera_uart_platdata *plat = dev->platdata; in altera_uart_pending()
73 struct altera_uart_platdata *plat = dev->platdata; in altera_uart_getc()
Dsandbox.c77 struct sandbox_serial_platdata *plat = dev->platdata; in sandbox_serial_remove()
88 struct sandbox_serial_platdata *plat = dev->platdata; in sandbox_serial_putc()
149 struct sandbox_serial_platdata *plat = dev->platdata; in sandbox_serial_ofdata_to_platdata()
198 .platdata = &platdata_non_fdt,
Dserial_arc.c40 struct arc_serial_platdata *plat = dev->platdata; in arc_serial_setbrg()
52 struct arc_serial_platdata *plat = dev->platdata; in arc_serial_putc()
70 struct arc_serial_platdata *plat = dev->platdata; in arc_serial_pending()
82 struct arc_serial_platdata *plat = dev->platdata; in arc_serial_getc()
Dserial_mxc.c262 struct mxc_serial_platdata *plat = dev->platdata; in mxc_serial_setbrg()
272 struct mxc_serial_platdata *plat = dev->platdata; in mxc_serial_probe()
281 struct mxc_serial_platdata *plat = dev->platdata; in mxc_serial_getc()
292 struct mxc_serial_platdata *plat = dev->platdata; in mxc_serial_putc()
305 struct mxc_serial_platdata *plat = dev->platdata; in mxc_serial_pending()
325 struct mxc_serial_platdata *plat = dev->platdata; in mxc_serial_ofdata_to_platdata()
Dserial_pxa.c270 struct pxa_serial_platdata *plat = dev->platdata; in pxa_serial_probe()
279 struct pxa_serial_platdata *plat = dev->platdata; in pxa_serial_putc()
293 struct pxa_serial_platdata *plat = dev->platdata; in pxa_serial_getc()
305 struct pxa_serial_platdata *plat = dev->platdata; in pxa_serial_setbrg()
316 struct pxa_serial_platdata *plat = dev->platdata; in pxa_serial_pending()
Dserial_lpuart.c98 struct lpuart_serial_platdata *plat = dev->platdata; in is_lpuart32()
342 struct lpuart_serial_platdata *plat = dev->platdata; in lpuart_serial_setbrg()
358 struct lpuart_serial_platdata *plat = dev->platdata; in lpuart_serial_getc()
368 struct lpuart_serial_platdata *plat = dev->platdata; in lpuart_serial_putc()
380 struct lpuart_serial_platdata *plat = dev->platdata; in lpuart_serial_pending()
402 struct lpuart_serial_platdata *plat = dev->platdata; in lpuart_serial_probe()
412 struct lpuart_serial_platdata *plat = dev->platdata; in lpuart_serial_ofdata_to_platdata()
Dlpc32xx_hsuart.c87 struct lpc32xx_hsuart_platdata *platdata = dev_get_platdata(dev); in lpc32xx_hsuart_probe() local
90 priv->hsuart = (struct hsuart_regs *)platdata->base; in lpc32xx_hsuart_probe()
/external/u-boot/doc/driver-model/
Dof-plat.txt26 As an alternative, a new 'of-platdata' feature is provided. This converts the
145 .platdata = &dtv_dwmmc_at_ff0c0000,
165 Converting of-platdata to a useful form
168 Of course it would be possible use the of-platdata directly in your driver
170 driver will not be able to support device tree, since the of-platdata
175 Therefore it is recommended that the of-platdata structure should be used
184 Drivers should always support device tree as an option. The of-platdata
187 Your driver should convert the platdata struct in its probe() method. The
202 * the device tree (or the C structures when of-platdata is used).
226 /* Decode the of-platdata from the C structures */
[all …]
/external/u-boot/scripts/
DMakefile.spl102 u-boot-spl-platdata := $(obj)/dts/dt-platdata.o
254 cmd_dtocc = $(pythonpath) $(srctree)/tools/dtoc/dtoc -d $(obj)/$(SPL_BIN).dtb -o $@ platdata
262 $(obj)/dts/dt-platdata.o: $(obj)/dts/dt-platdata.c \
273 $(obj)/dts/dt-platdata.c: $(obj)/$(SPL_BIN).dtb dts_dir FORCE
347 $(patsubst $(obj)/%,%,$(u-boot-spl-platdata)) \
351 $(obj)/$(SPL_BIN): $(u-boot-spl-platdata) $(u-boot-spl-init) \
358 $(u-boot-spl-dirs): $(u-boot-spl-platdata)
/external/u-boot/drivers/spi/
Dcadence_qspi.c24 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_write_speed()
120 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_set_speed()
155 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_probe()
189 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_xfer()
282 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_ofdata_to_platdata()
Dzynq_spi.c74 struct zynq_spi_platdata *plat = bus->platdata; in zynq_spi_ofdata_to_platdata()
142 struct zynq_spi_platdata *plat = bus->platdata; in spi_cs_activate()
173 struct zynq_spi_platdata *plat = bus->platdata; in spi_cs_deactivate()
276 struct zynq_spi_platdata *plat = bus->platdata; in zynq_spi_set_speed()
/external/u-boot/test/dm/
Dcore.c46 .platdata = &test_pdata[0],
51 .platdata = &test_pdata[1],
56 .platdata = &test_pdata[2],
61 .platdata = &test_pdata_manual,
66 .platdata = &test_pdata_pre_reloc,
256 pdata = dev->platdata; in dm_test_autoprobe()
274 pdata = dev->platdata; in dm_test_platdata()
404 ut_assert(dev->platdata); in dm_check_operations()
548 dev->platdata = pdata; in create_children()
/external/u-boot/net/
Deth-uclass.c137 pdata = eth_get_dev()->platdata; in eth_get_ethaddr()
191 pdata = dev->platdata; in eth_write_hwaddr()
225 struct eth_pdata *pdata = dev->platdata; in on_ethaddr()
460 struct eth_pdata *pdata = dev->platdata; in eth_post_probe()
533 struct eth_pdata *pdata = dev->platdata; in eth_pre_remove()
/external/u-boot/board/cavium/thunderx/
Dthunderx.c27 .platdata = &serial0,
39 .platdata = &serial1,
/external/u-boot/drivers/timer/
Daltera_timer.c36 struct altera_timer_platdata *plat = dev->platdata; in altera_timer_get_count()
53 struct altera_timer_platdata *plat = dev->platdata; in altera_timer_probe()
/external/u-boot/board/freescale/ls1012afrdm/
Deth.c117 .platdata = &pfe_pdata0,
122 .platdata = &pfe_pdata1,
/external/u-boot/board/freescale/ls1012ardb/
Deth.c128 .platdata = &pfe_pdata0,
133 .platdata = &pfe_pdata1,
/external/u-boot/drivers/gpio/
Dtegra186_gpio.c37 struct tegra186_gpio_platdata *plat = dev->platdata; in tegra186_gpio_reg()
169 struct tegra186_gpio_platdata *parent_plat = parent->platdata; in tegra186_gpio_bind()
205 struct tegra186_gpio_platdata *plat = dev->platdata; in tegra186_gpio_probe()

1234