This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x uboot添加GPIO的操作疑问



现使用uboot-2011-09版本的uboot,我想在我的uboot中添加gpio的驱动,现在不知道改怎么做。

我参考了《U-Boot for AM335x (5) How to control GPIO》的方法,在driver目录下新建led目录,添加led.c的驱动并添加到makefile中,led.h放在include目录中,

我想在我的程序中调用以下函数
gpio_request(113, "led");
gpio_direction_output(113, 1);
gpio_set_value(113, 0);
在驱动函数中添加头文件#include <asm/gpio.h>
但是提示arm/U-Boot/u-boot/include/asm/gpio.h:25:27: fatal error: asm/arch/gpio.h: No such file or directory
我应该添加别的头文件还是需要打开什么宏开关?谁能帮助我解决该问题,谢谢