From f65bbb405910df12f5482792fb09f9105e7cec6d Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Wed, 28 Dec 2022 13:13:38 -0600 Subject: bsps: Move ZynqMP-specific info into the BSP The address of the nandpsu peripheral is specific to the ZynqMP SoC and not relevant to other devices that might have one or more instances of this peripheral. --- bsps/shared/dev/nand/xnandpsu_g.c | 47 ----------------------- bsps/shared/dev/nand/xnandpsu_sinit.c | 70 ----------------------------------- 2 files changed, 117 deletions(-) delete mode 100644 bsps/shared/dev/nand/xnandpsu_g.c delete mode 100644 bsps/shared/dev/nand/xnandpsu_sinit.c (limited to 'bsps/shared') diff --git a/bsps/shared/dev/nand/xnandpsu_g.c b/bsps/shared/dev/nand/xnandpsu_g.c deleted file mode 100644 index 2fb2a2a26e..0000000000 --- a/bsps/shared/dev/nand/xnandpsu_g.c +++ /dev/null @@ -1,47 +0,0 @@ -/****************************************************************************** -* Copyright (C) 2015 - 2022 Xilinx, Inc. All rights reserved. -* SPDX-License-Identifier: MIT -******************************************************************************/ - -/*****************************************************************************/ -/** -* -* @file xnandpsu_g.c -* @addtogroup nandpsu_v1_10 -* @{ -* -* This file contains a configuration table where each entry is a configuration -* structure for an XNandPsu device in the system. -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who    Date	   Changes
-* ----- ----   ----------  -----------------------------------------------
-* 1.0   nm     05/06/2014  First release
-* 1.0   nm     06/02/2014  Changed the copyright to new copyright
-* 
-* -******************************************************************************/ - -/***************************** Include Files ********************************/ -#include "xparameters.h" -#include "xnandpsu.h" -/************************** Constant Definitions ****************************/ - -/**************************** Type Definitions ******************************/ - -/***************** Macros (Inline Functions) Definitions ********************/ - -/************************** Variable Definitions ****************************/ - -/** - * Each XNandPsu device in the system has an entry in this table. - */ -XNandPsu_Config XNandPsu_ConfigTable[] = { - { - 0U, - (u32)XPAR_XNANDPSU_0_BASEADDR - } -}; -/** @} */ diff --git a/bsps/shared/dev/nand/xnandpsu_sinit.c b/bsps/shared/dev/nand/xnandpsu_sinit.c deleted file mode 100644 index dd6b14ef10..0000000000 --- a/bsps/shared/dev/nand/xnandpsu_sinit.c +++ /dev/null @@ -1,70 +0,0 @@ -/****************************************************************************** -* Copyright (C) 2015 - 2022 Xilinx, Inc. All rights reserved. -* SPDX-License-Identifier: MIT -******************************************************************************/ - -/*****************************************************************************/ -/** -* -* @file xnandpsu_sinit.c -* @addtogroup nandpsu_v1_10 -* @{ -* -* The implementation of the XNandPsu driver's static initialization -* functionality. -* -*
-* MODIFICATION HISTORY:
-*
-* Ver   Who    Date	   Changes
-* ----- ----   ----------  -----------------------------------------------
-* 1.0   nm     05/06/2014  First release
-* 
-* -******************************************************************************/ - -/***************************** Include Files ********************************/ -#include "xstatus.h" -#include "xparameters.h" -#include "xnandpsu.h" -/************************** Constant Definitions ****************************/ - -/**************************** Type Definitions ******************************/ - -/***************** Macros (Inline Functions) Definitions ********************/ - -/************************** Variable Definitions ****************************/ - -extern XNandPsu_Config XNandPsu_ConfigTable[]; - -/************************** Function Prototypes *****************************/ - -/****************************************************************************/ -/** -* -* Looks up the controller configuration based on the unique controller ID. A -* table contains the configuration info for each controller in the system. -* -* @param DevID is the ID of the controller to look up the -* configuration for. -* -* @return -* A pointer to the configuration found or NULL if the specified -* controller ID was not found. -* -******************************************************************************/ -XNandPsu_Config *XNandPsu_LookupConfig(u16 DevID) -{ - XNandPsu_Config *CfgPtr = NULL; - u32 Index; - - for (Index = 0U; Index < (u32)XPAR_XNANDPSU_NUM_INSTANCES; Index++) { - if (XNandPsu_ConfigTable[Index].DeviceId == DevID) { - CfgPtr = &XNandPsu_ConfigTable[Index]; - break; - } - } - - return (XNandPsu_Config *)CfgPtr; -} -/** @} */ -- cgit v1.2.3