Aaron Durbin (adurbin@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4965
-gerrit
commit b14f6544285e0c5615311db0d341236a74e30b3f Author: Aaron Durbin adurbin@chromium.org Date: Tue Nov 12 16:38:54 2013 -0600
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 --- src/lib/reg_script.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c index c9200ab..f25e3a1 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 }