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

7 Commits

Author SHA1 Message Date
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
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