Framework 13 Intel Gen 11-13 use MEC EC. Everything else uses NPCX.
After we introduced NPCX, I hardcoded some things for that. Should support both:
See:
|
let offset = if ro { |
|
EC_RO_VER_OFFSET |
|
} else { |
|
EC_RW_VER_OFFSET |
|
}; |
|
let offset_zephyr = if ro { |
|
EC_RO_VER_OFFSET_ZEPHYR |
|
} else { |
|
EC_RW_VER_OFFSET_ZEPHYR |
|
}; |
|
/// MEC/Legacy EC |
|
/// | Start | End | Size | Region | |
|
/// | 00000 | 3BFFF | 3C000 | RO Region | |
|
/// | 3C000 | 3FFFF | 04000 | Preserved | |
|
/// | 40000 | 3C000 | 39000 | RO Region | |
|
/// | 79000 | 79FFF | 01000 | Preserved | |
|
/// | 80000 | 80FFF | 01000 | Flash Flags | |
|
/// |
|
/// NPC/Zephyr |
|
/// | Start | End | Size | Region | |
|
/// | 00000 | 3BFFF | 3C000 | RO Region | |
|
/// | 3C000 | 3FFFF | 04000 | Preserved | |
|
/// | 40000 | 3C000 | 39000 | RO Region | |
|
/// | 79000 | 79FFF | 01000 | Flash Flags | |
Framework 13 Intel Gen 11-13 use MEC EC. Everything else uses NPCX.
After we introduced NPCX, I hardcoded some things for that. Should support both:
See:
framework-system/framework_lib/src/ec_binary.rs
Lines 148 to 157 in 96a7608
framework-system/framework_lib/src/chromium_ec/mod.rs
Lines 393 to 406 in 96a7608