Commit c749b422 authored by Daniel Krebs's avatar Daniel Krebs

ips/gpio: add skeleton for GPIO IP

parent 616620cc
......@@ -10,6 +10,7 @@ set(SOURCES
ips/fifo.c
ips/dma.c
ips/intc.c
ips/gpio.c
ips/rtds_axis.c
kernel/kernel.c
......
/** GPIO related helper functions
*
* @author Daniel Krebs <github@daniel-krebs.net>
* @copyright 2017, Daniel Krebs
* @license GNU General Public License (version 3)
*
* VILLASfpga
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include "config.h"
#include "plugin.h"
#include "fpga/ip.h"
#include "fpga/card.h"
static int gpio_start(struct fpga_ip *c)
{
(void) c;
return 0;
}
static struct plugin p = {
.name = "Xilinx's GPIO controller",
.description = "",
.type = PLUGIN_TYPE_FPGA_IP,
.ip = {
.vlnv = { "xilinx.com", "ip", "axi_gpio", NULL },
.type = FPGA_IP_TYPE_MISC,
.start = gpio_start,
.size = 0
}
};
REGISTER_PLUGIN(&p)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment