diff options
author | Dino Li <dino.li@ite.com.tw> | 2015-06-16 12:01:08 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-17 13:11:07 +0000 |
commit | 3eb04bb57ed9c82b277fd16c0722665def273f1e (patch) | |
tree | 270f02f3efeb877b1196a77f626bde04e84be966 /chip/it83xx/gpio.c | |
parent | cca70a517b21d32e45880d1296997436d026e7b7 (diff) | |
download | chrome-ec-3eb04bb57ed9c82b277fd16c0722665def273f1e.tar.gz |
it8380dev: add pmc control module
Add pmc(LPC ACPI) control module for emulation board.
Signed-off-by: Dino Li <dino.li@ite.com.tw>
BRANCH=none
BUG=none
TEST=1. 62h/66h port.
1-a. out 66h 80h, out 62h 00h, in 62h 02h
1-b. out 66h 81h, out 62h 01h, out 62h 55h
1-c. out 66h 80h, out 62h 01h, in 62h 55h
1-d. out 66h 80h, out 62h 02h, in 62h aah
2. H2RAM LPC I/O cycle 900h ~ 9FFh = DLM 0x8D900 ~ 0x8D9FF
and host read only.
3. 80h port, console command port80.
4. host command.
4-a. host request (LPC I/O 800h ~ 807h)
03 FD 00 00, 00 00 00 00
out 204h DAh, in 200h 00h
host response (LPC I/O 800h ~ 80Bh)
03 F7 00 00, 04 00 00 00, 02 00 00 00
4-b. host request
03 EE 01 00, 00 00 04 00, 01 02 03 04
out 204h DAh, in 200h 00h
host response
03 E5 00 00, 04 00 00 00, 05 05 05 05
Change-Id: I5c3bac66306dfba380548a74a64536ea606ddd3e
Reviewed-on: https://chromium-review.googlesource.com/269271
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Dino Li <dino.li@ite.com.tw>
Commit-Queue: Dino Li <dino.li@ite.com.tw>
Diffstat (limited to 'chip/it83xx/gpio.c')
-rw-r--r-- | chip/it83xx/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/it83xx/gpio.c b/chip/it83xx/gpio.c index 09f7ff2492..49c31fb871 100644 --- a/chip/it83xx/gpio.c +++ b/chip/it83xx/gpio.c @@ -343,7 +343,7 @@ static void gpio_interrupt(int port, uint8_t mask) const struct gpio_info *g = gpio_list; for (i = 0; i < GPIO_IH_COUNT; i++, g++) { - if (port == g->port && (mask & g->mask)) + if (port == g->port && (mask & g->mask)) { gpio_irq_handlers[i](i); return; } |