mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
x86: olpc: add One Laptop Per Child architecture support
This adds support for OLPC XO hardware. Open Firmware on XOs don't contain the VSA, so it is necessary to emulate the PCI BARs in the kernel. This also adds functionality for running EC commands, and a CONFIG_OLPC. A number of OLPC drivers depend upon CONFIG_OLPC. olpc_ec_timeout is a hack to work around Embedded Controller bugs. [[email protected]: build fix] [[email protected]: geode_has_vsa build fix] [[email protected]: olpc_register_battery_callback doesn't exist] Signed-off-by: Andres Salomon <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Jordan Crouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2f9b12a31f
commit
3ef0e1f8ca
10 changed files with 736 additions and 3 deletions
|
|
@ -315,7 +315,6 @@ static int __init olpc_bat_init(void)
|
|||
if (ret)
|
||||
goto battery_failed;
|
||||
|
||||
olpc_register_battery_callback(&olpc_battery_trigger_uevent);
|
||||
goto success;
|
||||
|
||||
battery_failed:
|
||||
|
|
@ -328,7 +327,6 @@ success:
|
|||
|
||||
static void __exit olpc_bat_exit(void)
|
||||
{
|
||||
olpc_deregister_battery_callback();
|
||||
power_supply_unregister(&olpc_bat);
|
||||
power_supply_unregister(&olpc_ac);
|
||||
platform_device_unregister(bat_pdev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue