aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/intel/fsp2_0/debug.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-08-09 09:04:45 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2016-08-10 22:30:46 +0200
commit00a38a4a9e668caf573517051aafff9eba61def3 (patch)
tree3e7ba7ce7ed5d1f0c45aac9ab03a825868f0a7b8 /src/drivers/intel/fsp2_0/debug.c
parentc52a4f7328b37a5f02d65e8328f551c2168fc8dd (diff)
drivers/intel/fsp2_0: 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: If7bfcea1af82209dcdc5a9f9f2d9334842c1595e Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/16129 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/intel/fsp2_0/debug.c')
-rw-r--r--src/drivers/intel/fsp2_0/debug.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/debug.c b/src/drivers/intel/fsp2_0/debug.c
index 5053b5e8ff..6d88f024ae 100644
--- a/src/drivers/intel/fsp2_0/debug.c
+++ b/src/drivers/intel/fsp2_0/debug.c
@@ -10,9 +10,16 @@
*/
#include <console/console.h>
+#include <console/streams.h>
#include <fsp/util.h>
#include <soc/intel/common/util.h>
+asmlinkage size_t fsp_write_line(uint8_t *buffer, size_t number_of_bytes)
+{
+ console_write_line(buffer, number_of_bytes);
+ return number_of_bytes;
+}
+
/*-----------
* MemoryInit
*-----------