gpio_k64.c: configure pins as gpio alternate function in gpio_k64_configure()
Change-Id: I653602abeb99d4baf379e6175558c19c05678567 Signed-off-by: uLipe <ryukokki.felipe@gmail.com>
This commit is contained in:
parent
798e2cf0a8
commit
adaeba2fa6
1 changed files with 4 additions and 2 deletions
|
@ -116,7 +116,8 @@ static int gpio_k64_config(struct device *dev,
|
|||
value &= ~K64_PINMUX_INT_MASK;
|
||||
}
|
||||
|
||||
value |= setting;
|
||||
/* Pins must configured as gpio */
|
||||
value |= (setting | K64_PINMUX_FUNC_GPIO);
|
||||
|
||||
sys_write32(value, (cfg->port_base_addr +
|
||||
K64_PINMUX_CTRL_OFFSET(pin)));
|
||||
|
@ -133,7 +134,8 @@ static int gpio_k64_config(struct device *dev,
|
|||
value &= ~K64_PINMUX_INT_MASK;
|
||||
}
|
||||
|
||||
value |= setting;
|
||||
/* Pins must configured as gpio */
|
||||
value |= (setting | K64_PINMUX_FUNC_GPIO);
|
||||
|
||||
sys_write32(value, (cfg->port_base_addr +
|
||||
K64_PINMUX_CTRL_OFFSET(i)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue