From daedbcdf083dfbda615b75e535f2364acd56afba Mon Sep 17 00:00:00 2001 From: Harini Katakam Date: Tue, 28 Apr 2015 12:16:30 +0530 Subject: [PATCH] qspipsu: Change comment about bus width of dummy entry The recommendation from design is to have bus width of dummy entry = bus width of address phase (whether this is 1, 2 or 4). This code will remain same irrespective of QEMU. Hence change the comment. Signed-off-by: Harini Katakam --- .../examples/xqspipsu_generic_flash_interrupt_example.c | 5 ++--- .../examples/xqspipsu_generic_flash_polled_example.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/qspipsu_v1_1/examples/xqspipsu_generic_flash_interrupt_example.c b/XilinxProcessorIPLib/drivers/qspipsu_v1_1/examples/xqspipsu_generic_flash_interrupt_example.c index dd2c5881..95e5764e 100644 --- a/XilinxProcessorIPLib/drivers/qspipsu_v1_1/examples/xqspipsu_generic_flash_interrupt_example.c +++ b/XilinxProcessorIPLib/drivers/qspipsu_v1_1/examples/xqspipsu_generic_flash_interrupt_example.c @@ -1236,9 +1236,8 @@ int FlashRead(XQspiPsu *QspiPsuPtr, u32 Address, u32 ByteCount, u8 Command, /* Update Dummy cycles as per flash specs for QUAD IO */ /* - * Silicon and REMUS do not care what the SPI mode is - * for dummies, but QEMU expects it to match the address - * phase. Make it so. + * Bus width of dummy phase is recommended to be the same as + * address phase */ FlashMsg[1].BusWidth = FlashMsg[0].BusWidth; diff --git a/XilinxProcessorIPLib/drivers/qspipsu_v1_1/examples/xqspipsu_generic_flash_polled_example.c b/XilinxProcessorIPLib/drivers/qspipsu_v1_1/examples/xqspipsu_generic_flash_polled_example.c index 38c698bb..c2b9f70a 100644 --- a/XilinxProcessorIPLib/drivers/qspipsu_v1_1/examples/xqspipsu_generic_flash_polled_example.c +++ b/XilinxProcessorIPLib/drivers/qspipsu_v1_1/examples/xqspipsu_generic_flash_polled_example.c @@ -1154,9 +1154,8 @@ int FlashRead(XQspiPsu *QspiPsuPtr, u32 Address, u32 ByteCount, u8 Command, /* Update Dummy cycles as per flash specs for QUAD IO */ /* - * Silicon and REMUS do not care what the SPI mode is - * for dummies, but QEMU expects it to match the address - * phase. Make it so. + * Bus width of dummy phase is recommended to be the same as + * address phase */ FlashMsg[1].BusWidth = FlashMsg[0].BusWidth;