diff mbox

[U-Boot,1/5] at91sam9260_devices: fix following atmal rework

Message ID 1307428508-26058-1-git-send-email-eric@eukrea.com
State Superseded
Delegated to: Reinhard Meyer
Headers show

Commit Message

Eric Benard June 7, 2011, 6:35 a.m. UTC
this patch fix the following error :
u-boot/include/asm/arch/at91_pio.h:91: error: 'ATMEL_PIO_PORTS' undeclared here (not in a function)

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Reinhard Meyer June 7, 2011, 7:56 a.m. UTC | #1
Dear Eric Bénard,
> this patch fix the following error :
> u-boot/include/asm/arch/at91_pio.h:91: error: 'ATMEL_PIO_PORTS' undeclared here (not in a function)
> 
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> ---
>  arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
> index 6bdc75c..ace1ca8 100644
> --- a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
> +++ b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
> @@ -24,9 +24,10 @@
>  
>  #include <common.h>
>  #include <asm/io.h>
> +#include <asm/arch/hardware.h>
>  #include <asm/arch/at91_common.h>
>  #include <asm/arch/at91_pmc.h>
> -#include <asm/arch/gpio.h>
> +#include <asm/arch/at91_pio.h>
>  
>  /*
>   * if CONFIG_AT91_GPIO_PULLUP ist set, keep pullups on on all

at91sam9260/9g20/9xe-ek and top9000 and maybe other 9260 based boards
build fine with this file as it is.

If certain boards do not build with this file, their <board-config>.h
is probably missing the relevant include of hardware.h.

Best Regards,
Reinhard
diff mbox

Patch

diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
index 6bdc75c..ace1ca8 100644
--- a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
+++ b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
@@ -24,9 +24,10 @@ 
 
 #include <common.h>
 #include <asm/io.h>
+#include <asm/arch/hardware.h>
 #include <asm/arch/at91_common.h>
 #include <asm/arch/at91_pmc.h>
-#include <asm/arch/gpio.h>
+#include <asm/arch/at91_pio.h>
 
 /*
  * if CONFIG_AT91_GPIO_PULLUP ist set, keep pullups on on all