Hi all,
I'm working on AM1808 EVM from LogicPD
From within
board/davinci/da8xxevm/da850evm.c
I can toggle GP2[6] high or low using the existing code, but I cannot do the same for GP2[12]. Why ?
After having done the following, the pin 25 of J30 still remain to logic level 1 !
int mycode(void)
{
const struct pinmux_config gpio_pins[] = {
{ pinmux(5), 8, 3 },
};
u32 val;
/* PinMux for GPIO */
if (davinci_configure_pin_mux(gpio_pins, ARRAY_SIZE(gpio_pins)) != 0)
return 1;
/* Set the GPIO direction as output */
clrbits_be32((u32 *)GPIO_BANK2_REG_DIR_ADDR, (0x01 << 12));
/* Set the output as low */
val = readl(GPIO_BANK2_REG_CLR_ADDR);
val |= (0x01 << 12);
writel(val, GPIO_BANK2_REG_CLR_ADDR);
return 0;
}
Thanks,
Gabriele