Hi Slava,
Check the omap_mux_init_signal() function inside <linux_dir>/arch/arm/mach-omap2/mux.c:
int __init omap_mux_init_signal(const char *muxname, int val) { struct omap_mux_partition *partition = NULL; struct omap_mux *mux = NULL; u16 old_mode; int mux_mode; mux_mode = omap_mux_get_by_name(muxname, &partition, &mux); if (mux_mode < 0) return mux_mode; old_mode = omap_mux_read(partition, mux->reg_offset); mux_mode |= val; pr_debug("%s: Setting signal %s 0x%04x -> 0x%04x\n", __func__, muxname, old_mode, mux_mode); omap_mux_write(partition, mux_mode, mux->reg_offset); return 0; }
Best regards,
Miroslav