
16 Aug
2013
16 Aug
'13
9:19 p.m.
On Fri, 2013-08-16 at 13:02 +0800, FengHua wrote:
hi Simon, I have worked on generic board for a few days, but something confuse me. Why it is needed? Each processor architecture has different features, this will affect processor specific and board specific code. Putting board_init_* code of each platform into one file with many macro switch make things messy, the board_f.c and board_r.c become very complicated and less readable. Is it really needed?
Most of the stuff in arch/arm/lib/board.c is not processor specific (and certainly not board specific). It's poorly named and should have been called something like "init.c".
-Scott