summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/ck505
diff options
context:
space:
mode:
authorZheng Bao <zheng.bao@amd.com>2020-08-17 11:11:48 +0800
committerFelix Held <felix-coreboot@felixheld.de>2020-10-20 12:29:32 +0000
commit944d00b28ccd10985ee93a27139d4810fbe7955e (patch)
tree9f160205aef59e178af33018c8fda46e757b6070 /src/drivers/i2c/ck505
parent77f340a707a868d56d8348cd9ab03308f4902bd9 (diff)
soc/amd/picasso: Use readelf to find bootblock size and location
The Picasso build describes the DRAM region where the PSP places our bootblock. Rather than relying on Kconfig values, make the build more robust by using the actual size and target base address from the boot block's ELF file. Sample output of "readelf -l bootblock.elf" is: ------------------ Elf file type is EXEC (Executable file) Entry point 0x203fff0 There is 1 program header, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x001000 0x02030000 0x02030000 0x10000 0x10000 RWE 0x1000 Section to Segment mapping: Segment Sections... 00 .text .data .bss .reset ------------------ We can extract the information from here. BUG=b:154957411 TEST=Build & boot on mandolin Change-Id: I5a26047726f897c57325387cb304fddbc73f6504 Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46092 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/i2c/ck505')
0 files changed, 0 insertions, 0 deletions