summaryrefslogtreecommitdiff
path: root/src/console/post.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-03 00:35:15 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-04 15:59:23 +0000
commit3ee8b750f49b7c82e8b8787ee306017746e8c12a (patch)
treec2d5a9a2b35e561303e9a6088004e05a7b282421 /src/console/post.c
parent3855c01e0a9d9e9787652479576e882bcda9fde5 (diff)
arch/io.h: Separate MMIO and PNP ops
Change-Id: Ie32f1d43168c277be46cdbd7fbfa2445d9899689 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31699 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/console/post.c')
-rw-r--r--src/console/post.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/console/post.c b/src/console/post.c
index 4c3753561b..08bdaa18a9 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -14,12 +14,15 @@
* GNU General Public License for more details.
*/
-#include <arch/io.h>
+#include <stdint.h>
#include <elog.h>
#include <console/console.h>
#include <device/device.h>
#include <pc80/mc146818rtc.h>
#include <smp/spinlock.h>
+#if IS_ENABLED(CONFIG_POST_IO)
+#include <arch/io.h>
+#endif
/* Write POST information */