在 2022/2/9 14:04, Maxime Ripard 写道:
On Wed, Feb 09, 2022 at 11:56:48AM +0000, Jiaxun Yang wrote:
在 2022/2/9 8:52, Maxime Ripard 写道:
On Thu, Feb 03, 2022 at 11:47:16PM +0800, Sui Jingfeng wrote:
[...]
DT isn't really a solution either. Let's take the distribution
perspective there. Suppose you're a Fedora or Debian developer, and want
to make a single kernel image, and ship a DT to the user for their board
without any modification. How is either the Kconfig solution or DT flags
solution any good there? It doesn't help them at all.
We are working in another way. As we can tell model of the board by strings
passed from the firmware, we just built-in all poosible DTs into the kernel
and then tell which DT to load at boot time. So we can ensure users has
smmoth experience.
It's not really for you to say though. Once your driver is in a release,
distros are going to use it. That's the whole point of you asking us to
merge it.
Ah I was meant to say we can determine which type of memory is best for a
type of board and then hardcode it into ST accroading to the model.
Though personally I want a knob in cmdline to override it at runtime.
Thanks.
- Jiaxun
Maxime