Lines Matching refs:gpiop
29 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in altera_pre_fn() local
35 tmp_char = readb(&gpiop->par_timer); in altera_pre_fn()
37 writeb(tmp_char, &gpiop->par_timer); in altera_pre_fn()
39 writew(0x0000, &gpiop->par_qspi); in altera_pre_fn()
41 tmp_short = __raw_readw(&gpiop->par_uart); in altera_pre_fn()
43 __raw_writew(tmp_short, &gpiop->par_uart); in altera_pre_fn()
45 writeb(0x00, &gpiop->par_pwm); in altera_pre_fn()
47 writeb(0x01, &gpiop->pddr_timer); in altera_pre_fn()
48 writeb(0x25, &gpiop->pddr_qspi); in altera_pre_fn()
49 writeb(0x0c, &gpiop->pddr_uart); in altera_pre_fn()
50 writeb(0x04, &gpiop->pddr_pwm); in altera_pre_fn()
53 writeb(0x08, &gpiop->ppd_uart); in altera_pre_fn()
54 writeb(0x38, &gpiop->ppd_qspi); in altera_pre_fn()
57 writeb(0xFB, &gpiop->pclrr_uart); in altera_pre_fn()
59 writeb(0xFE, &gpiop->pclrr_timer); in altera_pre_fn()
60 writeb(0xDF, &gpiop->pclrr_qspi); in altera_pre_fn()
67 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in altera_config_fn() local
70 writeb(0x04, &gpiop->ppd_uart); in altera_config_fn()
72 writeb(0xFB, &gpiop->pclrr_uart); in altera_config_fn()
79 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in altera_status_fn() local
81 if (readb(&gpiop->ppd_pwm) & 0x08) in altera_status_fn()
89 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in altera_done_fn() local
91 if (readb(&gpiop->ppd_pwm) & 0x20) in altera_done_fn()
104 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in altera_write_fn() local
114 writeb(0xFB, &gpiop->pclrr_qspi); in altera_write_fn()
116 writeb(0x01, &gpiop->ppd_qspi); in altera_write_fn()
118 writeb(0xFE, &gpiop->pclrr_qspi); in altera_write_fn()
119 writeb(0x04, &gpiop->ppd_qspi); in altera_write_fn()
143 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in altera_abort_fn() local
145 writeb(0x20, &gpiop->ppd_qspi); in altera_abort_fn()
146 writeb(0x08, &gpiop->ppd_uart); in altera_abort_fn()
206 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in xilinx_pgm_config_fn() local
209 writeb(0xFB, &gpiop->pclrr_uart); in xilinx_pgm_config_fn()
211 writeb(0x04, &gpiop->ppd_uart); in xilinx_pgm_config_fn()
221 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in xilinx_init_config_fn() local
223 return (readb(&gpiop->ppd_pwm) & 0x08) == 0; in xilinx_init_config_fn()
229 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in xilinx_done_config_fn() local
231 return (readb(&gpiop->ppd_pwm) & 0x20) >> 5; in xilinx_done_config_fn()
237 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in xilinx_abort_config_fn() local
239 writeb(0x08, &gpiop->ppd_uart); in xilinx_abort_config_fn()
240 writeb(0x01, &gpiop->ppd_timer); in xilinx_abort_config_fn()
241 writeb(0x38, &gpiop->ppd_qspi); in xilinx_abort_config_fn()
252 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in xilinx_pre_config_fn() local
258 tmp_char = readb(&gpiop->par_timer); in xilinx_pre_config_fn()
260 writeb(tmp_char, &gpiop->par_timer); in xilinx_pre_config_fn()
262 writew(0x0000, &gpiop->par_qspi); in xilinx_pre_config_fn()
264 tmp_short = __raw_readw(&gpiop->par_uart); in xilinx_pre_config_fn()
266 __raw_writew(tmp_short, &gpiop->par_uart); in xilinx_pre_config_fn()
268 writeb(0x00, &gpiop->par_pwm); in xilinx_pre_config_fn()
270 writeb(0x01, &gpiop->pddr_timer); in xilinx_pre_config_fn()
271 writeb(0x25, &gpiop->pddr_qspi); in xilinx_pre_config_fn()
272 writeb(0x0c, &gpiop->pddr_uart); in xilinx_pre_config_fn()
273 writeb(0x04, &gpiop->pddr_pwm); in xilinx_pre_config_fn()
276 writeb(0x08, &gpiop->ppd_uart); in xilinx_pre_config_fn()
277 writeb(0x38, &gpiop->ppd_qspi); in xilinx_pre_config_fn()
278 writeb(0x01, &gpiop->ppd_timer); in xilinx_pre_config_fn()
281 writeb(0xFB, &gpiop->pclrr_uart); in xilinx_pre_config_fn()
283 writeb(0xF7, &gpiop->pclrr_uart); in xilinx_pre_config_fn()
284 writeb(0xDF, &gpiop->pclrr_qspi); in xilinx_pre_config_fn()
303 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in xilinx_clk_config_fn() local
306 writeb(0x04, &gpiop->ppd_qspi); in xilinx_clk_config_fn()
308 writeb(0xFB, &gpiop->pclrr_qspi); in xilinx_clk_config_fn()
314 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in xilinx_wr_config_fn() local
317 writeb(0x01, &gpiop->ppd_qspi); in xilinx_wr_config_fn()
319 writeb(0xFE, &gpiop->pclrr_qspi); in xilinx_wr_config_fn()
326 gpio_t *gpiop = (gpio_t *)MMAP_GPIO; in xilinx_fastwr_config_fn() local
335 writeb(0xFB, &gpiop->pclrr_qspi); in xilinx_fastwr_config_fn()
337 writeb(0x01, &gpiop->ppd_qspi); in xilinx_fastwr_config_fn()
339 writeb(0xFE, &gpiop->pclrr_qspi); in xilinx_fastwr_config_fn()
340 writeb(0x04, &gpiop->ppd_qspi); in xilinx_fastwr_config_fn()