
On 08/25/2011 08:29 AM, Faisal H wrote:
While building with omap3_beagle_config configuration, getting an error about not finding asm/arch/gpio.h (which does not exist). Found that header files are moved to arch/arm/include/asm/arch-.
"make <board>_config" sets a link for asm/arch to arch/arm/include/asm/arch-. The file is not moved.
Then in my understanding asm/arch/gpio.h is included in asm/gpio.h, and must not be included directly. Have I missed something ?
Fixed the includes to find the file..
Signed-off-by: Faisal Hassanfaah87@gmail.com Cc: Wolfgang Denkwd@denx.de
--- a/board/cm-bf537e/gpio_cfi_flash.c +++ b/board/cm-bf537e/gpio_cfi_flash.c @@ -8,7 +8,7 @@
#include<common.h> #include<asm/blackfin.h> -#include<asm/gpio.h> +#include<asm/mach-bf537/gpio.h>
However, asm/gpio.h is the correct general interface. The specific part for the microprocessor is included with #include <asm/arch/gpio.h> in asm/gpio.h.
You should not need to change it if the links are correctly set. If not, it is another bug.
#include<asm/blackfin.h> -#include<asm/gpio.h> +#include<asm/mach-bf548/gpio.h>
IMHO this change is wrong, and it is correct how it is done currently.
Best regards, Stefano Babic