From 4aaa0f8547b4c90103638317fcd194d591af7e5b Mon Sep 17 00:00:00 2001 From: Tim Lin Date: Wed, 21 May 2025 14:46:30 +0800 Subject: [PATCH] soc/ite/ec: it51xxx: Add condition to select the mode based on CONFIG_ESPI If CONFIG_ESPI is defined, use 0xA4 (eSPI mode). Otherwise, use 0xA5 (LPC mode). Signed-off-by: Tim Lin --- soc/ite/ec/it51xxx/vector.S | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/soc/ite/ec/it51xxx/vector.S b/soc/ite/ec/it51xxx/vector.S index 74d33f894c7..e4d98095df8 100644 --- a/soc/ite/ec/it51xxx/vector.S +++ b/soc/ite/ec/it51xxx/vector.S @@ -49,8 +49,11 @@ SECTION_FUNC(vectors, __start) .global eflash_sig eflash_sig: .byte 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5 -/* Enable eSPI */ -.byte 0xA4 +#ifdef CONFIG_ESPI +.byte 0xA4 /* eSPI mode */ +#else +.byte 0xA5 /* LPC mode */ +#endif /* Flag of signature. Enable internal clock generator */ .byte 0xB4 .byte 0x85, 0x12, 0x5A, 0x5A, 0xAA, 0xAA, 0x55, 0x55