Platform: OLPC: Move EC-specific functionality out from x86
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 13 May 2019 07:56:34 +0000 (09:56 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 May 2019 14:27:08 +0000 (17:27 +0300)
commitec9964b4803300fb86f8e8fd9b421e59f7a71dc5
tree5c770c4005c99a13f1dfb87f9a2c4ca4d99cf9c9
parent2dc78630497780b36975e5bcb69bbbf4d2ee0e46
Platform: OLPC: Move EC-specific functionality out from x86

Move the olpc-ec driver away from the X86 OLPC platform so that it could be
used by the ARM based laptops too. Notably, the driver for the OLPC battery,
which is also used on the ARM models, builds on this driver's interface.

It is actually plaform independent: the OLPC EC commands with their argument
and responses are mostly the same despite the delivery mechanism is
different.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
arch/x86/include/asm/olpc.h
arch/x86/platform/olpc/olpc.c
drivers/platform/olpc/olpc-ec.c
drivers/power/supply/olpc_battery.c
include/linux/olpc-ec.h