[U-Boot] [PATCH 2/3] mpc85xx: Add inline GPIO acessor functions
Kumar Gala
kumar.gala at freescale.com
Fri Oct 21 07:07:55 CEST 2011
On Oct 19, 2011, at 1:58 PM, Kyle Moffett wrote:
> To ease the implementation of other MPC85xx board ports, several common
> GPIO helpers are added to <asm/mpc85xx_gpio.h>.
>
> Since each of these compiles to no more than 4-5 instructions it would
> be very inefficient to call them out of line, therefore we put them
> entirely in the header file.
>
> The HWW-1U-1A board port which these were written for strongly prefers
> to set multiple GPIOs as a single batch operation, so the API is
> designed around that basis.
>
> To assist other board ports, a small set of wrappers are used which
> provides a standard gpio_request() interface around the MPC85xx-specific
> functions. This can be enabled with CONFIG_MPC85XX_GENERIC_GPIO
>
> Signed-off-by: Kyle Moffett <Kyle.D.Moffett at boeing.com>
> Cc: Andy Fleming <afleming at gmail.com>
> Cc: Kumar Gala <kumar.gala at freescale.com>
> Cc: Peter Tyser <ptyser at xes-inc.com>
>
> --
>
> Changelog:
> v2: Moved the inline functions to a non-board-specific header
> v3: Added generic Linux-standard GPIO wrappers
> v4: Improved comments and fixed minor bugs in the wrapper functions
> v5: No changes
> v6: Rebased onto the 'next' branch of git://git.denx.de/u-boot-mpc85xx.git
> v7: No changes
> v8: Rebased onto latest HEAD and add README entry for the config option
> v9: Removed CONFIG_* option and added missing #ifdef protection
> ---
> arch/powerpc/include/asm/mpc85xx_gpio.h | 123 +++++++++++++++++++++++++++++++
> 1 files changed, 123 insertions(+), 0 deletions(-)
> create mode 100644 arch/powerpc/include/asm/mpc85xx_gpio.h
applied to 85xx
- k
More information about the U-Boot
mailing list