Commit 451ce7f9 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc

Pull general arm-soc cleanups from Arnd Bergmann:
 "These are all boring changes, moving stuff around or renaming things
  mostly, and also getting rid of stuff that is duplicate or should not
  be there to start with.  Platform-wise this is all over the place,
  mainly omap, samsung, at91, imx and tegra."

Resolve trivial conflict in arch/arm/mach-omap2/clockdomains3xxx_data.c

* tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (67 commits)
  ARM: clps711x: Remove the setting of the time
  ARM: clps711x: Removed superfluous transform virt_to_bus and related functions
  ARM: clps711x/p720t: Replace __initcall by .init_early call
  ARM: S3C24XX: Remove unused GPIO definitions for Openmoko GTA02 board
  ARM: S3C24XX: Remove unused GPIO definitions for port J
  ARM: S3C24XX: Remove unused GPA, GPE, GPH bank GPIO aliases
  ARM: S3C24XX: Convert the touchscreen setup code to common GPIO API
  ARM: S3C24XX: Convert the PM code to gpiolib API
  ARM: S3C24XX: Convert QT2410 board file to the gpiolib API
  ARM: S3C24XX: Convert SMDK board file to the gpiolib API
  ARM: S3C24XX: Free the backlight gpio requested in Mini2440 board code
  ARM: imx: remove unused pdata from device macros
  ARM: imx: Kconfig: Remove IMX_HAVE_PLATFORM_IMX_SSI from MACH_MX25_3DS
  ARM: at91: fix new build errors
  ARM: at91: add AIC5 support
  ARM: at91: remove mach/irqs.h
  ARM: at91: sparse irq support
  ARM: at91: at91 based machines specify their own irq handler at run time
  ARM: at91: remove static irq priorities for sam9x5
  ARM: at91: add of irq priorities support
  ...
