195 lines
8.2 KiB
Plaintext
195 lines
8.2 KiB
Plaintext
/** @file
|
|
Setup menu definition for single THC controller.
|
|
|
|
@copyright
|
|
INTEL CONFIDENTIAL
|
|
Copyright 2021 Intel Corporation.
|
|
|
|
The source code contained or described herein and all documents related to the
|
|
source code ("Material") are owned by Intel Corporation or its suppliers or
|
|
licensors. Title to the Material remains with Intel Corporation or its suppliers
|
|
and licensors. The Material may contain trade secrets and proprietary and
|
|
confidential information of Intel Corporation and its suppliers and licensors,
|
|
and is protected by worldwide copyright and trade secret laws and treaty
|
|
provisions. No part of the Material may be used, copied, reproduced, modified,
|
|
published, uploaded, posted, transmitted, distributed, or disclosed in any way
|
|
without Intel's prior express written permission.
|
|
|
|
No license under any patent, copyright, trade secret or other intellectual
|
|
property right is granted to or conferred upon you by disclosure or delivery
|
|
of the Materials, either expressly, by implication, inducement, estoppel or
|
|
otherwise. Any license under such intellectual property rights must be
|
|
express and approved by Intel in writing.
|
|
|
|
Unless otherwise agreed by Intel in writing, you may not remove or alter
|
|
this notice or any other notice embedded in Materials by Intel or
|
|
Intel's suppliers or licensors in any way.
|
|
|
|
This file contains a 'Sample Driver' and is licensed as such under the terms
|
|
of your license agreement with Intel or your vendor. This file may be modified
|
|
by the user, subject to the additional terms of the license agreement.
|
|
|
|
@par Specification
|
|
**/
|
|
|
|
#include "SetupPreProcTools.hfr"
|
|
|
|
#if defined(THC_INDEX) && (THC_INDEX < PCH_MAX_THC_CONTROLLERS)
|
|
#if (THC_INDEX == 0)
|
|
oneof varid = PCH_SETUP.ThcPort0Assignment,
|
|
#endif
|
|
#if (THC_INDEX == 1)
|
|
oneof varid = PCH_SETUP.ThcPort1Assignment,
|
|
#endif
|
|
prompt = STRING_TOKEN(STR_THC_ASSIGNMENT_TITLE),
|
|
help = STRING_TOKEN(STR_THC_ASSIGNMENT_HELP),
|
|
option text = STRING_TOKEN(STR_THC_ASSIGNMENT_NONE), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
|
|
#if (THC_INDEX == 0)
|
|
option text = STRING_TOKEN(STR_THC_ASSIGNMENT_THC0), value = 1, flags = RESET_REQUIRED;
|
|
#endif
|
|
#if (THC_INDEX == 1)
|
|
option text = STRING_TOKEN(STR_THC_ASSIGNMENT_THC1), value = 2, flags = RESET_REQUIRED;
|
|
#endif
|
|
endoneof;
|
|
|
|
#if (THC_INDEX == 0)
|
|
suppressif ideqval PCH_SETUP.ThcPort0Assignment == 0x0;
|
|
oneof varid = PCH_SETUP.ThcPort0Clock,
|
|
#endif
|
|
#if (THC_INDEX == 1)
|
|
suppressif ideqval PCH_SETUP.ThcPort1Assignment == 0x0;
|
|
oneof varid = PCH_SETUP.ThcPort1Clock,
|
|
#endif
|
|
|
|
prompt = STRING_TOKEN(STR_THC_CLOCK_TITLE),
|
|
help = STRING_TOKEN(STR_THC_CLOCK_HELP),
|
|
option text = STRING_TOKEN(STR_THC_CLOCK_FUNC_TITLE), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
|
|
option text = STRING_TOKEN(STR_THC_CLOCK_DFX_TITLE), value = 1, flags = RESET_REQUIRED;
|
|
endoneof;
|
|
numeric varid = PCH_SETUP.ThcActiveLtr[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_ACTIVE_LTR_TITLE),
|
|
help = STRING_TOKEN(STR_THC_ACTIVE_LTR_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0xFFFFFFFF,
|
|
step = 1,
|
|
default = 0xFFFFFFFF,
|
|
endnumeric;
|
|
numeric varid = PCH_SETUP.ThcIdleLtr[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_IDLE_LTR_TITLE),
|
|
help = STRING_TOKEN(STR_THC_IDLE_LTR_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0xFFFFFFFF,
|
|
step = 1,
|
|
default = 0xFFFFFFFF,
|
|
endnumeric;
|
|
numeric varid = PCH_SETUP.ThcLimitPacketSize[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_LIMIT_PACKET_SIZE_TITLE),
|
|
help = STRING_TOKEN(STR_THC_LIMIT_PACKET_SIZE_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0x1,
|
|
step = 1,
|
|
default = 0,
|
|
endnumeric;
|
|
numeric varid = PCH_SETUP.ThcPerformanceLimitation[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_PERFORMANCE_LIMITATION_TITLE),
|
|
help = STRING_TOKEN(STR_THC_PERFORMANCE_LIMITATION_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0xFFFF,
|
|
step = 1,
|
|
default = 0,
|
|
endnumeric;
|
|
#if (THC_INDEX == 0)
|
|
oneof varid = PCH_SETUP.ThcPort0WakeOnTouch,
|
|
#endif
|
|
#if (THC_INDEX == 1)
|
|
oneof varid = PCH_SETUP.ThcPort1WakeOnTouch,
|
|
#endif
|
|
|
|
prompt = STRING_TOKEN(STR_THC_WAKE_TITLE),
|
|
help = STRING_TOKEN(STR_THC_WAKE_HELP),
|
|
option text = STRING_TOKEN(STR_DISABLED), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
|
|
option text = STRING_TOKEN(STR_ENABLED), value = 1, flags = RESET_REQUIRED;
|
|
endoneof;
|
|
oneof varid = PCH_SETUP.ThcMode[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_MODE_TITLE),
|
|
help = STRING_TOKEN(STR_THC_MODE_HELP),
|
|
option text = STRING_TOKEN(STR_THC_MODE_THC), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
|
|
option text = STRING_TOKEN(STR_THC_MODE_HID), value = 1, flags = RESET_REQUIRED;
|
|
endoneof;
|
|
suppressif ideqval PCH_SETUP.ThcMode[THC_INDEX] == 0x0;
|
|
numeric varid = PCH_SETUP.ThcHidConnectionSpeed[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_CONNECTION_SPEED_TITLE),
|
|
help = STRING_TOKEN(STR_THC_CONNECTION_SPEED_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_DEC,
|
|
minimum = 0,
|
|
maximum = 40000000,
|
|
step = 1,
|
|
default = 17000000,
|
|
endnumeric;
|
|
oneof varid = PCH_SETUP.ThcHidFlags[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_FLAGS_TITLE),
|
|
help = STRING_TOKEN(STR_THC_FLAGS_HELP),
|
|
option text = STRING_TOKEN(STR_THC_FLAGS_SINLGE), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
|
|
option text = STRING_TOKEN(STR_THC_FLAGS_DUAL), value = 0x4000, flags = RESET_REQUIRED;
|
|
option text = STRING_TOKEN(STR_THC_FLAGS_QUAD), value = 0x8000, flags = RESET_REQUIRED;
|
|
endoneof;
|
|
numeric varid = PCH_SETUP.ThcHidInputReportBodyAddress[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_INPUT_REPORT_BODY_ADDRESS_TITLE),
|
|
help = STRING_TOKEN(STR_THC_INPUT_REPORT_BODY_ADDRESS_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0xFFFFFFFF,
|
|
step = 1,
|
|
default = 0,
|
|
endnumeric;
|
|
numeric varid = PCH_SETUP.ThcHidInputReportHeaderAddress[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_INPUT_REPORT_HEADER_ADDRESS_TITLE),
|
|
help = STRING_TOKEN(STR_THC_INPUT_REPORT_HEADER_ADDRESS_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0xFFFFFFFF,
|
|
step = 1,
|
|
default = 0,
|
|
endnumeric;
|
|
numeric varid = PCH_SETUP.ThcHidOutputReportAddress[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_OUTPUT_REPORT_ADDRESS_TITLE),
|
|
help = STRING_TOKEN(STR_THC_OUTPUT_REPORT_ADDRESS_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0xFFFFFFFF,
|
|
step = 1,
|
|
default = 0,
|
|
endnumeric;
|
|
numeric varid = PCH_SETUP.ThcHidWriteOpcode[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_WRITE_OPCODE_TITLE),
|
|
help = STRING_TOKEN(STR_THC_WRITE_OPCODE_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0xFFFFFFFF,
|
|
step = 1,
|
|
default = 0,
|
|
endnumeric;
|
|
numeric varid = PCH_SETUP.ThcHidReadOpcode[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_READ_OPCODE_TITLE),
|
|
help = STRING_TOKEN(STR_THC_READ_OPCODE_HELP),
|
|
flags = RESET_REQUIRED | DISPLAY_UINT_HEX,
|
|
minimum = 0,
|
|
maximum = 0xFFFFFFFF,
|
|
step = 1,
|
|
default = 0,
|
|
endnumeric;
|
|
oneof varid = PCH_SETUP.ThcHidResetPadTrigger[THC_INDEX],
|
|
prompt = STRING_TOKEN(STR_THC_RESET_PAD_TRIGGER_TITLE),
|
|
help = STRING_TOKEN(STR_THC_RESET_PAD_TRIGGER_HELP),
|
|
option text = STRING_TOKEN(STR_THC_RESET_PAD_TRIGGER_LOW), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
|
|
option text = STRING_TOKEN(STR_THC_RESET_PAD_TRIGGER_HIGH), value = 1, flags = RESET_REQUIRED;
|
|
endoneof;
|
|
endif;
|
|
endif;
|
|
#endif
|
|
|