[coreboot-gerrit] New patch to review for coreboot: b14f654 reg_script: add iosf paths for score, ccu, and ssc

Aaron Durbin (adurbin@google.com) gerrit at coreboot.org
Tue Jan 28 03:56:33 CET 2014


Aaron Durbin (adurbin at 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 at 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 at chromium.org>
    Reviewed-on: https://chromium-review.googlesource.com/176534
    Reviewed-by: Bernie Thompson <bhthompson at chromium.org>
    Reviewed-by: Duncan Laurie <dlaurie at 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
 }



More information about the coreboot-gerrit mailing list