hp/pavilion_m6_1035dx: Move GEVENT/GPE definitions to common file
These definitions were scattered in a couple of files, and we risk scattering them all over the place. Provide a common file for these definitions. Change-Id: I1fe99e5097cf10a349661f3b2ae2377f5cdd6103 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5547 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
@@ -3,10 +3,8 @@
|
|||||||
* Subject to the GNU GPL v2, or (at your option) any later version.
|
* Subject to the GNU GPL v2, or (at your option) any later version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/* Defines EC bits specific to the mainboard, needed by EC ASL */
|
||||||
* EC bits specific to the mainboard
|
#include "mainboard.h"
|
||||||
*/
|
|
||||||
#define EC_SCI_GPE 3
|
|
||||||
|
|
||||||
/* ACPI code for EC functions */
|
/* ACPI code for EC functions */
|
||||||
#include <ec/compal/ene932/acpi/ec.asl>
|
#include <ec/compal/ene932/acpi/ec.asl>
|
||||||
|
@@ -6,8 +6,7 @@
|
|||||||
#ifndef _MAINBOARD_HP_PAVILION_M6_1035DX_EC_H
|
#ifndef _MAINBOARD_HP_PAVILION_M6_1035DX_EC_H
|
||||||
#define _MAINBOARD_HP_PAVILION_M6_1035DX_EC_H
|
#define _MAINBOARD_HP_PAVILION_M6_1035DX_EC_H
|
||||||
|
|
||||||
#define EC_SMI_GEVENT 23
|
#include "mainboard.h"
|
||||||
#define EC_LID_GEVENT 22
|
|
||||||
|
|
||||||
#ifndef __SMM__
|
#ifndef __SMM__
|
||||||
void pavilion_m6_1035dx_ec_init(void);
|
void pavilion_m6_1035dx_ec_init(void);
|
||||||
|
22
src/mainboard/hp/pavilion_m6_1035dx/mainboard.h
Normal file
22
src/mainboard/hp/pavilion_m6_1035dx/mainboard.h
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* "The way things are connected" and a few setup options
|
||||||
|
*
|
||||||
|
* Copyright (C) 2014 Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
||||||
|
* Subject to the GNU GPL v2, or (at your option) any later version.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _MAINBOARD_HP_PAVILION_M6_1035DX_MAINBOARD_H
|
||||||
|
#define _MAINBOARD_HP_PAVILION_M6_1035DX_MAINBOARD_H
|
||||||
|
|
||||||
|
/* What is connected to GEVENT pins */
|
||||||
|
#define EC_SCI_GEVENT 3
|
||||||
|
#define EC_LID_GEVENT 22
|
||||||
|
#define EC_SMI_GEVENT 23
|
||||||
|
|
||||||
|
/* Any GEVENT pin can be mapped to any GPE. We try to keep the mapping 1:1, but
|
||||||
|
* we make the distinction between GEVENT pin and SCI.
|
||||||
|
*/
|
||||||
|
#define EC_SCI_GPE EC_SCI_GEVENT
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _MAINBOARD_HP_PAVILION_M6_1035DX_MAINBOARD_H */
|
Reference in New Issue
Block a user