> + */ > + > +#include <common.h> > +#include <asm/io.h> > +#include <asm/arch/imx-regs.h> > + > +DECLARE_GLOBAL_DATA_PTR; > + > +static int imx27lite_devices_init(void) > +{ > + struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE; > + int i; > + unsigned int mode[] = { > + PD0_AIN_FEC_TXD0, > + PD1_AIN_FEC_TXD1, > + PD2_AIN_FEC_TXD2, > + PD3_AIN_FEC_TXD3, > + PD4_AOUT_FEC_RX_ER, > + PD5_AOUT_FEC_RXD1, > + PD6_AOUT_FEC_RXD2, > + PD7_AOUT_FEC_RXD3, > + PD8_AF_FEC_MDIO, > + PD9_AIN_FEC_MDC | GPIO_PUEN, > + PD10_AOUT_FEC_CRS, > + PD11_AOUT_FEC_TX_CLK, > + PD12_AOUT_FEC_RXD0, > + PD13_AOUT_FEC_RX_DV, > + PD14_AOUT_FEC_CLR, > + PD15_AOUT_FEC_COL, > + PD16_AIN_FEC_TX_ER, > + PF23_AIN_FEC_TX_EN, > + PE12_PF_UART1_TXD, > + PE13_PF_UART1_RXD, > + PB4_PF_SD2_D0, > + PB5_PF_SD2_D1, > + PB6_PF_SD2_D2, > + PB7_PF_SD2_D3, > + PB8_PF_SD2_CMD, > + PB9_PF_SD2_CLK, > + (GPIO_PORTC | GPIO_OUT | GPIO_PUEN | GPIO_GPIO | 31), > + }; > + > + for (i = 0; i < ARRAY_SIZE(mode); i++) > + imx_gpio_mode(mode[i]); you do not answer about my api comment? do you plan to create one for device init?
otherwise ok Best Regards, J. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot