From 64b902b57a035c31043cb0c6690e221a25287ff3 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 12 Nov 2013 20:20:10 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/176423 Reviewed-by: Duncan Laurie Reviewed-on: http://review.coreboot.org/4968 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/lib/reg_script.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib') 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; -- cgit v1.2.3