| * Stefano Babic, DENX Software Engineering, sbabic@denx.de |
| * SPDX-License-Identifier: GPL-2.0+ |
| #include <asm/arch/clock.h> |
| #include <asm/arch/imx-regs.h> |
| static void qong_jtag_init(void) |
| static void qong_fpga_jtag_set_tdi(int value) |
| gpio_set_value(QONG_FPGA_TDI_PIN, value); |
| static void qong_fpga_jtag_set_tms(int value) |
| gpio_set_value(QONG_FPGA_TMS_PIN, value); |
| static void qong_fpga_jtag_set_tck(int value) |
| gpio_set_value(QONG_FPGA_TCK_PIN, value); |
| static int qong_fpga_jtag_get_tdo(void) |
| return gpio_get_value(QONG_FPGA_TDO_PIN); |
| lattice_board_specific_func qong_fpga_fns = { |
| Lattice_desc qong_fpga[CONFIG_FPGA_COUNT] = { |
| for (i = 0; i < CONFIG_FPGA_COUNT; i++) { |
| fpga_add(fpga_lattice, &qong_fpga[i]); |