adding pxa3xx_nand_flash to platform data
Hello Eric,
Currently I need to enable the deprecated MTD_NAND_PXA3xx_BUILTIN support for Aspenite DB board (pxa168). I have a patch ready to add pxa3xx_nand_flash in aspenite.c but I was wondering about the cmdset field in it.
Looks like it is the same for all boards (depending upon the page size). So should I add it to the board specific setup file or remove it from pxa3xx_nand_platform_data (and put it in say, pxa3xx_nand_info)?
If there are boards which require a different cmdset then we have to go with first option, if not, we can use option two and save some code duplication.
-siddarth
Quoted 10 lines · Siddarth Gore
Hello Eric,
Currently I need to enable the deprecated
MTD_NAND_PXA3xx_BUILTINsupport for Aspenite DB board (pxa168). I have a patch ready to addpxa3xx_nand_flashinaspenite.cbut I was wondering about the cmdset field in it.
Looks like it is the same for all boards (depending upon the page size). So should I add it to the board specific setup file or remove it frompxa3xx_nand_platform_data(and put it in say,pxa3xx_nand_info)?
Quoted 4 lines
If there are boards which require a different cmdset then we have to go with first option, if not, we can use option two and save some code duplication.
There are normally two sets of commands, yet the code derived from some previous work that there were several subtle different command sets.
Haojian,
Could you help check if there are other possibilities? Otherwsie, we can just make this field internal and decide by page_size?
- eric
Quoted 16 lines · Eric Miao
Quoted 10 lines · Siddarth Gore
Hello Eric,
Currently I need to enable the deprecated
MTD_NAND_PXA3xx_BUILTINsupport for Aspenite DB board (pxa168). I have a patch ready to addpxa3xx_nand_flashinaspenite.cbut I was wondering about the cmdset field in it.
Looks like it is the same for all boards (depending upon the page size). So should I add it to the board specific setup file or remove it frompxa3xx_nand_platform_data(and put it in say,pxa3xx_nand_info)?Quoted 4 lines
If there are boards which require a different cmdset then we have to go with first option, if not, we can use option two and save some code duplication.
Quoted 8 lines
There are normally two sets of commands, yet the code derived from some previous work that there were several subtle different command sets.
Haojian,
Could you help check if there are other possibilities? Otherwsie, we can just make this field internal and decide by
page_size?
Haojian CC'ed.
Quoted 12 lines · Eric Miao
Quoted 11 lines · Eric Miao
Quoted 10 lines · Siddarth Gore
Hello Eric,
Currently I need to enable the deprecated
MTD_NAND_PXA3xx_BUILTINsupport for Aspenite DB board (pxa168). I have a patch ready to addpxa3xx_nand_flashinaspenite.cbut I was wondering about the cmdset field in it.
Looks like it is the same for all boards (depending upon the page size). So should I add it to the board specific setup file or remove it frompxa3xx_nand_platform_data(and put it in say,pxa3xx_nand_info)?
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
If there are boards which require a different cmdset then we have to go with first option, if not, we can use option two and save some code duplication.
There are normally two sets of commands, yet the code derived from some previous work that there were several subtle different command sets.
We already formated the patches of removing the duplication. Now it's put into mailist. Try these patches.
Thanks
Haojian
Quoted 18 lines · Haojian Zhuang
Quoted 17 lines · Eric Miao
Quoted 16 lines · Eric Miao
Quoted 14 lines · Siddarth Gore
Hello Eric,
Currently I need to enable the deprecated
MTD_NAND_PXA3xx_BUILTINsupport for Aspenite DB board (pxa168). I have a patch ready to addpxa3xx_nand_flashinaspenite.cbut I was wondering about the cmdset field in it.
Looks like it is the same for all boards (depending upon the page size). So should I add it to the board specific setup file or remove it frompxa3xx_nand_platform_data(and put it in say,pxa3xx_nand_info)?If there are boards which require a different cmdset then we have to go with first option, if not, we can use option two and save some code duplication.
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
There are normally two sets of commands, yet the code derived from some previous work that there were several subtle different command sets.
We already formated the patches of removing the duplication. Now it's put into mailist. Try these patches.
Thanks a lot Haojian. I have tried the whole patchset and it is working fine on my Aspenite DB board. Did not get a chance to check individual patches though.
Also, some patches did not get applied with git-am. I had to manually apply them.
-siddarth
Quoted 2 lines
Thanks
Haojian
Hi Siddarth,
This patch set is base on Eric's pxa-linux-2.6.git devel branch.
http://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6.git
You could try it on that git. If anything wrong, please let me know.
Thanks,
Lei
Quoted 44 lines · Siddarth Gore
Quoted 18 lines · Haojian Zhuang
Quoted 17 lines · Eric Miao
Quoted 16 lines · Eric Miao
Quoted 14 lines · Siddarth Gore
Hello Eric,
Currently I need to enable the deprecated
MTD_NAND_PXA3xx_BUILTINsupport for Aspenite DB board (pxa168). I have a patch ready to addpxa3xx_nand_flashinaspenite.cbut I was wondering about the cmdset field in it.
Looks like it is the same for all boards (depending upon the page size). So should I add it to the board specific setup file or remove it frompxa3xx_nand_platform_data(and put it in say,pxa3xx_nand_info)?If there are boards which require a different cmdset then we have to go with first option, if not, we can use option two and save some code duplication.
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
There are normally two sets of commands, yet the code derived from some previous work that there were several subtle different command sets.
We already formated the patches of removing the duplication. Now it's put into mailist. Try these patches.
Thanks a lot Haojian. I have tried the whole patchset and it is working fine on my Aspenite DB board. Did not get a chance to check individual patches though.
Also, some patches did not get applied with git-am. I had to manually apply them.
-siddarth
Quoted 2 lines
Thanks
Haojian_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel