arch/ppc64/rom_media.c: move to mainboard/emulation/qemu-power*

CBFS location in memory is different than on the real hardware.

Change-Id: Icd806a57f449042c883b624056c05c1ff7e4c17e
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67061
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michał Kopeć <michal.kopec@3mdeb.com>
This commit is contained in:
Krystian Hebel 2020-10-09 19:11:05 +02:00 committed by Felix Held
parent 3a5507fd31
commit 8605cf5fe9
5 changed files with 19 additions and 3 deletions

View File

@ -12,7 +12,6 @@ ifeq ($(CONFIG_ARCH_BOOTBLOCK_PPC64),y)
bootblock-y = bootblock_crt0.S
bootblock-y += arch_timer.c
bootblock-y += boot.c
bootblock-y += rom_media.c
bootblock-y += \
$(top)/src/lib/memchr.c \
$(top)/src/lib/memcmp.c \
@ -38,7 +37,6 @@ ifeq ($(CONFIG_ARCH_ROMSTAGE_PPC64),y)
romstage-y += arch_timer.c
romstage-y += boot.c
romstage-y += stages.c
romstage-y += rom_media.c
romstage-y += \
$(top)/src/lib/memchr.c \
$(top)/src/lib/memcmp.c \
@ -64,7 +62,6 @@ endif
################################################################################
ifeq ($(CONFIG_ARCH_RAMSTAGE_PPC64),y)
ramstage-y += rom_media.c
ramstage-y += stages.c
ramstage-y += arch_timer.c
ramstage-y += boot.c

View File

@ -2,8 +2,11 @@
bootblock-y += bootblock.c
bootblock-y += uart.c
bootblock-y += rom_media.c
romstage-y += cbmem.c
romstage-y += romstage.c
ramstage-y += timer.c
romstage-y += uart.c
romstage-y += rom_media.c
ramstage-y += uart.c
ramstage-y += rom_media.c

View File

@ -1,6 +1,10 @@
## SPDX-License-Identifier: GPL-2.0-only
bootblock-y += rom_media.c
romstage-y += cbmem.c
romstage-y += romstage.c
romstage-y += rom_media.c
ramstage-y += ramstage.c
ramstage-y += rom_media.c

View File

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/io.h>
#include <boot_device.h>
static const struct mem_region_device boot_dev =
MEM_REGION_DEV_RO_INIT(FLASH_BASE_ADDR, CONFIG_ROM_SIZE);
const struct region_device *boot_device_ro(void)
{
return &boot_dev.rdev;
}