nandpsu: Decrease the XNANDPSU_MAX_BLOCKS value
This change is to reduce the size of the static bbt table size from 8KB to 4KB because so far we have not identified the flash part that has more than 16K blocks and also it will reduce the bsp size. Driver warns if the device has more number of blocks than the defined value so that this can be incremented in future and if there is a part available. Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com> Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
parent
ac89dc0908
commit
fb124d3372
2 changed files with 3 additions and 1 deletions
|
@ -533,6 +533,8 @@ static void XNandPsu_InitGeometry(XNandPsu *InstancePtr, OnfiParamPage *Param)
|
|||
(u64)Param->PagesPerBlock *
|
||||
(u64)Param->BytesPerPage);
|
||||
InstancePtr->Geometry.EccCodeWordSize = 9U; /* 2 power of 9 = 512 */
|
||||
if (InstancePtr->Geometry.NumTargetBlocks > XNANDPSU_MAX_BLOCKS)
|
||||
xil_printf("!!! Device contains more blocks than the max defined blocks in driver\r\n");
|
||||
|
||||
#ifdef XNANDPSU_DEBUG
|
||||
xil_printf("Manufacturer: %s\r\n", Param->DeviceManufacturer);
|
||||
|
|
|
@ -195,7 +195,7 @@ extern "C" {
|
|||
#define XNANDPSU_HAMMING 0x1U /**< Hamming Flash */
|
||||
#define XNANDPSU_BCH 0x2U /**< BCH Flash */
|
||||
|
||||
#define XNANDPSU_MAX_BLOCKS 32768U /**< Max number of Blocks */
|
||||
#define XNANDPSU_MAX_BLOCKS 16384U /**< Max number of Blocks */
|
||||
#define XNANDPSU_MAX_SPARE_SIZE 0x800U /**< Max spare bytes of a NAND
|
||||
flash page of 16K */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue