been working on bspi driver, found a few bugs.
for context:
https://forum.linuxcnc.org/24-hal-components/34049-bspi-problems#106773
评论 (8)
#2 – sleepybishop 于 2018-03-16
not reducing, according to regmap the base addresses for bspi modules are
0x5500 BSPI FIFO port 0
0x5540 BSPI FIFO port 1
0x5580 BSPI FIFO port 2
0x55C0 BSPI FIFO port 3
and then
0x5600 BSPI channel descriptor setup registor 0
so theres only room for 4 bspi interfaces
unless we do a big refactor and resuse the dbspi address space, as far as i cant tell the only difference is one parameter in hostmot2.vhd (gatedcs= true) for dbspi. if we set that via other means then there is enough address space for 4 more bspi instances. but that would be a pretty big change
#3 – andypugh 于 2018-03-16
> so theres only room for 4 bspi interfaces
4 interfaces per FPGA card. But a system can have many FPGA cards.
#4 – sleepybishop 于 2018-03-16
right, ok ill revert that change.
#5 – jepler 于 2018-03-16
Also the memory map file is really just a guideline for how things typically are. A firmware could move those to any other address and have room for more BSPI instances. The hostmot2 driver will read the correct addresses from the IDROM, and does not use the addresses and ranges shown in the regmap.txt.
#6 – sleepybishop 于 2018-03-16
i removed all commits that deal with addresses of the registers, i have more work to do to sort all that out.
#7 – sleepybishop 于 2018-03-17
@jepler, those two issues should be addressed now, thank you.
#8 – jepler 于 2018-03-17
@sleepybishop thank you for these fixes.
#1 – andypugh 于 2018-03-16
Why reduce the maximum number of bspi interfaces?