9
0
Fork 0

mxs: Fix support for BITKEEPER() macro

There was no check for BE, so any BITKEEPER(1) iomux configurations
were not being applied.

Signed-off-by: Esben Haabendal <esben.haabendal@prevas.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Esben Haabendal 2012-03-26 19:29:04 +02:00 committed by Sascha Hauer
parent 20da230046
commit e62edd3de9
1 changed files with 6 additions and 0 deletions

View File

@ -128,6 +128,12 @@ void imx_gpio_mode(uint32_t m)
(GET_PULLUP(m) == 1 ? BIT_SET : BIT_CLR));
}
if (BK_PRESENT(m)) {
reg_offset = calc_pullup_reg(gpio_pin);
writel(0x1 << (gpio_pin % 32), IMX_IOMUXC_BASE + reg_offset +
(GET_BITKEEPER(m) == 1 ? BIT_SET : BIT_CLR));
}
if (GET_FUNC(m) == IS_GPIO) {
if (GET_GPIODIR(m) == 1) {
/* first set the output value */