forked from Imagelibrary/rtems
bsps/nand: Update Xilinx NAND driver
This resovles gcc warnings by updating to the latest Xilinx NAND controller driver.
This commit is contained in:
committed by
Joel Sherrill
parent
4c0a2d47e1
commit
ada805ea2e
@@ -7,7 +7,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @file xnandpsu.h
|
* @file xnandpsu.h
|
||||||
* @addtogroup nandpsu_v1_10
|
* @addtogroup Overview
|
||||||
* @{
|
* @{
|
||||||
* @details
|
* @details
|
||||||
*
|
*
|
||||||
@@ -152,6 +152,8 @@
|
|||||||
* 1.10 akm 10/20/21 Fix gcc warnings.
|
* 1.10 akm 10/20/21 Fix gcc warnings.
|
||||||
* 1.10 akm 12/21/21 Validate input parameters before use.
|
* 1.10 akm 12/21/21 Validate input parameters before use.
|
||||||
* 1.10 akm 01/05/22 Remove assert checks form static and internal APIs.
|
* 1.10 akm 01/05/22 Remove assert checks form static and internal APIs.
|
||||||
|
* 1.11 akm 03/31/22 Fix unused parameter warning.
|
||||||
|
* 1.11 akm 03/31/22 Fix misleading-indentation warning.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @file xnandpsu_bbm.h
|
* @file xnandpsu_bbm.h
|
||||||
* @addtogroup nandpsu_v1_10
|
* @addtogroup Overview
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* This file implements the Bad Block Management(BBM) functionality. This is
|
* This file implements the Bad Block Management(BBM) functionality. This is
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @file xnandpsu_hw.h
|
* @file xnandpsu_hw.h
|
||||||
* @addtogroup nandpsu_v1_10
|
* @addtogroup Overview
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* This file contains identifiers and low-level macros/functions for the Arasan
|
* This file contains identifiers and low-level macros/functions for the Arasan
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @file xnandpsu_onfi.h
|
* @file xnandpsu_onfi.h
|
||||||
* @addtogroup nandpsu_v1_10
|
* @addtogroup Overview
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* This file defines all the ONFI 3.1 specific commands and values.
|
* This file defines all the ONFI 3.1 specific commands and values.
|
||||||
|
|||||||
@@ -5,16 +5,20 @@ Import from:
|
|||||||
|
|
||||||
https://github.com/Xilinx/embeddedsw.git
|
https://github.com/Xilinx/embeddedsw.git
|
||||||
|
|
||||||
commit 8a89579489c88ea5acd23d7d439ac928659c26cf
|
commit 5330a64c8efd14f0eef09befdbb8d3d738c33ec2
|
||||||
Author: msreeram <manikanta.sreeram@xilinx.com>
|
Refs: <xilinx_v2022.2>
|
||||||
AuthorDate: Wed Apr 6 23:24:38 2022 -0600
|
Author: Nicole Baze <nicole.baze@xilinx.com>
|
||||||
|
AuthorDate: Mon Oct 3 13:27:19 2022 -0700
|
||||||
Commit: Siva Addepalli <sivaprasad.addepalli@xilinx.com>
|
Commit: Siva Addepalli <sivaprasad.addepalli@xilinx.com>
|
||||||
CommitDate: Fri Apr 8 16:47:15 2022 +0530
|
CommitDate: Fri Oct 7 10:26:16 2022 +0530
|
||||||
|
|
||||||
update license file for EmbeddedSW 2022.1 release
|
xilpm: versal: server: Fix bug in AIE2 zeroization
|
||||||
|
|
||||||
Update license file for EmbeddedSW 2022.1 release
|
There is a bug in AIE2 zeriozation function when polling for memory
|
||||||
|
zeroization complete. Currently the entire memory register is being
|
||||||
|
checked against zero but instead we need to check the bits specific
|
||||||
|
to the memory tiles. This patch updates the zeroization check by
|
||||||
|
adding a mask so that only the desired bits are checked for zero.
|
||||||
|
|
||||||
Signed-off-by: Manikanta Sreeram <msreeram@xilinx.com>
|
Signed-off-by: Nicole Baze <nicole.baze@xilinx.com>
|
||||||
|
Acked-by: Jesus De Haro <jesus.de-haro@xilinx.com>
|
||||||
Acked-by : Meena Paleti <meena.paleti@xilinx.com>
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @file xnandpsu.c
|
* @file xnandpsu.c
|
||||||
* @addtogroup nandpsu_v1_10
|
* @addtogroup Overview
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* This file contains the implementation of the interface functions for
|
* This file contains the implementation of the interface functions for
|
||||||
@@ -88,6 +88,8 @@
|
|||||||
* 1.10 akm 10/20/21 Fix gcc warnings.
|
* 1.10 akm 10/20/21 Fix gcc warnings.
|
||||||
* 1.10 akm 12/21/21 Validate input parameters before use.
|
* 1.10 akm 12/21/21 Validate input parameters before use.
|
||||||
* 1.10 akm 01/05/22 Remove assert checks form static and internal APIs.
|
* 1.10 akm 01/05/22 Remove assert checks form static and internal APIs.
|
||||||
|
* 1.11 akm 03/31/22 Fix unused parameter warning.
|
||||||
|
* 1.11 akm 03/31/22 Fix misleading-indentation warning.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
@@ -175,7 +177,7 @@ static s32 XNandPsu_ProgramPage(XNandPsu *InstancePtr, u32 Target, u32 Page,
|
|||||||
static s32 XNandPsu_ReadPage(XNandPsu *InstancePtr, u32 Target, u32 Page,
|
static s32 XNandPsu_ReadPage(XNandPsu *InstancePtr, u32 Target, u32 Page,
|
||||||
u32 Col, u8 *Buf);
|
u32 Col, u8 *Buf);
|
||||||
|
|
||||||
static s32 XNandPsu_CheckOnDie(XNandPsu *InstancePtr, OnfiParamPage *Param);
|
static s32 XNandPsu_CheckOnDie(XNandPsu *InstancePtr);
|
||||||
|
|
||||||
static void XNandPsu_SetEccAddrSize(XNandPsu *InstancePtr);
|
static void XNandPsu_SetEccAddrSize(XNandPsu *InstancePtr);
|
||||||
|
|
||||||
@@ -380,7 +382,7 @@ static s32 XNandPsu_FlashInit(XNandPsu *InstancePtr)
|
|||||||
XNandPsu_InitTimingMode(InstancePtr, &Param[Index]);
|
XNandPsu_InitTimingMode(InstancePtr, &Param[Index]);
|
||||||
XNandPsu_InitFeatures(InstancePtr, &Param[Index]);
|
XNandPsu_InitFeatures(InstancePtr, &Param[Index]);
|
||||||
if ((!InstancePtr->Features.EzNand) != 0U) {
|
if ((!InstancePtr->Features.EzNand) != 0U) {
|
||||||
Status =XNandPsu_CheckOnDie(InstancePtr,&Param[Index]);
|
Status =XNandPsu_CheckOnDie(InstancePtr);
|
||||||
if (Status != XST_SUCCESS) {
|
if (Status != XST_SUCCESS) {
|
||||||
InstancePtr->Features.OnDie = 0U;
|
InstancePtr->Features.OnDie = 0U;
|
||||||
}
|
}
|
||||||
@@ -642,7 +644,7 @@ static void XNandPsu_InitTimingMode(XNandPsu *InstancePtr, OnfiParamPage *Param)
|
|||||||
* @note None
|
* @note None
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
static s32 XNandPsu_CheckOnDie(XNandPsu *InstancePtr, OnfiParamPage *Param)
|
static s32 XNandPsu_CheckOnDie(XNandPsu *InstancePtr)
|
||||||
{
|
{
|
||||||
s32 Status = XST_FAILURE;
|
s32 Status = XST_FAILURE;
|
||||||
u8 JedecId[2] = {0U};
|
u8 JedecId[2] = {0U};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @file xnandpsu_bbm.c
|
* @file xnandpsu_bbm.c
|
||||||
* @addtogroup nandpsu_v1_10
|
* @addtogroup Overview
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* This file implements the Bad Block Management (BBM) functionality.
|
* This file implements the Bad Block Management (BBM) functionality.
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @file xnandpsu_onfi.c
|
* @file xnandpsu_onfi.c
|
||||||
* @addtogroup nandpsu_v1_10
|
* @addtogroup Overview
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* This file contains the implementation of ONFI specific functions.
|
* This file contains the implementation of ONFI specific functions.
|
||||||
|
|||||||
Reference in New Issue
Block a user