summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/mpc8xxx_gpio.h
diff options
context:
space:
mode:
authorEvert Pap <evert.pap@sintecs.nl>2016-03-31 15:35:05 (GMT)
committervojo <joris.van.vossen@sintecs.nl>2017-08-23 08:06:41 (GMT)
commitfe039d31b2c99d09510b1b5ea355b6e658490b02 (patch)
treeab1ab3a394bc7a952d1b33043ffdc4ecc11bbaed /arch/powerpc/include/asm/mpc8xxx_gpio.h
parenta5deb669f027575829326eb5f07e8a47bc870005 (diff)
downloadu-boot-fsl-qoriq-fe039d31b2c99d09510b1b5ea355b6e658490b02.tar.xz
Add support for the Scalys SimC-t10xx SOM
Diffstat (limited to 'arch/powerpc/include/asm/mpc8xxx_gpio.h')
-rw-r--r--arch/powerpc/include/asm/mpc8xxx_gpio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/mpc8xxx_gpio.h b/arch/powerpc/include/asm/mpc8xxx_gpio.h
index d4a5b7c..1069638 100644
--- a/arch/powerpc/include/asm/mpc8xxx_gpio.h
+++ b/arch/powerpc/include/asm/mpc8xxx_gpio.h
@@ -6,6 +6,8 @@
#ifndef _POWERPC_ASM_MPC8XXX_GPIO_H
#define _POWERPC_ASM_MPC8XXX_GPIO_H
+#include <asm-generic/errno.h>
+
#define MPC8XXX_GPIO_NR(port, pin) ((((port)-1)*32)+((pin)&31))
#define MPC8XXX_GPIO_TO_PORT(gpio) (gpio/32)
#define MPC8XXX_GPIO_TO_PIN(gpio) (gpio&31)
@@ -86,7 +88,7 @@ static inline int mpc8xxx_gpio_get(uint32_t gpio, int value)
break;
#endif
default:
- return;
+ return -ENODEV;
}
/* Get inputs */