diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-11-01 10:44:33 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-11-05 14:38:35 +0000 |
commit | 385ea8219d2f09d3f9d2d194392cf696d4e2aed7 (patch) | |
tree | 7a919d4b7d8385b2b49f66cc98e5403a040f8d61 | |
parent | 092fe558ee20950faf29d8e7d581a2631e6e1bb4 (diff) | |
download | coreboot-385ea8219d2f09d3f9d2d194392cf696d4e2aed7.tar.xz |
drivers/pc80: Remove UDELAY_IO
Change-Id: I3ab62d9b1caa23305ad3b859e3c1949784ae0464
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36533
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
-rw-r--r-- | src/drivers/pc80/pc/Kconfig | 4 | ||||
-rw-r--r-- | src/drivers/pc80/pc/Makefile.inc | 2 | ||||
-rw-r--r-- | src/drivers/pc80/pc/udelay_io.c | 27 |
3 files changed, 0 insertions, 33 deletions
diff --git a/src/drivers/pc80/pc/Kconfig b/src/drivers/pc80/pc/Kconfig index bba45f6a64..06e6568f71 100644 --- a/src/drivers/pc80/pc/Kconfig +++ b/src/drivers/pc80/pc/Kconfig @@ -18,10 +18,6 @@ config DRIVERS_PS2_KEYBOARD this option, then you can say N here to speed up boot time. Otherwise say Y. -config UDELAY_IO - bool - default n - # This option is used in code but never selected. config UDELAY_TIMER2 bool diff --git a/src/drivers/pc80/pc/Makefile.inc b/src/drivers/pc80/pc/Makefile.inc index bd56cd43a1..67c40a1c19 100644 --- a/src/drivers/pc80/pc/Makefile.inc +++ b/src/drivers/pc80/pc/Makefile.inc @@ -2,8 +2,6 @@ ifeq ($(CONFIG_ARCH_X86),y) ramstage-y += isa-dma.c ramstage-y += i8259.c -ramstage-$(CONFIG_UDELAY_IO) += udelay_io.c -romstage-$(CONFIG_UDELAY_IO) += udelay_io.c ramstage-y += keyboard.c ramstage-$(CONFIG_SPKMODEM) += spkmodem.c romstage-$(CONFIG_SPKMODEM) += spkmodem.c diff --git a/src/drivers/pc80/pc/udelay_io.c b/src/drivers/pc80/pc/udelay_io.c deleted file mode 100644 index 4fe1caeed9..0000000000 --- a/src/drivers/pc80/pc/udelay_io.c +++ /dev/null @@ -1,27 +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 <arch/io.h> -#include <delay.h> - -void init_timer(void) -{ -} - -void udelay(unsigned int usecs) -{ - int i; - - for (i = 0; i < usecs; i++) - inb(0x80); -} |