
In message 16469.44734.573362.958637@gargle.gargle.HOWL you wrote:
No, no, it's just E-mail formatting of the excerpt after several replies. There is no redundant code in the patch.
You are right. Sorry for the confusion.
This would require that, for every PQ27e-based board, it would be defined in the board configuration file that it's PQ27e and not just 8260. Then CPM_DATAONLY_SIZE can be defined conditionally on this definition in cpm_8260.h. I personally don't like such compile-time definitions because chip version can be easily detected in run-time.
The advantage of compile-time definitions is that they result in smaller code.
Wolfgang> PQ27E_FCC_SPECIAL_BASE vs. CPM_FCC_SPECIAL_BASE
...
Well, the question is if it's better that the CPU-specific code will silently handle the differences or we'll make it the user's responsibility to define the difference manually. I think automatic handling is better but if you insist on #ifdefs, I can implement it too.
Sorry, but I can't follow.
From what I have seen your patches used _two_ #defines instead of
one.
Best regards,
Wolfgang Denk