Skip to content

ec/ite: Move e-flash signature to 0x80#554

Merged
crawfxrd merged 1 commit intomasterfrom
dev/eflash-sig
Apr 15, 2026
Merged

ec/ite: Move e-flash signature to 0x80#554
crawfxrd merged 1 commit intomasterfrom
dev/eflash-sig

Conversation

@crawfxrd
Copy link
Copy Markdown
Member

@crawfxrd crawfxrd commented Jan 8, 2026

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
Resolves: #518

@crawfxrd crawfxrd marked this pull request as ready for review January 20, 2026 17:27
@jackpot51
Copy link
Copy Markdown
Member

@crawfxrd will this work on all currently supported ITE ECs?

@crawfxrd
Copy link
Copy Markdown
Member Author

crawfxrd commented Jan 20, 2026

Presumably. I tested it works on IT5570 (darp11-b). I don't have a IT8587 board, but it should work on those older boards as well.

I'm doing some testing now and adding more documentation for the "known" bits.

jackpot51
jackpot51 previously approved these changes Jan 20, 2026
jackpot51
jackpot51 previously approved these changes Jan 20, 2026
@crawfxrd
Copy link
Copy Markdown
Member Author

Must be checked on an IT8587 board. 32k clock selection changed from external crystal to internal clock generator.

There's no clock source connected to GPJ6/7 on any board and they're all configured as GPIO and not ALT function, so I don't think it would even work. I guess there's no issue because nothing is actually using the 32 kHz clock? (Proprietary firmware also has it set to use external crystal.)

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>
Copy link
Copy Markdown
Member

@leviport leviport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on darp5. Seems fine.

@crawfxrd crawfxrd merged commit 57c7276 into master Apr 15, 2026
49 checks passed
@crawfxrd crawfxrd deleted the dev/eflash-sig branch April 15, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDCC 4.5.0 conflicts with ITE code signature, puts HOME segment at wrong address

3 participants