Hi Tony, > >> + >> +/* >> + * Set the IrDA communications speed. >> + * Interrupt have to be disabled here. >> + */ >> +static int omap_irda_startup(struct net_device *dev) >> +{ >> + struct omap_irda *omap_ir = netdev_priv(dev); >> + >> + /* FIXME: use clk_* apis for UART3 clock*/ >> + /* Enable UART3 clock and set UART3 to IrDA mode */ >> + if (machine_is_omap_h2() || machine_is_omap_h3()) >> + omap_writel(omap_readl(MOD_CONF_CTRL_0) | (1 << 31) | (1 << 15), >> + MOD_CONF_CTRL_0); This looks like muxing on H3. >> + >> + /* Only for H2? >> + */ >> + if (omap_ir->pdata->transceiver_mode && machine_is_omap_h2()) { >> + /* Is it select_irda on H2 ? */ >> + omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7, >> + FUNC_MUX_CTRL_A); >> + omap_ir->pdata->transceiver_mode(omap_ir->dev, IR_SIRMODE); >> + } >> + > I can move this to board-h3.c file instead with platform data flag probably. -- ---Trilok Soni http://triloksoni.wordpress.com http://www.linkedin.com/in/triloksoni -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html