I'm customizing the pinmux setup for our board which uses an AM3354 and came across a mystery. In datasheet SPRS717D, pg 26, GPMC_BEn1 shows gpmc_dir selectable with mode 4. However, arch/arm/mach-opmap2/mux33xx.c shows:
_AM33XX_MUXENTRY(GPMC_BEN1, 0, "gpmc_ben1", "mii2_col", NULL, "mmc2_dat3", NULL, NULL, "mcasp0_aclkr", "gpio1_28"),
SPRS717D lists all 8 possible modes, but mux33xx.c doesn't define modes 2, 4, and 5. The mode I want, mode 4/gmpc_dir is not listed. My kernel is based on linux-3.2.0-psp04.06.00.10. Why aren't all the modes listed? Are there any side-effects if I add gmpc_dir to the _AM33XX_MUXENTRY(GPMC_BEN1?
Also, while using the pinmux utility, I noticed that selecting GPMC_CSN2/GPMC_CSN2 along with GPMC_BEN1/GPMC_DIR causes an IO violation. As a workaround, I am using GPMC_CSN3 instead. I didn't notice anything in the spec why this combination is illegal, so I am curious why.