mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 19:04:59 +00:00
it83xx: Add a config option for enabling mouse LDN
Not all boards using ITE83XX use mouse LDN. This change adds a config option to allow boards to explicity enable this device. Currently, this device is enabled only for glkrvp_ite and it83xx_evb. It is disabled for reef_ite and bip. Change-Id: I7149fd0cb35cc9f49f2b7b80f6c2deefe2edda55 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/1070785 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Dino Li <dino.li@ite.corp-partner.google.com>
This commit is contained in:
committed by
chrome-bot
parent
c25b78ae02
commit
1910779d41
@@ -101,6 +101,7 @@
|
||||
#define CONFIG_VSTORE_SLOT_COUNT 1
|
||||
|
||||
/* Optional feature - used by ITE */
|
||||
#define CONFIG_IT83XX_ENABLE_MOUSE_DEVICE
|
||||
#define CONFIG_IT83XX_FLASH_CLOCK_48MHZ
|
||||
|
||||
/* I2C ports */
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#define CONFIG_FANS 1
|
||||
#define CONFIG_I2C
|
||||
#define CONFIG_I2C_MASTER
|
||||
#define CONFIG_IT83XX_ENABLE_MOUSE_DEVICE
|
||||
#define CONFIG_IT83XX_SMCLK2_ON_GPC7
|
||||
#define CONFIG_KEYBOARD_BOARD_CONFIG
|
||||
#define CONFIG_KEYBOARD_PROTOCOL_8042
|
||||
|
||||
@@ -45,6 +45,7 @@ static const struct ec2i_t keyboard_settings[] = {
|
||||
{HOST_INDEX_LDA, 0x01},
|
||||
};
|
||||
|
||||
#ifdef CONFIG_IT83XX_ENABLE_MOUSE_DEVICE
|
||||
static const struct ec2i_t mouse_settings[] = {
|
||||
/* Select logical device 05h(mouse) */
|
||||
{HOST_INDEX_LDN, LDN_KBC_MOUSE},
|
||||
@@ -53,6 +54,7 @@ static const struct ec2i_t mouse_settings[] = {
|
||||
/* Enable logical device */
|
||||
{HOST_INDEX_LDA, 0x01},
|
||||
};
|
||||
#endif
|
||||
|
||||
static const struct ec2i_t pm1_settings[] = {
|
||||
/* Select logical device 11h(PM1 ACPI) */
|
||||
@@ -297,7 +299,9 @@ static void pnpcfg_init(void)
|
||||
IT83XX_EC2I_LSIOHA |= 0x3;
|
||||
|
||||
PNPCFG(keyboard);
|
||||
#ifdef CONFIG_IT83XX_ENABLE_MOUSE_DEVICE
|
||||
PNPCFG(mouse);
|
||||
#endif
|
||||
PNPCFG(pm1);
|
||||
PNPCFG(pm2);
|
||||
PNPCFG(smfi);
|
||||
|
||||
@@ -1817,6 +1817,9 @@
|
||||
/* Number of IRQs supported on the EC chip */
|
||||
#undef CONFIG_IRQ_COUNT
|
||||
|
||||
/* Enable LDN for KBC mouse */
|
||||
#undef CONFIG_IT83XX_ENABLE_MOUSE_DEVICE
|
||||
|
||||
/*
|
||||
* The IT8320 supports e-flash clock up to 48 MHz (IT8390 maximum is 32 MHz).
|
||||
* Enable it if we want better performance of fetching instruction from e-flash.
|
||||
|
||||
Reference in New Issue
Block a user