Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 The Chromium OS Authors. All rights reserved. |
| 5 | * |
| 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. |
| 9 | * |
| 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. |
Stefan Reinauer | b7ecf6d | 2013-03-13 17:13:32 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef STOUT_EC_H |
| 17 | #define STOUT_EC_H |
| 18 | |
| 19 | #define EC_SCI_GPI 6 /* GPIO6 is EC_SCI# */ |
| 20 | #define EC_SMI_GPI 1 /* GPIO1 is EC_SMI# */ |
| 21 | |
| 22 | #define EC_SMI_LID_CLOSED 0x2B |
| 23 | |
| 24 | #ifndef __ACPI__ |
| 25 | extern void stout_ec_init(void); |
| 26 | #endif |
| 27 | |
| 28 | #ifdef __SMM__ |
| 29 | void stout_ec_finalize_smm(void); |
| 30 | #endif |
| 31 | |
| 32 | #endif // STOUT_EC_H |