Anders Blomdell <anders.blomdell@control.lth.se> wrote:
Yes, I do realize people want this kind of thing. But I also think
there's more than one way to do it, and while a Kconfig option might
make things easier while trying it out, I think it will cause
maintenance pains in the long run.
Yes, but it's not sensible to even offer the option of other ports when
the board just doesn't have them.
True...but it would take quite a bit of duplication, and you'll have to
sync up whenever the "main" setup.c changes.
Well, you could do it like that, but you could also just add another
postcore_initcall. The only hook which is really needed is the "setup"
part, and only if you have additional serial ports.
In fact, it's probably better to just add a weak definition for it
since not all expansion boards will need to override it.
Hmm...why would that be nicer exactly?
What _I_ think would be a nicer way to do it is to implement support
for flattened device trees and get rid of the board code entirely. Or
almost entirely; it depends on how complete we can make the device tree.
Haavard
--