summaryrefslogtreecommitdiffstats
path: root/cf-code
Commit message (Collapse)AuthorAgeFilesLines
* Cache clock GPIO bit number in a registerBenjamin Herrenschmidt2018-06-041-6/+9
| | | | | | | bset/bclk instructions are shorter when using a register, this results in a small perf. improvement. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Cleanup starting up, add trace flags to API versionBenjamin Herrenschmidt2018-06-031-3/+11
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Add arbitration mechanismBenjamin Herrenschmidt2018-06-031-6/+44
| | | | | | | This will be used by the kernel GPIO driver to synchronize with the CF when accessing GPIO shared with FSI. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Add API version, FW version and system signature registersBenjamin Herrenschmidt2018-06-033-0/+8
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Add break and "idle clocks" commandsBenjamin Herrenschmidt2018-06-031-0/+38
| | | | | | | | | | | | | Break sends a break command. It has 16000 recovery cycles as per the existing GPIO based driver, though that might be unnecessary in practice. "idle clocks" sends up to 255 clocks with data line held high, and can be used to flush things out for example after changing the send delay, or before sending a DPOLL command as some CFAMs seem to require extra clocks there. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Configure send/echo delayBenjamin Herrenschmidt2018-06-031-2/+3
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Move SRAM layout to a common .h fileBenjamin Herrenschmidt2018-06-031-64/+2
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Add witherspoon definitionsBenjamin Herrenschmidt2018-06-031-0/+6
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Don't write GPIO data right before clocking if using same regBenjamin Herrenschmidt2018-06-031-1/+6
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Switch GPIOs to output after send delay to match other driverBenjamin Herrenschmidt2018-06-031-3/+5
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Tracing fixesBenjamin Herrenschmidt2018-06-031-5/+6
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Update some commentsBenjamin Herrenschmidt2018-06-031-1/+6
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Deal with bank collision between clk/data and trans GPIOsBenjamin Herrenschmidt2018-06-031-7/+19
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Use a1 for sram, keep a0 as scratchBenjamin Herrenschmidt2018-06-031-23/+31
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Move code/vectors to after definitionsBenjamin Herrenschmidt2018-06-031-22/+28
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Changes to be able to build multiple firmwaresBenjamin Herrenschmidt2018-06-032-0/+448
Change to use the C preprocessor (use the ARM one for that) for asm files so we can force-include a per-machine GPIO definition file and use some preprocessor macros to define the cache registers. This allows us to deal with the cases where the clock and data use a different cache vs. the same cache. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
OpenPOWER on IntegriCloud