tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

New header for GPIO-like definitions



Hi all,

I'm adding a driver and hardware-specific properties for GPIO's (which pins
control LED's, which control sensors, etc).  I need to be able to pass the
pin information from the arch-specific configuration to the MI driver.  I'd
like to add a new dev/gpio/gpiotypes.h, so that I can share the defintions
between the MI and MD code, e.g.:

  #define GPIO_PIN_LED    0x01
  #define GPIO_PIN_SENSOR 0x02

Does this seem reasonable, or is there a better way to do this?

Regards,

Julian


Home | Main Index | Thread Index | Old Index