summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWilliam Bryan <wilbryan@us.ibm.com>2017-04-05 14:24:34 -0500
committerWilliam A. Bryan <wilbryan@us.ibm.com>2017-04-26 12:53:32 -0400
commit14e46463c4aa168343162b159ba0e9f05654fb27 (patch)
treee0b2e29dfac88ec0906a2402c5dcd6f26ff3164e /src
parent7da6a9afd506f8854972bbf4325b2e88abfcc2ce (diff)
downloadtalos-occ-14e46463c4aa168343162b159ba0e9f05654fb27.tar.gz
talos-occ-14e46463c4aa168343162b159ba0e9f05654fb27.zip
Enable Composite mode
Change-Id: I7235c414923079701fdf1392960b3fc48363bff0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38896 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/occ_405/cent/centaur_data.c9
-rwxr-xr-xsrc/occ_405/dcom/dcom.c5
-rwxr-xr-xsrc/occ_405/main.c5
-rwxr-xr-xsrc/occ_405/pss/apss.c2
-rw-r--r--src/occ_gpe0/apss_read.c2
5 files changed, 11 insertions, 12 deletions
diff --git a/src/occ_405/cent/centaur_data.c b/src/occ_405/cent/centaur_data.c
index 50d4e9b..fd52a23 100755
--- a/src/occ_405/cent/centaur_data.c
+++ b/src/occ_405/cent/centaur_data.c
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER OnChipController Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2016 */
+/* Contributors Listed Below - COPYRIGHT 2014,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -196,11 +196,10 @@ bool cent_chan_checkstop(const uint8_t i_cent)
uint64_t l_data;
int l_scom_rc = 0;
- // Determine scom address of MCIFIR register
- l_scom_addr = MCS0_MCIFIR_N(i_cent);
+ // TODO: RTC 163359 Centaur support
+ // We are unable to SCOM from the 405, so this scom was removed.
+ // Will need to determine how to get this information in the future.
- // Do a getscom on MCIFIR register for i_cent
- l_scom_rc = getscom_ffdc(l_scom_addr, &l_data, 0);
if(!l_scom_rc)
{
//check for channel checkstop (bit 31)
diff --git a/src/occ_405/dcom/dcom.c b/src/occ_405/dcom/dcom.c
index d0bbf73..32f9976 100755
--- a/src/occ_405/dcom/dcom.c
+++ b/src/occ_405/dcom/dcom.c
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER OnChipController Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2016 */
+/* Contributors Listed Below - COPYRIGHT 2011,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -112,9 +112,6 @@ void dcom_initialize_roles(void)
// Locals
pba_xcfg_t pbax_cfg_reg;
- // Used as a debug tool to correlate time between OCCs & System Time
- // getscom_ffdc(OCB_OTBR, &G_dcomTime.tod, NULL); // Commits errors internally
-
G_dcomTime.tod = in64(OCB_OTBR) >> 4;
G_dcomTime.base = ssx_timebase_get();
pbax_cfg_reg.value = in64(PBA_XCFG);
diff --git a/src/occ_405/main.c b/src/occ_405/main.c
index 01f22b3..f969992 100755
--- a/src/occ_405/main.c
+++ b/src/occ_405/main.c
@@ -280,12 +280,13 @@ void pmc_hw_error_isr(void *private, SsxIrqId irq, int priority)
* End Function Specification
*/
//NOTE: use "putscom pu 6B111 0 3 101 -ib -p1" to inject the error.
-#define OCC_LFIR_SPARE_BIT50 0x0000000000002000ull //gm031
+#define OCC_LFIR_SPARE_BIT50 0x0000000000002000ull
void occ_hw_error_isr(void *private, SsxIrqId irq, int priority)
{
//set bit 50 of the OCC LFIR so that the PRDF component will log an error and callout the processor
//TMGT will also see a problem and log an error but it will be informational.
- _putscom(OCB_OCCLFIR_OR, OCC_LFIR_SPARE_BIT50, SCOM_TIMEOUT);
+
+ // TODO: Determine how to set this without a SCOM.
//Halt occ so that hardware will enter safe mode
OCC_HALT(ERRL_RC_OCC_HW_ERROR);
diff --git a/src/occ_405/pss/apss.c b/src/occ_405/pss/apss.c
index 71d98ef..0896184 100755
--- a/src/occ_405/pss/apss.c
+++ b/src/occ_405/pss/apss.c
@@ -47,7 +47,7 @@ const apssGpioConfigStruct_t G_gpio_config[2] = { {0x00, 0xFF, 0x00}, {0x00, 0xF
// G_apss_mode_config: system parms needed to select correct mode command options
// Configure streaming of: APSS Mode, 16 ADCs, 2 GPIOs
-const apssModeConfigStruct_t G_apss_mode_config = { APSS_MODE_AUTO2, 16, 2 };
+const apssModeConfigStruct_t G_apss_mode_config = { APSS_MODE_COMPOSITE, 16, 2 };
// Power Measurements (read from APSS every RealTime loop)
apssPwrMeasStruct_t G_apss_pwr_meas = { {0} };
diff --git a/src/occ_gpe0/apss_read.c b/src/occ_gpe0/apss_read.c
index 5d0727d..640e712 100644
--- a/src/occ_gpe0/apss_read.c
+++ b/src/occ_gpe0/apss_read.c
@@ -299,6 +299,8 @@ void apss_continue_pwr_meas_read(ipc_msg_t* cmd, void* arg)
break;
}
+ busy_wait(5);
+
// Start SPI Transaction
regValue = 0x8000000000000000;
rc = putscom_abs(SPIPSS_ADC_COMMAND_REG, regValue);
OpenPOWER on IntegriCloud