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>
This commit is contained in:
parent
d7f0f3de10
commit
e8f97d4f55
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue