
Dear ashish priyadarshi,
In message fb24d2790911102234x4d210e10mdd9d551541120dc0@mail.gmail.com you wrote:
We have a special "Serial flash controller" which was put into the standard flash framework of uboot (common/cmd_flash.c). Commands like 'cp', 'erase' could be used for operation over serial flash.
What do you mean by "Serial flash controller"? Some storage device similar to NAND or SPI Flash? This would not fit, then.
Since we felt "Serial flash controller" resembles SPI flash framework, and hence decided to move it there. Problem is that this "Serial flash controller" is also not fitting in SPI framework because of its nature.
So you already learned that your serial flash is not a type of memory, but a storage device. You cannot use the memory interface as used for NOR flash for it.
How to handle such situations, is there any other framework or we need to introduce our own commands? We are using "u-boot-2009.08".
That's difficult to impossible to answer - you don't provide any information what exact sort of device you have or why it would (not) fit into the SPI flash code.
Best regards,
Wolfgang Denk