v4.14.11 missing at91sam9260.h

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

PowerPenguin
Posts: 16
Joined: Mon Feb 19, 2018 12:41 pm

v4.14.11 missing at91sam9260.h

Tue Jun 19, 2018 11:40 am

Hi *, does any one know what I have to include instead

https://elixir.bootlin.com/linux/v3.16. ... 1sam9260.h

in v4.14.11 ?

I need in my driver

```
#define AT91SAM9260_ID_SPI1 13 /* Serial Peripheral Interface 1 */
```

but I could not find define for IRQ in v4.14.11 !

IRQs are not useless http://lists.infradead.org/pipermail/li ... 30762.html

ok moved to dts https://elixir.bootlin.com/linux/v4.14. ... .dtsi#L299

how I have to use dts irq "reg" in kernel module ..any examples
blue_z
Location: USA
Posts: 1767
Joined: Thu Apr 19, 2007 10:15 pm

Re: v4.14.11 missing at91sam9260.h

Fri Jun 22, 2018 2:12 am

PowerPenguin wrote:what I have to include instead

https://elixir.bootlin.com/linux/v3.16. ... 1sam9260.h

in v4.14.11 ?
Such header files have been deprecated because, instead of hardcoded, compiled-in constants, drivers dynamically receive their configuration parameters from the Device Tree.


PowerPenguin wrote:I need in my driver

```
#define AT91SAM9260_ID_SPI1 13 /* Serial Peripheral Interface 1 */
```

but I could not find define for IRQ in v4.14.11 !
...
how I have to use dts irq "reg" in kernel module
Unless the kernel module that you're writing is going to replace the existing Atmel SPI master controller driver, drivers/spi/spi-atmel.c, or you're going to use this device as a SPI slave controller, then you have no business with that (hardware) IRQ number.

Regards

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 3 guests