Lines Matching refs:platdata

69 	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()
114 platdata->musb_config.num_eps = fdtdec_get_int(fdt, node, in ti_musb_ofdata_to_platdata()
116 if (platdata->musb_config.num_eps < 0) { in ti_musb_ofdata_to_platdata()
121 platdata->musb_config.ram_bits = fdtdec_get_int(fdt, node, in ti_musb_ofdata_to_platdata()
123 if (platdata->musb_config.ram_bits < 0) { in ti_musb_ofdata_to_platdata()
128 platdata->otg_board_data.set_phy_power = ti_musb_set_phy_power; in ti_musb_ofdata_to_platdata()
129 platdata->otg_board_data.dev = dev; in ti_musb_ofdata_to_platdata()
130 platdata->plat.config = &platdata->musb_config; in ti_musb_ofdata_to_platdata()
132 platdata->plat.power = fdtdec_get_int(fdt, node, "mentor,power", -1); in ti_musb_ofdata_to_platdata()
133 if (platdata->plat.power < 0) { in ti_musb_ofdata_to_platdata()
138 platdata->plat.platform_ops = &musb_dsps_ops; in ti_musb_ofdata_to_platdata()
139 platdata->plat.board_data = &platdata->otg_board_data; in ti_musb_ofdata_to_platdata()
147 struct ti_musb_platdata *platdata = dev_get_platdata(dev); in ti_musb_host_probe() local
154 otg_board_data = &platdata->otg_board_data; in ti_musb_host_probe()
156 host->host = musb_init_controller(&platdata->plat, in ti_musb_host_probe()
158 platdata->base); in ti_musb_host_probe()
178 struct ti_musb_platdata *platdata = dev_get_platdata(dev); in ti_musb_host_ofdata_to_platdata() local
189 platdata->plat.mode = MUSB_HOST; in ti_musb_host_ofdata_to_platdata()