[U-Boot] [PATCH] Error : Not finding asm/arch/gpio.h

Faisal H faah87 at gmail.com
Thu Aug 25 08:29:12 CEST 2011


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-.
Fixed the includes to find the file..

Signed-off-by: Faisal Hassan<faah87 at gmail.com>
Cc: Wolfgang Denk<wd at 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>
  #include<asm/io.h>
  #include "gpio_cfi_flash.h"

--- a/board/bf548-ezkit/video.c
+++ b/board/bf548-ezkit/video.c
@@ -11,7 +11,7 @@
  #include<config.h>
  #include<malloc.h>
  #include<asm/blackfin.h>
-#include<asm/gpio.h>
+#include<asm/mach-bf548/gpio.h>
  #include<asm/portmux.h>
  #include<asm/mach-common/bits/dma.h>
  #include<i2c.h>
--- a/board/bf548-ezkit/bf548-ezkit.c
+++ b/board/bf548-ezkit/bf548-ezkit.c
@@ -11,7 +11,7 @@
  #include<command.h>
  #include<netdev.h>
  #include<asm/blackfin.h>
-#include<asm/gpio.h>
+#include<asm/mach-bf548/gpio.h>
  #include<asm/portmux.h>
  #include<asm/sdh.h>

--- a/board/bf537-stamp/post.c
+++ b/board/bf537-stamp/post.c
@@ -12,7 +12,7 @@
  #include<config.h>
  #include<command.h>
  #include<asm/blackfin.h>
-#include<asm/gpio.h>
+#include<asm/mach-bf537/gpio.h>

  /* Using sw10-PF5 as the hotkey */
  int post_hotkeys_pressed(void)
--- a/board/bf533-stamp/bf533-stamp.c
+++ b/board/bf533-stamp/bf533-stamp.c
@@ -27,7 +27,7 @@

  #include<common.h>
  #include<netdev.h>
-#include<asm/gpio.h>
+#include<asm/mach-bf533/gpio.h>

  DECLARE_GLOBAL_DATA_PTR;

--- a/board/bf527-sdp/bf527-sdp.c
+++ b/board/bf527-sdp/bf527-sdp.c
@@ -8,7 +8,7 @@

  #include<common.h>
  #include<asm/blackfin.h>
-#include<asm/gpio.h>
+#include<asm/mach-bf527/gpio.h>
  #include<asm/mach-common/bits/pll.h>

  int checkboard(void)
--- a/board/bf527-ezkit/bf527-ezkit.c
+++ b/board/bf527-ezkit/bf527-ezkit.c
@@ -12,7 +12,7 @@
  #include<net.h>
  #include<netdev.h>
  #include<asm/blackfin.h>
-#include<asm/gpio.h>
+#include<mach-bf527/gpio.h>
  #include<asm/net.h>
  #include<asm/mach-common/bits/otp.h>

--- a/board/cm-bf548/video.c
+++ b/board/cm-bf548/video.c
@@ -11,7 +11,7 @@
  #include<config.h>
  #include<malloc.h>
  #include<asm/blackfin.h>
-#include<asm/gpio.h>
+#include<asm/mach-bf548/gpio.h>
  #include<asm/portmux.h>
  #include<asm/mach-common/bits/dma.h>
  #include<i2c.h>
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -38,7 +38,7 @@
  #include<asm/arch/mmc_host_def.h>
  #include<asm/arch/mux.h>
  #include<asm/arch/sys_proto.h>
-#include<asm/arch/gpio.h>
+#include<asm/arch-omap3/gpio.h>
  #include<asm/mach-types.h>
  #ifdef CONFIG_USB_EHCI
  #include<usb.h>
--- a/board/ti/beagle/led.c
+++ b/board/ti/beagle/led.c
@@ -22,7 +22,7 @@
  #include<asm/arch/cpu.h>
  #include<asm/io.h>
  #include<asm/arch/sys_proto.h>
-#include<asm/arch/gpio.h>
+#include<asm/arch-omap3/gpio.h>

  static unsigned int saved_state[2] = {STATUS_LED_OFF, STATUS_LED_OFF};


More information about the U-Boot mailing list