diff options
author | Marty E. Plummer <hanetzer@startmail.com> | 2019-08-24 01:26:48 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-09-02 06:41:04 +0000 |
commit | 5b549f3770ff6b1fe11aef5341c4275edf4bbc60 (patch) | |
tree | f8d12832b0936e648f72376273477e109412e285 /src/mainboard/emulation/qemu-power8 | |
parent | 9f38be89f6d2d9ebf1afc133ebacf28311efa512 (diff) |
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 <hanetzer@startmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35082
Reviewed-by: Timothy Pearson <tpearson@raptorengineering.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-power8')
-rw-r--r-- | src/mainboard/emulation/qemu-power8/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/emulation/qemu-power8/timer.c | 22 |
2 files changed, 23 insertions, 0 deletions
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 <delay.h> + +void init_timer(void) +{ +} + +void udelay(unsigned int n) +{ +} |