1
0
mirror of https://github.com/bmartini/zynq-axis.git synced 2024-09-05 19:19:27 +08:00

13 Commits

Author SHA1 Message Date
Berin Martini
7999afc2e2 Add gitignore file to vim swap file and others 2014-12-31 13:18:54 -05:00
Berin Martini
f553747076 Add exit function to interface library
Include usage of new exit function in the test-cfg application.
2014-12-31 13:16:19 -05:00
Berin Martini
bf25c5fce7 Add test app that uses the interface library 2014-12-31 12:10:54 -05:00
Berin Martini
11ec4ddca7 Stub of an axis interface library
Attempts to mmap the axis AXI4Lite memory region.
2014-12-31 11:49:12 -05:00
Berin Martini
fc6b0b2dc6 Allocate CMA memory on driver probe
This should allow for a program to mmap to the CMA memory and thus allow the
CPU to read & write arrays that the FPGA can DMA to and from.
2014-12-31 11:15:11 -05:00
Berin Martini
e25e752d86 Add nb of iomem in private data struct
This number can then be used to release the I/O memory regions that have
been requested in the probe function. This will thus allow for other
types of mappable memory to be exposed by the driver.
2014-12-31 11:15:11 -05:00
Berin Martini
72a2c01bfe Simplify uio error path by using devres functions
Use devm_kzalloc function to simplify driver error path. This function
is a per driver/device memory management function that will auto free
any memory when driver is released.
2014-12-31 11:15:11 -05:00
Berin Martini
aaee3f17df use dev_get_platdata() wrapper function
As per the kernel commit (08cb2e2148f7633e05ad211cff9234acca60a194).
2014-12-31 11:15:11 -05:00
Berin Martini
84dfb46e36 Turn off checking of_node for irq interrupts
Currently do not have interrupts defined in hardware and thus they are
not defined in the devicetree. Since the code/kernel thinks there should
be interrupts defined in the devicetree node it throws an error when
there is not. There should be a better way to do this but this works for
now.
2014-12-31 11:15:11 -05:00
Berin Martini
81ef8579e2 Update irq code to that in 3.15 uio_pdrv_genirq.c
There wass some SMP concurrency issue and some initializing bugs.
2014-12-31 11:15:11 -05:00
Berin Martini
8f98a55588 Add indent script for linux kernel code formatting
Used to keep the device driver formatted correctly.
2014-12-31 11:15:11 -05:00
Berin Martini
537c0160be Add udev rules file to util directory
This rules file gets copied into the udev system directory so that when
the axis uio driver is loaded a device file is created that users
applications can access.

sudo cp util/80-axis.rules /etc/udev/rules.d/
2014-12-31 11:15:10 -05:00
Berin Martini
7ad84512e8 Import zynq-uflow uio driver with name changers
Use the zynq-uflow driver as the base to develop the new platform.
2014-12-29 13:57:04 -05:00