I am 95% sure that I'm messing with the correct registers: These are the hardware address that I use (I get access to them with mmap to /dev/mem):
0x02008000 -> ECSPI1_RXDATA)
0x02008004 -> ECSPI1_TXDATA)
0x02008008 -> ECSPI1_CONREG
0x0200800C -> ECSPI1_CONFIGREG
0x02008010 -> ECSPI1_INTREG
0x02008014 -> ECSPI1_DMAREG
0x02008018 -> ECSPI1_STATREG
0x0200801C -> ECSPI1_PERIODREG
0x02008020 -> ECSPI1_TESTREG
0x02008040 -> ECSPI1_MSGDATA
Also when I use the memtool and read from the address that I use (like those above) I get the exact same results as when I do it with my code. Thus so far as I know I do it wright.
When I initiate the transmit with setting XCH I still don't see any output. Also when writing to TXDATA I don't see any change in the TESTREG. I expected to see 0x01 to indicate that there is now 1 a 32-bit data package ready in the FIFO register.