[U-Boot] (G)PIO access trends, architecture independant solutions?
Reinhard Meyer
u-boot at emk-elektronik.de
Thu Aug 12 00:02:06 CEST 2010
Hello all,
recently a patch for soft-i2c has been accepted that uses gpio_* functions.
Supposedly they are generic, but grep-ing shows that such functions
only exist in the nios2 architecture.
Every architecture seems to have their own similiar but not identical way
for gpio access. At91 even has two ways where the IMHO better way is
depreciated...
The better way IMHO is when Port and Bit are together in one parameter.
I also like the possibility of some solutions to 'request' a pin.
So, before potentially reworking the at91 solution(s), I'd like to have some
input/insight if there is a tendency towards a generalization across all
architectures?
Ideally, that could start with introducing a "gpio.h" header file outside an
architecture specific path.
Naturally, the multitude of designs of GPIO ports might make it difficult to
unify the access functions...
Reinhard
More information about the U-Boot
mailing list