tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / samsung / lumpy / ec.c
blob708031c8f1c2ca5b5260c1108b3558db4d15b229
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 The Chromium OS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <arch/acpi.h>
17 #include <types.h>
18 #include <console/console.h>
19 #include <ec/smsc/mec1308/ec.h>
20 #include "ec.h"
22 void lumpy_ec_init(void)
24 printk(BIOS_DEBUG, "lumpy_ec_init\n");
26 if (acpi_is_wakeup_s3())
27 return;
30 * Enable EC control of fan speed.
32 * This will be changed to OS control in ACPI EC _REG
33 * method when the OS is ready to control the fan.
35 ec_write(EC_FAN_SPEED, 0);
37 send_ec_command_data(EC_BATTERY_MODE, EC_BATTERY_MODE_NORMAL);
38 send_ec_command_data(EC_POWER_BUTTON_MODE, EC_POWER_BUTTON_MODE_OS);