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:
Andres Salomon 2008-04-29 00:59:53 -07:00 • committed by Linus Torvalds
commit 3ef0e1f8ca
10 changed files with 736 additions and 3 deletions

View file

@ -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);