Quote:
Originally Posted by bastl
GPIO support in the kernel should controll it.
The driver (LKM) should support the connected device.
A driver don't have to know at which pin the device is connected to.
|
Thanks. searching in that direction led me to
this and i found what i was looking for in the board's .c file and pin multiplexing in mux.h header file. the pins are defined as
#define pin_name <pin_number>
in the board.c file. So my new question is are the pins defined in the above mentioned file used to develop the drivers? like
if (pin_name == 1){....code};
else{..code};
is that how drivers work irrespective of how the device is connected?