Ilya Yanok | 0d19f6c | 2009-02-10 00:22:31 +0100 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * (c) 2009 Emcraft Systems, Ilya Yanok <yanok@emcraft.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Ilya Yanok | 0d19f6c | 2009-02-10 00:22:31 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef QONG_FPGA_H |
| 9 | #define QONG_FPGA_H |
| 10 | |
Ilya Yanok | 0d19f6c | 2009-02-10 00:22:31 +0100 | [diff] [blame] | 11 | #define QONG_FPGA_CTRL_BASE CONFIG_FPGA_BASE |
| 12 | #define QONG_FPGA_CTRL_VERSION (QONG_FPGA_CTRL_BASE + 0x00000000) |
| 13 | #define QONG_FPGA_PERIPH_SIZE (1 << 24) |
| 14 | |
| 15 | #define QONG_FPGA_TCK_PIN 26 |
| 16 | #define QONG_FPGA_TMS_PIN 25 |
| 17 | #define QONG_FPGA_TDI_PIN 8 |
| 18 | #define QONG_FPGA_TDO_PIN 7 |
Stefano Babic | 45997e0 | 2010-03-29 16:43:39 +0200 | [diff] [blame] | 19 | #define QONG_FPGA_RST_PIN 48 |
| 20 | #define QONG_FPGA_IRQ_PIN 40 |
Ilya Yanok | 0d19f6c | 2009-02-10 00:22:31 +0100 | [diff] [blame] | 21 | |
Stefano Babic | b9eb3fd | 2010-06-29 11:48:24 +0200 | [diff] [blame] | 22 | int qong_fpga_init(void); |
Ilya Yanok | 0d19f6c | 2009-02-10 00:22:31 +0100 | [diff] [blame] | 23 | #endif /* QONG_FPGA_H */ |