PDK-6954: Board: Updated gpio pin configurations for am64x evm button test
authorM V Pratap Reddy <x0257344@ti.com>
Fri, 11 Dec 2020 16:54:57 +0000 (22:24 +0530)
committerVishal Mahaveer <vishalm@ti.com>
Fri, 11 Dec 2020 19:35:20 +0000 (13:35 -0600)
packages/ti/board/diag/button/src/button_test.c

index 66d9e235e73607e3d64430aba25253b83e33a7b7..bf14fed8c92178994faa30ab1ce3ee1203ef3d37 100755 (executable)
@@ -183,12 +183,6 @@ int32_t BoardDiag_ButtonTest(keyPadInfo_t *pBoardKeyPad)
     GPIO_init();
 #elif defined(SOC_AM64X)
     GPIO_init();
-
-    GPIO_v0_HwAttrs gpioCfg;
-    GPIO_socGetInitCfg(1, &gpioCfg);
-    gpioCfg.baseAddr = CSL_MCU_GPIO0_BASE;
-    GPIO_socSetInitCfg(1, &gpioCfg);
-    GPIO_init();
 #else
 #if defined(SOC_TPR12)
     GPIO_v2_updateConfig(&GPIO_v2_config);
@@ -435,11 +429,11 @@ int32_t BoardDiag_GetKeyPadInfo(char *pBoardName, keyPadInfo_t *pBoardKeyPad)
 #endif
     /* Check if the board is EVM AM64X by comparing the string read from
        EEPROM. */
-    else if (strncmp("AM64-COMP", pBoardName, BOARD_NAME_LENGTH) == 0U)
+    else if (strncmp("AM64-GPEVM", pBoardName, BOARD_NAME_LENGTH) == 0U)
     {
 
         pBoardKeyPad->buttonSet = 1;
-        pBoardKeyPad->scnKeyNum = 2;
+        pBoardKeyPad->scnKeyNum = 1;
         pBoardKeyPad->pwrKeyNum = 1;
         pBoardKeyPad->pwrKeyIdx = 0;
         buttonStart[0]=5;
@@ -449,9 +443,6 @@ int32_t BoardDiag_GetKeyPadInfo(char *pBoardName, keyPadInfo_t *pBoardKeyPad)
         /* Update the GPIO data for keypad inputs. */
         KeyScn[0].instance=1;
         KeyScn[0].pin=43;
-
-        KeyScn[1].instance=0;
-        KeyScn[1].pin=6;
     }
     else
     {