This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Porting eCos to PPC 405cr board


Hello,

I am in the process of porting eCos to a board with a PowerPC 405cr
processor.

Currently, eCos supports the PPC 405GP processor, which has built-in PCI
bus and ethernet controller. The PCI subsystem is initialized in the
ppc40x variant code (packages/hal/powerpc/ppc40x/current/include/var_io.h).

However, the PPC 405CR processor has neither PCI bus or ethernet
controller. Hence, the HAL code should not try to initialize them.

My question is: Which method is best for solving the problem: 

1) Wrap the 405GP / 405CR specific code in #define's, keeping all
   code for the different PPC 405 chips in one common file,

or:

2) Create a 405CR-specific variant of the eCos HAL, in a separate
   directory tree in the packages/hal/powerpc structure.


(any better suggestions are, of course, very much appreciated)


Best regards,
--Tue


-- 
Tue Brems Olesen          | phone: +45 6133 5015 / +45 9633 0865
Strubjerg 32, 3. th       | mail: tue  at  aye  dot  dk
9400 Nørresundby, Denmark | homepage: http://www.aye.dk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]