summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2013-11-12 20:20:10 -0600
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-05-07 12:05:01 +0200
commit64b902b57a035c31043cb0c6690e221a25287ff3 (patch)
treeece0652c58c1f5b2021ee8529db9a5559df93fa0
parent159216949597cb68a477af1b3723705f5e87cbb1 (diff)
reg_script: add iosf lpss port access
Add the LPSS IOSF port access to reg_script. This is going to be used by baytrail. BUG=chrome-os-partner:23790 BRANCH=None TEST=Buit. Change-Id: I0367acdb584f2de0bb871b136042b57fe6b7ec90 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/176423 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/4968 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-rw-r--r--src/lib/reg_script.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c
index e03a8e4bb8..d7c4577e0c 100644
--- a/src/lib/reg_script.c
+++ b/src/lib/reg_script.c
@@ -263,6 +263,8 @@ static uint32_t reg_script_read_iosf(struct reg_script_context *ctx)
return iosf_ushphy_read(step->reg);
case IOSF_PORT_SCC:
return iosf_scc_read(step->reg);
+ case IOSF_PORT_LPSS:
+ return iosf_lpss_read(step->reg);
case IOSF_PORT_CCU:
return iosf_ccu_read(step->reg);
}
@@ -297,6 +299,9 @@ static void reg_script_write_iosf(struct reg_script_context *ctx)
case IOSF_PORT_SCC:
iosf_scc_write(step->reg, step->value);
break;
+ case IOSF_PORT_LPSS:
+ iosf_lpss_write(step->reg, step->value);
+ break;
case IOSF_PORT_CCU:
iosf_ccu_write(step->reg, step->value);
break;