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]

Re: Serial driver for ARM s3c4510


> Additionally the AIM platform includes a 16550 UART, so this serial interface
> should be implemented as /dev/ser2 also.
> Is it possible and useful to make a generic s3c4510 serial driver, use the
> generic 16x5x driver but make only one package (devs/serial/arm/aim) which 
> includes this two drivers. Or is it better to make two packages like 
> devs/serial/arm/aim_s3c4510 and devs/serial/arm/aim_16x5x?

I would go for two packages. There is no logical connection between
the two, so why should they share a package? What happens if in the
future you replace your 16x5x with something else etc? 

You are the second person who recently needed two different serial
drivers in the same configuration. I don't really know the serial
driver architecture that well, but from when i looked last the
architecture is not very good at this. If you have time, it would be
good it you could study the architecture and see if you can make is
better for supporting multiple devices.

       Andrew


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