Re: [PATCH 04/57] microblaze_v7: Open firmware files

From: Anton Vorontsov
Date: Mon Mar 23 2009 - 16:53:23 EST


On Mon, Mar 23, 2009 at 07:51:23PM +0100, Arnd Bergmann wrote:
> On Wednesday 18 March 2009, monstr@xxxxxxxxx wrote:
> > From: Michal Simek <monstr@xxxxxxxxx>
> >
> >
> > Signed-off-by: Michal Simek <monstr@xxxxxxxxx>
> > ---
> > Âarch/microblaze/include/asm/of_device.h  |  45 ++
> > Âarch/microblaze/include/asm/of_platform.h | Â 64 ++
> > Âarch/microblaze/include/asm/prom.h    Â| Â313 ++++++++
> > Âarch/microblaze/kernel/of_device.c    Â| Â115 +++
> > Âarch/microblaze/kernel/of_platform.c   Â| Â201 +++++
> > Âarch/microblaze/kernel/prom.c       | 1147 +++++++++++++++++++++++++++++
> > Âarch/microblaze/kernel/prom_parse.c    | 1025 ++++++++++++++++++++++++++
> > Â7 files changed, 2910 insertions(+), 0 deletions(-)
> > Âcreate mode 100644 arch/microblaze/include/asm/of_device.h
> > Âcreate mode 100644 arch/microblaze/include/asm/of_platform.h
> > Âcreate mode 100644 arch/microblaze/include/asm/prom.h
> > Âcreate mode 100644 arch/microblaze/kernel/of_device.c
> > Âcreate mode 100644 arch/microblaze/kernel/of_platform.c
> > Âcreate mode 100644 arch/microblaze/kernel/prom.c
> > Âcreate mode 100644 arch/microblaze/kernel/prom_parse.c
>
> Since these files are derived from the powerpc versions, what is the
> plan on them? IIRC, you had them in a common directory in an earlier
> version. Are you planning to merge them at some point in the future
> or do you intend to maintain a fork?

Actually, it's trivial to factor out all the common code out of
arch/powerpc/ to drivers/of/.

It took me approx. 4 hours to factor out the code and make a
proof-of-concept FDT support for a little-endian ARM platform. ;-)
(The device tree was only describing a cpu and a nor flash, though.
No support for interrupt- and gpio-controllers. And no support for
U-Boot, I just built the dtb file into the kernel).

I never got around to clean it up and send though, but for sure,
there is absolutely no reason to duplicate the code across the
platforms.

Thanks,

--
Anton Vorontsov
email: cbouatmailru@xxxxxxxxx
irc://irc.freenode.net/bd2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/