Isn't SPI already working in Emilio's kernel?

http://git.elopez.com.ar/linux/commits/branch/sunxi-dma


On Fri, Jul 4, 2014 at 4:32 AM, bruce bushby <[email protected]> wrote:

>
> What kernel version are you using? I created much the same (if not
> identicle) patches but I ran into:
> drivers/spi/spi-sun7i.c:30:22: fatal error: mach/dma.h: No such file or
> directory
>
> Any reason you're not using the sun4i spi drivers?
>
> I think I've made some progress, a "ps" listing shows:
>    27 root     [spi0]
>    28 root     [spi1]
>
> and under "sys" I have:
> # ls -l /sys/bus/platform/drivers/sun4i-spi
> total 0
> lrwxrwxrwx    1 root     root             0 Jan  8 05:15 1c06000.spi ->
> ../../../../devices/soc.3/1c06000.spi
> lrwxrwxrwx    1 root     root             0 Jan  8 05:15 1c17000.spi ->
> ../../../../devices/soc.3/1c17000.spi
>
>
>
> # cd 1c17000.spi
> # ls -l
> total 0
> lrwxrwxrwx    1 root     root             0 Jan  8 05:15 driver ->
> ../../../bus/platform/drivers/sun4i-spi
> -r--r--r--    1 root     root          4096 Jan  8 05:15 modalias
> drwxr-xr-x    2 root     root             0 Jan  8 05:15 power
> drwxr-xr-x    3 root     root             0 Jan  8 05:15 spi_master
> lrwxrwxrwx    1 root     root             0 Jan  8 05:15 subsystem ->
> ../../../bus/platform
> -rw-r--r--    1 root     root          4096 Jan  8 05:15 uevent
> # find .
> .
> ./power
> ./power/control
> ./power/runtime_active_time
> ./power/autosuspend_delay_ms
> ./power/runtime_status
> ./power/runtime_suspended_time
> ./spi_master
> ./spi_master/spi1
> ./spi_master/spi1/power
> ./spi_master/spi1/power/control
> ./spi_master/spi1/power/runtime_active_time
> ./spi_master/spi1/power/autosuspend_delay_ms
> ./spi_master/spi1/power/runtime_status
> ./spi_master/spi1/power/runtime_suspended_time
> ./spi_master/spi1/device
> ./spi_master/spi1/subsystem
> ./spi_master/spi1/uevent
> ./modalias
> ./driver
> ./subsystem
> ./uevent
> #
> #
>
>
> However, I still don't have anything in "/dev/*spi*  :(
>
>
>
>
>
>
>
>
>
>
> On Wednesday, 2 July 2014 03:52:12 UTC+1, [email protected] wrote:
>>
>> I can compile the driver successfully, May be you can cherry-pick this
>> commit https://github.com/mmplayer/linux-sunxi/commit/
>> 82f7a2bda8a8adbbdca1850dfaf3df0f43ee2ee1
>>
>> On Wednesday, July 2, 2014 5:47:39 AM UTC+8, bruce bushby wrote:
>>>
>>> Hi
>>>
>>> I wanted to ask if anybody has tried to build spi-sun7.c for mainline
>>> kernels?
>>>
>>> I followed this excellent guide:
>>> http://will-tm.com/spi-on-the-cubieboard2/
>>>
>>>
>>> ...but the compile fails with
>>>
>>> drivers/spi/spi-sun7i.c:30:22: fatal error: mach/dma.h: No such file or
>>> directory
>>>  #include <mach/dma.h>
>>>                       ^
>>> compilation terminated.
>>> make[3]: *** [drivers/spi/spi-sun7i.o] Error 1
>>> make[3]: *** Waiting for unfinished jobs....
>>>
>>>
>>> I also noticed the Fedora 20 images doesn't support SPI for A20:
>>> https://github.com/jwrdegoede/sunxi-fedora-scripts/blob/master/README
>>> * SPI (as module, not supported on A20)
>>>
>>>
>>> So now I'm a little worried as my entire project is built around 4 SPI
>>> devices on an A20-SOM :)
>>>
>>> Any secret plans for full DMA + SPI in the works?
>>>
>>>
>>> Bruce
>>>
>>>
>>>
>>>
>>>
>>>
>>>  --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jon Smirl
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to