linux/drivers/platform
Andres Salomon 3d26c20bae Platform: OLPC: allow EC cmd to be overridden, and create a workqueue to call it
This provides a new API allows different OLPC architectures to override the
EC driver.  x86 and ARM OLPC machines use completely different EC backends.

The olpc_ec_cmd is synchronous, and waits for the workqueue to send the
command to the EC.  Multiple callers can run olpc_ec_cmd() at once, and
they will by serialized and sleep while only one executes on the EC at a time.

We don't provide an unregister function, as that doesn't make sense within
the context of OLPC machines - there's only ever 1 EC, it's critical to
functionality, and it certainly not hotpluggable.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: Paul Fox <pgf@laptop.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
2012-07-31 23:27:30 -04:00
..
olpc Platform: OLPC: allow EC cmd to be overridden, and create a workqueue to call it 2012-07-31 23:27:30 -04:00
x86 drivers: OLPC: update various drivers to include olpc-ec.h 2012-07-31 23:27:29 -04:00
Kconfig Kconfig: Remove useless and sometimes wrong comments 2009-11-09 09:40:56 +01:00
Makefile Platform: OLPC: add a stub to drivers/platform/ for the OLPC EC driver 2012-07-31 23:27:29 -04:00