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

Reinhard Meyer u-boot at emk-elektronik.de
Tue Jun 7 09:56:39 CEST 2011


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 at 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


More information about the U-Boot mailing list