Query on new mux usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I am trying to define the mux settings for keypad on the omap3evm.
I had a few queries on the same.
 
1) Is it enough to me this change:
 
 static struct omap_board_mux board_mux[] __initdata = {
+
+       /* SYS_NIRQ */
+       OMAP3_MUX(SYS_NIRQ, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP |
+						OMAP_PIN_OFF_INPUT_PULLUP),
+
 	{ .reg_offset = OMAP_MUX_TERMINATOR },

2) Or should I follow with this (in the evm init code):
 
+	omap_mux_init_signal("af26", OMAP_PIN_INPUT_PULLUP |
+						OMAP_PIN_OFF_INPUT_PULLUP);

3) OR is this a better(or worse)

 static struct omap_board_mux board_mux[] __initdata = {
+
+       /* SYS_NIRQ */
+       OMAP3_MUX(SYS_NIRQ, OMAP_MUX_MODE0),
+
 	{ .reg_offset = OMAP_MUX_TERMINATOR },

..and later
 
+	omap_mux_init_signal("af26", OMAP_PIN_INPUT_PULLUP |
+						OMAP_PIN_OFF_INPUT_PULLUP);

Best regards,
Sanjeev
--
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

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux