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/mainboard/emulation/qemu-power8/Makefile.inc | 1 + src/mainboard/emulation/qemu-power8/timer.c | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/mainboard/emulation/qemu-power8/timer.c (limited to 'src/mainboard/emulation') diff --git a/src/mainboard/emulation/qemu-power8/Makefile.inc b/src/mainboard/emulation/qemu-power8/Makefile.inc index db005bbab81a..5c6c56e5de46 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 000000000000..65b8ecf02fbc --- /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