Hi,
While working with the CPLD I found wrong behaviour after the function davinci_cfg_reg is called. After hours of experimenting I found the reason. It was wrong condition used in the arch/arm/mach-davinci/mux.c
/* Check the PinMux register in question */
if (cfg->mux_reg)
should be replaced with
if (cfg->mask)
This is fixed in GIT since March 2009 (!), but not in Montavista kernel.
See patch:
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg10667.html
Thank You
Juraj