diff options
author | Dean Sanner <dsanner@us.ibm.com> | 2014-04-11 08:25:06 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-04-14 13:18:54 -0500 |
commit | 791c705e31529a345e4e01eb10a6326990de4acb (patch) | |
tree | 1f875a52e21928cc678050f1dd84bfcb6145d4a5 /src/usr/devtree/bld_devtree.C | |
parent | 24c6ac779e4ad663fd997bee7a52a807f3e6beb3 (diff) | |
download | talos-hostboot-791c705e31529a345e4e01eb10a6326990de4acb.tar.gz talos-hostboot-791c705e31529a345e4e01eb10a6326990de4acb.zip |
Inform Sapphire about supported EX power states
Change-Id: Ied3b22e70032a1b3181d318b43e11be0117ae164
CQ: SW256780
Backport: release-fips810
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10412
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/devtree/bld_devtree.C')
-rw-r--r-- | src/usr/devtree/bld_devtree.C | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/usr/devtree/bld_devtree.C b/src/usr/devtree/bld_devtree.C index 16446a424..f82760fed 100644 --- a/src/usr/devtree/bld_devtree.C +++ b/src/usr/devtree/bld_devtree.C @@ -590,19 +590,28 @@ void load_hbrt_image(uint64_t& io_address) errlHndl_t bld_fdt_system(devTree * i_dt, bool i_smallTree) { - // Nothing to do for small trees currently. - if (i_smallTree) { return NULL; } - errlHndl_t errhdl = NULL; dtOffset_t rootNode = i_dt->findNode("/"); - /* Add compatibility node */ - i_dt->addPropertyString(rootNode, "compatible", "ibm,powernv"); + //Common settings + /* Define supported power states -- options: + nap, deep-sleep, fast-sleep, winkle*/ + const char* pmode_compatStrs[] = {"nap", "winkle", NULL}; + i_dt->addPropertyStrings(rootNode, "ibm,enabled-idle-states", + pmode_compatStrs); + + // Nothing to do for small trees currently. + if (!i_smallTree) + { - /* Add system model node */ - //TODO RTC:88056 - store model type in attributes? - i_dt->addPropertyString(rootNode, "model", "rhesus"); + /* Add compatibility node */ + i_dt->addPropertyString(rootNode, "compatible", "ibm,powernv"); + + /* Add system model node */ + //TODO RTC:88056 - store model type in attributes? + i_dt->addPropertyString(rootNode, "model", "rhesus"); + } return errhdl; } |