uart8250io: Fix build with DEBUG_SMI
Change-Id: I5110af348d22c0abc940f0922854fdd7e0c7e2e9
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5574
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
diff --git a/src/drivers/uart/uart8250io.c b/src/drivers/uart/uart8250io.c
index e1fb39b..b2f234b 100644
--- a/src/drivers/uart/uart8250io.c
+++ b/src/drivers/uart/uart8250io.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <rules.h>
#include <arch/io.h>
#include <console/uart.h>
#include <trace.h>
@@ -134,7 +135,7 @@
uart8250_tx_flush(bases[0]);
}
-#ifndef __PRE_RAM__
+#if ENV_RAMSTAGE
void uart_fill_lb(void *data)
{
struct lb_serial serial;