ec/google/chromeec/acpi: Rename EC_ENABLE_TABLET_EVENT config

Rename EC_ENABLE_TABLET_EVENT config as EC_ENABLE_MULTIPLE_DPTF_PROFILES
since it aligns with the use-case.

BUG=b:118149364
BRANCH=None
TEST=Ensured that the expected DPTF table are loaded in different
modes (base attached/detached and clamshell/360-flipped) on Soraka and
Nautilus.

Change-Id: If147f1c79ceaaed00e17ec80ec6c912a8f7a8c2e
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/29261
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
This commit is contained in:
Karthikeyan Ramasubramanian 2018-11-14 08:53:01 -07:00 committed by Furquan Shaikh
parent b6892969cb
commit 017b5c453a
7 changed files with 10 additions and 10 deletions

View File

@ -371,7 +371,7 @@ Device (EC0)
{
Store ("EC: TABLET mode switch Event", Debug)
Notify (CREC, 0x2)
#ifdef EC_ENABLE_TABLET_EVENT
#ifdef EC_ENABLE_MULTIPLE_DPTF_PROFILES
\_SB.DPTF.TPET()
#endif
#ifdef EC_ENABLE_TBMC_DEVICE

View File

@ -21,7 +21,7 @@
#include <ec/google/chromeec/ec_commands.h>
#include <variant/ec.h>
#ifdef EC_ENABLE_TABLET_EVENT
#ifdef EC_ENABLE_MULTIPLE_DPTF_PROFILES
#define MAINBOARD_EC_SCI_EVENTS \
(EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\

View File

@ -13,5 +13,5 @@
* GNU General Public License for more details.
*/
/* EC ENABLE TABLET EVENT */
#define EC_ENABLE_TABLET_EVENT
/* EC ENABLE MULTIPLE DPTF PROFILES */
#define EC_ENABLE_MULTIPLE_DPTF_PROFILES

View File

@ -19,5 +19,5 @@
/* Enable EC backed Keyboard Backlight in ACPI */
#define EC_ENABLE_KEYBOARD_BACKLIGHT
/* EC ENABLE TABLET EVENT */
#define EC_ENABLE_TABLET_EVENT
/* EC ENABLE MULTIPLE DPTF PROFILES */
#define EC_ENABLE_MULTIPLE_DPTF_PROFILES

View File

@ -71,7 +71,7 @@
/* Enable LID switch and provide wake pin for EC */
#define EC_ENABLE_LID_SWITCH
#define EC_ENABLE_WAKE_PIN GPE_EC_WAKE
#define EC_ENABLE_TABLET_EVENT
#define EC_ENABLE_MULTIPLE_DPTF_PROFILES
#define EC_ENABLE_TBMC_DEVICE
#define SIO_EC_MEMMAP_ENABLE /* EC Memory Map Resources */

View File

@ -18,6 +18,6 @@
#include <baseboard/ec.h>
#define EC_ENABLE_TABLET_EVENT /* Tablet event to support DPTF */
#define EC_ENABLE_MULTIPLE_DPTF_PROFILES /* Config for multi-DPTF profiles */
#endif /* __MAINBOARD_EC_H__ */

View File

@ -82,13 +82,13 @@ Method (TPET)
*/
Method (DTRP, 2, Serialized)
{
#ifdef EC_ENABLE_TABLET_EVENT
#ifdef EC_ENABLE_MULTIPLE_DPTF_PROFILES
If (LEqual (\_SB.PCI0.LPCB.EC0.RCTM, One)) {
Return (CTOK (Arg0))
} Else {
#endif
Return (CTOK (Arg1))
#ifdef EC_ENABLE_TABLET_EVENT
#ifdef EC_ENABLE_MULTIPLE_DPTF_PROFILES
}
#endif
}