frdm_k64f: hexiwear_k64: Fix accel interrupt pinmux settings

The k64 gpio driver quietly initializes the pinmux to force the pin to
be a gpio, regardless of the setting defined by the board's pinmux
table, or even if the pin was not in the pinmux table.

This behavior caused the accelerometer interrupt pin to be incorrectly
defined in the frdm_k64f and hexiwear_k64 pinmux tables.

Change-Id: If46df0e051452fef291d5ad5cdff56463d5f465e
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2016-12-14 15:45:29 -06:00 committed by Kumar Gala
parent b4254444a8
commit c070aa74dd
2 changed files with 5 additions and 2 deletions

View file

@ -57,6 +57,9 @@ static int frdm_k64f_pinmux_init(struct device *dev)
/* SW2 / FXOS8700 INT1 */
pinmux_pin_set(portc, 6, PORT_PCR_MUX(kPORT_MuxAsGpio));
/* FXOS8700 INT2 */
pinmux_pin_set(portc, 13, PORT_PCR_MUX(kPORT_MuxAsGpio));
/* SW3 */
pinmux_pin_set(porta, 4, PORT_PCR_MUX(kPORT_MuxAsGpio));

View file

@ -55,8 +55,8 @@ static int hexiwear_k64_pinmux_init(struct device *dev)
pinmux_pin_set(portc, 11, PORT_PCR_MUX(kPORT_MuxAlt2)
| PORT_PCR_ODE_MASK);
#endif
/* FXOS8700 INT1 */
pinmux_pin_set(portc, 1, PORT_PCR_MUX(kPORT_MuxAsGpio));
/* FXOS8700 INT2 */
pinmux_pin_set(portd, 13, PORT_PCR_MUX(kPORT_MuxAsGpio));
#ifdef CONFIG_UART_K20_PORT_0
/* UART0 RX, TX */