Hi Mark,

Have you had any time to look further at the sxipio driver changes required
for H3 devices?  As you noted in an earlier email, the H3 device initializes
the configuration registers to all 1s, in contrast to the A10 devices where
the registers are set to 0.  Thus the A10 pins are set to input (0) while
the H3 pins are set to a new status called disabled (7) in the
documentation.

To make my system work I have simply added a line:
if(mux == 7) mux = 0;

to the  sxipio_attach_gpio function:

                /* Get pin configuration. */
                reg = SXIREAD4(sc, SXIPIO_CFG(port, pin));
                off = (pin & 0x7) << 2;
                mux = (reg >> off) & 0x7;

if(mux == 7) mux = 0;

Could you formalize and bless this change?

Reply via email to