summaryrefslogtreecommitdiff
path: root/src/console/post.c
diff options
context:
space:
mode:
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 */