Edward O'Callaghan | 32960e3 | 2014-11-23 17:38:52 +1100 | [diff] [blame] | 1 | /* |
Martin Roth | b28f466 | 2018-05-26 17:58:47 -0600 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Edward O'Callaghan | 32960e3 | 2014-11-23 17:38:52 +1100 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2014 Alexandru Gagniuc <mr.nuke.me@gmail.com> |
Martin Roth | b28f466 | 2018-05-26 17:58:47 -0600 | [diff] [blame] | 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, or (at your |
| 9 | * option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | /* |
| 18 | * "The way things are connected" and a few setup options |
Edward O'Callaghan | 32960e3 | 2014-11-23 17:38:52 +1100 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #ifndef _MAINBOARD_LENOVO_G505S_MAINBOARD_H |
| 22 | #define _MAINBOARD_LENOVO_G505S_MAINBOARD_H |
| 23 | |
| 24 | /* What is connected to GEVENT pins */ |
| 25 | #define EC_SCI_GEVENT 3 |
| 26 | #define EC_LID_GEVENT 22 |
| 27 | #define EC_SMI_GEVENT 23 |
| 28 | #define PCIE_GEVENT 8 |
| 29 | |
| 30 | /* Any GEVENT pin can be mapped to any GPE. We try to keep the mapping 1:1, but |
| 31 | * we make the distinction between GEVENT pin and SCI. |
| 32 | */ |
| 33 | #define EC_SCI_GPE EC_SCI_GEVENT |
| 34 | #define EC_LID_GPE EC_LID_GEVENT |
| 35 | #define PME_GPE 0x0b |
| 36 | #define PCIE_GPE 0x18 |
| 37 | |
Edward O'Callaghan | a23036c | 2014-12-05 22:46:02 +1100 | [diff] [blame] | 38 | /* Enable PS/2 Keyboard and Mouse */ |
| 39 | #define SIO_EC_ENABLE_PS2K |
| 40 | |
Edward O'Callaghan | 32960e3 | 2014-11-23 17:38:52 +1100 | [diff] [blame] | 41 | #endif /* _MAINBOARD_LENOVO_G505S_MAINBOARD_H */ |