lm4: allow the lpc module to use GPIO for SCI

The LPC module has a dedicated control for SCI#.
However, certain situations require a dedicated
GPIO for asserting the SCI# signal.

Introduce CONFIG_SCI_GPIO to meet this requirement.

BUG=chrome-os-partner:24003
BRANCH=None
TEST=Built and booted rambi with dependency change. 'lidclose' and
     'lidopen' cause ACPI interrupts.

Change-Id: I34c5f0ba5ff60151972921f251c71d3769a9ef8b
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/176804
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Aaron Durbin
2013-11-14 16:28:37 -06:00
committed by chrome-internal-fetch
parent 4b59746600
commit 83ec930b36
2 changed files with 9 additions and 0 deletions

View File

@@ -141,7 +141,13 @@ static void lpc_generate_smi(void)
*/
static void lpc_generate_sci(void)
{
#ifdef CONFIG_SCI_GPIO
gpio_set_level(CONFIG_SCI_GPIO, 0);
udelay(65);
gpio_set_level(CONFIG_SCI_GPIO, 1);
#else
LM4_LPC_LPCCTL |= LM4_LPC_SCI_START;
#endif
if (host_events & event_mask[LPC_HOST_EVENT_SCI])
CPRINTF("[%T sci 0x%08x]\n",

View File

@@ -588,6 +588,9 @@
*/
#undef CONFIG_SAVE_VBOOT_HASH
/* Allow the board to use a GPIO for the SCI# signal. */
#undef CONFIG_SCI_GPIO
/* Support SPI interfaces */
#undef CONFIG_SPI