Lines Matching refs:config_bitbang

133 	const struct fpga_ice40_config_bitbang *config_bitbang = config->derived_config;  in fpga_ice40_load()  local
135 if (!device_is_ready(config_bitbang->clk.port)) { in fpga_ice40_load()
140 if (!device_is_ready(config_bitbang->pico.port)) { in fpga_ice40_load()
147 clk = BIT(config_bitbang->clk.pin); in fpga_ice40_load()
148 pico = BIT(config_bitbang->pico.pin); in fpga_ice40_load()
168 gpio_pin_configure_dt(&config_bitbang->clk, GPIO_OUTPUT_HIGH) || in fpga_ice40_load()
169 gpio_pin_configure_dt(&config_bitbang->pico, GPIO_OUTPUT_HIGH); in fpga_ice40_load()
174 *config_bitbang->clear |= (creset | cs); in fpga_ice40_load()
178 fpga_ice40_delay(2 * config_bitbang->mhz_delay_count * config->creset_delay_us); in fpga_ice40_load()
187 *config_bitbang->set |= creset; in fpga_ice40_load()
193 *config_bitbang->set |= cs; in fpga_ice40_load()
196 fpga_ice40_send_clocks(config_bitbang->mhz_delay_count, config_bitbang->set, in fpga_ice40_load()
197 config_bitbang->clear, clk, config->leading_clocks); in fpga_ice40_load()
202 fpga_ice40_spi_send_data(config_bitbang->mhz_delay_count, config_bitbang->set, in fpga_ice40_load()
203 config_bitbang->clear, cs, clk, pico, (uint8_t *)image_ptr, in fpga_ice40_load()
207 fpga_ice40_send_clocks(config_bitbang->mhz_delay_count, config_bitbang->set, in fpga_ice40_load()
208 config_bitbang->clear, clk, config->trailing_clocks); in fpga_ice40_load()
229 (void)gpio_pin_configure_dt(&config_bitbang->clk, GPIO_DISCONNECTED); in fpga_ice40_load()
230 (void)gpio_pin_configure_dt(&config_bitbang->pico, GPIO_DISCONNECTED); in fpga_ice40_load()