diff options
author | Thi Tran <thi@us.ibm.com> | 2014-07-24 08:48:20 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-08-01 09:00:52 -0500 |
commit | 920ab5c89a622cb21d31ca9fb27e39c2e1c90935 (patch) | |
tree | d14cafcf198d3e3a5110ce67fa06afc696ce76e6 /src/usr/hwpf/hwp/build_winkle_images/build_winkle_images.C | |
parent | d3f3811d7bb317c8f7a4ad690aaa8433e975dc86 (diff) | |
download | talos-hostboot-920ab5c89a622cb21d31ca9fb27e39c2e1c90935.tar.gz talos-hostboot-920ab5c89a622cb21d31ca9fb27e39c2e1c90935.zip |
SW268884: INITPROC: FSP&Hostboot - New sleep attribute and associated
CMVC-Prereq:931657
CQ:SW268884
Change-Id: Ie9ab8334c224ece3cb5e68a2c0a59a942208c4f7
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12117
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Tested-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12428
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/build_winkle_images/build_winkle_images.C')
-rw-r--r-- | src/usr/hwpf/hwp/build_winkle_images/build_winkle_images.C | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/usr/hwpf/hwp/build_winkle_images/build_winkle_images.C b/src/usr/hwpf/hwp/build_winkle_images/build_winkle_images.C index 609cc7f08..6e4b18847 100644 --- a/src/usr/hwpf/hwp/build_winkle_images/build_winkle_images.C +++ b/src/usr/hwpf/hwp/build_winkle_images/build_winkle_images.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012,2014 */ +/* Contributors Listed Below - COPYRIGHT 2012,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -436,6 +438,12 @@ void* call_host_build_winkle( void *io_pArgs ) assert (l_memBase != 0, "host_build_winkle: Top of memory was 0!"); l_memBase -= VMM_ALL_HOMER_OCC_MEMORY_SIZE; + // Also, enable sleep mode + TARGETING::Target* l_sys = NULL; + TARGETING::targetService().getTopLevelTarget(l_sys); + assert( l_sys != NULL ); + uint8_t l_sleepEnable = 1; + l_sys->setAttr<TARGETING::ATTR_PM_SLEEP_ENABLE>(l_sleepEnable); } TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "HOMER base = %x", l_memBase); |