aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Smart <chris@distroguy.com>2016-07-21 17:12:06 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-22 17:10:10 +1000
commit37078693ae750777a85266500a64e71e3fa83f58 (patch)
treee3d5caee3d06b66db047ff9b57f9279b76d78695
parentd9160de47755bf7d4aa6eebcd8a73b827671375b (diff)
downloadskiboot-37078693ae750777a85266500a64e71e3fa83f58.zip
skiboot-37078693ae750777a85266500a64e71e3fa83f58.tar.gz
skiboot-37078693ae750777a85266500a64e71e3fa83f58.tar.bz2
platform/mambo: Add a heartbeat time
The console is very slow when using Skiboot with Mambo. This adds a heartbeat timer as a platform quirk so that the console is refresh more quickly. This results in Skiboot doing the right thing without requiring custom settings in skiboot.tcl files. Signed-off-by: Chris Smart <chris@distroguy.com> Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--platforms/mambo/mambo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/platforms/mambo/mambo.c b/platforms/mambo/mambo.c
index 69e0796..3c1d546 100644
--- a/platforms/mambo/mambo.c
+++ b/platforms/mambo/mambo.c
@@ -259,6 +259,15 @@ static int mambo_nvram_start_read(void *dst, uint32_t src, uint32_t len)
return OPAL_SUCCESS;
}
+static int mambo_heartbeat_time(void)
+{
+ /*
+ * Mambo is slow and has no console input interrupt, so faster
+ * polling is needed to ensure its responsiveness.
+ */
+ return 100;
+}
+
DECLARE_PLATFORM(mambo) = {
.name = "Mambo",
.probe = mambo_probe,
@@ -269,4 +278,5 @@ DECLARE_PLATFORM(mambo) = {
.nvram_start_read = mambo_nvram_start_read,
.start_preload_resource = flash_start_preload_resource,
.resource_loaded = flash_resource_loaded,
+ .heartbeat_time = mambo_heartbeat_time,
};