diff options
author | Prafulla Wadaskar <prafulla@marvell.com> | 2010-12-07 15:23:39 +0530 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-12-16 23:02:43 +0100 |
commit | e5f495d1728d108cb08a5b724a5d6741c37b3860 (patch) | |
tree | 087f98da930e778452a8301f53aed2e842636b0d /include/mxc_gpio.h | |
parent | 6c08d5dcf845c798173b883d7cc3d453de1dbd7e (diff) | |
download | u-boot-imx-e5f495d1728d108cb08a5b724a5d6741c37b3860.zip u-boot-imx-e5f495d1728d108cb08a5b724a5d6741c37b3860.tar.gz u-boot-imx-e5f495d1728d108cb08a5b724a5d6741c37b3860.tar.bz2 |
gpio: Add Multi-Function-Pin configuration driver for Marvell SoCs
Most of the Marvell SoCs has Multi Function Pin (MFP) configuration registers
For ex. ARMADA100.
These registers are programmed to expose the specific functionality
associated with respective SoC Pins
This driver provides configuration APIs,
using them, configuration need to be done in board specific code
for ex- following code configures MFPs 107 and 108 for UART_TX/RX functionality
int board_early_init_f(void)
{
u32 mfp_cfg[] = {
/* Console on UART1 */
MFP107_UART1_RXD,
MFP108_UART1_TXD,
MFP_EOC /*End of configureation*/
};
/* configure MFP's */
mfp_config(mfp_cfg);
return 0;
}
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Diffstat (limited to 'include/mxc_gpio.h')
0 files changed, 0 insertions, 0 deletions