nandpsu_v1_0: Removed workaround for qemu in driver.
Removed the workaround for qemu in driver code as qemu now supports ecc and bad block table handling. Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
This commit is contained in:
parent
9a7de0975b
commit
4c2aa9292c
1 changed files with 1 additions and 21 deletions
|
@ -145,7 +145,7 @@ const XNandPsu_EccMatrix EccMatrix[] = {
|
|||
};
|
||||
|
||||
/**************************** Type Definitions *******************************/
|
||||
static u8 isQemuPlatform = 0U;
|
||||
|
||||
/***************** Macros (Inline Functions) Definitions *********************/
|
||||
|
||||
/************************** Function Prototypes ******************************/
|
||||
|
@ -246,17 +246,6 @@ s32 XNandPsu_CfgInitialize(XNandPsu *InstancePtr, XNandPsu_Config *ConfigPtr,
|
|||
InstancePtr->DmaMode = XNANDPSU_MDMA;
|
||||
InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
|
||||
|
||||
/*
|
||||
* Temporary hack for disabling the ecc on qemu as currently there
|
||||
* is no support in the utility for writing images with ecc enabled.
|
||||
*/
|
||||
#define CSU_VER_REG 0xFFCA0044U
|
||||
#define CSU_VER_PLATFORM_MASK 0xF000U
|
||||
#define CSU_VER_PLATFORM_QEMU_VAL 0x3000U
|
||||
if ((*(u32 *)CSU_VER_REG & CSU_VER_PLATFORM_MASK) ==
|
||||
CSU_VER_PLATFORM_QEMU_VAL) {
|
||||
isQemuPlatform = 1U;
|
||||
}
|
||||
/*
|
||||
* Initialize the NAND flash targets
|
||||
*/
|
||||
|
@ -278,11 +267,6 @@ s32 XNandPsu_CfgInitialize(XNandPsu *InstancePtr, XNandPsu_Config *ConfigPtr,
|
|||
InstancePtr->EccMode = XNANDPSU_HWECC;
|
||||
}
|
||||
|
||||
if (isQemuPlatform != 0U) {
|
||||
InstancePtr->EccMode = XNANDPSU_NONE;
|
||||
goto Out;
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize Ecc Error flip counters
|
||||
*/
|
||||
|
@ -421,10 +405,6 @@ static s32 XNandPsu_FlashInit(XNandPsu *InstancePtr)
|
|||
InstancePtr->Features.OnDie = 0U;
|
||||
}
|
||||
}
|
||||
if (isQemuPlatform != 0U) {
|
||||
InstancePtr->Geometry.NumTargets++;
|
||||
break;
|
||||
}
|
||||
if ((InstancePtr->Geometry.NumBitsECC == 0xFFU) &&
|
||||
(InstancePtr->Features.ExtPrmPage != 0U)) {
|
||||
/* ONFI 3.1 section 5.7.1.6 & 5.7.1.7 */
|
||||
|
|
Loading…
Add table
Reference in a new issue