summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1df3c55)
raw | patch | inline | side by side (parent: 1df3c55)
author | M V Pratap Reddy <x0257344@ti.com> | |
Fri, 19 Jun 2020 20:13:44 +0000 (01:43 +0530) | ||
committer | Sivaraj R <sivaraj@ti.com> | |
Mon, 22 Jun 2020 03:28:14 +0000 (22:28 -0500) |
diff --git a/packages/ti/board/diag/board_diag_component.mk b/packages/ti/board/diag/board_diag_component.mk
index 40086970170e2dbdebc6cc9c2ae61ef2f47d0a8b..9a0a69d12261fdc81551c18df6316fb6088644c1 100755 (executable)
export board_diag_hyperbus_MAKEFILE
board_diag_hyperbus_PKG_LIST = board_diag_hyperbus
board_diag_hyperbus_INCLUDE = $(board_diag_hyperbus_PATH)
-board_diag_hyperbus_BOARDLIST = j721e_evm
+board_diag_hyperbus_BOARDLIST = j721e_evm j7200_evm
board_diag_hyperbus_$(SOC)_CORELIST = $(board_diag_$(SOC)_CORELIST)
export board_diag_hyperbus_$(SOC)_CORELIST
export board_diag_hyperbus_SBL_APPIMAGEGEN = $(board_diag_APPIMAGEGEN_CTRL)
diff --git a/packages/ti/board/diag/hyperbus/build/j7200_evm/hyperbus_gpio_config.c b/packages/ti/board/diag/hyperbus/build/j7200_evm/hyperbus_gpio_config.c
--- /dev/null
@@ -0,0 +1,70 @@
+/******************************************************************************\r
+ * Copyright (c) 2020 Texas Instruments Incorporated - http://www.ti.com\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without\r
+ * modification, are permitted provided that the following conditions\r
+ * are met:\r
+ *\r
+ * Redistributions of source code must retain the above copyright\r
+ * notice, this list of conditions and the following disclaimer.\r
+ *\r
+ * Redistributions in binary form must reproduce the above copyright\r
+ * notice, this list of conditions and the following disclaimer in the\r
+ * documentation and/or other materials provided with the\r
+ * distribution.\r
+ *\r
+ * Neither the name of Texas Instruments Incorporated nor the names of\r
+ * its contributors may be used to endorse or promote products derived\r
+ * from this software without specific prior written permission.\r
+ *\r
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\r
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ *\r
+ *****************************************************************************/\r
+\r
+/**\r
+ * \file hyperbus_gpio_config.c\r
+ *\r
+ * \brief GPIO configuration for Hyperbus interface.\r
+ *\r
+ */\r
+#include <stdio.h>\r
+#include <ti/drv/gpio/GPIO.h>\r
+#include <ti/csl/soc.h>\r
+#include <ti/drv/gpio/soc/GPIO_soc.h>\r
+\r
+/*\r
+ Port and pin number mask for GPIO.\r
+ Bits 7-0: Pin number and Bits 15-8: Port number */\r
+\r
+/* SPI test header pin - 1 2 and 4 */\r
+#define PIN1 (0x0006U)\r
+\r
+\r
+/* GPIO Driver board specific pin configuration structure */\r
+GPIO_PinConfig gpioPinConfigs[] = {\r
+ PIN1 | GPIO_CFG_OUTPUT,\r
+};\r
+\r
+/* GPIO Driver call back functions */\r
+GPIO_CallbackFxn gpioCallbackFunctions[] = {\r
+ NULL,\r
+};\r
+\r
+/* GPIO Driver configuration structure */\r
+GPIO_v0_Config GPIO_v0_config = {\r
+ gpioPinConfigs,\r
+ gpioCallbackFunctions,\r
+ sizeof(gpioPinConfigs) / sizeof(GPIO_PinConfig),\r
+ sizeof(gpioCallbackFunctions) / sizeof(GPIO_CallbackFxn),\r
+ 0,\r
+};\r
diff --git a/packages/ti/board/diag/hyperbus/build/makefile b/packages/ti/board/diag/hyperbus/build/makefile
index 8ace461177e9d91c6733113f80a74ca5f77e2366..8fe824d31fee64455cbfb6345fd26653e97971c5 100755 (executable)
\r
# List all the components required by the application\r
COMP_LIST_COMMON = board csl csl_init osal_nonos uart i2c spi\r
-ifeq ($(SOC), $(filter $(SOC), j721e))\r
+ifeq ($(SOC), $(filter $(SOC), j721e j7200))\r
COMP_LIST_COMMON += sciclient gpio\r
endif\r
\r
\r
SRCS_COMMON += hyperbus_test.c diag_common_cfg.c\r
\r
-ifeq ($(BOARD), $(filter $(BOARD), j721e_evm))\r
+ifeq ($(BOARD), $(filter $(BOARD), j721e_evm j7200_evm))\r
SRCS_COMMON += hyperbus_gpio_config.c\r
endif\r
\r
diff --git a/packages/ti/board/diag/hyperbus/src/hyperbus_test.c b/packages/ti/board/diag/hyperbus/src/hyperbus_test.c
index c973da91da5b3bc3189d6664acd3e869e960dfc4..5a0bdca4adb25412c23f86c3bde0c6ddae69f18c 100755 (executable)
/******************************************************************************\r
- * Copyright (c) 2019 Texas Instruments Incorporated - http://www.ti.com\r
+ * Copyright (c) 2019-2020 Texas Instruments Incorporated - http://www.ti.com\r
*\r
* Redistribution and use in source and binary forms, with or without\r
* modification, are permitted provided that the following conditions\r
*\r
* Operation: Verification of hyperbus by accessing the device connected to it.\r
*\r
- * Supported SoCs : J721E\r
+ * Supported SoCs : J721E & J7200.\r
*\r
- * Supported Platforms: j721e_evm\r
+ * Supported Platforms: j721e_evm & j7200_evm.\r
*\r
*/\r
\r