summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-05 13:40:33 -0500
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-20 21:33:39 +0200
commitc4e7db51fc83b99c43b25a8f698a9d007ed45dc6 (patch)
tree13989a52811b8ba7e46c9f4ab52dfec4a288cf80 /src/mainboard
parenta9a366171006aad3b928307c2dfb7b3e7793d4ef (diff)
downloadcoreboot-c4e7db51fc83b99c43b25a8f698a9d007ed45dc6.tar.xz
hp/pavilion_m6_1035dx: Add GEVENT to GPE SCI mapping table
Each GEVENT pins can be mapped to a specific GPE via the SCI map. The default mapping is not appropriate for this laptop, so use the AGESA functionality to map currently known events. Change-Id: Ifa50bf000cfc8e77a6a4d84752f89838f165f7a0 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5548 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c11
-rw-r--r--src/mainboard/hp/pavilion_m6_1035dx/mainboard.h2
2 files changed, 12 insertions, 1 deletions
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c b/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
index aa223cc567..cf9ac4fab4 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
+++ b/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
@@ -33,6 +33,8 @@
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
*/
+#include "mainboard.h"
+
#include <vendorcode/amd/agesa/f15tn/AGESA.h>
/* Include the files that instantiate the configuration definitions. */
@@ -371,6 +373,15 @@ GPIO_CONTROL pavilion_m6_1035dx_gpio[] = {
};
#define BLDCFG_FCH_GPIO_CONTROL_LIST (&pavilion_m6_1035dx_gpio[0])
+
+#define GEVENT_PIN(gpe) ((gpe) + 0x40)
+
+SCI_MAP_CONTROL m6_1035dx_sci_map[] = {
+ {GEVENT_PIN( EC_SCI_GEVENT ), EC_SCI_GPE},
+ {GEVENT_PIN( EC_LID_GEVENT ), EC_LID_GPE}, /* EC_SMI - GPE23 */
+};
+#define BLDCFG_FCH_SCI_MAP_LIST (&m6_1035dx_sci_map[0])
+
// The following definitions specify the default values for various parameters in which there are
// no clearly defined defaults to be used in the common file. The values below are based on product
// and BKDG content, please consult the AGESA Memory team for consultation.
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/mainboard.h b/src/mainboard/hp/pavilion_m6_1035dx/mainboard.h
index 1e69cc9134..bbf9c43974 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/mainboard.h
+++ b/src/mainboard/hp/pavilion_m6_1035dx/mainboard.h
@@ -17,6 +17,6 @@
* we make the distinction between GEVENT pin and SCI.
*/
#define EC_SCI_GPE EC_SCI_GEVENT
-
+#define EC_LID_GPE EC_LID_GEVENT
#endif /* _MAINBOARD_HP_PAVILION_M6_1035DX_MAINBOARD_H */