diff options
author | Oleksandr G Zhadan <oleks@arcturusnetworks.com> | 2015-04-28 13:59:50 -0400 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-05-04 09:26:09 -0700 |
commit | d7732faad3104369fca72c071818b95ddb3e35db (patch) | |
tree | cb493f79f8b5a3b55ce7c71b1063a4a486571555 /arch/powerpc/include/asm/arch-mpc85xx | |
parent | 38289c6945406494e3d9a59ec52ba4bd132eabc9 (diff) | |
download | u-boot-imx-d7732faad3104369fca72c071818b95ddb3e35db.zip u-boot-imx-d7732faad3104369fca72c071818b95ddb3e35db.tar.gz u-boot-imx-d7732faad3104369fca72c071818b95ddb3e35db.tar.bz2 |
powerpc/mpc85xx: Fix compiling error for common/cmd_gpio.c
To replicate:
1. add to include/configs/p1_p2_rdb_pc.h "#define CONFIG_CMD_GPIO"
2. run `make P1020RDB-PC_defconfig`
3. run CROSS_COMPILE=powerpc-linux- make
and you will get:
common/built-in.o: In function `do_gpio':
u-boot/common/cmd_gpio.c:186: undefined reference to `gpio_request'
u-boot/common/cmd_gpio.c:194: undefined reference to `gpio_direction_input'
u-boot/common/cmd_gpio.c:195: undefined reference to `gpio_get_value'
u-boot/common/cmd_gpio.c:200: undefined reference to `gpio_get_value'
u-boot/common/cmd_gpio.c:203: undefined reference to `gpio_direction_output'
u-boot/common/cmd_gpio.c:209: undefined reference to `gpio_free
Signed-off-by: Michael Durrant <mdurrant@arcturusnetworks.com>
Signed-off-by: Oleksandr G Zhadan <oleks@arcturusnetworks.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/include/asm/arch-mpc85xx')
-rw-r--r-- | arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/arch-mpc85xx/gpio.h b/arch/powerpc/include/asm/arch-mpc85xx/gpio.h index 8beed30..71794a8 100644 --- a/arch/powerpc/include/asm/arch-mpc85xx/gpio.h +++ b/arch/powerpc/include/asm/arch-mpc85xx/gpio.h @@ -12,4 +12,6 @@ #ifndef __ASM_ARCH_MX85XX_GPIO_H #define __ASM_ARCH_MX85XX_GPIO_H +#include <asm/mpc85xx_gpio.h> + #endif |