From 5b549f3770ff6b1fe11aef5341c4275edf4bbc60 Mon Sep 17 00:00:00 2001 From: "Marty E. Plummer" Date: Sat, 24 Aug 2019 01:26:48 -0500 Subject: arch/ppc64: move misc.c to qemu-power8 as timer.c Its entirely no-op and is getting in the way of real hardware timers for power9/talos ii. Change-Id: I2d21d4ac3d1a7d3f099ed6ec4faf10079b1ee1d1 Signed-off-by: Marty E. Plummer Reviewed-on: https://review.coreboot.org/c/coreboot/+/35082 Reviewed-by: Timothy Pearson Tested-by: build bot (Jenkins) --- src/arch/ppc64/Makefile.inc | 1 - src/arch/ppc64/misc.c | 22 ---------------------- src/mainboard/emulation/qemu-power8/Makefile.inc | 1 + src/mainboard/emulation/qemu-power8/timer.c | 22 ++++++++++++++++++++++ 4 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 src/arch/ppc64/misc.c create mode 100644 src/mainboard/emulation/qemu-power8/timer.c diff --git a/src/arch/ppc64/Makefile.inc b/src/arch/ppc64/Makefile.inc index ac993d73e6..fae4c926b7 100644 --- a/src/arch/ppc64/Makefile.inc +++ b/src/arch/ppc64/Makefile.inc @@ -77,7 +77,6 @@ ifeq ($(CONFIG_ARCH_RAMSTAGE_PPC64),y) ramstage-y += rom_media.c ramstage-y += stages.c -ramstage-y += misc.c ramstage-y += boot.c ramstage-y += tables.c ramstage-y += \ diff --git a/src/arch/ppc64/misc.c b/src/arch/ppc64/misc.c deleted file mode 100644 index 65b8ecf02f..0000000000 --- a/src/arch/ppc64/misc.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include - -void init_timer(void) -{ -} - -void udelay(unsigned int n) -{ -} diff --git a/src/mainboard/emulation/qemu-power8/Makefile.inc b/src/mainboard/emulation/qemu-power8/Makefile.inc index db005bbab8..5c6c56e5de 100644 --- a/src/mainboard/emulation/qemu-power8/Makefile.inc +++ b/src/mainboard/emulation/qemu-power8/Makefile.inc @@ -17,6 +17,7 @@ bootblock-y += uart.c romstage-y += cbmem.c ramstage-y += cbmem.c romstage-y += romstage.c +ramstage-y += timer.c romstage-y += uart.c ramstage-y += uart.c diff --git a/src/mainboard/emulation/qemu-power8/timer.c b/src/mainboard/emulation/qemu-power8/timer.c new file mode 100644 index 0000000000..65b8ecf02f --- /dev/null +++ b/src/mainboard/emulation/qemu-power8/timer.c @@ -0,0 +1,22 @@ +/* + * This file is part of the coreboot project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include + +void init_timer(void) +{ +} + +void udelay(unsigned int n) +{ +} -- cgit v1.2.3