Skip to content

Commit 0d5146b

Browse files
committed
ec/ite: Move e-flash signature to 0x80
According to the datasheet, the e-flash signature can be at any 16-byte aligned address in 0x40-0xF0. Because of an address conflict with SDCC 4.5.0, move the signature to 0x80. This matches the address for Zephyr RISC-V SoCs, like 82302. Ref: zephyrproject-rtos/zephyr#36379 Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent 4851eb4 commit 0d5146b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ec/ite/signature.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
#if CONFIG_BUS_ESPI
66
// eSPI signature (byte 7 = 0xA4)
7-
static __code const uint8_t __at(0x40) SIGNATURE[16] = {
7+
static __code const uint8_t __at(0x80) SIGNATURE[16] = {
88
0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA4, 0x95,
99
0x85, 0x12, 0x5A, 0x5A, 0xAA, 0x00, 0x55, 0x55,
1010
};
1111
#else // CONFIG_BUS_ESPI
1212
// LPC signature (byte 7 = 0xA5)
13-
static __code const uint8_t __at(0x40) SIGNATURE[16] = {
13+
static __code const uint8_t __at(0x80) SIGNATURE[16] = {
1414
0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0x94,
1515
0x85, 0x12, 0x5A, 0x5A, 0xAA, 0x00, 0x55, 0x55,
1616
};

0 commit comments

Comments
 (0)