Incorrect use of GP*CFG

Werner Almesberger werner at openmoko.org
Tue Feb 17 11:16:52 CET 2009


Hi Balaji,

I found a little fun non-problem today: we often set GPIO2CFG and
GPOCFG to 1 when we want to output a "1", but we should actually
set it to 7 alias PCF50633_GPOCFG_GPOSEL_1.

This doesn't seem to cause any actual trouble, but then, you
never know.

By the way, when tracking down such things, you may find this
script useful:
http://svn.openmoko.org/developers/werner/bin/gg

It uses git-grep to find all occurrences of the search expression,
displays them, and then launches vi to edit/view the files, with
vi searching for the same expression.

Usage e.g.,
gg pcf50633_gpio_set

- Werner



More information about the openmoko-kernel mailing list