Skip to content

Commit 4aaa0f8

Browse files
GTLin08kartben
authored andcommitted
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 <tim2.lin@ite.corp-partner.google.com>
1 parent 5f50249 commit 4aaa0f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

soc/ite/ec/it51xxx/vector.S

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ SECTION_FUNC(vectors, __start)
4949
.global eflash_sig
5050
eflash_sig:
5151
.byte 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5
52-
/* Enable eSPI */
53-
.byte 0xA4
52+
#ifdef CONFIG_ESPI
53+
.byte 0xA4 /* eSPI mode */
54+
#else
55+
.byte 0xA5 /* LPC mode */
56+
#endif
5457
/* Flag of signature. Enable internal clock generator */
5558
.byte 0xB4
5659
.byte 0x85, 0x12, 0x5A, 0x5A, 0xAA, 0xAA, 0x55, 0x55

0 commit comments

Comments
 (0)