[GIT PULL] omap changes for v2.6.39 merge window
dv at vollmann.ch
Fri Apr 1 11:30:22 EDT 2011
On 04/01/11 16:59, Arnd Bergmann wrote:
> On Friday 01 April 2011, Detlef Vollmann wrote:
>> On 04/01/11 15:54, Arnd Bergmann wrote:
>>> 9. All interesting work is going into a handful of platforms, all of which
>>> are ARMv7 based.
>> Define interesting.
> The ones that are causing the churn that we're talking about.
> Platforms that have been working forever and only need to get
> the occasional bug fix are boring, i.e. not the problem.
In the ARM tree I only know mach-at91.
Atmel still introduces new SOCs based on ARM926EJ-S, and that makes
perfect sense for lots of applications.
And if they add support for a new SOC, they just copy an existing one,
change some GPIOs, and submit it as new files (sorry, I'm over-
And if you happen to wire your board a bit differently than they do,
you have to patch theur generic file (in addidtion to add your own
And though I only know the mach-at91 closely, I'm pretty sure quite
a number of other mach-* are not better.
So this is actually why the ARM tree has such a bad reputation:
lot's of code repetition, and still more of that.
>>> 12. Supporting many different boards with a single kernel binary is a
>>> useful goal.
>> Generally not for embedded systems (for me, a mobile PDA/phone is just a
>> small computer with a crappy keyboard, but not an embedded system).
> True. For embedded, this would not be an important thing to do, but
> also not hurt.
It costs you flash space.
>>> * Strictly no crap
>>> * No board files
>> Where do you put code that needs to run very early (e.g. pinging the
> Don't know. I'd hope we can get fast enough to the phase where device
> drivers get initialized.
Nope, never happened for me :-(
(Watchdog timeouts are often 1s or less.)
>>> * All board specific information must come from a device tree and
>>> be run-time detected.
>> What do you mean by "run-time detected"?
>> For powerpc, we currently have the device tree as DTS in the kernel
>> and compile and bundle it together with the kernel.
>> As you wrote above: "Discoverable hardware [...] is not going to happen"
> I mean writing
> if (device_is_compatible(dev, SOMETHING))
> instead of
> #ifdef CONFIG_SOMETHING
> The run-time information could come from anywhere (device tree, hardware
> registers, today one might use the board number), the important point is
> not to assume that hardware is present just because someone enabled
> a Kconfig option.
Understood and I agree.
> I believe that rule is generally accepted today, but we don't always
> enforce it.
Without device tree, Kconfig option is the only way that really
works today (no runtime HW detection, and same board ID with different
Device tree in my world is just one big Kconfig option instead of
More information about the linux-arm-kernel