blob: 7beb342da9ab765d7fa11cab0125e78b894d6d79 [file] [log] [blame]
Edward O'Callaghan32960e32014-11-23 17:38:52 +11001/*
Martin Rothb28f4662018-05-26 17:58:47 -06002 * This file is part of the coreboot project.
Edward O'Callaghan32960e32014-11-23 17:38:52 +11003 *
4 * Copyright (C) 2014 Alexandru Gagniuc <mr.nuke.me@gmail.com>
Martin Rothb28f4662018-05-26 17:58:47 -06005 *
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'Callaghan32960e32014-11-23 17:38:52 +110019 */
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'Callaghana23036c2014-12-05 22:46:02 +110038/* Enable PS/2 Keyboard and Mouse */
39#define SIO_EC_ENABLE_PS2K
40
Edward O'Callaghan32960e32014-11-23 17:38:52 +110041#endif /* _MAINBOARD_LENOVO_G505S_MAINBOARD_H */