Re: [PATCH RFC v1] ARM: olpc: Add support for calling into theXO-1.75's OpenFirmware (OFW)

From: Eric Miao
Date: Thu Aug 04 2011 - 19:32:29 EST


On Fri, Aug 5, 2011 at 12:25 AM, Andres Salomon <dilinger@xxxxxxxxxx> wrote:
> Add support for saving OFW's cif, and later calling into it to run OFW
> commands from the kernel. ÂOFW remains resident in memory after boot,
> and the physical/virtual addresses are passed in a boot tag. ÂWe parse
> that, and map the addresses.
>
> This is currently only used by the OLPC XO-1.75, so it's named olpc_ofw().
>
> Signed-off-by: Andres Salomon <dilinger@xxxxxxxxxx>
> ---
> ÂDocumentation/arm/Setup         Â|  Â2 +
> Âarch/arm/Kconfig             |  Â8 ++
> Âarch/arm/include/asm/olpc_ofw.h     Â|  23 ++++++
> Âarch/arm/include/asm/setup.h       |  24 ++++++
> Âarch/arm/mach-mmp/Makefile        |  Â1 +
> Âarch/arm/mach-mmp/include/mach/vmalloc.h | Â Â2 +-
> Âarch/arm/mach-mmp/olpc-xo-1-75.c     |  Â7 ++
> Âarch/arm/mach-mmp/olpc_ofw.c       | Â118 ++++++++++++++++++++++++++++++
> Â8 files changed, 184 insertions(+), 1 deletions(-)
> Âcreate mode 100644 arch/arm/include/asm/olpc_ofw.h
> Âcreate mode 100644 arch/arm/mach-mmp/olpc_ofw.c
>
>
> I'm looking for input on our mechanism for calling into OLPC's openfirmware
> on arm. ÂSome of the x86 folks are cc'd
> as they had lots of comment when we did this for x86 OLPC machines.
>
> There's a device tree patch on top of this that can be seen here:
> http://dev.laptop.org/git/olpc-3.0/patch/?id=12377851f9a64a9e2098adf09f858bed7d3eae7c
>
> Unlike the XO-1, I'd like to get this OFW communication mechanism ACKed prior to
> OLPC's mass production of these units.

Not really sure if it's the standard way of calling back into GFW, Grant?
--
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/