diff options
Diffstat (limited to 'src/occ_gpe0')
-rw-r--r-- | src/occ_gpe0/apss_init.c | 29 | ||||
-rw-r--r-- | src/occ_gpe0/apss_read.c | 2 | ||||
-rw-r--r-- | src/occ_gpe0/gpe0_main.c | 4 |
3 files changed, 4 insertions, 31 deletions
diff --git a/src/occ_gpe0/apss_init.c b/src/occ_gpe0/apss_init.c index 678dad3..702393a 100644 --- a/src/occ_gpe0/apss_init.c +++ b/src/occ_gpe0/apss_init.c @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -183,30 +183,6 @@ void apss_init_gpio(ipc_msg_t* cmd, void* arg) gpe_set_ffdc(&(args->error), SPIPSS_P2S_WDATA_REG, rc, regValue); break; } - // Start SPI transaction - rc = apss_start_spi_command(args, 0); - if (rc) - { - PK_TRACE("apss_init_gpio: SPI command start failed. rc = 0x%08x", rc); - //FFDC already added. - break; - } - - //-------------------- - // Interrupt (APSS cmd 0x6xxx) - regValue = args->config0.interrupt; - regValue = regValue << 48; - regValue |= 0x6000000000000000; - regValue |= (port << 56); - - rc = putscom_abs(SPIPSS_P2S_WDATA_REG, regValue); - if (rc) - { - PK_TRACE("apss_init_gpio: SPIPSS_P2S_WDATA_REG putscom failed. value:0x%X. rc = 0x%08x", - regValue, rc); - gpe_set_ffdc(&(args->error), SPIPSS_P2S_WDATA_REG, rc, regValue); - break; - } // Start SPI transaction if (port == 0) @@ -355,9 +331,6 @@ void apss_init_mode(ipc_msg_t* cmd, void* arg) gpe_set_ffdc(&(args->error), SPIPSS_P2S_COMMAND_REG, rc, 0x8000000000000000); } - //Wait 20usec for apss becoming ready to send out the frame of composite mode - busy_wait(20); - }while(0); // send back a response diff --git a/src/occ_gpe0/apss_read.c b/src/occ_gpe0/apss_read.c index 9ffd334..df33bfa 100644 --- a/src/occ_gpe0/apss_read.c +++ b/src/occ_gpe0/apss_read.c @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ diff --git a/src/occ_gpe0/gpe0_main.c b/src/occ_gpe0/gpe0_main.c index 5cb0174..da7640b 100644 --- a/src/occ_gpe0/gpe0_main.c +++ b/src/occ_gpe0/gpe0_main.c @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -34,7 +34,7 @@ #include "ipc_ping.h" #include "gpe_export.h" -#define KERNEL_STACK_SIZE 256 +#define KERNEL_STACK_SIZE 512 #define MAIN_THREAD_STACK_SIZE 512 uint8_t G_kernel_stack[KERNEL_STACK_SIZE]; |