Hello Ravi kumar,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/38714
to review the following change.
Change subject: trogdor: latching GPIO interrupt support ......................................................................
trogdor: latching GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/chromeos.c 1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/1
diff --git a/src/mainboard/google/trogdor/chromeos.c b/src/mainboard/google/trogdor/chromeos.c index e840613..e9c3a78 100644 --- a/src/mainboard/google/trogdor/chromeos.c +++ b/src/mainboard/google/trogdor/chromeos.c @@ -16,6 +16,7 @@ #include <boot/coreboot_tables.h> #include <bootmode.h> #include "board.h" +#include <security/tpm/tis.h>
int get_write_protect_state(void) { @@ -46,3 +47,9 @@
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios)); } + +int tis_plat_irq_status(void) +{ + return gpio_irq_status(GPIO_H1_AP_INT); +} +
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: latching GPIO interrupt support ......................................................................
Patch Set 1:
(2 comments)
https://review.coreboot.org/c/coreboot/+/38714/1/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/chromeos.c:
https://review.coreboot.org/c/coreboot/+/38714/1/src/mainboard/google/trogdo... PS1, Line 53: return gpio_irq_status(GPIO_H1_AP_INT); code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/1/src/mainboard/google/trogdo... PS1, Line 53: return gpio_irq_status(GPIO_H1_AP_INT); please, no spaces at the start of a line
Hello Ravi kumar, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38714
to look at the new patch set (#2).
Change subject: trogdor: latching GPIO interrupt support ......................................................................
trogdor: latching GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/chromeos.c 1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/2
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: latching GPIO interrupt support ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38714/3/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/chromeos.c:
https://review.coreboot.org/c/coreboot/+/38714/3/src/mainboard/google/trogdo... PS3, Line 53: GPIO_H1_AP_INT ...and what about gpio_input_irq()? It's not going to initialize itself... (should be done in bootblock_mainboard_init()).
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: latching GPIO interrupt support ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38714/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38714/3//COMMIT_MSG@7 PS3, Line 7: latching Imperative mood. Latch?
mturney mturney has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: latching GPIO interrupt support ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38714/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38714/3//COMMIT_MSG@7 PS3, Line 7: latching
Imperative mood. […]
Done
Hello Ravi kumar, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38714
to look at the new patch set (#4).
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/board.h M src/mainboard/google/trogdor/bootblock.c M src/mainboard/google/trogdor/chromeos.c 3 files changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/4
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 4:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/board.h:
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 29: GPIO_PULLNONE = 0, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 29: GPIO_PULLNONE = 0, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 30: GPIO_PULLUP = 1, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 30: GPIO_PULLUP = 1, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 31: GPIO_PULLDOWN = 2, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 31: GPIO_PULLDOWN = 2, please, no spaces at the start of a line
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 4:
(3 comments)
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/board.h:
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 29: GPIO_PULLNONE = 0,
code indent should use tabs where possible
These don't need to be here, just use GPIO_PULL_UP from <soc/gpio.h>. (Also, like the bot says, please always indent with tabs, not spaces.)
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/bootblock.c:
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 27: gpio_input_irq(GPIO_H1_AP_INT, IRQ_TYPE_RISING_EDGE, GPIO_PULLUP); Sorry, on second thought, this should go into chromeos.c after all...
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/chromeos.c:
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 32: gpio_input_pullup(GPIO_H1_AP_INT); ...and replace this line here.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 5:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/board.h:
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 29: GPIO_PULLNONE = 0, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 29: GPIO_PULLNONE = 0, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 30: GPIO_PULLUP = 1, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 30: GPIO_PULLUP = 1, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 31: GPIO_PULLDOWN = 2, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 31: GPIO_PULLDOWN = 2, please, no spaces at the start of a line
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 6:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/board.h:
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 29: GPIO_PULLNONE = 0, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 29: GPIO_PULLNONE = 0, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 30: GPIO_PULLUP = 1, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 30: GPIO_PULLUP = 1, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 31: GPIO_PULLDOWN = 2, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 31: GPIO_PULLDOWN = 2, please, no spaces at the start of a line
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 7:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38714/7/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/board.h:
https://review.coreboot.org/c/coreboot/+/38714/7/src/mainboard/google/trogdo... PS7, Line 29: GPIO_PULLNONE = 0, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/7/src/mainboard/google/trogdo... PS7, Line 29: GPIO_PULLNONE = 0, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38714/7/src/mainboard/google/trogdo... PS7, Line 30: GPIO_PULLUP = 1, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/7/src/mainboard/google/trogdo... PS7, Line 30: GPIO_PULLUP = 1, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38714/7/src/mainboard/google/trogdo... PS7, Line 31: GPIO_PULLDOWN = 2, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38714/7/src/mainboard/google/trogdo... PS7, Line 31: GPIO_PULLDOWN = 2, please, no spaces at the start of a line
Ravi Kumar Bokka has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 7:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38714/3/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/chromeos.c:
https://review.coreboot.org/c/coreboot/+/38714/3/src/mainboard/google/trogdo... PS3, Line 53: GPIO_H1_AP_INT
...and what about gpio_input_irq()? It's not going to initialize itself... […]
Done
Ravi kumar has uploaded a new patch set (#8) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/bootblock.c M src/mainboard/google/trogdor/chromeos.c 2 files changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/8
Ravi kumar has uploaded a new patch set (#9) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/bootblock.c M src/mainboard/google/trogdor/chromeos.c 2 files changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/9
Ravi Kumar Bokka has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 9:
(8 comments)
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/board.h:
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 29: GPIO_PULLNONE = 0,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 29: GPIO_PULLNONE = 0,
These don't need to be here, just use GPIO_PULL_UP from <soc/gpio.h>. […]
Done
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 30: GPIO_PULLUP = 1,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 30: GPIO_PULLUP = 1,
code indent should use tabs where possible
Done
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 31: GPIO_PULLDOWN = 2,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 31: GPIO_PULLDOWN = 2,
code indent should use tabs where possible
Done
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/bootblock.c:
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 27: gpio_input_irq(GPIO_H1_AP_INT, IRQ_TYPE_RISING_EDGE, GPIO_PULLUP);
Sorry, on second thought, this should go into chromeos.c after all...
Done
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/chromeos.c:
https://review.coreboot.org/c/coreboot/+/38714/4/src/mainboard/google/trogdo... PS4, Line 32: gpio_input_pullup(GPIO_H1_AP_INT);
...and replace this line here.
Done
Ravi Kumar Bokka has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 9:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/board.h:
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 29: GPIO_PULLNONE = 0,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 29: GPIO_PULLNONE = 0,
code indent should use tabs where possible
Done
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 30: GPIO_PULLUP = 1,
code indent should use tabs where possible
Done
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 30: GPIO_PULLUP = 1,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 31: GPIO_PULLDOWN = 2,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/5/src/mainboard/google/trogdo... PS5, Line 31: GPIO_PULLDOWN = 2,
code indent should use tabs where possible
Done
Ravi Kumar Bokka has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 9:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... File src/mainboard/google/trogdor/board.h:
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 29: GPIO_PULLNONE = 0,
code indent should use tabs where possible
Done
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 29: GPIO_PULLNONE = 0,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 30: GPIO_PULLUP = 1,
code indent should use tabs where possible
Done
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 30: GPIO_PULLUP = 1,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 31: GPIO_PULLDOWN = 2,
please, no spaces at the start of a line
Done
https://review.coreboot.org/c/coreboot/+/38714/6/src/mainboard/google/trogdo... PS6, Line 31: GPIO_PULLDOWN = 2,
code indent should use tabs where possible
Done
Ravi kumar has uploaded a new patch set (#10) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/bootblock.c M src/mainboard/google/trogdor/chromeos.c 2 files changed, 8 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/10
Hello Ravi kumar, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38714
to look at the new patch set (#11).
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/chromeos.c 1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/11
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 12: Code-Review+2
Ravi kumar has uploaded a new patch set (#14) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/chromeos.c 1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/14
Hello Ravi kumar, build bot (Jenkins), Julius Werner,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38714
to look at the new patch set (#15).
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/chromeos.c 1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/15
Ravi kumar has uploaded a new patch set (#17) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org --- M src/mainboard/google/trogdor/chromeos.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/38714/17
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
Patch Set 19: Code-Review+2
Julius Werner has submitted this change. ( https://review.coreboot.org/c/coreboot/+/38714 )
Change subject: trogdor: Latch GPIO interrupt support ......................................................................
trogdor: Latch GPIO interrupt support
Required for TPM IRQ.
Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka rbokka@codeaurora.org Reviewed-on: https://review.coreboot.org/c/coreboot/+/38714 Reviewed-by: Julius Werner jwerner@chromium.org Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/trogdor/chromeos.c 1 file changed, 6 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Julius Werner: Looks good to me, approved
diff --git a/src/mainboard/google/trogdor/chromeos.c b/src/mainboard/google/trogdor/chromeos.c index cb01091..985ba0f 100644 --- a/src/mainboard/google/trogdor/chromeos.c +++ b/src/mainboard/google/trogdor/chromeos.c @@ -3,6 +3,7 @@ #include <boot/coreboot_tables.h> #include <bootmode.h> #include "board.h" +#include <security/tpm/tis.h>
int get_write_protect_state(void) { @@ -31,3 +32,8 @@
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios)); } + +int tis_plat_irq_status(void) +{ + return gpio_irq_status(GPIO_H1_AP_INT); +}