aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/intel/fsp1_1/fsp_util.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-08-09 09:02:13 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2016-08-10 22:30:34 +0200
commitc52a4f7328b37a5f02d65e8328f551c2168fc8dd (patch)
tree636329478b4a88dce18f07604bc9e05abdd858aa /src/drivers/intel/fsp1_1/fsp_util.c
parent219c3328f1774a667e0c08818fb3266f1114064d (diff)
drivers/intel/fsp1_1: Add fsp_write_line function
Add fsp_write_line function which may be called by FSP to output debug serial data to the console. TEST=Build and run on Galileo Gen2 Change-Id: Ib01aef448798e47ac613b38eb20bf25537b9221f Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/16128 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/drivers/intel/fsp1_1/fsp_util.c')
-rw-r--r--src/drivers/intel/fsp1_1/fsp_util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp1_1/fsp_util.c b/src/drivers/intel/fsp1_1/fsp_util.c
index 6e490d32fa..5ce753f4d4 100644
--- a/src/drivers/intel/fsp1_1/fsp_util.c
+++ b/src/drivers/intel/fsp1_1/fsp_util.c
@@ -17,6 +17,7 @@
#include <bootstate.h>
#include <cbmem.h>
#include <console/console.h>
+#include <console/streams.h>
#include <fsp/util.h>
#include <timestamp.h>
@@ -288,3 +289,9 @@ void fsp_display_upd_value(const char *name, uint32_t size, uint64_t old,
}
}
}
+
+size_t EFIAPI fsp_write_line(uint8_t *buffer, size_t number_of_bytes)
+{
+ console_write_line(buffer, number_of_bytes);
+ return number_of_bytes;
+}