]> Git Repo - J-u-boot.git/commit
mpc85xx: Add inline GPIO acessor functions
authorKyle Moffett <[email protected]>
Wed, 19 Oct 2011 18:58:15 +0000 (14:58 -0400)
committerKumar Gala <[email protected]>
Fri, 21 Oct 2011 05:04:28 +0000 (00:04 -0500)
commit710308ee185b3087e474fb9b205f47613c65dda4
treef79c00c52451614f6ae4b31a43b274a512b22418
parenta836626cc4ddae53bfa46195a39194f21ad157af
mpc85xx: Add inline GPIO acessor functions

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 <[email protected]>
Cc: Andy Fleming <[email protected]>
Cc: Peter Tyser <[email protected]>
Signed-off-by: Kumar Gala <[email protected]>
arch/powerpc/include/asm/mpc85xx_gpio.h [new file with mode: 0644]
This page took 0.034356 seconds and 4 git commands to generate.