> -----Original Message----- > From: Prafulla Wadaskar [mailto:prafu...@marvell.com] > Sent: Thursday, December 09, 2010 7:47 PM > To: u-boot@lists.denx.de > Cc: Lei Wen; Eric Miao; Yu Tang; Kiran Vedere; Manas Saksena; Prabhanjan > Sarnaik; Ashish Karkare; Prafulla Wadaskar > Subject: [PATCH v4 2/7] [REV-1] 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 <prafu...@marvell.com> > --- > Changelog v4: > 1. Driver renamed as mvmfp > 2. Re-architected mvmfp driver as per review feedback > > Changelog v4 (REV-1): > 1. MFPR_BASE renamed as MV_MFPR_BASE and defination moved to board config > file > 2. val&= removed from config-write logic > > drivers/gpio/Makefile | 1 + > drivers/gpio/mvmfp.c | 87 ++++++++++++++++++++++++++++++++++++++++++ > include/mvmfp.h | 100 > +++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 188 insertions(+), 0 deletions(-) > create mode 100644 drivers/gpio/mvmfp.c > create mode 100644 include/mvmfp.h >
Applied to u-boot-marvell.git master branch Regards.. Prafulla .. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot