summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2013-11-12 16:38:54 -0600
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-05-07 12:04:09 +0200
commite8f97d4f55816a298e672375ad39c37158acd61a (patch)
treef9d285f05e378f16fcbfac8cc02c5b498d7efd9d
parentd7f0f3de10bb2aa4e41c8d87b364feaab7c1f704 (diff)
downloadcoreboot-e8f97d4f55816a298e672375ad39c37158acd61a.tar.xz
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 <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/176534 Reviewed-by: Bernie Thompson <bhthompson@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/4965 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-rw-r--r--src/lib/reg_script.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c
index 3ca0b4a490..e03a8e4bb8 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
}