* Mike Rapoport <mike@xxxxxxxxxxxxxx> [091126 03:19]: > Tony, > > Tony Lindgren wrote: > > * Tony Lindgren <tony@xxxxxxxxxxx> [091125 16:17]: > >> Hi all, > >> > >> Here are some omap mux updates for review. These > >> are intended for the v2.6.33 merge window. > > > > Forgot to edit the subject :) > > > > Also, these patches are available in the mux branch > > of the linux-omap tree for easy testing. > > After all the discussions we had, what would be preferable way to define the > board mux configuration? The omap_board_mux array or a calls for > omap_mux_init_signal? You should be able to just boot with CONFIG_DEBUG_FS, check how the pins are set, and adjust as needed via sysfs. Then when happy with the settings, just do: # cat /sys/kernel/debug/omap_mux/board OMAP3_MUX(CAM_D0, OMAP_PIN_INPUT | OMAP_PIN_OFF_WAKEUPENABLE | OMAP_MUX_MODE4), OMAP3_MUX(CAM_D10, OMAP_PIN_OUTPUT | OMAP_MUX_MODE7), OMAP3_MUX(CAM_D11, OMAP_PIN_INPUT | OMAP_PIN_OFF_WAKEUPENABLE | OMAP_MUX_MODE4), OMAP3_MUX(CAM_D1, OMAP_PIN_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE | OMAP_MUX_MODE4), OMAP3_MUX(CAM_D2, OMAP_PIN_INPUT | OMAP_PIN_OFF_WAKEUPENABLE | OMAP_MUX_MODE4), OMAP3_MUX(CAM_D3, OMAP_PIN_OUTPUT | OMAP_MUX_MODE4), OMAP3_MUX(CAM_D4, OMAP_PIN_OUTPUT | OMAP_MUX_MODE7), OMAP3_MUX(CAM_D5, OMAP_PIN_OUTPUT | OMAP_MUX_MODE4), OMAP3_MUX(CAM_D6, OMAP_PIN_INPUT | OMAP_MUX_MODE0), OMAP3_MUX(CAM_D7, OMAP_PIN_INPUT | OMAP_MUX_MODE0), OMAP3_MUX(CAM_D8, OMAP_PIN_INPUT | OMAP_MUX_MODE0), OMAP3_MUX(CAM_D9, OMAP_PIN_INPUT | OMAP_MUX_MODE0), ... And then use the output for the struct omap_board_mux board_mux[] in your board-*.c files. For the common device init functions and omap_hwmod, we probably want to use the signal names. That allows more generic initialization of the internal devices, but some pins for sure still need to be muxed in a board specific way. Regards, Tony -- 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