[beagleboard] BBB SPI throwing ioctl errors

2017-01-19 Thread Gregor Steiner
Hi, about two years ago I was running the old 3.* kernel and SPI worked fine for what I was doing. I updated to Debian 8.6 / 4.4.40-ti-r80 but now the same unchanged code throws odd errors that I can't figure out on my own. Here is how I'm writing out via SPI (16 bpw, mode 2) struct

[beagleboard] StarterWare SPI on BeagleBone Black / Debian

2014-08-31 Thread Gregor Steiner
Hi, I want to use SPI through direct memory access on Debian, here is what I got so far: int enableSPIClock() { // map a pointer to the clock control block pClockControl = (char*)mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, memFd, SOC_CM_PER_REGS); HWREG(pClockControl +