[U-Boot] [PATCH v8 3/4] mpc83xx: Add a GPIO driver for the MPC83XX family

Mike Frysinger vapier at gentoo.org
Sat Nov 5 18:07:47 CET 2011


On Friday 04 November 2011 22:25:00 Joe Hershberger wrote:
> --- /dev/null
> +++ b/arch/powerpc/include/asm/arch-mpc83xx/gpio.h
>
> +#if defined(CONFIG_MPC8313) || defined(CONFIG_MPC8308) || \
> +				defined(CONFIG_MPC8315)
> +	#define MPC83XX_GPIO_CTRLRS 1
> +#elif defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x)
> +	#define MPC83XX_GPIO_CTRLRS 2
> +#else
> +	#define MPC83XX_GPIO_CTRLRS 0
> +#endif

there should not be whitespace before the "#"

> --- /dev/null
> +++ b/drivers/gpio/mpc83xx_gpio.c
>
> +#ifndef CONFIG_MPC83XX_GPIO_0_INIT_DIRECTION
> +	#define CONFIG_MPC83XX_GPIO_0_INIT_DIRECTION 0
> +#endif
> +#ifndef CONFIG_MPC83XX_GPIO_1_INIT_DIRECTION
> +	#define CONFIG_MPC83XX_GPIO_1_INIT_DIRECTION 0
> +#endif
> +#ifndef CONFIG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN
> +	#define CONFIG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN 0
> +#endif
> +#ifndef CONFIG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN
> +	#define CONFIG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN 0
> +#endif
> +#ifndef CONFIG_MPC83XX_GPIO_0_INIT_VALUE
> +	#define CONFIG_MPC83XX_GPIO_0_INIT_VALUE 0
> +#endif
> +#ifndef CONFIG_MPC83XX_GPIO_1_INIT_VALUE
> +	#define CONFIG_MPC83XX_GPIO_1_INIT_VALUE 0
> +#endif

same here
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111105/5400e35e/attachment.pgp 


More information about the U-Boot mailing list