parents b85c14fb 1a33a4eb
...@@ -4,7 +4,7 @@ Required properties: ...@@ -4,7 +4,7 @@ Required properties:
- compatible: Should be "atmel,<chip>-aic" - compatible: Should be "atmel,<chip>-aic"
- interrupt-controller: Identifies the node as an interrupt controller. - interrupt-controller: Identifies the node as an interrupt controller.
- interrupt-parent: For single AIC system, it is an empty property. - interrupt-parent: For single AIC system, it is an empty property.
- #interrupt-cells: The number of cells to define the interrupts. It sould be 2. - #interrupt-cells: The number of cells to define the interrupts. It sould be 3.
The first cell is the IRQ number (aka "Peripheral IDentifier" on datasheet). The first cell is the IRQ number (aka "Peripheral IDentifier" on datasheet).
The second cell is used to specify flags: The second cell is used to specify flags:
bits[3:0] trigger type and level flags: bits[3:0] trigger type and level flags:
...@@ -14,7 +14,10 @@ Required properties: ...@@ -14,7 +14,10 @@ Required properties:
8 = active low level-sensitive. 8 = active low level-sensitive.
Valid combinations are 1, 2, 3, 4, 8. Valid combinations are 1, 2, 3, 4, 8.
Default flag for internal sources should be set to 4 (active high). Default flag for internal sources should be set to 4 (active high).
The third cell is used to specify the irq priority from 0 (lowest) to 7
(highest).
- reg: Should contain AIC registers location and length - reg: Should contain AIC registers location and length
- atmel,external-irqs: u32 array of external irqs.
Examples: Examples:
/* /*
...@@ -24,7 +27,7 @@ Examples: ...@@ -24,7 +27,7 @@ Examples:
compatible = "atmel,at91rm9200-aic"; compatible = "atmel,at91rm9200-aic";
interrupt-controller; interrupt-controller;
interrupt-parent; interrupt-parent;
#interrupt-cells = <2>; #interrupt-cells = <3>;
reg = <0xfffff000 0x200>; reg = <0xfffff000 0x200>;
}; };
...@@ -34,5 +37,5 @@ Examples: ...@@ -34,5 +37,5 @@ Examples:
dma: dma-controller@ffffec00 { dma: dma-controller@ffffec00 {
compatible = "atmel,at91sam9g45-dma"; compatible = "atmel,at91sam9g45-dma";
reg = <0xffffec00 0x200>; reg = <0xffffec00 0x200>;
interrupts = <21 4>; interrupts = <21 4 5>;
}; };
...@@ -15,7 +15,7 @@ Child device nodes describe the memory settings for different configurations and ...@@ -15,7 +15,7 @@ Child device nodes describe the memory settings for different configurations and
Example: Example:
emc@7000f400 { memory-controller@7000f400 {
#address-cells = < 1 >; #address-cells = < 1 >;
#size-cells = < 0 >; #size-cells = < 0 >;
compatible = "nvidia,tegra20-emc"; compatible = "nvidia,tegra20-emc";
......
...@@ -8,7 +8,7 @@ Required properties: ...@@ -8,7 +8,7 @@ Required properties:
- interrupts : Should contain MC General interrupt. - interrupts : Should contain MC General interrupt.
Example: Example:
mc { memory-controller@0x7000f000 {
compatible = "nvidia,tegra20-mc"; compatible = "nvidia,tegra20-mc";
reg = <0x7000f000 0x024 reg = <0x7000f000 0x024
0x7000f03c 0x3c4>; 0x7000f03c 0x3c4>;
......
...@@ -8,7 +8,7 @@ Required properties: ...@@ -8,7 +8,7 @@ Required properties:
- interrupts : Should contain MC General interrupt. - interrupts : Should contain MC General interrupt.
Example: Example:
mc { memory-controller {
compatible = "nvidia,tegra30-mc"; compatible = "nvidia,tegra30-mc";
reg = <0x7000f000 0x010 reg = <0x7000f000 0x010
0x7000f03c 0x1b4 0x7000f03c 0x1b4
......
...@@ -52,10 +52,11 @@ apb { ...@@ -52,10 +52,11 @@ apb {
ranges; ranges;
aic: interrupt-controller@fffff000 { aic: interrupt-controller@fffff000 {
#interrupt-cells = <2>; #interrupt-cells = <3>;
compatible = "atmel,at91rm9200-aic"; compatible = "atmel,at91rm9200-aic";
interrupt-controller; interrupt-controller;
reg = <0xfffff000 0x200>; reg = <0xfffff000 0x200>;
atmel,external-irqs = <29 30 31>;
}; };
ramc0: ramc@ffffea00 { ramc0: ramc@ffffea00 {
...@@ -81,25 +82,25 @@ shdwc@fffffd10 { ...@@ -81,25 +82,25 @@ shdwc@fffffd10 {
pit: timer@fffffd30 { pit: timer@fffffd30 {
compatible = "atmel,at91sam9260-pit"; compatible = "atmel,at91sam9260-pit";
reg = <0xfffffd30 0xf>; reg = <0xfffffd30 0xf>;
interrupts = <1 4>; interrupts = <1 4 7>;
}; };
tcb0: timer@fffa0000 { tcb0: timer@fffa0000 {
compatible = "atmel,at91rm9200-tcb"; compatible = "atmel,at91rm9200-tcb";
reg = <0xfffa0000 0x100>; reg = <0xfffa0000 0x100>;
interrupts = <17 4 18 4 19 4>; interrupts = <17 4 0 18 4 0 19 4 0>;
}; };
tcb1: timer@fffdc000 { tcb1: timer@fffdc000 {
compatible = "atmel,at91rm9200-tcb"; compatible = "atmel,at91rm9200-tcb";
reg = <0xfffdc000 0x100>; reg = <0xfffdc000 0x100>;
interrupts = <26 4 27 4 28 4>; interrupts = <26 4 0 27 4 0 28 4 0>;
}; };
pioA: gpio@fffff400 { pioA: gpio@fffff400 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff400 0x100>; reg = <0xfffff400 0x100>;
interrupts = <2 4>; interrupts = <2 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -108,7 +109,7 @@ pioA: gpio@fffff400 { ...@@ -108,7 +109,7 @@ pioA: gpio@fffff400 {
pioB: gpio@fffff600 { pioB: gpio@fffff600 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff600 0x100>; reg = <0xfffff600 0x100>;
interrupts = <3 4>; interrupts = <3 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -117,7 +118,7 @@ pioB: gpio@fffff600 { ...@@ -117,7 +118,7 @@ pioB: gpio@fffff600 {
pioC: gpio@fffff800 { pioC: gpio@fffff800 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff800 0x100>; reg = <0xfffff800 0x100>;
interrupts = <4 4>; interrupts = <4 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -126,14 +127,14 @@ pioC: gpio@fffff800 { ...@@ -126,14 +127,14 @@ pioC: gpio@fffff800 {
dbgu: serial@fffff200 { dbgu: serial@fffff200 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffff200 0x200>; reg = <0xfffff200 0x200>;
interrupts = <1 4>; interrupts = <1 4 7>;
status = "disabled"; status = "disabled";
}; };
usart0: serial@fffb0000 { usart0: serial@fffb0000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffb0000 0x200>; reg = <0xfffb0000 0x200>;
interrupts = <6 4>; interrupts = <6 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -142,7 +143,7 @@ usart0: serial@fffb0000 { ...@@ -142,7 +143,7 @@ usart0: serial@fffb0000 {
usart1: serial@fffb4000 { usart1: serial@fffb4000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffb4000 0x200>; reg = <0xfffb4000 0x200>;
interrupts = <7 4>; interrupts = <7 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -151,7 +152,7 @@ usart1: serial@fffb4000 { ...@@ -151,7 +152,7 @@ usart1: serial@fffb4000 {
usart2: serial@fffb8000 { usart2: serial@fffb8000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffb8000 0x200>; reg = <0xfffb8000 0x200>;
interrupts = <8 4>; interrupts = <8 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -160,7 +161,7 @@ usart2: serial@fffb8000 { ...@@ -160,7 +161,7 @@ usart2: serial@fffb8000 {
usart3: serial@fffd0000 { usart3: serial@fffd0000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffd0000 0x200>; reg = <0xfffd0000 0x200>;
interrupts = <23 4>; interrupts = <23 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -169,7 +170,7 @@ usart3: serial@fffd0000 { ...@@ -169,7 +170,7 @@ usart3: serial@fffd0000 {
usart4: serial@fffd4000 { usart4: serial@fffd4000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffd4000 0x200>; reg = <0xfffd4000 0x200>;
interrupts = <24 4>; interrupts = <24 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -178,7 +179,7 @@ usart4: serial@fffd4000 { ...@@ -178,7 +179,7 @@ usart4: serial@fffd4000 {
usart5: serial@fffd8000 { usart5: serial@fffd8000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffd8000 0x200>; reg = <0xfffd8000 0x200>;
interrupts = <25 4>; interrupts = <25 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -187,21 +188,21 @@ usart5: serial@fffd8000 { ...@@ -187,21 +188,21 @@ usart5: serial@fffd8000 {
macb0: ethernet@fffc4000 { macb0: ethernet@fffc4000 {
compatible = "cdns,at32ap7000-macb", "cdns,macb"; compatible = "cdns,at32ap7000-macb", "cdns,macb";
reg = <0xfffc4000 0x100>; reg = <0xfffc4000 0x100>;
interrupts = <21 4>; interrupts = <21 4 3>;
status = "disabled"; status = "disabled";
}; };
usb1: gadget@fffa4000 { usb1: gadget@fffa4000 {
compatible = "atmel,at91rm9200-udc"; compatible = "atmel,at91rm9200-udc";
reg = <0xfffa4000 0x4000>; reg = <0xfffa4000 0x4000>;
interrupts = <10 4>; interrupts = <10 4 2>;
status = "disabled"; status = "disabled";
}; };
adc0: adc@fffe0000 { adc0: adc@fffe0000 {
compatible = "atmel,at91sam9260-adc"; compatible = "atmel,at91sam9260-adc";
reg = <0xfffe0000 0x100>; reg = <0xfffe0000 0x100>;
interrupts = <5 4>; interrupts = <5 4 0>;
atmel,adc-use-external-triggers; atmel,adc-use-external-triggers;
atmel,adc-channels-used = <0xf>; atmel,adc-channels-used = <0xf>;
atmel,adc-vref = <3300>; atmel,adc-vref = <3300>;
...@@ -253,7 +254,7 @@ &pioC 14 0 ...@@ -253,7 +254,7 @@ &pioC 14 0
usb0: ohci@00500000 { usb0: ohci@00500000 {
compatible = "atmel,at91rm9200-ohci", "usb-ohci"; compatible = "atmel,at91rm9200-ohci", "usb-ohci";
reg = <0x00500000 0x100000>; reg = <0x00500000 0x100000>;
interrupts = <20 4>; interrupts = <20 4 2>;
status = "disabled"; status = "disabled";
}; };
}; };
......
...@@ -48,10 +48,11 @@ apb { ...@@ -48,10 +48,11 @@ apb {
ranges; ranges;
aic: interrupt-controller@fffff000 { aic: interrupt-controller@fffff000 {
#interrupt-cells = <2>; #interrupt-cells = <3>;
compatible = "atmel,at91rm9200-aic"; compatible = "atmel,at91rm9200-aic";
interrupt-controller; interrupt-controller;
reg = <0xfffff000 0x200>; reg = <0xfffff000 0x200>;
atmel,external-irqs = <30 31>;
}; };
pmc: pmc@fffffc00 { pmc: pmc@fffffc00 {
...@@ -68,13 +69,13 @@ ramc: ramc@ffffe200 { ...@@ -68,13 +69,13 @@ ramc: ramc@ffffe200 {
pit: timer@fffffd30 { pit: timer@fffffd30 {
compatible = "atmel,at91sam9260-pit"; compatible = "atmel,at91sam9260-pit";
reg = <0xfffffd30 0xf>; reg = <0xfffffd30 0xf>;
interrupts = <1 4>; interrupts = <1 4 7>;
}; };
tcb0: timer@fff7c000 { tcb0: timer@fff7c000 {
compatible = "atmel,at91rm9200-tcb"; compatible = "atmel,at91rm9200-tcb";
reg = <0xfff7c000 0x100>; reg = <0xfff7c000 0x100>;
interrupts = <19 4>; interrupts = <19 4 0>;
}; };
rstc@fffffd00 { rstc@fffffd00 {
...@@ -90,7 +91,7 @@ shdwc@fffffd10 { ...@@ -90,7 +91,7 @@ shdwc@fffffd10 {
pioA: gpio@fffff200 { pioA: gpio@fffff200 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff200 0x100>; reg = <0xfffff200 0x100>;
interrupts = <2 4>; interrupts = <2 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -99,7 +100,7 @@ pioA: gpio@fffff200 { ...@@ -99,7 +100,7 @@ pioA: gpio@fffff200 {
pioB: gpio@fffff400 { pioB: gpio@fffff400 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff400 0x100>; reg = <0xfffff400 0x100>;
interrupts = <3 4>; interrupts = <3 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -108,7 +109,7 @@ pioB: gpio@fffff400 { ...@@ -108,7 +109,7 @@ pioB: gpio@fffff400 {
pioC: gpio@fffff600 { pioC: gpio@fffff600 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff600 0x100>; reg = <0xfffff600 0x100>;
interrupts = <4 4>; interrupts = <4 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -117,7 +118,7 @@ pioC: gpio@fffff600 { ...@@ -117,7 +118,7 @@ pioC: gpio@fffff600 {
pioD: gpio@fffff800 { pioD: gpio@fffff800 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff800 0x100>; reg = <0xfffff800 0x100>;
interrupts = <4 4>; interrupts = <4 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -126,7 +127,7 @@ pioD: gpio@fffff800 { ...@@ -126,7 +127,7 @@ pioD: gpio@fffff800 {
pioE: gpio@fffffa00 { pioE: gpio@fffffa00 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffffa00 0x100>; reg = <0xfffffa00 0x100>;
interrupts = <4 4>; interrupts = <4 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -135,14 +136,14 @@ pioE: gpio@fffffa00 { ...@@ -135,14 +136,14 @@ pioE: gpio@fffffa00 {
dbgu: serial@ffffee00 { dbgu: serial@ffffee00 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xffffee00 0x200>; reg = <0xffffee00 0x200>;
interrupts = <1 4>; interrupts = <1 4 7>;
status = "disabled"; status = "disabled";
}; };
usart0: serial@fff8c000 { usart0: serial@fff8c000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfff8c000 0x200>; reg = <0xfff8c000 0x200>;
interrupts = <7 4>; interrupts = <7 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -151,7 +152,7 @@ usart0: serial@fff8c000 { ...@@ -151,7 +152,7 @@ usart0: serial@fff8c000 {
usart1: serial@fff90000 { usart1: serial@fff90000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfff90000 0x200>; reg = <0xfff90000 0x200>;
interrupts = <8 4>; interrupts = <8 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -160,7 +161,7 @@ usart1: serial@fff90000 { ...@@ -160,7 +161,7 @@ usart1: serial@fff90000 {
usart2: serial@fff94000 { usart2: serial@fff94000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfff94000 0x200>; reg = <0xfff94000 0x200>;
interrupts = <9 4>; interrupts = <9 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -169,14 +170,14 @@ usart2: serial@fff94000 { ...@@ -169,14 +170,14 @@ usart2: serial@fff94000 {
macb0: ethernet@fffbc000 { macb0: ethernet@fffbc000 {
compatible = "cdns,at32ap7000-macb", "cdns,macb"; compatible = "cdns,at32ap7000-macb", "cdns,macb";
reg = <0xfffbc000 0x100>; reg = <0xfffbc000 0x100>;
interrupts = <21 4>; interrupts = <21 4 3>;
status = "disabled"; status = "disabled";
}; };
usb1: gadget@fff78000 { usb1: gadget@fff78000 {
compatible = "atmel,at91rm9200-udc"; compatible = "atmel,at91rm9200-udc";
reg = <0xfff78000 0x4000>; reg = <0xfff78000 0x4000>;
interrupts = <24 4>; interrupts = <24 4 2>;
status = "disabled"; status = "disabled";
}; };
}; };
...@@ -200,7 +201,7 @@ &pioD 15 0 ...@@ -200,7 +201,7 @@ &pioD 15 0
usb0: ohci@00a00000 { usb0: ohci@00a00000 {
compatible = "atmel,at91rm9200-ohci", "usb-ohci"; compatible = "atmel,at91rm9200-ohci", "usb-ohci";
reg = <0x00a00000 0x100000>; reg = <0x00a00000 0x100000>;
interrupts = <29 4>; interrupts = <29 4 2>;
status = "disabled"; status = "disabled";
}; };
}; };
......
...@@ -53,10 +53,11 @@ apb { ...@@ -53,10 +53,11 @@ apb {
ranges; ranges;
aic: interrupt-controller@fffff000 { aic: interrupt-controller@fffff000 {
#interrupt-cells = <2>; #interrupt-cells = <3>;
compatible = "atmel,at91rm9200-aic"; compatible = "atmel,at91rm9200-aic";
interrupt-controller; interrupt-controller;
reg = <0xfffff000 0x200>; reg = <0xfffff000 0x200>;
atmel,external-irqs = <31>;
}; };
ramc0: ramc@ffffe400 { ramc0: ramc@ffffe400 {
...@@ -78,7 +79,7 @@ rstc@fffffd00 { ...@@ -78,7 +79,7 @@ rstc@fffffd00 {
pit: timer@fffffd30 { pit: timer@fffffd30 {
compatible = "atmel,at91sam9260-pit"; compatible = "atmel,at91sam9260-pit";
reg = <0xfffffd30 0xf>; reg = <0xfffffd30 0xf>;
interrupts = <1 4>; interrupts = <1 4 7>;
}; };
...@@ -90,25 +91,25 @@ shdwc@fffffd10 { ...@@ -90,25 +91,25 @@ shdwc@fffffd10 {
tcb0: timer@fff7c000 { tcb0: timer@fff7c000 {
compatible = "atmel,at91rm9200-tcb"; compatible = "atmel,at91rm9200-tcb";
reg = <0xfff7c000 0x100>; reg = <0xfff7c000 0x100>;
interrupts = <18 4>; interrupts = <18 4 0>;
}; };
tcb1: timer@fffd4000 { tcb1: timer@fffd4000 {
compatible = "atmel,at91rm9200-tcb"; compatible = "atmel,at91rm9200-tcb";
reg = <0xfffd4000 0x100>; reg = <0xfffd4000 0x100>;
interrupts = <18 4>; interrupts = <18 4 0>;
}; };
dma: dma-controller@ffffec00 { dma: dma-controller@ffffec00 {
compatible = "atmel,at91sam9g45-dma"; compatible = "atmel,at91sam9g45-dma";
reg = <0xffffec00 0x200>; reg = <0xffffec00 0x200>;
interrupts = <21 4>; interrupts = <21 4 0>;
}; };
pioA: gpio@fffff200 { pioA: gpio@fffff200 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff200 0x100>; reg = <0xfffff200 0x100>;
interrupts = <2 4>; interrupts = <2 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -117,7 +118,7 @@ pioA: gpio@fffff200 { ...@@ -117,7 +118,7 @@ pioA: gpio@fffff200 {
pioB: gpio@fffff400 { pioB: gpio@fffff400 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff400 0x100>; reg = <0xfffff400 0x100>;
interrupts = <3 4>; interrupts = <3 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -126,7 +127,7 @@ pioB: gpio@fffff400 { ...@@ -126,7 +127,7 @@ pioB: gpio@fffff400 {
pioC: gpio@fffff600 { pioC: gpio@fffff600 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff600 0x100>; reg = <0xfffff600 0x100>;
interrupts = <4 4>; interrupts = <4 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -135,7 +136,7 @@ pioC: gpio@fffff600 { ...@@ -135,7 +136,7 @@ pioC: gpio@fffff600 {
pioD: gpio@fffff800 { pioD: gpio@fffff800 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff800 0x100>; reg = <0xfffff800 0x100>;
interrupts = <5 4>; interrupts = <5 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -144,7 +145,7 @@ pioD: gpio@fffff800 { ...@@ -144,7 +145,7 @@ pioD: gpio@fffff800 {
pioE: gpio@fffffa00 { pioE: gpio@fffffa00 {
compatible = "atmel,at91rm9200-gpio"; compatible = "atmel,at91rm9200-gpio";
reg = <0xfffffa00 0x100>; reg = <0xfffffa00 0x100>;
interrupts = <5 4>; interrupts = <5 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -153,14 +154,14 @@ pioE: gpio@fffffa00 { ...@@ -153,14 +154,14 @@ pioE: gpio@fffffa00 {
dbgu: serial@ffffee00 { dbgu: serial@ffffee00 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xffffee00 0x200>; reg = <0xffffee00 0x200>;
interrupts = <1 4>; interrupts = <1 4 7>;
status = "disabled"; status = "disabled";
}; };
usart0: serial@fff8c000 { usart0: serial@fff8c000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfff8c000 0x200>; reg = <0xfff8c000 0x200>;
interrupts = <7 4>; interrupts = <7 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -169,7 +170,7 @@ usart0: serial@fff8c000 { ...@@ -169,7 +170,7 @@ usart0: serial@fff8c000 {
usart1: serial@fff90000 { usart1: serial@fff90000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfff90000 0x200>; reg = <0xfff90000 0x200>;
interrupts = <8 4>; interrupts = <8 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -178,7 +179,7 @@ usart1: serial@fff90000 { ...@@ -178,7 +179,7 @@ usart1: serial@fff90000 {
usart2: serial@fff94000 { usart2: serial@fff94000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfff94000 0x200>; reg = <0xfff94000 0x200>;
interrupts = <9 4>; interrupts = <9 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -187,7 +188,7 @@ usart2: serial@fff94000 { ...@@ -187,7 +188,7 @@ usart2: serial@fff94000 {
usart3: serial@fff98000 { usart3: serial@fff98000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfff98000 0x200>; reg = <0xfff98000 0x200>;
interrupts = <10 4>; interrupts = <10 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -196,14 +197,14 @@ usart3: serial@fff98000 { ...@@ -196,14 +197,14 @@ usart3: serial@fff98000 {
macb0: ethernet@fffbc000 { macb0: ethernet@fffbc000 {
compatible = "cdns,at32ap7000-macb", "cdns,macb"; compatible = "cdns,at32ap7000-macb", "cdns,macb";
reg = <0xfffbc000 0x100>; reg = <0xfffbc000 0x100>;
interrupts = <25 4>; interrupts = <25 4 3>;
status = "disabled"; status = "disabled";
}; };
adc0: adc@fffb0000 { adc0: adc@fffb0000 {
compatible = "atmel,at91sam9260-adc"; compatible = "atmel,at91sam9260-adc";
reg = <0xfffb0000 0x100>; reg = <0xfffb0000 0x100>;
interrupts = <20 4>; interrupts = <20 4 0>;
atmel,adc-use-external-triggers; atmel,adc-use-external-triggers;
atmel,adc-channels-used = <0xff>; atmel,adc-channels-used = <0xff>;
atmel,adc-vref = <3300>; atmel,adc-vref = <3300>;
...@@ -257,14 +258,14 @@ &pioC 14 0 ...@@ -257,14 +258,14 @@ &pioC 14 0
usb0: ohci@00700000 { usb0: ohci@00700000 {
compatible = "atmel,at91rm9200-ohci", "usb-ohci"; compatible = "atmel,at91rm9200-ohci", "usb-ohci";
reg = <0x00700000 0x100000>; reg = <0x00700000 0x100000>;
interrupts = <22 4>; interrupts = <22 4 2>;
status = "disabled"; status = "disabled";
}; };
usb1: ehci@00800000 { usb1: ehci@00800000 {
compatible = "atmel,at91sam9g45-ehci", "usb-ehci"; compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
reg = <0x00800000 0x100000>; reg = <0x00800000 0x100000>;
interrupts = <22 4>; interrupts = <22 4 2>;
status = "disabled"; status = "disabled";
}; };
}; };
......
...@@ -50,7 +50,7 @@ apb { ...@@ -50,7 +50,7 @@ apb {
ranges; ranges;
aic: interrupt-controller@fffff000 { aic: interrupt-controller@fffff000 {
#interrupt-cells = <2>; #interrupt-cells = <3>;
compatible = "atmel,at91rm9200-aic"; compatible = "atmel,at91rm9200-aic";
interrupt-controller; interrupt-controller;
reg = <0xfffff000 0x200>; reg = <0xfffff000 0x200>;
...@@ -74,7 +74,7 @@ rstc@fffffe00 { ...@@ -74,7 +74,7 @@ rstc@fffffe00 {
pit: timer@fffffe30 { pit: timer@fffffe30 {
compatible = "atmel,at91sam9260-pit"; compatible = "atmel,at91sam9260-pit";
reg = <0xfffffe30 0xf>; reg = <0xfffffe30 0xf>;
interrupts = <1 4>; interrupts = <1 4 7>;
}; };
shdwc@fffffe10 { shdwc@fffffe10 {
...@@ -85,25 +85,25 @@ shdwc@fffffe10 { ...@@ -85,25 +85,25 @@ shdwc@fffffe10 {
tcb0: timer@f8008000 { tcb0: timer@f8008000 {
compatible = "atmel,at91sam9x5-tcb"; compatible = "atmel,at91sam9x5-tcb";
reg = <0xf8008000 0x100>; reg = <0xf8008000 0x100>;
interrupts = <17 4>; interrupts = <17 4 0>;
}; };
tcb1: timer@f800c000 { tcb1: timer@f800c000 {
compatible = "atmel,at91sam9x5-tcb"; compatible = "atmel,at91sam9x5-tcb";
reg = <0xf800c000 0x100>; reg = <0xf800c000 0x100>;
interrupts = <17 4>; interrupts = <17 4 0>;
}; };
dma: dma-controller@ffffec00 { dma: dma-controller@ffffec00 {
compatible = "atmel,at91sam9g45-dma"; compatible = "atmel,at91sam9g45-dma";
reg = <0xffffec00 0x200>; reg = <0xffffec00 0x200>;
interrupts = <20 4>; interrupts = <20 4 0>;
}; };
pioA: gpio@fffff400 { pioA: gpio@fffff400 {
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffff400 0x100>; reg = <0xfffff400 0x100>;
interrupts = <2 4>; interrupts = <2 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -112,7 +112,7 @@ pioA: gpio@fffff400 { ...@@ -112,7 +112,7 @@ pioA: gpio@fffff400 {
pioB: gpio@fffff600 { pioB: gpio@fffff600 {
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffff600 0x100>; reg = <0xfffff600 0x100>;
interrupts = <2 4>; interrupts = <2 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -121,7 +121,7 @@ pioB: gpio@fffff600 { ...@@ -121,7 +121,7 @@ pioB: gpio@fffff600 {
pioC: gpio@fffff800 { pioC: gpio@fffff800 {
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffff800 0x100>; reg = <0xfffff800 0x100>;
interrupts = <3 4>; interrupts = <3 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -130,7 +130,7 @@ pioC: gpio@fffff800 { ...@@ -130,7 +130,7 @@ pioC: gpio@fffff800 {
pioD: gpio@fffffa00 { pioD: gpio@fffffa00 {
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffffa00 0x100>; reg = <0xfffffa00 0x100>;
interrupts = <3 4>; interrupts = <3 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -139,14 +139,14 @@ pioD: gpio@fffffa00 { ...@@ -139,14 +139,14 @@ pioD: gpio@fffffa00 {
dbgu: serial@fffff200 { dbgu: serial@fffff200 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffff200 0x200>; reg = <0xfffff200 0x200>;
interrupts = <1 4>; interrupts = <1 4 7>;
status = "disabled"; status = "disabled";
}; };
usart0: serial@f801c000 { usart0: serial@f801c000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xf801c000 0x4000>; reg = <0xf801c000 0x4000>;
interrupts = <5 4>; interrupts = <5 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -155,7 +155,7 @@ usart0: serial@f801c000 { ...@@ -155,7 +155,7 @@ usart0: serial@f801c000 {
usart1: serial@f8020000 { usart1: serial@f8020000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xf8020000 0x4000>; reg = <0xf8020000 0x4000>;
interrupts = <6 4>; interrupts = <6 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -164,7 +164,7 @@ usart1: serial@f8020000 { ...@@ -164,7 +164,7 @@ usart1: serial@f8020000 {
usart2: serial@f8024000 { usart2: serial@f8024000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xf8024000 0x4000>; reg = <0xf8024000 0x4000>;
interrupts = <7 4>; interrupts = <7 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -173,7 +173,7 @@ usart2: serial@f8024000 { ...@@ -173,7 +173,7 @@ usart2: serial@f8024000 {
usart3: serial@f8028000 { usart3: serial@f8028000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xf8028000 0x4000>; reg = <0xf8028000 0x4000>;
interrupts = <8 4>; interrupts = <8 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -201,7 +201,7 @@ &pioD 4 0 ...@@ -201,7 +201,7 @@ &pioD 4 0
usb0: ohci@00500000 { usb0: ohci@00500000 {
compatible = "atmel,at91rm9200-ohci", "usb-ohci"; compatible = "atmel,at91rm9200-ohci", "usb-ohci";
reg = <0x00500000 0x00100000>; reg = <0x00500000 0x00100000>;
interrupts = <22 4>; interrupts = <22 4 2>;
status = "disabled"; status = "disabled";
}; };
}; };
......
...@@ -51,10 +51,11 @@ apb { ...@@ -51,10 +51,11 @@ apb {
ranges; ranges;
aic: interrupt-controller@fffff000 { aic: interrupt-controller@fffff000 {
#interrupt-cells = <2>; #interrupt-cells = <3>;
compatible = "atmel,at91rm9200-aic"; compatible = "atmel,at91rm9200-aic";
interrupt-controller; interrupt-controller;
reg = <0xfffff000 0x200>; reg = <0xfffff000 0x200>;
atmel,external-irqs = <31>;
}; };
ramc0: ramc@ffffe800 { ramc0: ramc@ffffe800 {
...@@ -80,37 +81,37 @@ shdwc@fffffe10 { ...@@ -80,37 +81,37 @@ shdwc@fffffe10 {
pit: timer@fffffe30 { pit: timer@fffffe30 {
compatible = "atmel,at91sam9260-pit"; compatible = "atmel,at91sam9260-pit";
reg = <0xfffffe30 0xf>; reg = <0xfffffe30 0xf>;
interrupts = <1 4>; interrupts = <1 4 7>;
}; };
tcb0: timer@f8008000 { tcb0: timer@f8008000 {
compatible = "atmel,at91sam9x5-tcb"; compatible = "atmel,at91sam9x5-tcb";
reg = <0xf8008000 0x100>; reg = <0xf8008000 0x100>;
interrupts = <17 4>; interrupts = <17 4 0>;
}; };
tcb1: timer@f800c000 { tcb1: timer@f800c000 {
compatible = "atmel,at91sam9x5-tcb"; compatible = "atmel,at91sam9x5-tcb";
reg = <0xf800c000 0x100>; reg = <0xf800c000 0x100>;
interrupts = <17 4>; interrupts = <17 4 0>;
}; };
dma0: dma-controller@ffffec00 { dma0: dma-controller@ffffec00 {
compatible = "atmel,at91sam9g45-dma"; compatible = "atmel,at91sam9g45-dma";
reg = <0xffffec00 0x200>; reg = <0xffffec00 0x200>;
interrupts = <20 4>; interrupts = <20 4 0>;
}; };
dma1: dma-controller@ffffee00 { dma1: dma-controller@ffffee00 {
compatible = "atmel,at91sam9g45-dma"; compatible = "atmel,at91sam9g45-dma";
reg = <0xffffee00 0x200>; reg = <0xffffee00 0x200>;
interrupts = <21 4>; interrupts = <21 4 0>;
}; };
pioA: gpio@fffff400 { pioA: gpio@fffff400 {
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffff400 0x100>; reg = <0xfffff400 0x100>;
interrupts = <2 4>; interrupts = <2 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -119,7 +120,7 @@ pioA: gpio@fffff400 { ...@@ -119,7 +120,7 @@ pioA: gpio@fffff400 {
pioB: gpio@fffff600 { pioB: gpio@fffff600 {
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffff600 0x100>; reg = <0xfffff600 0x100>;
interrupts = <2 4>; interrupts = <2 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -128,7 +129,7 @@ pioB: gpio@fffff600 { ...@@ -128,7 +129,7 @@ pioB: gpio@fffff600 {
pioC: gpio@fffff800 { pioC: gpio@fffff800 {
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffff800 0x100>; reg = <0xfffff800 0x100>;
interrupts = <3 4>; interrupts = <3 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -137,7 +138,7 @@ pioC: gpio@fffff800 { ...@@ -137,7 +138,7 @@ pioC: gpio@fffff800 {
pioD: gpio@fffffa00 { pioD: gpio@fffffa00 {
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
reg = <0xfffffa00 0x100>; reg = <0xfffffa00 0x100>;
interrupts = <3 4>; interrupts = <3 4 1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
interrupt-controller; interrupt-controller;
...@@ -146,14 +147,14 @@ pioD: gpio@fffffa00 { ...@@ -146,14 +147,14 @@ pioD: gpio@fffffa00 {
dbgu: serial@fffff200 { dbgu: serial@fffff200 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xfffff200 0x200>; reg = <0xfffff200 0x200>;
interrupts = <1 4>; interrupts = <1 4 7>;
status = "disabled"; status = "disabled";
}; };
usart0: serial@f801c000 { usart0: serial@f801c000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xf801c000 0x200>; reg = <0xf801c000 0x200>;
interrupts = <5 4>; interrupts = <5 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -162,7 +163,7 @@ usart0: serial@f801c000 { ...@@ -162,7 +163,7 @@ usart0: serial@f801c000 {
usart1: serial@f8020000 { usart1: serial@f8020000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xf8020000 0x200>; reg = <0xf8020000 0x200>;
interrupts = <6 4>; interrupts = <6 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -171,7 +172,7 @@ usart1: serial@f8020000 { ...@@ -171,7 +172,7 @@ usart1: serial@f8020000 {
usart2: serial@f8024000 { usart2: serial@f8024000 {
compatible = "atmel,at91sam9260-usart"; compatible = "atmel,at91sam9260-usart";
reg = <0xf8024000 0x200>; reg = <0xf8024000 0x200>;
interrupts = <7 4>; interrupts = <7 4 5>;
atmel,use-dma-rx; atmel,use-dma-rx;
atmel,use-dma-tx; atmel,use-dma-tx;
status = "disabled"; status = "disabled";
...@@ -180,21 +181,21 @@ usart2: serial@f8024000 { ...@@ -180,21 +181,21 @@ usart2: serial@f8024000 {
macb0: ethernet@f802c000 { macb0: ethernet@f802c000 {
compatible = "cdns,at32ap7000-macb", "cdns,macb"; compatible = "cdns,at32ap7000-macb", "cdns,macb";
reg = <0xf802c000 0x100>; reg = <0xf802c000 0x100>;
interrupts = <24 4>; interrupts = <24 4 3>;
status = "disabled"; status = "disabled";
}; };
macb1: ethernet@f8030000 { macb1: ethernet@f8030000 {
compatible = "cdns,at32ap7000-macb", "cdns,macb"; compatible = "cdns,at32ap7000-macb", "cdns,macb";
reg = <0xf8030000 0x100>; reg = <0xf8030000 0x100>;
interrupts = <27 4>; interrupts = <27 4 3>;
status = "disabled"; status = "disabled";
}; };
adc0: adc@f804c000 { adc0: adc@f804c000 {
compatible = "atmel,at91sam9260-adc"; compatible = "atmel,at91sam9260-adc";
reg = <0xf804c000 0x100>; reg = <0xf804c000 0x100>;
interrupts = <19 4>; interrupts = <19 4 0>;
atmel,adc-use-external; atmel,adc-use-external;
atmel,adc-channels-used = <0xffff>; atmel,adc-channels-used = <0xffff>;
atmel,adc-vref = <3300>; atmel,adc-vref = <3300>;
...@@ -248,14 +249,14 @@ &pioD 4 0 ...@@ -248,14 +249,14 @@ &pioD 4 0
usb0: ohci@00600000 { usb0: ohci@00600000 {
compatible = "atmel,at91rm9200-ohci", "usb-ohci"; compatible = "atmel,at91rm9200-ohci", "usb-ohci";
reg = <0x00600000 0x100000>; reg = <0x00600000 0x100000>;
interrupts = <22 4>; interrupts = <22 4 2>;
status = "disabled"; status = "disabled";
}; };
usb1: ehci@00700000 { usb1: ehci@00700000 {
compatible = "atmel,at91sam9g45-ehci", "usb-ehci"; compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
reg = <0x00700000 0x100000>; reg = <0x00700000 0x100000>;
interrupts = <22 4>; interrupts = <22 4 2>;
status = "disabled"; status = "disabled";
}; };
}; };
......
...@@ -307,7 +307,6 @@ sdhci@c8000600 { ...@@ -307,7 +307,6 @@ sdhci@c8000600 {
cd-gpios = <&gpio 58 0>; /* gpio PH2 */ cd-gpios = <&gpio 58 0>; /* gpio PH2 */
wp-gpios = <&gpio 59 0>; /* gpio PH3 */ wp-gpios = <&gpio 59 0>; /* gpio PH3 */
power-gpios = <&gpio 70 0>; /* gpio PI6 */ power-gpios = <&gpio 70 0>; /* gpio PI6 */
support-8bit;
bus-width = <8>; bus-width = <8>;
}; };
......
...@@ -301,7 +301,6 @@ sdhci@c8000000 { ...@@ -301,7 +301,6 @@ sdhci@c8000000 {
sdhci@c8000600 { sdhci@c8000600 {
status = "okay"; status = "okay";
support-8bit;
bus-width = <8>; bus-width = <8>;
}; };
......
...@@ -334,7 +334,7 @@ magnetometer@c { ...@@ -334,7 +334,7 @@ magnetometer@c {
}; };
}; };
emc { memory-controller@0x7000f400 {
emc-table@190000 { emc-table@190000 {
reg = <190000>; reg = <190000>;
compatible = "nvidia,tegra20-emc-table"; compatible = "nvidia,tegra20-emc-table";
...@@ -397,7 +397,6 @@ sdhci@c8000400 { ...@@ -397,7 +397,6 @@ sdhci@c8000400 {
sdhci@c8000600 { sdhci@c8000600 {
status = "okay"; status = "okay";
support-8bit;
bus-width = <8>; bus-width = <8>;
}; };
......
...@@ -314,7 +314,6 @@ sdhci@c8000400 { ...@@ -314,7 +314,6 @@ sdhci@c8000400 {
sdhci@c8000600 { sdhci@c8000600 {
status = "okay"; status = "okay";
support-8bit;
bus-width = <8>; bus-width = <8>;
}; };
......
...@@ -72,7 +72,7 @@ tegra_i2s1: i2s@70002800 { ...@@ -72,7 +72,7 @@ tegra_i2s1: i2s@70002800 {
reg = <0x70002800 0x200>; reg = <0x70002800 0x200>;
interrupts = <0 13 0x04>; interrupts = <0 13 0x04>;
nvidia,dma-request-selector = <&apbdma 2>; nvidia,dma-request-selector = <&apbdma 2>;
status = "disable"; status = "disabled";
}; };
tegra_i2s2: i2s@70002a00 { tegra_i2s2: i2s@70002a00 {
...@@ -80,7 +80,7 @@ tegra_i2s2: i2s@70002a00 { ...@@ -80,7 +80,7 @@ tegra_i2s2: i2s@70002a00 {
reg = <0x70002a00 0x200>; reg = <0x70002a00 0x200>;
interrupts = <0 3 0x04>; interrupts = <0 3 0x04>;
nvidia,dma-request-selector = <&apbdma 1>; nvidia,dma-request-selector = <&apbdma 1>;
status = "disable"; status = "disabled";
}; };
serial@70006000 { serial@70006000 {
...@@ -88,7 +88,7 @@ serial@70006000 { ...@@ -88,7 +88,7 @@ serial@70006000 {
reg = <0x70006000 0x40>; reg = <0x70006000 0x40>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 36 0x04>; interrupts = <0 36 0x04>;
status = "disable"; status = "disabled";
}; };
serial@70006040 { serial@70006040 {
...@@ -96,7 +96,7 @@ serial@70006040 { ...@@ -96,7 +96,7 @@ serial@70006040 {
reg = <0x70006040 0x40>; reg = <0x70006040 0x40>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 37 0x04>; interrupts = <0 37 0x04>;
status = "disable"; status = "disabled";
}; };
serial@70006200 { serial@70006200 {
...@@ -104,7 +104,7 @@ serial@70006200 { ...@@ -104,7 +104,7 @@ serial@70006200 {
reg = <0x70006200 0x100>; reg = <0x70006200 0x100>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 46 0x04>; interrupts = <0 46 0x04>;
status = "disable"; status = "disabled";
}; };
serial@70006300 { serial@70006300 {
...@@ -112,7 +112,7 @@ serial@70006300 { ...@@ -112,7 +112,7 @@ serial@70006300 {
reg = <0x70006300 0x100>; reg = <0x70006300 0x100>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 90 0x04>; interrupts = <0 90 0x04>;
status = "disable"; status = "disabled";
}; };
serial@70006400 { serial@70006400 {
...@@ -120,7 +120,7 @@ serial@70006400 { ...@@ -120,7 +120,7 @@ serial@70006400 {
reg = <0x70006400 0x100>; reg = <0x70006400 0x100>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 91 0x04>; interrupts = <0 91 0x04>;
status = "disable"; status = "disabled";
}; };
i2c@7000c000 { i2c@7000c000 {
...@@ -129,7 +129,7 @@ i2c@7000c000 { ...@@ -129,7 +129,7 @@ i2c@7000c000 {
interrupts = <0 38 0x04>; interrupts = <0 38 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
i2c@7000c400 { i2c@7000c400 {
...@@ -138,7 +138,7 @@ i2c@7000c400 { ...@@ -138,7 +138,7 @@ i2c@7000c400 {
interrupts = <0 84 0x04>; interrupts = <0 84 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
i2c@7000c500 { i2c@7000c500 {
...@@ -147,7 +147,7 @@ i2c@7000c500 { ...@@ -147,7 +147,7 @@ i2c@7000c500 {
interrupts = <0 92 0x04>; interrupts = <0 92 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
i2c@7000d000 { i2c@7000d000 {
...@@ -156,7 +156,7 @@ i2c@7000d000 { ...@@ -156,7 +156,7 @@ i2c@7000d000 {
interrupts = <0 53 0x04>; interrupts = <0 53 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
pmc { pmc {
...@@ -164,7 +164,7 @@ pmc { ...@@ -164,7 +164,7 @@ pmc {
reg = <0x7000e400 0x400>; reg = <0x7000e400 0x400>;
}; };
mc { memory-controller@0x7000f000 {
compatible = "nvidia,tegra20-mc"; compatible = "nvidia,tegra20-mc";
reg = <0x7000f000 0x024 reg = <0x7000f000 0x024
0x7000f03c 0x3c4>; 0x7000f03c 0x3c4>;
...@@ -177,7 +177,7 @@ gart { ...@@ -177,7 +177,7 @@ gart {
0x58000000 0x02000000>; /* GART aperture */ 0x58000000 0x02000000>; /* GART aperture */
}; };
emc { memory-controller@0x7000f400 {
compatible = "nvidia,tegra20-emc"; compatible = "nvidia,tegra20-emc";
reg = <0x7000f400 0x200>; reg = <0x7000f400 0x200>;
#address-cells = <1>; #address-cells = <1>;
...@@ -190,7 +190,7 @@ usb@c5000000 { ...@@ -190,7 +190,7 @@ usb@c5000000 {
interrupts = <0 20 0x04>; interrupts = <0 20 0x04>;
phy_type = "utmi"; phy_type = "utmi";
nvidia,has-legacy-mode; nvidia,has-legacy-mode;
status = "disable"; status = "disabled";
}; };
usb@c5004000 { usb@c5004000 {
...@@ -198,7 +198,7 @@ usb@c5004000 { ...@@ -198,7 +198,7 @@ usb@c5004000 {
reg = <0xc5004000 0x4000>; reg = <0xc5004000 0x4000>;
interrupts = <0 21 0x04>; interrupts = <0 21 0x04>;
phy_type = "ulpi"; phy_type = "ulpi";
status = "disable"; status = "disabled";
}; };
usb@c5008000 { usb@c5008000 {
...@@ -206,35 +206,35 @@ usb@c5008000 { ...@@ -206,35 +206,35 @@ usb@c5008000 {
reg = <0xc5008000 0x4000>; reg = <0xc5008000 0x4000>;
interrupts = <0 97 0x04>; interrupts = <0 97 0x04>;
phy_type = "utmi"; phy_type = "utmi";
status = "disable"; status = "disabled";
}; };
sdhci@c8000000 { sdhci@c8000000 {
compatible = "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra20-sdhci";
reg = <0xc8000000 0x200>; reg = <0xc8000000 0x200>;
interrupts = <0 14 0x04>; interrupts = <0 14 0x04>;
status = "disable"; status = "disabled";
}; };
sdhci@c8000200 { sdhci@c8000200 {
compatible = "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra20-sdhci";
reg = <0xc8000200 0x200>; reg = <0xc8000200 0x200>;
interrupts = <0 15 0x04>; interrupts = <0 15 0x04>;
status = "disable"; status = "disabled";
}; };
sdhci@c8000400 { sdhci@c8000400 {
compatible = "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra20-sdhci";
reg = <0xc8000400 0x200>; reg = <0xc8000400 0x200>;
interrupts = <0 19 0x04>; interrupts = <0 19 0x04>;
status = "disable"; status = "disabled";
}; };
sdhci@c8000600 { sdhci@c8000600 {
compatible = "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra20-sdhci";
reg = <0xc8000600 0x200>; reg = <0xc8000600 0x200>;
interrupts = <0 31 0x04>; interrupts = <0 31 0x04>;
status = "disable"; status = "disabled";
}; };
pmu { pmu {
......
...@@ -144,7 +144,6 @@ sdhci@78000000 { ...@@ -144,7 +144,6 @@ sdhci@78000000 {
sdhci@78000600 { sdhci@78000600 {
status = "okay"; status = "okay";
support-8bit;
bus-width = <8>; bus-width = <8>;
}; };
......
...@@ -82,7 +82,7 @@ serial@70006000 { ...@@ -82,7 +82,7 @@ serial@70006000 {
reg = <0x70006000 0x40>; reg = <0x70006000 0x40>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 36 0x04>; interrupts = <0 36 0x04>;
status = "disable"; status = "disabled";
}; };
serial@70006040 { serial@70006040 {
...@@ -90,7 +90,7 @@ serial@70006040 { ...@@ -90,7 +90,7 @@ serial@70006040 {
reg = <0x70006040 0x40>; reg = <0x70006040 0x40>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 37 0x04>; interrupts = <0 37 0x04>;
status = "disable"; status = "disabled";
}; };
serial@70006200 { serial@70006200 {
...@@ -98,7 +98,7 @@ serial@70006200 { ...@@ -98,7 +98,7 @@ serial@70006200 {
reg = <0x70006200 0x100>; reg = <0x70006200 0x100>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 46 0x04>; interrupts = <0 46 0x04>;
status = "disable"; status = "disabled";
}; };
serial@70006300 { serial@70006300 {
...@@ -106,7 +106,7 @@ serial@70006300 { ...@@ -106,7 +106,7 @@ serial@70006300 {
reg = <0x70006300 0x100>; reg = <0x70006300 0x100>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 90 0x04>; interrupts = <0 90 0x04>;
status = "disable"; status = "disabled";
}; };
serial@70006400 { serial@70006400 {
...@@ -114,7 +114,7 @@ serial@70006400 { ...@@ -114,7 +114,7 @@ serial@70006400 {
reg = <0x70006400 0x100>; reg = <0x70006400 0x100>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <0 91 0x04>; interrupts = <0 91 0x04>;
status = "disable"; status = "disabled";
}; };
i2c@7000c000 { i2c@7000c000 {
...@@ -123,7 +123,7 @@ i2c@7000c000 { ...@@ -123,7 +123,7 @@ i2c@7000c000 {
interrupts = <0 38 0x04>; interrupts = <0 38 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
i2c@7000c400 { i2c@7000c400 {
...@@ -132,7 +132,7 @@ i2c@7000c400 { ...@@ -132,7 +132,7 @@ i2c@7000c400 {
interrupts = <0 84 0x04>; interrupts = <0 84 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
i2c@7000c500 { i2c@7000c500 {
...@@ -141,7 +141,7 @@ i2c@7000c500 { ...@@ -141,7 +141,7 @@ i2c@7000c500 {
interrupts = <0 92 0x04>; interrupts = <0 92 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
i2c@7000c700 { i2c@7000c700 {
...@@ -150,7 +150,7 @@ i2c@7000c700 { ...@@ -150,7 +150,7 @@ i2c@7000c700 {
interrupts = <0 120 0x04>; interrupts = <0 120 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
i2c@7000d000 { i2c@7000d000 {
...@@ -159,7 +159,7 @@ i2c@7000d000 { ...@@ -159,7 +159,7 @@ i2c@7000d000 {
interrupts = <0 53 0x04>; interrupts = <0 53 0x04>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "disable"; status = "disabled";
}; };
pmc { pmc {
...@@ -167,7 +167,7 @@ pmc { ...@@ -167,7 +167,7 @@ pmc {
reg = <0x7000e400 0x400>; reg = <0x7000e400 0x400>;
}; };
mc { memory-controller {
compatible = "nvidia,tegra30-mc"; compatible = "nvidia,tegra30-mc";
reg = <0x7000f000 0x010 reg = <0x7000f000 0x010
0x7000f03c 0x1b4 0x7000f03c 0x1b4
...@@ -201,35 +201,35 @@ tegra_i2s0: i2s@70080300 { ...@@ -201,35 +201,35 @@ tegra_i2s0: i2s@70080300 {
compatible = "nvidia,tegra30-i2s"; compatible = "nvidia,tegra30-i2s";
reg = <0x70080300 0x100>; reg = <0x70080300 0x100>;
nvidia,ahub-cif-ids = <4 4>; nvidia,ahub-cif-ids = <4 4>;
status = "disable"; status = "disabled";
}; };
tegra_i2s1: i2s@70080400 { tegra_i2s1: i2s@70080400 {
compatible = "nvidia,tegra30-i2s"; compatible = "nvidia,tegra30-i2s";
reg = <0x70080400 0x100>; reg = <0x70080400 0x100>;
nvidia,ahub-cif-ids = <5 5>; nvidia,ahub-cif-ids = <5 5>;
status = "disable"; status = "disabled";
}; };
tegra_i2s2: i2s@70080500 { tegra_i2s2: i2s@70080500 {
compatible = "nvidia,tegra30-i2s"; compatible = "nvidia,tegra30-i2s";
reg = <0x70080500 0x100>; reg = <0x70080500 0x100>;
nvidia,ahub-cif-ids = <6 6>; nvidia,ahub-cif-ids = <6 6>;
status = "disable"; status = "disabled";
}; };
tegra_i2s3: i2s@70080600 { tegra_i2s3: i2s@70080600 {
compatible = "nvidia,tegra30-i2s"; compatible = "nvidia,tegra30-i2s";
reg = <0x70080600 0x100>; reg = <0x70080600 0x100>;
nvidia,ahub-cif-ids = <7 7>; nvidia,ahub-cif-ids = <7 7>;
status = "disable"; status = "disabled";
}; };
tegra_i2s4: i2s@70080700 { tegra_i2s4: i2s@70080700 {
compatible = "nvidia,tegra30-i2s"; compatible = "nvidia,tegra30-i2s";
reg = <0x70080700 0x100>; reg = <0x70080700 0x100>;
nvidia,ahub-cif-ids = <8 8>; nvidia,ahub-cif-ids = <8 8>;
status = "disable"; status = "disabled";
}; };
}; };
...@@ -237,28 +237,28 @@ sdhci@78000000 { ...@@ -237,28 +237,28 @@ sdhci@78000000 {
compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci";
reg = <0x78000000 0x200>; reg = <0x78000000 0x200>;
interrupts = <0 14 0x04>; interrupts = <0 14 0x04>;
status = "disable"; status = "disabled";
}; };
sdhci@78000200 { sdhci@78000200 {
compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci";
reg = <0x78000200 0x200>; reg = <0x78000200 0x200>;
interrupts = <0 15 0x04>; interrupts = <0 15 0x04>;
status = "disable"; status = "disabled";
}; };
sdhci@78000400 { sdhci@78000400 {
compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci";
reg = <0x78000400 0x200>; reg = <0x78000400 0x200>;
interrupts = <0 19 0x04>; interrupts = <0 19 0x04>;
status = "disable"; status = "disabled";
}; };
sdhci@78000600 { sdhci@78000600 {
compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra30-sdhci", "nvidia,tegra20-sdhci";
reg = <0x78000600 0x200>; reg = <0x78000600 0x200>;
interrupts = <0 31 0x04>; interrupts = <0 31 0x04>;
status = "disable"; status = "disabled";
}; };
pmu { pmu {
......
...@@ -40,13 +40,6 @@ ...@@ -40,13 +40,6 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <asm/mach/time.h> #include <asm/mach/time.h>
/*
* No architecture-specific irq_finish function defined in arm/arch/irqs.h.
*/
#ifndef irq_finish
#define irq_finish(irq) do { } while (0)
#endif
unsigned long irq_err_count; unsigned long irq_err_count;
int arch_show_interrupts(struct seq_file *p, int prec) int arch_show_interrupts(struct seq_file *p, int prec)
...@@ -85,9 +78,6 @@ void handle_IRQ(unsigned int irq, struct pt_regs *regs) ...@@ -85,9 +78,6 @@ void handle_IRQ(unsigned int irq, struct pt_regs *regs)
generic_handle_irq(irq); generic_handle_irq(irq);
} }
/* AT91 specific workaround */
irq_finish(irq);
irq_exit(); irq_exit();
set_irq_regs(old_regs); set_irq_regs(old_regs);
} }
......
...@@ -29,12 +29,16 @@ comment "Atmel AT91 Processor" ...@@ -29,12 +29,16 @@ comment "Atmel AT91 Processor"
config SOC_AT91SAM9 config SOC_AT91SAM9
bool bool
select CPU_ARM926T select CPU_ARM926T
select MULTI_IRQ_HANDLER
select SPARSE_IRQ
select AT91_SAM9_TIME select AT91_SAM9_TIME
select AT91_SAM9_SMC select AT91_SAM9_SMC
config SOC_AT91RM9200 config SOC_AT91RM9200
bool "AT91RM9200" bool "AT91RM9200"
select CPU_ARM920T select CPU_ARM920T
select MULTI_IRQ_HANDLER
select SPARSE_IRQ
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select HAVE_AT91_DBGU0 select HAVE_AT91_DBGU0
...@@ -140,6 +144,8 @@ config ARCH_AT91SAM9G45 ...@@ -140,6 +144,8 @@ config ARCH_AT91SAM9G45
config ARCH_AT91X40 config ARCH_AT91X40
bool "AT91x40" bool "AT91x40"
depends on !MMU depends on !MMU
select MULTI_IRQ_HANDLER
select SPARSE_IRQ
select ARCH_USES_GETTIMEOFFSET select ARCH_USES_GETTIMEOFFSET
endchoice endchoice
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/system_misc.h> #include <asm/system_misc.h>
#include <mach/at91rm9200.h> #include <mach/at91rm9200.h>
#include <mach/at91_aic.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/at91_st.h> #include <mach/at91_st.h>
#include <mach/cpu.h> #include <mach/cpu.h>
......
...@@ -41,8 +41,8 @@ static struct resource usbh_resources[] = { ...@@ -41,8 +41,8 @@ static struct resource usbh_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_UHP, .start = NR_IRQS_LEGACY + AT91RM9200_ID_UHP,
.end = AT91RM9200_ID_UHP, .end = NR_IRQS_LEGACY + AT91RM9200_ID_UHP,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -94,8 +94,8 @@ static struct resource udc_resources[] = { ...@@ -94,8 +94,8 @@ static struct resource udc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_UDP, .start = NR_IRQS_LEGACY + AT91RM9200_ID_UDP,
.end = AT91RM9200_ID_UDP, .end = NR_IRQS_LEGACY + AT91RM9200_ID_UDP,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -145,8 +145,8 @@ static struct resource eth_resources[] = { ...@@ -145,8 +145,8 @@ static struct resource eth_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_EMAC, .start = NR_IRQS_LEGACY + AT91RM9200_ID_EMAC,
.end = AT91RM9200_ID_EMAC, .end = NR_IRQS_LEGACY + AT91RM9200_ID_EMAC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -305,8 +305,8 @@ static struct resource mmc_resources[] = { ...@@ -305,8 +305,8 @@ static struct resource mmc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_MCI, .start = NR_IRQS_LEGACY + AT91RM9200_ID_MCI,
.end = AT91RM9200_ID_MCI, .end = NR_IRQS_LEGACY + AT91RM9200_ID_MCI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -488,8 +488,8 @@ static struct resource twi_resources[] = { ...@@ -488,8 +488,8 @@ static struct resource twi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_TWI, .start = NR_IRQS_LEGACY + AT91RM9200_ID_TWI,
.end = AT91RM9200_ID_TWI, .end = NR_IRQS_LEGACY + AT91RM9200_ID_TWI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -532,8 +532,8 @@ static struct resource spi_resources[] = { ...@@ -532,8 +532,8 @@ static struct resource spi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_SPI, .start = NR_IRQS_LEGACY + AT91RM9200_ID_SPI,
.end = AT91RM9200_ID_SPI, .end = NR_IRQS_LEGACY + AT91RM9200_ID_SPI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -598,18 +598,18 @@ static struct resource tcb0_resources[] = { ...@@ -598,18 +598,18 @@ static struct resource tcb0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_TC0, .start = NR_IRQS_LEGACY + AT91RM9200_ID_TC0,
.end = AT91RM9200_ID_TC0, .end = NR_IRQS_LEGACY + AT91RM9200_ID_TC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[2] = { [2] = {
.start = AT91RM9200_ID_TC1, .start = NR_IRQS_LEGACY + AT91RM9200_ID_TC1,
.end = AT91RM9200_ID_TC1, .end = NR_IRQS_LEGACY + AT91RM9200_ID_TC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[3] = { [3] = {
.start = AT91RM9200_ID_TC2, .start = NR_IRQS_LEGACY + AT91RM9200_ID_TC2,
.end = AT91RM9200_ID_TC2, .end = NR_IRQS_LEGACY + AT91RM9200_ID_TC2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -628,18 +628,18 @@ static struct resource tcb1_resources[] = { ...@@ -628,18 +628,18 @@ static struct resource tcb1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_TC3, .start = NR_IRQS_LEGACY + AT91RM9200_ID_TC3,
.end = AT91RM9200_ID_TC3, .end = NR_IRQS_LEGACY + AT91RM9200_ID_TC3,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[2] = { [2] = {
.start = AT91RM9200_ID_TC4, .start = NR_IRQS_LEGACY + AT91RM9200_ID_TC4,
.end = AT91RM9200_ID_TC4, .end = NR_IRQS_LEGACY + AT91RM9200_ID_TC4,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[3] = { [3] = {
.start = AT91RM9200_ID_TC5, .start = NR_IRQS_LEGACY + AT91RM9200_ID_TC5,
.end = AT91RM9200_ID_TC5, .end = NR_IRQS_LEGACY + AT91RM9200_ID_TC5,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -673,8 +673,8 @@ static struct resource rtc_resources[] = { ...@@ -673,8 +673,8 @@ static struct resource rtc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91_ID_SYS, .start = NR_IRQS_LEGACY + AT91_ID_SYS,
.end = AT91_ID_SYS, .end = NR_IRQS_LEGACY + AT91_ID_SYS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -729,8 +729,8 @@ static struct resource ssc0_resources[] = { ...@@ -729,8 +729,8 @@ static struct resource ssc0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_SSC0, .start = NR_IRQS_LEGACY + AT91RM9200_ID_SSC0,
.end = AT91RM9200_ID_SSC0, .end = NR_IRQS_LEGACY + AT91RM9200_ID_SSC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -771,8 +771,8 @@ static struct resource ssc1_resources[] = { ...@@ -771,8 +771,8 @@ static struct resource ssc1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_SSC1, .start = NR_IRQS_LEGACY + AT91RM9200_ID_SSC1,
.end = AT91RM9200_ID_SSC1, .end = NR_IRQS_LEGACY + AT91RM9200_ID_SSC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -813,8 +813,8 @@ static struct resource ssc2_resources[] = { ...@@ -813,8 +813,8 @@ static struct resource ssc2_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_SSC2, .start = NR_IRQS_LEGACY + AT91RM9200_ID_SSC2,
.end = AT91RM9200_ID_SSC2, .end = NR_IRQS_LEGACY + AT91RM9200_ID_SSC2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -897,8 +897,8 @@ static struct resource dbgu_resources[] = { ...@@ -897,8 +897,8 @@ static struct resource dbgu_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91_ID_SYS, .start = NR_IRQS_LEGACY + AT91_ID_SYS,
.end = AT91_ID_SYS, .end = NR_IRQS_LEGACY + AT91_ID_SYS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -935,8 +935,8 @@ static struct resource uart0_resources[] = { ...@@ -935,8 +935,8 @@ static struct resource uart0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_US0, .start = NR_IRQS_LEGACY + AT91RM9200_ID_US0,
.end = AT91RM9200_ID_US0, .end = NR_IRQS_LEGACY + AT91RM9200_ID_US0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -984,8 +984,8 @@ static struct resource uart1_resources[] = { ...@@ -984,8 +984,8 @@ static struct resource uart1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_US1, .start = NR_IRQS_LEGACY + AT91RM9200_ID_US1,
.end = AT91RM9200_ID_US1, .end = NR_IRQS_LEGACY + AT91RM9200_ID_US1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1035,8 +1035,8 @@ static struct resource uart2_resources[] = { ...@@ -1035,8 +1035,8 @@ static struct resource uart2_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_US2, .start = NR_IRQS_LEGACY + AT91RM9200_ID_US2,
.end = AT91RM9200_ID_US2, .end = NR_IRQS_LEGACY + AT91RM9200_ID_US2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1078,8 +1078,8 @@ static struct resource uart3_resources[] = { ...@@ -1078,8 +1078,8 @@ static struct resource uart3_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91RM9200_ID_US3, .start = NR_IRQS_LEGACY + AT91RM9200_ID_US3,
.end = AT91RM9200_ID_US3, .end = NR_IRQS_LEGACY + AT91RM9200_ID_US3,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/at91_dbgu.h> #include <mach/at91_dbgu.h>
#include <mach/at91sam9260.h> #include <mach/at91sam9260.h>
#include <mach/at91_aic.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/at91_rstc.h> #include <mach/at91_rstc.h>
......
...@@ -45,8 +45,8 @@ static struct resource usbh_resources[] = { ...@@ -45,8 +45,8 @@ static struct resource usbh_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_UHP, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_UHP,
.end = AT91SAM9260_ID_UHP, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_UHP,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -98,8 +98,8 @@ static struct resource udc_resources[] = { ...@@ -98,8 +98,8 @@ static struct resource udc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_UDP, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_UDP,
.end = AT91SAM9260_ID_UDP, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_UDP,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -149,8 +149,8 @@ static struct resource eth_resources[] = { ...@@ -149,8 +149,8 @@ static struct resource eth_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_EMAC, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_EMAC,
.end = AT91SAM9260_ID_EMAC, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_EMAC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -223,8 +223,8 @@ static struct resource mmc_resources[] = { ...@@ -223,8 +223,8 @@ static struct resource mmc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_MCI, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_MCI,
.end = AT91SAM9260_ID_MCI, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_MCI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -305,8 +305,8 @@ static struct resource mmc_resources[] = { ...@@ -305,8 +305,8 @@ static struct resource mmc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_MCI, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_MCI,
.end = AT91SAM9260_ID_MCI, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_MCI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -496,8 +496,8 @@ static struct resource twi_resources[] = { ...@@ -496,8 +496,8 @@ static struct resource twi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_TWI, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_TWI,
.end = AT91SAM9260_ID_TWI, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_TWI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -540,8 +540,8 @@ static struct resource spi0_resources[] = { ...@@ -540,8 +540,8 @@ static struct resource spi0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_SPI0, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_SPI0,
.end = AT91SAM9260_ID_SPI0, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_SPI0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -566,8 +566,8 @@ static struct resource spi1_resources[] = { ...@@ -566,8 +566,8 @@ static struct resource spi1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_SPI1, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_SPI1,
.end = AT91SAM9260_ID_SPI1, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_SPI1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -652,18 +652,18 @@ static struct resource tcb0_resources[] = { ...@@ -652,18 +652,18 @@ static struct resource tcb0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_TC0, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_TC0,
.end = AT91SAM9260_ID_TC0, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_TC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[2] = { [2] = {
.start = AT91SAM9260_ID_TC1, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_TC1,
.end = AT91SAM9260_ID_TC1, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_TC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[3] = { [3] = {
.start = AT91SAM9260_ID_TC2, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_TC2,
.end = AT91SAM9260_ID_TC2, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_TC2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -682,18 +682,18 @@ static struct resource tcb1_resources[] = { ...@@ -682,18 +682,18 @@ static struct resource tcb1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_TC3, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_TC3,
.end = AT91SAM9260_ID_TC3, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_TC3,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[2] = { [2] = {
.start = AT91SAM9260_ID_TC4, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_TC4,
.end = AT91SAM9260_ID_TC4, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_TC4,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[3] = { [3] = {
.start = AT91SAM9260_ID_TC5, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_TC5,
.end = AT91SAM9260_ID_TC5, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_TC5,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -807,8 +807,8 @@ static struct resource ssc_resources[] = { ...@@ -807,8 +807,8 @@ static struct resource ssc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_SSC, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_SSC,
.end = AT91SAM9260_ID_SSC, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_SSC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -882,8 +882,8 @@ static struct resource dbgu_resources[] = { ...@@ -882,8 +882,8 @@ static struct resource dbgu_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91_ID_SYS, .start = NR_IRQS_LEGACY + AT91_ID_SYS,
.end = AT91_ID_SYS, .end = NR_IRQS_LEGACY + AT91_ID_SYS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -920,8 +920,8 @@ static struct resource uart0_resources[] = { ...@@ -920,8 +920,8 @@ static struct resource uart0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_US0, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_US0,
.end = AT91SAM9260_ID_US0, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_US0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -971,8 +971,8 @@ static struct resource uart1_resources[] = { ...@@ -971,8 +971,8 @@ static struct resource uart1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_US1, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_US1,
.end = AT91SAM9260_ID_US1, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_US1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1014,8 +1014,8 @@ static struct resource uart2_resources[] = { ...@@ -1014,8 +1014,8 @@ static struct resource uart2_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_US2, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_US2,
.end = AT91SAM9260_ID_US2, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_US2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1057,8 +1057,8 @@ static struct resource uart3_resources[] = { ...@@ -1057,8 +1057,8 @@ static struct resource uart3_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_US3, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_US3,
.end = AT91SAM9260_ID_US3, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_US3,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1100,8 +1100,8 @@ static struct resource uart4_resources[] = { ...@@ -1100,8 +1100,8 @@ static struct resource uart4_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_US4, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_US4,
.end = AT91SAM9260_ID_US4, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_US4,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1138,8 +1138,8 @@ static struct resource uart5_resources[] = { ...@@ -1138,8 +1138,8 @@ static struct resource uart5_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_US5, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_US5,
.end = AT91SAM9260_ID_US5, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_US5,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1357,8 +1357,8 @@ static struct resource adc_resources[] = { ...@@ -1357,8 +1357,8 @@ static struct resource adc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9260_ID_ADC, .start = NR_IRQS_LEGACY + AT91SAM9260_ID_ADC,
.end = AT91SAM9260_ID_ADC, .end = NR_IRQS_LEGACY + AT91SAM9260_ID_ADC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <asm/system_misc.h> #include <asm/system_misc.h>
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/at91sam9261.h> #include <mach/at91sam9261.h>
#include <mach/at91_aic.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/at91_rstc.h> #include <mach/at91_rstc.h>
......
...@@ -45,8 +45,8 @@ static struct resource usbh_resources[] = { ...@@ -45,8 +45,8 @@ static struct resource usbh_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_UHP, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_UHP,
.end = AT91SAM9261_ID_UHP, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_UHP,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -98,8 +98,8 @@ static struct resource udc_resources[] = { ...@@ -98,8 +98,8 @@ static struct resource udc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_UDP, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_UDP,
.end = AT91SAM9261_ID_UDP, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_UDP,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -148,8 +148,8 @@ static struct resource mmc_resources[] = { ...@@ -148,8 +148,8 @@ static struct resource mmc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_MCI, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_MCI,
.end = AT91SAM9261_ID_MCI, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_MCI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -310,8 +310,8 @@ static struct resource twi_resources[] = { ...@@ -310,8 +310,8 @@ static struct resource twi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_TWI, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_TWI,
.end = AT91SAM9261_ID_TWI, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_TWI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -354,8 +354,8 @@ static struct resource spi0_resources[] = { ...@@ -354,8 +354,8 @@ static struct resource spi0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_SPI0, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_SPI0,
.end = AT91SAM9261_ID_SPI0, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_SPI0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -380,8 +380,8 @@ static struct resource spi1_resources[] = { ...@@ -380,8 +380,8 @@ static struct resource spi1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_SPI1, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_SPI1,
.end = AT91SAM9261_ID_SPI1, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_SPI1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -468,8 +468,8 @@ static struct resource lcdc_resources[] = { ...@@ -468,8 +468,8 @@ static struct resource lcdc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_LCDC, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_LCDC,
.end = AT91SAM9261_ID_LCDC, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_LCDC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
#if defined(CONFIG_FB_INTSRAM) #if defined(CONFIG_FB_INTSRAM)
...@@ -566,18 +566,18 @@ static struct resource tcb_resources[] = { ...@@ -566,18 +566,18 @@ static struct resource tcb_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_TC0, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_TC0,
.end = AT91SAM9261_ID_TC0, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_TC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[2] = { [2] = {
.start = AT91SAM9261_ID_TC1, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_TC1,
.end = AT91SAM9261_ID_TC1, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_TC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[3] = { [3] = {
.start = AT91SAM9261_ID_TC2, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_TC2,
.end = AT91SAM9261_ID_TC2, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_TC2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -689,8 +689,8 @@ static struct resource ssc0_resources[] = { ...@@ -689,8 +689,8 @@ static struct resource ssc0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_SSC0, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_SSC0,
.end = AT91SAM9261_ID_SSC0, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_SSC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -731,8 +731,8 @@ static struct resource ssc1_resources[] = { ...@@ -731,8 +731,8 @@ static struct resource ssc1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_SSC1, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_SSC1,
.end = AT91SAM9261_ID_SSC1, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_SSC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -773,8 +773,8 @@ static struct resource ssc2_resources[] = { ...@@ -773,8 +773,8 @@ static struct resource ssc2_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_SSC2, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_SSC2,
.end = AT91SAM9261_ID_SSC2, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_SSC2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -857,8 +857,8 @@ static struct resource dbgu_resources[] = { ...@@ -857,8 +857,8 @@ static struct resource dbgu_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91_ID_SYS, .start = NR_IRQS_LEGACY + AT91_ID_SYS,
.end = AT91_ID_SYS, .end = NR_IRQS_LEGACY + AT91_ID_SYS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -895,8 +895,8 @@ static struct resource uart0_resources[] = { ...@@ -895,8 +895,8 @@ static struct resource uart0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_US0, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_US0,
.end = AT91SAM9261_ID_US0, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_US0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -938,8 +938,8 @@ static struct resource uart1_resources[] = { ...@@ -938,8 +938,8 @@ static struct resource uart1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_US1, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_US1,
.end = AT91SAM9261_ID_US1, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_US1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -981,8 +981,8 @@ static struct resource uart2_resources[] = { ...@@ -981,8 +981,8 @@ static struct resource uart2_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9261_ID_US2, .start = NR_IRQS_LEGACY + AT91SAM9261_ID_US2,
.end = AT91SAM9261_ID_US2, .end = NR_IRQS_LEGACY + AT91SAM9261_ID_US2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/system_misc.h> #include <asm/system_misc.h>
#include <mach/at91sam9263.h> #include <mach/at91sam9263.h>
#include <mach/at91_aic.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/at91_rstc.h> #include <mach/at91_rstc.h>
......
...@@ -44,8 +44,8 @@ static struct resource usbh_resources[] = { ...@@ -44,8 +44,8 @@ static struct resource usbh_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_UHP, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_UHP,
.end = AT91SAM9263_ID_UHP, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_UHP,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -104,8 +104,8 @@ static struct resource udc_resources[] = { ...@@ -104,8 +104,8 @@ static struct resource udc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_UDP, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_UDP,
.end = AT91SAM9263_ID_UDP, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_UDP,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -155,8 +155,8 @@ static struct resource eth_resources[] = { ...@@ -155,8 +155,8 @@ static struct resource eth_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_EMAC, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_EMAC,
.end = AT91SAM9263_ID_EMAC, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_EMAC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -229,8 +229,8 @@ static struct resource mmc0_resources[] = { ...@@ -229,8 +229,8 @@ static struct resource mmc0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_MCI0, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_MCI0,
.end = AT91SAM9263_ID_MCI0, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_MCI0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -254,8 +254,8 @@ static struct resource mmc1_resources[] = { ...@@ -254,8 +254,8 @@ static struct resource mmc1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_MCI1, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_MCI1,
.end = AT91SAM9263_ID_MCI1, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_MCI1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -567,8 +567,8 @@ static struct resource twi_resources[] = { ...@@ -567,8 +567,8 @@ static struct resource twi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_TWI, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_TWI,
.end = AT91SAM9263_ID_TWI, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_TWI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -611,8 +611,8 @@ static struct resource spi0_resources[] = { ...@@ -611,8 +611,8 @@ static struct resource spi0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_SPI0, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_SPI0,
.end = AT91SAM9263_ID_SPI0, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_SPI0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -637,8 +637,8 @@ static struct resource spi1_resources[] = { ...@@ -637,8 +637,8 @@ static struct resource spi1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_SPI1, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_SPI1,
.end = AT91SAM9263_ID_SPI1, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_SPI1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -725,8 +725,8 @@ static struct resource ac97_resources[] = { ...@@ -725,8 +725,8 @@ static struct resource ac97_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_AC97C, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_AC97C,
.end = AT91SAM9263_ID_AC97C, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_AC97C,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -776,8 +776,8 @@ static struct resource can_resources[] = { ...@@ -776,8 +776,8 @@ static struct resource can_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_CAN, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_CAN,
.end = AT91SAM9263_ID_CAN, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_CAN,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -816,8 +816,8 @@ static struct resource lcdc_resources[] = { ...@@ -816,8 +816,8 @@ static struct resource lcdc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_LCDC, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_LCDC,
.end = AT91SAM9263_ID_LCDC, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_LCDC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -883,8 +883,8 @@ struct resource isi_resources[] = { ...@@ -883,8 +883,8 @@ struct resource isi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_ISI, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_ISI,
.end = AT91SAM9263_ID_ISI, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_ISI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -940,8 +940,8 @@ static struct resource tcb_resources[] = { ...@@ -940,8 +940,8 @@ static struct resource tcb_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_TCB, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_TCB,
.end = AT91SAM9263_ID_TCB, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_TCB,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1108,8 +1108,8 @@ static struct resource pwm_resources[] = { ...@@ -1108,8 +1108,8 @@ static struct resource pwm_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_PWMC, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_PWMC,
.end = AT91SAM9263_ID_PWMC, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_PWMC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1161,8 +1161,8 @@ static struct resource ssc0_resources[] = { ...@@ -1161,8 +1161,8 @@ static struct resource ssc0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_SSC0, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_SSC0,
.end = AT91SAM9263_ID_SSC0, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_SSC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1203,8 +1203,8 @@ static struct resource ssc1_resources[] = { ...@@ -1203,8 +1203,8 @@ static struct resource ssc1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_SSC1, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_SSC1,
.end = AT91SAM9263_ID_SSC1, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_SSC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1284,8 +1284,8 @@ static struct resource dbgu_resources[] = { ...@@ -1284,8 +1284,8 @@ static struct resource dbgu_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91_ID_SYS, .start = NR_IRQS_LEGACY + AT91_ID_SYS,
.end = AT91_ID_SYS, .end = NR_IRQS_LEGACY + AT91_ID_SYS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1322,8 +1322,8 @@ static struct resource uart0_resources[] = { ...@@ -1322,8 +1322,8 @@ static struct resource uart0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_US0, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_US0,
.end = AT91SAM9263_ID_US0, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_US0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1365,8 +1365,8 @@ static struct resource uart1_resources[] = { ...@@ -1365,8 +1365,8 @@ static struct resource uart1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_US1, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_US1,
.end = AT91SAM9263_ID_US1, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_US1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1408,8 +1408,8 @@ static struct resource uart2_resources[] = { ...@@ -1408,8 +1408,8 @@ static struct resource uart2_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9263_ID_US2, .start = NR_IRQS_LEGACY + AT91SAM9263_ID_US2,
.end = AT91SAM9263_ID_US2, .end = NR_IRQS_LEGACY + AT91SAM9263_ID_US2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
......
...@@ -137,7 +137,7 @@ static struct irqaction at91sam926x_pit_irq = { ...@@ -137,7 +137,7 @@ static struct irqaction at91sam926x_pit_irq = {
.name = "at91_tick", .name = "at91_tick",
.flags = IRQF_SHARED | IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL, .flags = IRQF_SHARED | IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
.handler = at91sam926x_pit_interrupt, .handler = at91sam926x_pit_interrupt,
.irq = AT91_ID_SYS, .irq = NR_IRQS_LEGACY + AT91_ID_SYS,
}; };
static void at91sam926x_pit_reset(void) static void at91sam926x_pit_reset(void)
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/system_misc.h> #include <asm/system_misc.h>
#include <mach/at91sam9g45.h> #include <mach/at91sam9g45.h>
#include <mach/at91_aic.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/cpu.h> #include <mach/cpu.h>
......
...@@ -53,8 +53,8 @@ static struct resource hdmac_resources[] = { ...@@ -53,8 +53,8 @@ static struct resource hdmac_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_DMA, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_DMA,
.end = AT91SAM9G45_ID_DMA, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_DMA,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -94,8 +94,8 @@ static struct resource usbh_ohci_resources[] = { ...@@ -94,8 +94,8 @@ static struct resource usbh_ohci_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_UHPHS, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_UHPHS,
.end = AT91SAM9G45_ID_UHPHS, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_UHPHS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -156,8 +156,8 @@ static struct resource usbh_ehci_resources[] = { ...@@ -156,8 +156,8 @@ static struct resource usbh_ehci_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_UHPHS, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_UHPHS,
.end = AT91SAM9G45_ID_UHPHS, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_UHPHS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -213,8 +213,8 @@ static struct resource usba_udc_resources[] = { ...@@ -213,8 +213,8 @@ static struct resource usba_udc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[2] = { [2] = {
.start = AT91SAM9G45_ID_UDPHS, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_UDPHS,
.end = AT91SAM9G45_ID_UDPHS, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_UDPHS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -296,8 +296,8 @@ static struct resource eth_resources[] = { ...@@ -296,8 +296,8 @@ static struct resource eth_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_EMAC, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_EMAC,
.end = AT91SAM9G45_ID_EMAC, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_EMAC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -370,8 +370,8 @@ static struct resource mmc0_resources[] = { ...@@ -370,8 +370,8 @@ static struct resource mmc0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_MCI0, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_MCI0,
.end = AT91SAM9G45_ID_MCI0, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_MCI0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -395,8 +395,8 @@ static struct resource mmc1_resources[] = { ...@@ -395,8 +395,8 @@ static struct resource mmc1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_MCI1, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_MCI1,
.end = AT91SAM9G45_ID_MCI1, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_MCI1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -645,8 +645,8 @@ static struct resource twi0_resources[] = { ...@@ -645,8 +645,8 @@ static struct resource twi0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_TWI0, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_TWI0,
.end = AT91SAM9G45_ID_TWI0, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_TWI0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -665,8 +665,8 @@ static struct resource twi1_resources[] = { ...@@ -665,8 +665,8 @@ static struct resource twi1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_TWI1, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_TWI1,
.end = AT91SAM9G45_ID_TWI1, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_TWI1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -720,8 +720,8 @@ static struct resource spi0_resources[] = { ...@@ -720,8 +720,8 @@ static struct resource spi0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_SPI0, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_SPI0,
.end = AT91SAM9G45_ID_SPI0, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_SPI0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -746,8 +746,8 @@ static struct resource spi1_resources[] = { ...@@ -746,8 +746,8 @@ static struct resource spi1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_SPI1, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_SPI1,
.end = AT91SAM9G45_ID_SPI1, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_SPI1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -834,8 +834,8 @@ static struct resource ac97_resources[] = { ...@@ -834,8 +834,8 @@ static struct resource ac97_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_AC97C, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_AC97C,
.end = AT91SAM9G45_ID_AC97C, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_AC97C,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -887,8 +887,8 @@ struct resource isi_resources[] = { ...@@ -887,8 +887,8 @@ struct resource isi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_ISI, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_ISI,
.end = AT91SAM9G45_ID_ISI, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_ISI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -979,8 +979,8 @@ static struct resource lcdc_resources[] = { ...@@ -979,8 +979,8 @@ static struct resource lcdc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_LCDC, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_LCDC,
.end = AT91SAM9G45_ID_LCDC, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_LCDC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1054,8 +1054,8 @@ static struct resource tcb0_resources[] = { ...@@ -1054,8 +1054,8 @@ static struct resource tcb0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_TCB, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_TCB,
.end = AT91SAM9G45_ID_TCB, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_TCB,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1075,8 +1075,8 @@ static struct resource tcb1_resources[] = { ...@@ -1075,8 +1075,8 @@ static struct resource tcb1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_TCB, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_TCB,
.end = AT91SAM9G45_ID_TCB, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_TCB,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1110,8 +1110,8 @@ static struct resource rtc_resources[] = { ...@@ -1110,8 +1110,8 @@ static struct resource rtc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91_ID_SYS, .start = NR_IRQS_LEGACY + AT91_ID_SYS,
.end = AT91_ID_SYS, .end = NR_IRQS_LEGACY + AT91_ID_SYS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1147,8 +1147,8 @@ static struct resource tsadcc_resources[] = { ...@@ -1147,8 +1147,8 @@ static struct resource tsadcc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_TSC, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_TSC,
.end = AT91SAM9G45_ID_TSC, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_TSC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
} }
}; };
...@@ -1197,8 +1197,8 @@ static struct resource adc_resources[] = { ...@@ -1197,8 +1197,8 @@ static struct resource adc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_TSC, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_TSC,
.end = AT91SAM9G45_ID_TSC, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_TSC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
} }
}; };
...@@ -1400,8 +1400,8 @@ static struct resource pwm_resources[] = { ...@@ -1400,8 +1400,8 @@ static struct resource pwm_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_PWMC, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_PWMC,
.end = AT91SAM9G45_ID_PWMC, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_PWMC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1453,8 +1453,8 @@ static struct resource ssc0_resources[] = { ...@@ -1453,8 +1453,8 @@ static struct resource ssc0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_SSC0, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_SSC0,
.end = AT91SAM9G45_ID_SSC0, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_SSC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1495,8 +1495,8 @@ static struct resource ssc1_resources[] = { ...@@ -1495,8 +1495,8 @@ static struct resource ssc1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_SSC1, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_SSC1,
.end = AT91SAM9G45_ID_SSC1, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_SSC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1575,8 +1575,8 @@ static struct resource dbgu_resources[] = { ...@@ -1575,8 +1575,8 @@ static struct resource dbgu_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91_ID_SYS, .start = NR_IRQS_LEGACY + AT91_ID_SYS,
.end = AT91_ID_SYS, .end = NR_IRQS_LEGACY + AT91_ID_SYS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1613,8 +1613,8 @@ static struct resource uart0_resources[] = { ...@@ -1613,8 +1613,8 @@ static struct resource uart0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_US0, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_US0,
.end = AT91SAM9G45_ID_US0, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_US0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1656,8 +1656,8 @@ static struct resource uart1_resources[] = { ...@@ -1656,8 +1656,8 @@ static struct resource uart1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_US1, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_US1,
.end = AT91SAM9G45_ID_US1, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_US1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1699,8 +1699,8 @@ static struct resource uart2_resources[] = { ...@@ -1699,8 +1699,8 @@ static struct resource uart2_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_US2, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_US2,
.end = AT91SAM9G45_ID_US2, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_US2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1742,8 +1742,8 @@ static struct resource uart3_resources[] = { ...@@ -1742,8 +1742,8 @@ static struct resource uart3_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9G45_ID_US3, .start = NR_IRQS_LEGACY + AT91SAM9G45_ID_US3,
.end = AT91SAM9G45_ID_US3, .end = NR_IRQS_LEGACY + AT91SAM9G45_ID_US3,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/at91_dbgu.h> #include <mach/at91_dbgu.h>
#include <mach/at91sam9rl.h> #include <mach/at91sam9rl.h>
#include <mach/at91_aic.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/at91_rstc.h> #include <mach/at91_rstc.h>
......
...@@ -41,8 +41,8 @@ static struct resource hdmac_resources[] = { ...@@ -41,8 +41,8 @@ static struct resource hdmac_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[2] = { [2] = {
.start = AT91SAM9RL_ID_DMA, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_DMA,
.end = AT91SAM9RL_ID_DMA, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_DMA,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -84,8 +84,8 @@ static struct resource usba_udc_resources[] = { ...@@ -84,8 +84,8 @@ static struct resource usba_udc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[2] = { [2] = {
.start = AT91SAM9RL_ID_UDPHS, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_UDPHS,
.end = AT91SAM9RL_ID_UDPHS, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_UDPHS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -172,8 +172,8 @@ static struct resource mmc_resources[] = { ...@@ -172,8 +172,8 @@ static struct resource mmc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_MCI, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_MCI,
.end = AT91SAM9RL_ID_MCI, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_MCI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -339,8 +339,8 @@ static struct resource twi_resources[] = { ...@@ -339,8 +339,8 @@ static struct resource twi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_TWI0, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_TWI0,
.end = AT91SAM9RL_ID_TWI0, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_TWI0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -383,8 +383,8 @@ static struct resource spi_resources[] = { ...@@ -383,8 +383,8 @@ static struct resource spi_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_SPI, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_SPI,
.end = AT91SAM9RL_ID_SPI, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_SPI,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -452,8 +452,8 @@ static struct resource ac97_resources[] = { ...@@ -452,8 +452,8 @@ static struct resource ac97_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_AC97C, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_AC97C,
.end = AT91SAM9RL_ID_AC97C, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_AC97C,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -507,8 +507,8 @@ static struct resource lcdc_resources[] = { ...@@ -507,8 +507,8 @@ static struct resource lcdc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_LCDC, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_LCDC,
.end = AT91SAM9RL_ID_LCDC, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_LCDC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -574,18 +574,18 @@ static struct resource tcb_resources[] = { ...@@ -574,18 +574,18 @@ static struct resource tcb_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_TC0, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_TC0,
.end = AT91SAM9RL_ID_TC0, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_TC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[2] = { [2] = {
.start = AT91SAM9RL_ID_TC1, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_TC1,
.end = AT91SAM9RL_ID_TC1, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_TC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
[3] = { [3] = {
.start = AT91SAM9RL_ID_TC2, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_TC2,
.end = AT91SAM9RL_ID_TC2, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_TC2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -621,8 +621,8 @@ static struct resource tsadcc_resources[] = { ...@@ -621,8 +621,8 @@ static struct resource tsadcc_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_TSC, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_TSC,
.end = AT91SAM9RL_ID_TSC, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_TSC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
} }
}; };
...@@ -768,8 +768,8 @@ static struct resource pwm_resources[] = { ...@@ -768,8 +768,8 @@ static struct resource pwm_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_PWMC, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_PWMC,
.end = AT91SAM9RL_ID_PWMC, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_PWMC,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -821,8 +821,8 @@ static struct resource ssc0_resources[] = { ...@@ -821,8 +821,8 @@ static struct resource ssc0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_SSC0, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_SSC0,
.end = AT91SAM9RL_ID_SSC0, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_SSC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -863,8 +863,8 @@ static struct resource ssc1_resources[] = { ...@@ -863,8 +863,8 @@ static struct resource ssc1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_SSC1, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_SSC1,
.end = AT91SAM9RL_ID_SSC1, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_SSC1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -943,8 +943,8 @@ static struct resource dbgu_resources[] = { ...@@ -943,8 +943,8 @@ static struct resource dbgu_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91_ID_SYS, .start = NR_IRQS_LEGACY + AT91_ID_SYS,
.end = AT91_ID_SYS, .end = NR_IRQS_LEGACY + AT91_ID_SYS,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -981,8 +981,8 @@ static struct resource uart0_resources[] = { ...@@ -981,8 +981,8 @@ static struct resource uart0_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_US0, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_US0,
.end = AT91SAM9RL_ID_US0, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_US0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1032,8 +1032,8 @@ static struct resource uart1_resources[] = { ...@@ -1032,8 +1032,8 @@ static struct resource uart1_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_US1, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_US1,
.end = AT91SAM9RL_ID_US1, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_US1,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1075,8 +1075,8 @@ static struct resource uart2_resources[] = { ...@@ -1075,8 +1075,8 @@ static struct resource uart2_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_US2, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_US2,
.end = AT91SAM9RL_ID_US2, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_US2,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -1118,8 +1118,8 @@ static struct resource uart3_resources[] = { ...@@ -1118,8 +1118,8 @@ static struct resource uart3_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = AT91SAM9RL_ID_US3, .start = NR_IRQS_LEGACY + AT91SAM9RL_ID_US3,
.end = AT91SAM9RL_ID_US3, .end = NR_IRQS_LEGACY + AT91SAM9RL_ID_US3,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
......
...@@ -312,8 +312,6 @@ static void __init at91sam9x5_map_io(void) ...@@ -312,8 +312,6 @@ static void __init at91sam9x5_map_io(void)
void __init at91sam9x5_initialize(void) void __init at91sam9x5_initialize(void)
{ {
at91_extern_irq = (1 << AT91SAM9X5_ID_IRQ0);
/* Register GPIO subsystem (using DT) */ /* Register GPIO subsystem (using DT) */
at91_gpio_init(NULL, 0); at91_gpio_init(NULL, 0);
} }
...@@ -321,47 +319,9 @@ void __init at91sam9x5_initialize(void) ...@@ -321,47 +319,9 @@ void __init at91sam9x5_initialize(void)
/* -------------------------------------------------------------------- /* --------------------------------------------------------------------
* Interrupt initialization * Interrupt initialization
* -------------------------------------------------------------------- */ * -------------------------------------------------------------------- */
/*
* The default interrupt priority levels (0 = lowest, 7 = highest).
*/
static unsigned int at91sam9x5_default_irq_priority[NR_AIC_IRQS] __initdata = {
7, /* Advanced Interrupt Controller (FIQ) */
7, /* System Peripherals */
1, /* Parallel IO Controller A and B */
1, /* Parallel IO Controller C and D */
4, /* Soft Modem */
5, /* USART 0 */
5, /* USART 1 */
5, /* USART 2 */
5, /* USART 3 */
6, /* Two-Wire Interface 0 */
6, /* Two-Wire Interface 1 */
6, /* Two-Wire Interface 2 */
0, /* Multimedia Card Interface 0 */
5, /* Serial Peripheral Interface 0 */
5, /* Serial Peripheral Interface 1 */
5, /* UART 0 */
5, /* UART 1 */
0, /* Timer Counter 0, 1, 2, 3, 4 and 5 */
0, /* Pulse Width Modulation Controller */
0, /* ADC Controller */
0, /* DMA Controller 0 */
0, /* DMA Controller 1 */
2, /* USB Host High Speed port */
2, /* USB Device High speed port */
3, /* Ethernet MAC 0 */
3, /* LDC Controller or Image Sensor Interface */
0, /* Multimedia Card Interface 1 */
3, /* Ethernet MAC 1 */
4, /* Synchronous Serial Interface */
4, /* CAN Controller 0 */
4, /* CAN Controller 1 */
0, /* Advanced Interrupt Controller (IRQ0) */
};
struct at91_init_soc __initdata at91sam9x5_soc = { struct at91_init_soc __initdata at91sam9x5_soc = {
.map_io = at91sam9x5_map_io, .map_io = at91sam9x5_map_io,
.default_irq_priority = at91sam9x5_default_irq_priority,
.register_clocks = at91sam9x5_register_clocks, .register_clocks = at91sam9x5_register_clocks,
.init = at91sam9x5_initialize, .init = at91sam9x5_initialize,
}; };
...@@ -13,10 +13,12 @@ ...@@ -13,10 +13,12 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/io.h>
#include <asm/proc-fns.h> #include <asm/proc-fns.h>
#include <asm/system_misc.h> #include <asm/system_misc.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/at91x40.h> #include <mach/at91x40.h>
#include <mach/at91_aic.h>
#include <mach/at91_st.h> #include <mach/at91_st.h>
#include <mach/timex.h> #include <mach/timex.h>
#include "generic.h" #include "generic.h"
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <mach/board.h> #include <mach/board.h>
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
...@@ -91,6 +92,7 @@ MACHINE_START(ONEARM, "Ajeco 1ARM single board computer") ...@@ -91,6 +92,7 @@ MACHINE_START(ONEARM, "Ajeco 1ARM single board computer")
/* Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> */ /* Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = onearm_init_early, .init_early = onearm_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = onearm_board_init, .init_machine = onearm_board_init,
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
...@@ -212,6 +213,7 @@ MACHINE_START(AFEB9260, "Custom afeb9260 board") ...@@ -212,6 +213,7 @@ MACHINE_START(AFEB9260, "Custom afeb9260 board")
/* Maintainer: Sergey Lapin <slapin@ossfans.org> */ /* Maintainer: Sergey Lapin <slapin@ossfans.org> */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = afeb9260_init_early, .init_early = afeb9260_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = afeb9260_board_init, .init_machine = afeb9260_board_init,
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include "sam9_smc.h" #include "sam9_smc.h"
...@@ -188,6 +189,7 @@ MACHINE_START(CAM60, "KwikByte CAM60") ...@@ -188,6 +189,7 @@ MACHINE_START(CAM60, "KwikByte CAM60")
/* Maintainer: KwikByte */ /* Maintainer: KwikByte */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = cam60_init_early, .init_early = cam60_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = cam60_board_init, .init_machine = cam60_board_init,
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
...@@ -158,6 +159,7 @@ MACHINE_START(CARMEVA, "Carmeva") ...@@ -158,6 +159,7 @@ MACHINE_START(CARMEVA, "Carmeva")
/* Maintainer: Conitec Datasystems */ /* Maintainer: Conitec Datasystems */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = carmeva_init_early, .init_early = carmeva_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = carmeva_board_init, .init_machine = carmeva_board_init,
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91sam9260_matrix.h> #include <mach/at91sam9260_matrix.h>
#include <mach/at91_matrix.h> #include <mach/at91_matrix.h>
...@@ -376,6 +377,7 @@ MACHINE_START(CPUAT9G20, "Eukrea CPU9G20") ...@@ -376,6 +377,7 @@ MACHINE_START(CPUAT9G20, "Eukrea CPU9G20")
/* Maintainer: Eric Benard - EUKREA Electromatique */ /* Maintainer: Eric Benard - EUKREA Electromatique */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = cpu9krea_init_early, .init_early = cpu9krea_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = cpu9krea_board_init, .init_machine = cpu9krea_board_init,
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91rm9200_mc.h> #include <mach/at91rm9200_mc.h>
#include <mach/at91_ramc.h> #include <mach/at91_ramc.h>
#include <mach/cpu.h> #include <mach/cpu.h>
...@@ -178,6 +179,7 @@ MACHINE_START(CPUAT91, "Eukrea") ...@@ -178,6 +179,7 @@ MACHINE_START(CPUAT91, "Eukrea")
/* Maintainer: Eric Benard - EUKREA Electromatique */ /* Maintainer: Eric Benard - EUKREA Electromatique */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = cpuat91_init_early, .init_early = cpuat91_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = cpuat91_board_init, .init_machine = cpuat91_board_init,
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
...@@ -252,6 +253,7 @@ MACHINE_START(CSB337, "Cogent CSB337") ...@@ -252,6 +253,7 @@ MACHINE_START(CSB337, "Cogent CSB337")
/* Maintainer: Bill Gatliff */ /* Maintainer: Bill Gatliff */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = csb337_init_early, .init_early = csb337_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = csb337_board_init, .init_machine = csb337_board_init,
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
...@@ -133,6 +134,7 @@ MACHINE_START(CSB637, "Cogent CSB637") ...@@ -133,6 +134,7 @@ MACHINE_START(CSB637, "Cogent CSB637")
/* Maintainer: Bill Gatliff */ /* Maintainer: Bill Gatliff */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = csb637_init_early, .init_early = csb637_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = csb637_board_init, .init_machine = csb637_board_init,
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/irq.h> #include <asm/irq.h>
...@@ -53,6 +54,7 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM (Device Tree)") ...@@ -53,6 +54,7 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM (Device Tree)")
/* Maintainer: Atmel */ /* Maintainer: Atmel */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = at91_dt_initialize, .init_early = at91_dt_initialize,
.init_irq = at91_dt_init_irq, .init_irq = at91_dt_init_irq,
.init_machine = at91_dt_device_init, .init_machine = at91_dt_device_init,
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
static void __init at91eb01_init_irq(void) static void __init at91eb01_init_irq(void)
...@@ -43,6 +44,7 @@ static void __init at91eb01_init_early(void) ...@@ -43,6 +44,7 @@ static void __init at91eb01_init_early(void)
MACHINE_START(AT91EB01, "Atmel AT91 EB01") MACHINE_START(AT91EB01, "Atmel AT91 EB01")
/* Maintainer: Greg Ungerer <gerg@snapgear.com> */ /* Maintainer: Greg Ungerer <gerg@snapgear.com> */
.timer = &at91x40_timer, .timer = &at91x40_timer,
.handle_irq = at91_aic_handle_irq,
.init_early = at91eb01_init_early, .init_early = at91eb01_init_early,
.init_irq = at91eb01_init_irq, .init_irq = at91eb01_init_irq,
MACHINE_END MACHINE_END
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
...@@ -118,6 +119,7 @@ static void __init eb9200_board_init(void) ...@@ -118,6 +119,7 @@ static void __init eb9200_board_init(void)
MACHINE_START(ATEB9200, "Embest ATEB9200") MACHINE_START(ATEB9200, "Embest ATEB9200")
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = eb9200_init_early, .init_early = eb9200_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = eb9200_board_init, .init_machine = eb9200_board_init,
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <mach/board.h> #include <mach/board.h>
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
...@@ -170,6 +171,7 @@ MACHINE_START(ECBAT91, "emQbit's ECB_AT91") ...@@ -170,6 +171,7 @@ MACHINE_START(ECBAT91, "emQbit's ECB_AT91")
/* Maintainer: emQbit.com */ /* Maintainer: emQbit.com */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ecb_at91init_early, .init_early = ecb_at91init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ecb_at91board_init, .init_machine = ecb_at91board_init,
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91rm9200_mc.h> #include <mach/at91rm9200_mc.h>
#include <mach/at91_ramc.h> #include <mach/at91_ramc.h>
#include <mach/cpu.h> #include <mach/cpu.h>
...@@ -132,6 +133,7 @@ MACHINE_START(ECO920, "eco920") ...@@ -132,6 +133,7 @@ MACHINE_START(ECO920, "eco920")
/* Maintainer: Sascha Hauer */ /* Maintainer: Sascha Hauer */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = eco920_init_early, .init_early = eco920_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = eco920_board_init, .init_machine = eco920_board_init,
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include "generic.h" #include "generic.h"
...@@ -160,6 +161,7 @@ MACHINE_START(FLEXIBITY, "Flexibity Connect") ...@@ -160,6 +161,7 @@ MACHINE_START(FLEXIBITY, "Flexibity Connect")
/* Maintainer: Maxim Osipov */ /* Maintainer: Maxim Osipov */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = flexibity_init_early, .init_early = flexibity_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = flexibity_board_init, .init_machine = flexibity_board_init,
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include "sam9_smc.h" #include "sam9_smc.h"
...@@ -262,6 +263,7 @@ MACHINE_START(ACMENETUSFOXG20, "Acme Systems srl FOX Board G20") ...@@ -262,6 +263,7 @@ MACHINE_START(ACMENETUSFOXG20, "Acme Systems srl FOX Board G20")
/* Maintainer: Sergio Tanzilli */ /* Maintainer: Sergio Tanzilli */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = foxg20_init_early, .init_early = foxg20_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = foxg20_board_init, .init_machine = foxg20_board_init,
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/gsia18s.h> #include <mach/gsia18s.h>
#include <mach/stamp9g20.h> #include <mach/stamp9g20.h>
...@@ -575,6 +576,7 @@ static void __init gsia18s_board_init(void) ...@@ -575,6 +576,7 @@ static void __init gsia18s_board_init(void)
MACHINE_START(GSIA18S, "GS_IA18_S") MACHINE_START(GSIA18S, "GS_IA18_S")
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = gsia18s_init_early, .init_early = gsia18s_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = gsia18s_board_init, .init_machine = gsia18s_board_init,
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/cpu.h> #include <mach/cpu.h>
#include "generic.h" #include "generic.h"
...@@ -93,6 +94,7 @@ MACHINE_START(KAFA, "Sperry-Sun KAFA") ...@@ -93,6 +94,7 @@ MACHINE_START(KAFA, "Sperry-Sun KAFA")
/* Maintainer: Sergei Sharonov */ /* Maintainer: Sergei Sharonov */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = kafa_init_early, .init_early = kafa_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = kafa_board_init, .init_machine = kafa_board_init,
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <mach/board.h> #include <mach/board.h>
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/at91_aic.h>
#include <mach/at91rm9200_mc.h> #include <mach/at91rm9200_mc.h>
#include <mach/at91_ramc.h> #include <mach/at91_ramc.h>
...@@ -133,6 +134,7 @@ MACHINE_START(KB9200, "KB920x") ...@@ -133,6 +134,7 @@ MACHINE_START(KB9200, "KB920x")
/* Maintainer: KwikByte, Inc. */ /* Maintainer: KwikByte, Inc. */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = kb9202_init_early, .init_early = kb9202_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = kb9202_board_init, .init_machine = kb9202_board_init,
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include "sam9_smc.h" #include "sam9_smc.h"
...@@ -378,6 +379,7 @@ MACHINE_START(NEOCORE926, "ADENEO NEOCORE 926") ...@@ -378,6 +379,7 @@ MACHINE_START(NEOCORE926, "ADENEO NEOCORE 926")
/* Maintainer: ADENEO */ /* Maintainer: ADENEO */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = neocore926_init_early, .init_early = neocore926_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = neocore926_board_init, .init_machine = neocore926_board_init,
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/stamp9g20.h> #include <mach/stamp9g20.h>
...@@ -218,6 +219,7 @@ MACHINE_START(PCONTROL_G20, "PControl G20") ...@@ -218,6 +219,7 @@ MACHINE_START(PCONTROL_G20, "PControl G20")
/* Maintainer: pgsellmann@portner-elektronik.at */ /* Maintainer: pgsellmann@portner-elektronik.at */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = pcontrol_g20_init_early, .init_early = pcontrol_g20_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = pcontrol_g20_board_init, .init_machine = pcontrol_g20_board_init,
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91rm9200_mc.h> #include <mach/at91rm9200_mc.h>
#include <mach/at91_ramc.h> #include <mach/at91_ramc.h>
...@@ -120,6 +121,7 @@ MACHINE_START(PICOTUX2XX, "picotux 200") ...@@ -120,6 +121,7 @@ MACHINE_START(PICOTUX2XX, "picotux 200")
/* Maintainer: Kleinhenz Elektronik GmbH */ /* Maintainer: Kleinhenz Elektronik GmbH */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = picotux200_init_early, .init_early = picotux200_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = picotux200_board_init, .init_machine = picotux200_board_init,
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91_shdwc.h> #include <mach/at91_shdwc.h>
...@@ -258,6 +259,7 @@ MACHINE_START(QIL_A9260, "CALAO QIL_A9260") ...@@ -258,6 +259,7 @@ MACHINE_START(QIL_A9260, "CALAO QIL_A9260")
/* Maintainer: calao-systems */ /* Maintainer: calao-systems */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91rm9200_mc.h> #include <mach/at91rm9200_mc.h>
#include <mach/at91_ramc.h> #include <mach/at91_ramc.h>
...@@ -223,6 +224,7 @@ MACHINE_START(AT91RM9200DK, "Atmel AT91RM9200-DK") ...@@ -223,6 +224,7 @@ MACHINE_START(AT91RM9200DK, "Atmel AT91RM9200-DK")
/* Maintainer: SAN People/Atmel */ /* Maintainer: SAN People/Atmel */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = dk_init_early, .init_early = dk_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = dk_board_init, .init_machine = dk_board_init,
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91rm9200_mc.h> #include <mach/at91rm9200_mc.h>
#include <mach/at91_ramc.h> #include <mach/at91_ramc.h>
...@@ -190,6 +191,7 @@ MACHINE_START(AT91RM9200EK, "Atmel AT91RM9200-EK") ...@@ -190,6 +191,7 @@ MACHINE_START(AT91RM9200EK, "Atmel AT91RM9200-EK")
/* Maintainer: SAN People/Atmel */ /* Maintainer: SAN People/Atmel */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <linux/gpio.h> #include <linux/gpio.h>
...@@ -225,6 +226,7 @@ MACHINE_START(RSI_EWS, "RSI EWS") ...@@ -225,6 +226,7 @@ MACHINE_START(RSI_EWS, "RSI EWS")
/* Maintainer: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de> */ /* Maintainer: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de> */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = rsi_ews_init_early, .init_early = rsi_ews_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = rsi_ews_board_init, .init_machine = rsi_ews_board_init,
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include "sam9_smc.h" #include "sam9_smc.h"
...@@ -202,6 +203,7 @@ MACHINE_START(SAM9_L9260, "Olimex SAM9-L9260") ...@@ -202,6 +203,7 @@ MACHINE_START(SAM9_L9260, "Olimex SAM9-L9260")
/* Maintainer: Olimex */ /* Maintainer: Olimex */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91_shdwc.h> #include <mach/at91_shdwc.h>
#include <mach/system_rev.h> #include <mach/system_rev.h>
...@@ -344,6 +345,7 @@ MACHINE_START(AT91SAM9260EK, "Atmel AT91SAM9260-EK") ...@@ -344,6 +345,7 @@ MACHINE_START(AT91SAM9260EK, "Atmel AT91SAM9260-EK")
/* Maintainer: Atmel */ /* Maintainer: Atmel */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91_shdwc.h> #include <mach/at91_shdwc.h>
#include <mach/system_rev.h> #include <mach/system_rev.h>
...@@ -615,6 +616,7 @@ MACHINE_START(AT91SAM9G10EK, "Atmel AT91SAM9G10-EK") ...@@ -615,6 +616,7 @@ MACHINE_START(AT91SAM9G10EK, "Atmel AT91SAM9G10-EK")
/* Maintainer: Atmel */ /* Maintainer: Atmel */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91_shdwc.h> #include <mach/at91_shdwc.h>
#include <mach/system_rev.h> #include <mach/system_rev.h>
...@@ -443,6 +444,7 @@ MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK") ...@@ -443,6 +444,7 @@ MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK")
/* Maintainer: Atmel */ /* Maintainer: Atmel */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/system_rev.h> #include <mach/system_rev.h>
...@@ -413,6 +414,7 @@ MACHINE_START(AT91SAM9G20EK, "Atmel AT91SAM9G20-EK") ...@@ -413,6 +414,7 @@ MACHINE_START(AT91SAM9G20EK, "Atmel AT91SAM9G20-EK")
/* Maintainer: Atmel */ /* Maintainer: Atmel */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
...@@ -422,6 +424,7 @@ MACHINE_START(AT91SAM9G20EK_2MMC, "Atmel AT91SAM9G20-EK 2 MMC Slot Mod") ...@@ -422,6 +424,7 @@ MACHINE_START(AT91SAM9G20EK_2MMC, "Atmel AT91SAM9G20-EK 2 MMC Slot Mod")
/* Maintainer: Atmel */ /* Maintainer: Atmel */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91_shdwc.h> #include <mach/at91_shdwc.h>
#include <mach/system_rev.h> #include <mach/system_rev.h>
...@@ -503,6 +504,7 @@ MACHINE_START(AT91SAM9M10G45EK, "Atmel AT91SAM9M10G45-EK") ...@@ -503,6 +504,7 @@ MACHINE_START(AT91SAM9M10G45EK, "Atmel AT91SAM9M10G45-EK")
/* Maintainer: Atmel */ /* Maintainer: Atmel */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91_shdwc.h> #include <mach/at91_shdwc.h>
...@@ -319,6 +320,7 @@ MACHINE_START(AT91SAM9RLEK, "Atmel AT91SAM9RL-EK") ...@@ -319,6 +320,7 @@ MACHINE_START(AT91SAM9RLEK, "Atmel AT91SAM9RL-EK")
/* Maintainer: Atmel */ /* Maintainer: Atmel */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include "sam9_smc.h" #include "sam9_smc.h"
...@@ -178,6 +179,7 @@ static void __init snapper9260_board_init(void) ...@@ -178,6 +179,7 @@ static void __init snapper9260_board_init(void)
MACHINE_START(SNAPPER_9260, "Bluewater Systems Snapper 9260/9G20 module") MACHINE_START(SNAPPER_9260, "Bluewater Systems Snapper 9260/9G20 module")
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = snapper9260_init_early, .init_early = snapper9260_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = snapper9260_board_init, .init_machine = snapper9260_board_init,
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include "sam9_smc.h" #include "sam9_smc.h"
...@@ -287,6 +288,7 @@ MACHINE_START(PORTUXG20, "taskit PortuxG20") ...@@ -287,6 +288,7 @@ MACHINE_START(PORTUXG20, "taskit PortuxG20")
/* Maintainer: taskit GmbH */ /* Maintainer: taskit GmbH */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = stamp9g20_init_early, .init_early = stamp9g20_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = portuxg20_board_init, .init_machine = portuxg20_board_init,
...@@ -296,6 +298,7 @@ MACHINE_START(STAMP9G20, "taskit Stamp9G20") ...@@ -296,6 +298,7 @@ MACHINE_START(STAMP9G20, "taskit Stamp9G20")
/* Maintainer: taskit GmbH */ /* Maintainer: taskit GmbH */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = stamp9g20_init_early, .init_early = stamp9g20_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = stamp9g20evb_board_init, .init_machine = stamp9g20evb_board_init,
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91_shdwc.h> #include <mach/at91_shdwc.h>
...@@ -358,6 +359,7 @@ MACHINE_START(USB_A9263, "CALAO USB_A9263") ...@@ -358,6 +359,7 @@ MACHINE_START(USB_A9263, "CALAO USB_A9263")
/* Maintainer: calao-systems */ /* Maintainer: calao-systems */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
...@@ -367,6 +369,7 @@ MACHINE_START(USB_A9260, "CALAO USB_A9260") ...@@ -367,6 +369,7 @@ MACHINE_START(USB_A9260, "CALAO USB_A9260")
/* Maintainer: calao-systems */ /* Maintainer: calao-systems */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
...@@ -376,6 +379,7 @@ MACHINE_START(USB_A9G20, "CALAO USB_A92G0") ...@@ -376,6 +379,7 @@ MACHINE_START(USB_A9G20, "CALAO USB_A92G0")
/* Maintainer: Jean-Christophe PLAGNIOL-VILLARD */ /* Maintainer: Jean-Christophe PLAGNIOL-VILLARD */
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = ek_init_early, .init_early = ek_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = ek_board_init, .init_machine = ek_board_init,
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/board.h> #include <mach/board.h>
#include <mach/at91_aic.h>
#include <mach/at91rm9200_mc.h> #include <mach/at91rm9200_mc.h>
#include <mach/at91_ramc.h> #include <mach/at91_ramc.h>
#include <mach/cpu.h> #include <mach/cpu.h>
...@@ -590,6 +591,7 @@ MACHINE_START(YL9200, "uCdragon YL-9200") ...@@ -590,6 +591,7 @@ MACHINE_START(YL9200, "uCdragon YL-9200")
/* Maintainer: S.Birtles */ /* Maintainer: S.Birtles */
.timer = &at91rm9200_timer, .timer = &at91rm9200_timer,
.map_io = at91_map_io, .map_io = at91_map_io,
.handle_irq = at91_aic_handle_irq,
.init_early = yl9200_init_early, .init_early = yl9200_init_early,
.init_irq = at91_init_irq_default, .init_irq = at91_init_irq_default,
.init_machine = yl9200_board_init, .init_machine = yl9200_board_init,
......
...@@ -29,6 +29,8 @@ extern void __init at91x40_init_interrupts(unsigned int priority[]); ...@@ -29,6 +29,8 @@ extern void __init at91x40_init_interrupts(unsigned int priority[]);
extern void __init at91_aic_init(unsigned int priority[]); extern void __init at91_aic_init(unsigned int priority[]);
extern int __init at91_aic_of_init(struct device_node *node, extern int __init at91_aic_of_init(struct device_node *node,
struct device_node *parent); struct device_node *parent);
extern int __init at91_aic5_of_init(struct device_node *node,
struct device_node *parent);
/* Timer */ /* Timer */
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#include <linux/of_irq.h> #include <linux/of_irq.h>
#include <linux/of_gpio.h> #include <linux/of_gpio.h>
#include <asm/mach/irq.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/at91_pio.h> #include <mach/at91_pio.h>
...@@ -585,15 +587,14 @@ static struct irq_chip gpio_irqchip = { ...@@ -585,15 +587,14 @@ static struct irq_chip gpio_irqchip = {
static void gpio_irq_handler(unsigned irq, struct irq_desc *desc) static void gpio_irq_handler(unsigned irq, struct irq_desc *desc)
{ {
struct irq_chip *chip = irq_desc_get_chip(desc);
struct irq_data *idata = irq_desc_get_irq_data(desc); struct irq_data *idata = irq_desc_get_irq_data(desc);
struct irq_chip *chip = irq_data_get_irq_chip(idata);
struct at91_gpio_chip *at91_gpio = irq_data_get_irq_chip_data(idata); struct at91_gpio_chip *at91_gpio = irq_data_get_irq_chip_data(idata);
void __iomem *pio = at91_gpio->regbase; void __iomem *pio = at91_gpio->regbase;
unsigned long isr; unsigned long isr;
int n; int n;
/* temporarily mask (level sensitive) parent IRQ */ chained_irq_enter(chip, desc);
chip->irq_ack(idata);
for (;;) { for (;;) {
/* Reading ISR acks pending (edge triggered) GPIO interrupts. /* Reading ISR acks pending (edge triggered) GPIO interrupts.
* When there none are pending, we're finished unless we need * When there none are pending, we're finished unless we need
...@@ -614,7 +615,7 @@ static void gpio_irq_handler(unsigned irq, struct irq_desc *desc) ...@@ -614,7 +615,7 @@ static void gpio_irq_handler(unsigned irq, struct irq_desc *desc)
n = find_next_bit(&isr, BITS_PER_LONG, n + 1); n = find_next_bit(&isr, BITS_PER_LONG, n + 1);
} }
} }
chip->irq_unmask(idata); chained_irq_exit(chip, desc);
/* now it may re-trigger */ /* now it may re-trigger */
} }
......
...@@ -23,12 +23,23 @@ extern void __iomem *at91_aic_base; ...@@ -23,12 +23,23 @@ extern void __iomem *at91_aic_base;
__raw_readl(at91_aic_base + field) __raw_readl(at91_aic_base + field)
#define at91_aic_write(field, value) \ #define at91_aic_write(field, value) \
__raw_writel(value, at91_aic_base + field); __raw_writel(value, at91_aic_base + field)
#else #else
.extern at91_aic_base .extern at91_aic_base
#endif #endif
/* Number of irq lines managed by AIC */
#define NR_AIC_IRQS 32
#define NR_AIC5_IRQS 128
#define AT91_AIC5_SSR 0x0 /* Source Select Register [AIC5] */
#define AT91_AIC5_INTSEL_MSK (0x7f << 0) /* Interrupt Line Selection Mask */
#define AT91_AIC_IRQ_MIN_PRIORITY 0
#define AT91_AIC_IRQ_MAX_PRIORITY 7
#define AT91_AIC_SMR(n) ((n) * 4) /* Source Mode Registers 0-31 */ #define AT91_AIC_SMR(n) ((n) * 4) /* Source Mode Registers 0-31 */
#define AT91_AIC5_SMR 0x4 /* Source Mode Register [AIC5] */
#define AT91_AIC_PRIOR (7 << 0) /* Priority Level */ #define AT91_AIC_PRIOR (7 << 0) /* Priority Level */
#define AT91_AIC_SRCTYPE (3 << 5) /* Interrupt Source Type */ #define AT91_AIC_SRCTYPE (3 << 5) /* Interrupt Source Type */
#define AT91_AIC_SRCTYPE_LOW (0 << 5) #define AT91_AIC_SRCTYPE_LOW (0 << 5)
...@@ -37,29 +48,52 @@ extern void __iomem *at91_aic_base; ...@@ -37,29 +48,52 @@ extern void __iomem *at91_aic_base;
#define AT91_AIC_SRCTYPE_RISING (3 << 5) #define AT91_AIC_SRCTYPE_RISING (3 << 5)
#define AT91_AIC_SVR(n) (0x80 + ((n) * 4)) /* Source Vector Registers 0-31 */ #define AT91_AIC_SVR(n) (0x80 + ((n) * 4)) /* Source Vector Registers 0-31 */
#define AT91_AIC5_SVR 0x8 /* Source Vector Register [AIC5] */
#define AT91_AIC_IVR 0x100 /* Interrupt Vector Register */ #define AT91_AIC_IVR 0x100 /* Interrupt Vector Register */
#define AT91_AIC5_IVR 0x10 /* Interrupt Vector Register [AIC5] */
#define AT91_AIC_FVR 0x104 /* Fast Interrupt Vector Register */ #define AT91_AIC_FVR 0x104 /* Fast Interrupt Vector Register */
#define AT91_AIC5_FVR 0x14 /* Fast Interrupt Vector Register [AIC5] */
#define AT91_AIC_ISR 0x108 /* Interrupt Status Register */ #define AT91_AIC_ISR 0x108 /* Interrupt Status Register */
#define AT91_AIC5_ISR 0x18 /* Interrupt Status Register [AIC5] */
#define AT91_AIC_IRQID (0x1f << 0) /* Current Interrupt Identifier */ #define AT91_AIC_IRQID (0x1f << 0) /* Current Interrupt Identifier */
#define AT91_AIC_IPR 0x10c /* Interrupt Pending Register */ #define AT91_AIC_IPR 0x10c /* Interrupt Pending Register */
#define AT91_AIC5_IPR0 0x20 /* Interrupt Pending Register 0 [AIC5] */
#define AT91_AIC5_IPR1 0x24 /* Interrupt Pending Register 1 [AIC5] */
#define AT91_AIC5_IPR2 0x28 /* Interrupt Pending Register 2 [AIC5] */
#define AT91_AIC5_IPR3 0x2c /* Interrupt Pending Register 3 [AIC5] */
#define AT91_AIC_IMR 0x110 /* Interrupt Mask Register */ #define AT91_AIC_IMR 0x110 /* Interrupt Mask Register */
#define AT91_AIC5_IMR 0x30 /* Interrupt Mask Register [AIC5] */
#define AT91_AIC_CISR 0x114 /* Core Interrupt Status Register */ #define AT91_AIC_CISR 0x114 /* Core Interrupt Status Register */
#define AT91_AIC5_CISR 0x34 /* Core Interrupt Status Register [AIC5] */
#define AT91_AIC_NFIQ (1 << 0) /* nFIQ Status */ #define AT91_AIC_NFIQ (1 << 0) /* nFIQ Status */
#define AT91_AIC_NIRQ (1 << 1) /* nIRQ Status */ #define AT91_AIC_NIRQ (1 << 1) /* nIRQ Status */
#define AT91_AIC_IECR 0x120 /* Interrupt Enable Command Register */ #define AT91_AIC_IECR 0x120 /* Interrupt Enable Command Register */
#define AT91_AIC5_IECR 0x40 /* Interrupt Enable Command Register [AIC5] */
#define AT91_AIC_IDCR 0x124 /* Interrupt Disable Command Register */ #define AT91_AIC_IDCR 0x124 /* Interrupt Disable Command Register */
#define AT91_AIC5_IDCR 0x44 /* Interrupt Disable Command Register [AIC5] */
#define AT91_AIC_ICCR 0x128 /* Interrupt Clear Command Register */ #define AT91_AIC_ICCR 0x128 /* Interrupt Clear Command Register */
#define AT91_AIC5_ICCR 0x48 /* Interrupt Clear Command Register [AIC5] */
#define AT91_AIC_ISCR 0x12c /* Interrupt Set Command Register */ #define AT91_AIC_ISCR 0x12c /* Interrupt Set Command Register */
#define AT91_AIC5_ISCR 0x4c /* Interrupt Set Command Register [AIC5] */
#define AT91_AIC_EOICR 0x130 /* End of Interrupt Command Register */ #define AT91_AIC_EOICR 0x130 /* End of Interrupt Command Register */
#define AT91_AIC5_EOICR 0x38 /* End of Interrupt Command Register [AIC5] */
#define AT91_AIC_SPU 0x134 /* Spurious Interrupt Vector Register */ #define AT91_AIC_SPU 0x134 /* Spurious Interrupt Vector Register */
#define AT91_AIC5_SPU 0x3c /* Spurious Interrupt Vector Register [AIC5] */
#define AT91_AIC_DCR 0x138 /* Debug Control Register */ #define AT91_AIC_DCR 0x138 /* Debug Control Register */
#define AT91_AIC5_DCR 0x6c /* Debug Control Register [AIC5] */
#define AT91_AIC_DCR_PROT (1 << 0) /* Protection Mode */ #define AT91_AIC_DCR_PROT (1 << 0) /* Protection Mode */
#define AT91_AIC_DCR_GMSK (1 << 1) /* General Mask */ #define AT91_AIC_DCR_GMSK (1 << 1) /* General Mask */
#define AT91_AIC_FFER 0x140 /* Fast Forcing Enable Register [SAM9 only] */ #define AT91_AIC_FFER 0x140 /* Fast Forcing Enable Register [SAM9 only] */
#define AT91_AIC5_FFER 0x50 /* Fast Forcing Enable Register [AIC5] */
#define AT91_AIC_FFDR 0x144 /* Fast Forcing Disable Register [SAM9 only] */ #define AT91_AIC_FFDR 0x144 /* Fast Forcing Disable Register [SAM9 only] */
#define AT91_AIC5_FFDR 0x54 /* Fast Forcing Disable Register [AIC5] */
#define AT91_AIC_FFSR 0x148 /* Fast Forcing Status Register [SAM9 only] */ #define AT91_AIC_FFSR 0x148 /* Fast Forcing Status Register [SAM9 only] */
#define AT91_AIC5_FFSR 0x58 /* Fast Forcing Status Register [AIC5] */
void at91_aic_handle_irq(struct pt_regs *regs);
void at91_aic5_handle_irq(struct pt_regs *regs);
#endif #endif
/*
* arch/arm/mach-at91/include/mach/at91_spi.h
*
* Copyright (C) 2005 Ivan Kokshaysky
* Copyright (C) SAN People
*
* Serial Peripheral Interface (SPI) registers.
* Based on AT91RM9200 datasheet revision E.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef AT91_SPI_H
#define AT91_SPI_H
#define AT91_SPI_CR 0x00 /* Control Register */
#define AT91_SPI_SPIEN (1 << 0) /* SPI Enable */
#define AT91_SPI_SPIDIS (1 << 1) /* SPI Disable */
#define AT91_SPI_SWRST (1 << 7) /* SPI Software Reset */
#define AT91_SPI_LASTXFER (1 << 24) /* Last Transfer [SAM9261 only] */
#define AT91_SPI_MR 0x04 /* Mode Register */
#define AT91_SPI_MSTR (1 << 0) /* Master/Slave Mode */
#define AT91_SPI_PS (1 << 1) /* Peripheral Select */
#define AT91_SPI_PS_FIXED (0 << 1)
#define AT91_SPI_PS_VARIABLE (1 << 1)
#define AT91_SPI_PCSDEC (1 << 2) /* Chip Select Decode */
#define AT91_SPI_DIV32 (1 << 3) /* Clock Selection [AT91RM9200 only] */
#define AT91_SPI_MODFDIS (1 << 4) /* Mode Fault Detection */
#define AT91_SPI_LLB (1 << 7) /* Local Loopback Enable */
#define AT91_SPI_PCS (0xf << 16) /* Peripheral Chip Select */
#define AT91_SPI_DLYBCS (0xff << 24) /* Delay Between Chip Selects */
#define AT91_SPI_RDR 0x08 /* Receive Data Register */
#define AT91_SPI_RD (0xffff << 0) /* Receive Data */
#define AT91_SPI_PCS (0xf << 16) /* Peripheral Chip Select */
#define AT91_SPI_TDR 0x0c /* Transmit Data Register */
#define AT91_SPI_TD (0xffff << 0) /* Transmit Data */
#define AT91_SPI_PCS (0xf << 16) /* Peripheral Chip Select */
#define AT91_SPI_LASTXFER (1 << 24) /* Last Transfer [SAM9261 only] */
#define AT91_SPI_SR 0x10 /* Status Register */
#define AT91_SPI_RDRF (1 << 0) /* Receive Data Register Full */
#define AT91_SPI_TDRE (1 << 1) /* Transmit Data Register Full */
#define AT91_SPI_MODF (1 << 2) /* Mode Fault Error */
#define AT91_SPI_OVRES (1 << 3) /* Overrun Error Status */
#define AT91_SPI_ENDRX (1 << 4) /* End of RX buffer */
#define AT91_SPI_ENDTX (1 << 5) /* End of TX buffer */
#define AT91_SPI_RXBUFF (1 << 6) /* RX Buffer Full */
#define AT91_SPI_TXBUFE (1 << 7) /* TX Buffer Empty */
#define AT91_SPI_NSSR (1 << 8) /* NSS Rising [SAM9261 only] */
#define AT91_SPI_TXEMPTY (1 << 9) /* Transmission Register Empty [SAM9261 only] */
#define AT91_SPI_SPIENS (1 << 16) /* SPI Enable Status */
#define AT91_SPI_IER 0x14 /* Interrupt Enable Register */
#define AT91_SPI_IDR 0x18 /* Interrupt Disable Register */
#define AT91_SPI_IMR 0x1c /* Interrupt Mask Register */
#define AT91_SPI_CSR(n) (0x30 + ((n) * 4)) /* Chip Select Registers 0-3 */
#define AT91_SPI_CPOL (1 << 0) /* Clock Polarity */
#define AT91_SPI_NCPHA (1 << 1) /* Clock Phase */
#define AT91_SPI_CSAAT (1 << 3) /* Chip Select Active After Transfer [SAM9261 only] */
#define AT91_SPI_BITS (0xf << 4) /* Bits Per Transfer */
#define AT91_SPI_BITS_8 (0 << 4)
#define AT91_SPI_BITS_9 (1 << 4)
#define AT91_SPI_BITS_10 (2 << 4)
#define AT91_SPI_BITS_11 (3 << 4)
#define AT91_SPI_BITS_12 (4 << 4)
#define AT91_SPI_BITS_13 (5 << 4)
#define AT91_SPI_BITS_14 (6 << 4)
#define AT91_SPI_BITS_15 (7 << 4)
#define AT91_SPI_BITS_16 (8 << 4)
#define AT91_SPI_SCBR (0xff << 8) /* Serial Clock Baud Rate */
#define AT91_SPI_DLYBS (0xff << 16) /* Delay before SPCK */
#define AT91_SPI_DLYBCT (0xff << 24) /* Delay between Consecutive Transfers */
#endif
/*
* arch/arm/mach-at91/include/mach/at91_ssc.h
*
* Copyright (C) SAN People
*
* Serial Synchronous Controller (SSC) registers.
* Based on AT91RM9200 datasheet revision E.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef AT91_SSC_H
#define AT91_SSC_H
#define AT91_SSC_CR 0x00 /* Control Register */
#define AT91_SSC_RXEN (1 << 0) /* Receive Enable */
#define AT91_SSC_RXDIS (1 << 1) /* Receive Disable */
#define AT91_SSC_TXEN (1 << 8) /* Transmit Enable */
#define AT91_SSC_TXDIS (1 << 9) /* Transmit Disable */
#define AT91_SSC_SWRST (1 << 15) /* Software Reset */
#define AT91_SSC_CMR 0x04 /* Clock Mode Register */
#define AT91_SSC_CMR_DIV (0xfff << 0) /* Clock Divider */
#define AT91_SSC_RCMR 0x10 /* Receive Clock Mode Register */
#define AT91_SSC_CKS (3 << 0) /* Clock Selection */
#define AT91_SSC_CKS_DIV (0 << 0)
#define AT91_SSC_CKS_CLOCK (1 << 0)
#define AT91_SSC_CKS_PIN (2 << 0)
#define AT91_SSC_CKO (7 << 2) /* Clock Output Mode Selection */
#define AT91_SSC_CKO_NONE (0 << 2)
#define AT91_SSC_CKO_CONTINUOUS (1 << 2)
#define AT91_SSC_CKI (1 << 5) /* Clock Inversion */
#define AT91_SSC_CKI_FALLING (0 << 5)
#define AT91_SSC_CK_RISING (1 << 5)
#define AT91_SSC_CKG (1 << 6) /* Receive Clock Gating Selection [AT91SAM9261 only] */
#define AT91_SSC_CKG_NONE (0 << 6)
#define AT91_SSC_CKG_RFLOW (1 << 6)
#define AT91_SSC_CKG_RFHIGH (2 << 6)
#define AT91_SSC_START (0xf << 8) /* Start Selection */
#define AT91_SSC_START_CONTINUOUS (0 << 8)
#define AT91_SSC_START_TX_RX (1 << 8)
#define AT91_SSC_START_LOW_RF (2 << 8)
#define AT91_SSC_START_HIGH_RF (3 << 8)
#define AT91_SSC_START_FALLING_RF (4 << 8)
#define AT91_SSC_START_RISING_RF (5 << 8)
#define AT91_SSC_START_LEVEL_RF (6 << 8)
#define AT91_SSC_START_EDGE_RF (7 << 8)
#define AT91_SSC_STOP (1 << 12) /* Receive Stop Selection [AT91SAM9261 only] */
#define AT91_SSC_STTDLY (0xff << 16) /* Start Delay */
#define AT91_SSC_PERIOD (0xff << 24) /* Period Divider Selection */
#define AT91_SSC_RFMR 0x14 /* Receive Frame Mode Register */
#define AT91_SSC_DATALEN (0x1f << 0) /* Data Length */
#define AT91_SSC_LOOP (1 << 5) /* Loop Mode */
#define AT91_SSC_MSBF (1 << 7) /* Most Significant Bit First */
#define AT91_SSC_DATNB (0xf << 8) /* Data Number per Frame */
#define AT91_SSC_FSLEN (0xf << 16) /* Frame Sync Length */
#define AT91_SSC_FSOS (7 << 20) /* Frame Sync Output Selection */
#define AT91_SSC_FSOS_NONE (0 << 20)
#define AT91_SSC_FSOS_NEGATIVE (1 << 20)
#define AT91_SSC_FSOS_POSITIVE (2 << 20)
#define AT91_SSC_FSOS_LOW (3 << 20)
#define AT91_SSC_FSOS_HIGH (4 << 20)
#define AT91_SSC_FSOS_TOGGLE (5 << 20)
#define AT91_SSC_FSEDGE (1 << 24) /* Frame Sync Edge Detection */
#define AT91_SSC_FSEDGE_POSITIVE (0 << 24)
#define AT91_SSC_FSEDGE_NEGATIVE (1 << 24)
#define AT91_SSC_TCMR 0x18 /* Transmit Clock Mode Register */
#define AT91_SSC_TFMR 0x1c /* Transmit Fram Mode Register */
#define AT91_SSC_DATDEF (1 << 5) /* Data Default Value */
#define AT91_SSC_FSDEN (1 << 23) /* Frame Sync Data Enable */
#define AT91_SSC_RHR 0x20 /* Receive Holding Register */
#define AT91_SSC_THR 0x24 /* Transmit Holding Register */
#define AT91_SSC_RSHR 0x30 /* Receive Sync Holding Register */
#define AT91_SSC_TSHR 0x34 /* Transmit Sync Holding Register */
#define AT91_SSC_RC0R 0x38 /* Receive Compare 0 Register [AT91SAM9261 only] */
#define AT91_SSC_RC1R 0x3c /* Receive Compare 1 Register [AT91SAM9261 only] */
#define AT91_SSC_SR 0x40 /* Status Register */
#define AT91_SSC_TXRDY (1 << 0) /* Transmit Ready */
#define AT91_SSC_TXEMPTY (1 << 1) /* Transmit Empty */
#define AT91_SSC_ENDTX (1 << 2) /* End of Transmission */
#define AT91_SSC_TXBUFE (1 << 3) /* Transmit Buffer Empty */
#define AT91_SSC_RXRDY (1 << 4) /* Receive Ready */
#define AT91_SSC_OVRUN (1 << 5) /* Receive Overrun */
#define AT91_SSC_ENDRX (1 << 6) /* End of Reception */
#define AT91_SSC_RXBUFF (1 << 7) /* Receive Buffer Full */
#define AT91_SSC_CP0 (1 << 8) /* Compare 0 [AT91SAM9261 only] */
#define AT91_SSC_CP1 (1 << 9) /* Compare 1 [AT91SAM9261 only] */
#define AT91_SSC_TXSYN (1 << 10) /* Transmit Sync */
#define AT91_SSC_RXSYN (1 << 11) /* Receive Sync */
#define AT91_SSC_TXENA (1 << 16) /* Transmit Enable */
#define AT91_SSC_RXENA (1 << 17) /* Receive Enable */
#define AT91_SSC_IER 0x44 /* Interrupt Enable Register */
#define AT91_SSC_IDR 0x48 /* Interrupt Disable Register */
#define AT91_SSC_IMR 0x4c /* Interrupt Mask Register */
#endif
/*
* arch/arm/mach-at91/include/mach/entry-macro.S
*
* Copyright (C) 2003-2005 SAN People
*
* Low-level IRQ helper macros for AT91RM9200 platforms
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#include <mach/hardware.h>
#include <mach/at91_aic.h>
.macro get_irqnr_preamble, base, tmp
ldr \base, =at91_aic_base @ base virtual address of AIC peripheral
ldr \base, [\base]
.endm
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \irqnr, [\base, #AT91_AIC_IVR] @ read IRQ vector register: de-asserts nIRQ to processor (and clears interrupt)
ldr \irqstat, [\base, #AT91_AIC_ISR] @ read interrupt source number
teq \irqstat, #0 @ ISR is 0 when no current interrupt, or spurious interrupt
streq \tmp, [\base, #AT91_AIC_EOICR] @ not going to be handled further, then ACK it now.
.endm
/*
* arch/arm/mach-at91/include/mach/irqs.h
*
* Copyright (C) 2004 SAN People
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_IRQS_H
#define __ASM_ARCH_IRQS_H
#include <linux/io.h>
#include <mach/at91_aic.h>
#define NR_AIC_IRQS 32
/*
* Acknowledge interrupt with AIC after interrupt has been handled.
* (by kernel/irq.c)
*/
#define irq_finish(irq) do { at91_aic_write(AT91_AIC_EOICR, 0); } while (0)
/*
* IRQ interrupt symbols are the AT91xxx_ID_* symbols
* for IRQs handled directly through the AIC, or else the AT91_PIN_*
* symbols in gpio.h for ones handled indirectly as GPIOs.
* We make provision for 5 banks of GPIO.
*/
#define NR_IRQS (NR_AIC_IRQS + (5 * 32))
/* FIQ is AIC source 0. */
#define FIQ_START AT91_ID_FIQ
#endif
This diff is collapsed.
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <mach/at91_aic.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/cpu.h> #include <mach/cpu.h>
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/timex.h>
#include <asm/sizes.h> #include <asm/sizes.h>
#include <mach/hardware.h> #include <mach/hardware.h>
...@@ -188,7 +187,6 @@ static struct irqaction clps711x_timer_irq = { ...@@ -188,7 +187,6 @@ static struct irqaction clps711x_timer_irq = {
static void __init clps711x_timer_init(void) static void __init clps711x_timer_init(void)
{ {
struct timespec tv;
unsigned int syscon; unsigned int syscon;
syscon = clps_readl(SYSCON1); syscon = clps_readl(SYSCON1);
...@@ -198,10 +196,6 @@ static void __init clps711x_timer_init(void) ...@@ -198,10 +196,6 @@ static void __init clps711x_timer_init(void)
clps_writel(LATCH-1, TC2D); /* 512kHz / 100Hz - 1 */ clps_writel(LATCH-1, TC2D); /* 512kHz / 100Hz - 1 */
setup_irq(IRQ_TC2OI, &clps711x_timer_irq); setup_irq(IRQ_TC2OI, &clps711x_timer_irq);
tv.tv_nsec = 0;
tv.tv_sec = clps_readl(RTCDR);
do_settimeofday(&tv);
} }
struct sys_timer clps711x_timer = { struct sys_timer clps711x_timer = {
......
...@@ -25,26 +25,6 @@ ...@@ -25,26 +25,6 @@
*/ */
#define PLAT_PHYS_OFFSET UL(0xc0000000) #define PLAT_PHYS_OFFSET UL(0xc0000000)
#if !defined(CONFIG_ARCH_CDB89712) && !defined (CONFIG_ARCH_AUTCPU12)
#define __virt_to_bus(x) ((x) - PAGE_OFFSET)
#define __bus_to_virt(x) ((x) + PAGE_OFFSET)
#define __pfn_to_bus(x) (__pfn_to_phys(x) - PHYS_OFFSET)
#define __bus_to_pfn(x) __phys_to_pfn((x) + PHYS_OFFSET)
#endif
/*
* Like the SA1100, the EDB7211 has a large gap between physical RAM
* banks. In 2.2, the Psion (CL-PS7110) port added custom support for
* discontiguous physical memory. In 2.4, we can use the standard
* Linux NUMA support.
*
* This is not necessary for EP7211 implementations with only one used
* memory bank. For those systems, simply undefine CONFIG_DISCONTIGMEM.
*/
/* /*
* The PS7211 allows up to 256MB max per DRAM bank, but the EDB7211 * The PS7211 allows up to 256MB max per DRAM bank, but the EDB7211
* uses only one of the two banks (bank #1). However, even within * uses only one of the two banks (bank #1). However, even within
...@@ -54,23 +34,6 @@ ...@@ -54,23 +34,6 @@
* them, so we use 24 for the node max shift to get 16MB node sizes. * them, so we use 24 for the node max shift to get 16MB node sizes.
*/ */
/*
* Because of the wide memory address space between physical RAM banks on the
* SA1100, it's much more convenient to use Linux's NUMA support to implement
* our memory map representation. Assuming all memory nodes have equal access
* characteristics, we then have generic discontiguous memory support.
*
* Of course, all this isn't mandatory for SA1100 implementations with only
* one used memory bank. For those, simply undefine CONFIG_DISCONTIGMEM.
*
* The nodes are matched with the physical memory bank addresses which are
* incidentally the same as virtual addresses.
*
* node 0: 0xc0000000 - 0xc7ffffff
* node 1: 0xc8000000 - 0xcfffffff
* node 2: 0xd0000000 - 0xd7ffffff
* node 3: 0xd8000000 - 0xdfffffff
*/
#define SECTION_SIZE_BITS 24 #define SECTION_SIZE_BITS 24
#define MAX_PHYSMEM_BITS 32 #define MAX_PHYSMEM_BITS 32
......
...@@ -86,17 +86,7 @@ static void __init p720t_map_io(void) ...@@ -86,17 +86,7 @@ static void __init p720t_map_io(void)
iotable_init(p720t_io_desc, ARRAY_SIZE(p720t_io_desc)); iotable_init(p720t_io_desc, ARRAY_SIZE(p720t_io_desc));
} }
MACHINE_START(P720T, "ARM-Prospector720T") static void __init p720t_init_early(void)
/* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
.atag_offset = 0x100,
.fixup = fixup_p720t,
.map_io = p720t_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END
static int p720t_hw_init(void)
{ {
/* /*
* Power down as much as possible in case we don't * Power down as much as possible in case we don't
...@@ -111,13 +101,19 @@ static int p720t_hw_init(void) ...@@ -111,13 +101,19 @@ static int p720t_hw_init(void)
PLD_CODEC = 0; PLD_CODEC = 0;
PLD_TCH = 0; PLD_TCH = 0;
PLD_SPI = 0; PLD_SPI = 0;
#ifndef CONFIG_DEBUG_LL if (!IS_ENABLED(CONFIG_DEBUG_LL)) {
PLD_COM2 = 0; PLD_COM2 = 0;
PLD_COM1 = 0; PLD_COM1 = 0;
#endif }
return 0;
} }
__initcall(p720t_hw_init); MACHINE_START(P720T, "ARM-Prospector720T")
/* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
.atag_offset = 0x100,
.fixup = fixup_p720t,
.init_early = p720t_init_early,
.map_io = p720t_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END
...@@ -712,31 +712,6 @@ static int __init exynos4_l2x0_cache_init(void) ...@@ -712,31 +712,6 @@ static int __init exynos4_l2x0_cache_init(void)
early_initcall(exynos4_l2x0_cache_init); early_initcall(exynos4_l2x0_cache_init);
#endif #endif
static int __init exynos5_l2_cache_init(void)
{
unsigned int val;
if (!soc_is_exynos5250())
return 0;
asm volatile("mrc p15, 0, %0, c1, c0, 0\n"
"bic %0, %0, #(1 << 2)\n" /* cache disable */
"mcr p15, 0, %0, c1, c0, 0\n"
"mrc p15, 1, %0, c9, c0, 2\n"
: "=r"(val));
val |= (1 << 9) | (1 << 5) | (2 << 6) | (2 << 0);
asm volatile("mcr p15, 1, %0, c9, c0, 2\n" : : "r"(val));
asm volatile("mrc p15, 0, %0, c1, c0, 0\n"
"orr %0, %0, #(1 << 2)\n" /* cache enable */
"mcr p15, 0, %0, c1, c0, 0\n"
: : "r"(val));
return 0;
}
early_initcall(exynos5_l2_cache_init);
static int __init exynos_init(void) static int __init exynos_init(void)
{ {
printk(KERN_INFO "EXYNOS: Initializing architecture\n"); printk(KERN_INFO "EXYNOS: Initializing architecture\n");
......
/* linux/arch/arm/mach-exynos4/include/mach/spi-clocks.h
*
* Copyright (C) 2011 Samsung Electronics Co. Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_SPI_CLKS_H
#define __ASM_ARCH_SPI_CLKS_H __FILE__
/* Must source from SCLK_SPI */
#define EXYNOS_SPI_SRCCLK_SCLK 0
#endif /* __ASM_ARCH_SPI_CLKS_H */
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
#include <plat/gpio-cfg.h> #include <plat/gpio-cfg.h>
#include <plat/iic.h> #include <plat/iic.h>
#include <plat/mfc.h> #include <plat/mfc.h>
#include <plat/pd.h>
#include <plat/fimc-core.h> #include <plat/fimc-core.h>
#include <plat/camport.h> #include <plat/camport.h>
#include <plat/mipi_csis.h> #include <plat/mipi_csis.h>
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include <plat/clock.h> #include <plat/clock.h>
#include <plat/gpio-cfg.h> #include <plat/gpio-cfg.h>
#include <plat/backlight.h> #include <plat/backlight.h>
#include <plat/pd.h>
#include <plat/fb.h> #include <plat/fb.h>
#include <plat/mfc.h> #include <plat/mfc.h>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment