diff options
author | Josh Rispoli <jprispol@us.ibm.com> | 2015-02-06 16:54:53 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-02-19 10:02:10 -0600 |
commit | 42cfb07e424a01af1504553975503e91aee7ab98 (patch) | |
tree | c20a6053e51a4fe019735c27f9c63144490ef43e | |
parent | 417c6e0a4bb7c8f9d9721b73ddcae696007be15e (diff) | |
download | blackbird-hostboot-42cfb07e424a01af1504553975503e91aee7ab98.tar.gz blackbird-hostboot-42cfb07e424a01af1504553975503e91aee7ab98.zip |
Push chip ECIDs into device tree
Change-Id: Ib92ca009e461a746364df307d698471cf790c4a8
RTC:114910
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15584
Tested-by: Jenkins Server
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
-rw-r--r-- | src/usr/devtree/bld_devtree.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/usr/devtree/bld_devtree.C b/src/usr/devtree/bld_devtree.C index 84a34ad6f..6113d1e51 100644 --- a/src/usr/devtree/bld_devtree.C +++ b/src/usr/devtree/bld_devtree.C @@ -435,6 +435,14 @@ void bld_xscom_node(devTree * i_dt, dtOffset_t & i_parentNode, uint64_t xscom_prop[2] = { l_xscomAddr, THIRTYTWO_GB}; i_dt->addPropertyCells64(xscomNode, "reg", xscom_prop, 2); + // Add proc chip ECIDs + ATTR_ECID_type ecid; + i_pProc->tryGetAttr<ATTR_ECID>(ecid); + char ecid_ascii[33]; + sprintf(ecid_ascii, "%.16llX%.16llX", ecid[0], ecid[1]); + i_dt->addPropertyString(xscomNode, "ecid", ecid_ascii); + CPPASSERT(sizeof(ATTR_ECID_type) == 16); + /*PSI Host Bridge*/ uint32_t l_psiInfo = 0x2010900; /*PSI Host Bridge Scom addr*/ dtOffset_t psiNode = i_dt->addNode(xscomNode, "psihb", l_psiInfo); @@ -1271,6 +1279,14 @@ errlHndl_t bld_fdt_mem(devTree * i_dt, bool i_smallTree) //Add any I2C devices hanging off this chip add_i2c_info( l_pMemB, i_dt, membNode ); + + // Add membuf ECIDs + ATTR_ECID_type ecid; + l_pMemB->tryGetAttr<ATTR_ECID>(ecid); + char ecid_ascii[33]; + sprintf(ecid_ascii, "%.16llX%.16llX", ecid[0], ecid[1]); + i_dt->addPropertyString(membNode, "ecid", ecid_ascii); + CPPASSERT(sizeof(ATTR_ECID_type) == 16); } |