From e8f97d4f55816a298e672375ad39c37158acd61a Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 12 Nov 2013 16:38:54 -0600 Subject: reg_script: add iosf paths for score, ccu, and ssc Handle SCORE, CCU, and SSC IOSF accesses. BUG=chrome-os-partner:23966 BRANCH=None TEST=Built. Change-Id: I6e678eb79bd1451f156bdd14cf46d3378dc527c9 Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/176534 Reviewed-by: Bernie Thompson Reviewed-by: Duncan Laurie Reviewed-on: http://review.coreboot.org/4965 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/lib/reg_script.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/lib') diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c index 3ca0b4a..e03a8e4 100644 --- a/src/lib/reg_script.c +++ b/src/lib/reg_script.c @@ -257,8 +257,14 @@ static uint32_t reg_script_read_iosf(struct reg_script_context *ctx) return iosf_punit_read(step->reg); case IOSF_PORT_USBPHY: return iosf_usbphy_read(step->reg); + case IOSF_PORT_SCORE: + return iosf_score_read(step->reg); case IOSF_PORT_USHPHY: return iosf_ushphy_read(step->reg); + case IOSF_PORT_SCC: + return iosf_scc_read(step->reg); + case IOSF_PORT_CCU: + return iosf_ccu_read(step->reg); } #endif return 0; @@ -282,9 +288,18 @@ static void reg_script_write_iosf(struct reg_script_context *ctx) case IOSF_PORT_USBPHY: iosf_usbphy_write(step->reg, step->value); break; + case IOSF_PORT_SCORE: + iosf_score_write(step->reg, step->value); + break; case IOSF_PORT_USHPHY: iosf_ushphy_write(step->reg, step->value); break; + case IOSF_PORT_SCC: + iosf_scc_write(step->reg, step->value); + break; + case IOSF_PORT_CCU: + iosf_ccu_write(step->reg, step->value); + break; } #endif } -- cgit v1.1