stm32l: fix Daisy GPIO declaration

The order of the GPIO in the header was not matching the signal list.
EC_INT is an output to trigger an interrupt on the application
processor.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BUG=None
TEST=make BOARD=daisy

Change-Id: Ib0eb675ad7d7e9e105b1d486c181a6df9bd5ad9b
This commit is contained in:
Vincent Palatin
2012-02-15 17:24:38 +00:00
parent 8236345574
commit 359b9eebab
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,6 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
{"PP1800_LDO2", GPIO_A, (1<<1), GPIO_INT_BOTH, NULL},
{"XPSHOLD", GPIO_A, (1<<11), GPIO_INT_RISING, NULL},
{"CHARGER_INT", GPIO_B, (1<<0), GPIO_INT_RISING, NULL},
{"EC_INT", GPIO_B, (1<<9), GPIO_INT_RISING, NULL},
{"LID_OPEN", GPIO_C, (1<<13), GPIO_INT_BOTH, NULL},
/* Other inputs */
/* Outputs */
@@ -27,6 +26,7 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
{"PMIC_ACOK", GPIO_A, (1<<12), GPIO_OUT_LOW, NULL},
{"ENTERING_RW", GPIO_B, (1<<1), GPIO_OUT_LOW, NULL},
{"CHARGER_EN", GPIO_B, (1<<2), GPIO_OUT_LOW, NULL},
{"EC_INT", GPIO_B, (1<<9), GPIO_OUT_LOW, NULL},
};
void configure_board(void)

View File

@@ -20,11 +20,10 @@
enum gpio_signal {
/* Inputs with interrupt handlers are first for efficiency */
GPIO_EC_PWRON = 0, /* Power button */
GPIO_LID_OPEN, /* LID switch detection */
GPIO_PP1800_LDO2, /* LDO2 is ON (end of PMIC sequence) */
GPIO_SOC1V8_XPSHOLD, /* App Processor ON */
GPIO_CHARGER_INT,
GPIO_EC_INT,
GPIO_LID_OPEN, /* LID switch detection */
/* Other inputs */
/* Outputs */
GPIO_EN_PP1350, /* DDR 1.35v rail enable */
@@ -33,6 +32,7 @@ enum gpio_signal {
GPIO_PMIC_ACOK, /* 5v rail ready */
GPIO_EC_ENTERING_RW, /* EC is R/W mode for the kbc mux */
GPIO_CHARGER_EN,
GPIO_EC_INT,
/* Number of GPIOs; not an actual GPIO */
GPIO_COUNT