diff options
Diffstat (limited to 'chip/lm4/lpc.c')
-rw-r--r-- | chip/lm4/lpc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chip/lm4/lpc.c b/chip/lm4/lpc.c index 3f1d878457..ef273be8b8 100644 --- a/chip/lm4/lpc.c +++ b/chip/lm4/lpc.c @@ -427,6 +427,11 @@ uint32_t lpc_get_host_event_mask(enum lpc_host_event_type type) return event_mask[type]; } +int lpc_get_pltrst_asserted(void) +{ + return (LM4_LPC_LPCSTS & (1<<10)) ? 1 : 0; +} + /** * Handle write to ACPI I/O port * @@ -618,7 +623,7 @@ void lpc_interrupt(void) } CPRINTF("[%T LPC RESET# %sasserted]\n", - (LM4_LPC_LPCSTS & (1<<10)) ? "" : "de"); + lpc_get_pltrst_asserted() ? "" : "de"); } } DECLARE_IRQ(LM4_IRQ_LPC, lpc_interrupt, 2); |