Re: [Qemu-devel] [PATCH] vexpress: Add support for the -bios flag to provide firmware

2014-04-18 Thread Grant Likely
On Tue, 15 Apr 2014 16:50:06 +0100, Peter Maydell wrote: > On 28 March 2014 17:57, Grant Likely wrote: > > Right now to run firmware inside the QEMU VExpress model requires > > padding out the firmware image to the size of the virtual flash and > > passing it in via the -pf

Re: [Qemu-devel] [PATCH] vexpress: Add support for the -bios flag to provide firmware

2014-04-18 Thread Grant Likely
On Tue, 15 Apr 2014 16:46:50 +0100, Peter Maydell wrote: > On 28 March 2014 17:57, Grant Likely wrote: > > Right now to run firmware inside the QEMU VExpress model requires > > padding out the firmware image to the size of the virtual flash and > > passing it in via the -pf

[Qemu-devel] [PATCH] vexpress: Add support for the -bios flag to provide firmware

2014-03-28 Thread Grant Likely
. Signed-off-by: Grant Likely Tested-by: Roy Franz Cc: Peter Maydell --- hw/arm/vexpress.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/arm/vexpress.c b/hw/arm/vexpress.c index 67628af58840..80c549caa662 100644 --- a/hw/arm/vexpress.c +++ b/hw/arm/vexpress.c @@ -28,6 +28,7

Re: [Qemu-devel] [PATCH v2] Make -kernel flag optional on ARM.

2013-08-30 Thread Grant Likely
On Fri, Aug 30, 2013 at 2:12 PM, Andreas Färber wrote: > Hi, > > Am 30.08.2013 12:58, schrieb Grant Likely: >> Hi Peter, >> >> What's the status on this patch? Is it able to be merged? > > I had posted a slightly different patch earlier that just returned >

Re: [Qemu-devel] [PATCH v2] Make -kernel flag optional on ARM.

2013-08-30 Thread Grant Likely
Hi Peter, What's the status on this patch? Is it able to be merged? g. On Wed, Jul 10, 2013 at 9:16 AM, Grant Likely wrote: > Sometimes we want to boot the system via firmware instead of loading a > kernel into ram with the -kernel parameter. This patch makes the -kernel > para

[Qemu-devel] [PATCH v2] Make -kernel flag optional on ARM.

2013-07-10 Thread Grant Likely
: Currently the file must be at least the size of the emulated flash device (ie 64M for VExpress) otherwise QEMU will silently not use the data. This will be fixed in a separate patch v2: just return if the kernel filename isn't provided Signed-off-by: Grant Likely Cc: Peter Maydell Cc: qemu-

Re: [Qemu-devel] [PATCH] Make -kernel flag optional on ARM.

2013-07-10 Thread Grant Likely
On Wed, Jul 10, 2013 at 8:44 AM, Peter Maydell wrote: > On 10 July 2013 08:33, Grant Likely wrote: >> Sometimes we want to boot the system via firmware instead of loading a >> kernel into ram with the -kernel parameter. This patch makes the -kernel >> parameter optional

[Qemu-devel] [PATCH] Make -kernel flag optional on ARM.

2013-07-10 Thread Grant Likely
is some code for the emulator to execute. Signed-off-by: Grant Likely Cc: Peter Maydell Cc: qemu-devel@nongnu.org --- hw/arm/boot.c | 47 ++- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index 7c0090f

[Qemu-devel] [PATCH V4 8/8] hw/mdio: Use bitbang core for smc91c111 network device

2013-02-03 Thread Grant Likely
ields because this patch add fields to the state structure. Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/Makefile.objs |2 +- hw/smc91c111.c | 27 ++- 2 files changed, 23 inser

Re: [Qemu-devel] [PATCH V3 8/8] hw/mdio: Use bitbang core for smc91c111 network device

2013-02-03 Thread Grant Likely
On Sat, 2 Feb 2013 23:51:42 +, Peter Maydell wrote: > On 2 February 2013 23:40, Grant Likely wrote: > > static const VMStateDescription vmstate_smc91c111 = { > > @@ -71,6 +76,8 @@ static const VMStateDescription vmstate_smc91c111 = { > > VMSTATE_BUFFER_UNSAFE(

[Qemu-devel] [PATCH V3 7/8] hw/mdio: Add VMState support

2013-02-02 Thread Grant Likely
The MDIO model needs to have VMState support before it can be used by devices that support VMState. This patch adds VMState macros for both qemu_mdio and qemu_phy. Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely

[Qemu-devel] [PATCH V3 2/8] hw/mdio: Generalize etraxfs MDIO bitbanging emulation

2013-02-02 Thread Grant Likely
: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/Makefile.objs |2 +- hw/cris/Makefile.objs |1 + hw/etraxfs_eth.c | 278 + hw/mdio.c | 262

[Qemu-devel] [PATCH V3 6/8] hw/mdio: Refactor bitbanging state machine

2013-02-02 Thread Grant Likely
with GPIO connection in a follow-on patch Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/etraxfs_eth.c | 11 ++--- hw/mdio.c| 134 ++ hw/md

[Qemu-devel] [PATCH V3 8/8] hw/mdio: Use bitbang core for smc91c111 network device

2013-02-02 Thread Grant Likely
s Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/Makefile.objs |2 +- hw/smc91c111.c | 23 --- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/hw/Makefile.objs b/hw/Makefile.objs index af93dfc..4ec6fb8 100644 ---

[Qemu-devel] [PATCH V3 5/8] hw/mdio: Mask out read-only bits.

2013-02-02 Thread Grant Likely
out also. Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/mdio.c | 16 hw/mdio.h |1 + 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/hw/mdio.c b/hw/mdio.c index 040ecf6

[Qemu-devel] [PATCH V3 4/8] hw/mdio: Generalize phy initialization routine

2013-02-02 Thread Grant Likely
thony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/etraxfs_eth.c|2 +- hw/mdio.c | 14 +++--- hw/mdio.h |2 +- hw/xilinx_axienet.c |2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c

[Qemu-devel] [PATCH V3 3/8] hw/mdio: Add PHY register definition

2013-02-02 Thread Grant Likely
Trivial patch to add #defines for defined PHY register address and bit fields Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/mdio.c |8 hw/mdio.h | 24 ++-- 2 files changed

[Qemu-devel] [PATCH V3 1/8] hw/etraxfs_eth: Eliminate checkpatch errors

2013-02-02 Thread Grant Likely
This is a trivial patch to harmonize the coding style on hw/etraxfs_eth.c. This is in preparation to split off the bitbang mdio code into a separate file. Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw

[Qemu-devel] [PATCH V3 0/8] Generalize MDIO framework

2013-02-02 Thread Grant Likely
Hi Edgar, Here is one more version of this patch set. I've addressed as many comments as I could. There is more work to be done, particularly in moving to the common GPIO api, but that work can be done as a follow on patch series. Cheers, g.

Re: [Qemu-devel] [PATCH V2 1/6] trivial: etraxfs_eth: Eliminate checkpatch errors

2013-01-24 Thread Grant Likely
On Thu, 24 Jan 2013 10:09:26 +0100, Andreas Färber wrote: > Am 23.01.2013 17:15, schrieb Grant Likely: > > This is a trivial patch to harmonize the coding style on > > hw/etraxfs_eth.c. This is in preparation to split off the bitbang mdio > > code into a separate file. >

Re: [Qemu-devel] [PATCH V2 2/6] hw/mdio: Generalize etraxfs MDIO bitbanging emulation

2013-01-24 Thread Grant Likely
On Wed, 23 Jan 2013 23:45:13 +, Paul Brook wrote: > > +#ifdef USE_THIS_DEAD_CODE > > +void mdio_detach(struct qemu_mdio *bus, struct qemu_phy *phy, unsigned int > > addr) +{ > > +bus->devs[addr & 0x1f] = NULL; > > +} > > +#endif > > This is clearly wrong. It's in both versions of the ori

[Qemu-devel] [PATCH V2 4/6] hw/mdio: Add VMState support

2013-01-23 Thread Grant Likely
The MDIO model needs to have VMState support before it can be used by devices that support VMState. This patch adds VMState macros for both qemu_mdio and qemu_phy. Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely

[Qemu-devel] [PATCH V2 3/6] hw/mdio: Never set PHY RST and ANEG_RST bits on register write

2013-01-23 Thread Grant Likely
Färber Signed-off-by: Grant Likely --- hw/mdio.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/mdio.c b/hw/mdio.c index 20d7603..b138efa 100644 --- a/hw/mdio.c +++ b/hw/mdio.c @@ -30,6 +30,10 @@ #define D(x) /* Advertisement control register. */ +#define

[Qemu-devel] Generalize MDIO framework

2013-01-23 Thread Grant Likely
Hopefully I've responded to everyone's comments here. Edgar, I did end up fixing up xilinx_axienet, so can you take a look and make sure it is correct? Peter, I'm also unsure about the VMState stuff. I think I got it right, but I've not worked with that code before and I haven't been able to figur

[Qemu-devel] [PATCH V2 5/6] hw/mdio: Move bitbang clock state tracking into core

2013-01-23 Thread Grant Likely
No need for drivers to open code the check for clock state change. This patch moves it into the common code. Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/etraxfs_eth.c |7 ++- hw/mdio.c

[Qemu-devel] [PATCH V2 6/6] hw/mdio: Use bitbang core for smc91c111 network device

2013-01-23 Thread Grant Likely
s Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/Makefile.objs |2 +- hw/smc91c111.c | 25 + 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/hw/Makefile.objs b/hw/Makefile.objs index af93dfc..4ec6fb8 100644 ---

[Qemu-devel] [PATCH V2 1/6] trivial: etraxfs_eth: Eliminate checkpatch errors

2013-01-23 Thread Grant Likely
This is a trivial patch to harmonize the coding style on hw/etraxfs_eth.c. This is in preparation to split off the bitbang mdio code into a separate file. Cc: Peter Maydell Cc: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw

[Qemu-devel] [PATCH V2 2/6] hw/mdio: Generalize etraxfs MDIO bitbanging emulation

2013-01-23 Thread Grant Likely
: Paul Brook Cc: Edgar E. Iglesias Cc: Anthony Liguori Cc: Andreas Färber Signed-off-by: Grant Likely --- hw/Makefile.objs |2 +- hw/cris/Makefile.objs |1 + hw/etraxfs_eth.c | 278 + hw/mdio.c | 266

Re: [Qemu-devel] [PATCH 1/3] net/bitbang_mdio: Generalize etraxfs MDIO bitbanging emulation

2013-01-21 Thread Grant Likely
On Mon, 21 Jan 2013 13:51:02 +0100, "Edgar E. Iglesias" wrote: > On Sat, Jan 19, 2013 at 06:28:10PM -0400, Grant Likely wrote: > > The etraxfs Ethernet model implements quite a nice bitbanging core. The > > change splits it out into a separate .c file. There are no fu

Re: [Qemu-devel] [PATCH 0/3] Generalize bitbang MDIO and use for versatile-pb

2013-01-21 Thread Grant Likely
On Sun, 20 Jan 2013 18:26:06 +0100, Andreas Färber wrote: > Am 19.01.2013 23:28, schrieb Grant Likely: > > This series extracts the MDIO bitbang code from the etraxfs driver and > > makes it usable on targets using the smc9 Ethernet controller. I've > > teste

Re: [Qemu-devel] [PATCH 1/3] net/bitbang_mdio: Generalize etraxfs MDIO bitbanging emulation

2013-01-21 Thread Grant Likely
On Sun, 20 Jan 2013 18:29:25 +0100, Andreas Färber wrote: > Am 19.01.2013 23:28, schrieb Grant Likely: > > The etraxfs Ethernet model implements quite a nice bitbanging core. The > > change splits it out into a separate .c file. There are no functional > > changes here, just

Re: [Qemu-devel] [PATCH 3/3] net/bitbang_mdio: Use bitbang core for smc91c111 network device

2013-01-21 Thread Grant Likely
On Sun, 20 Jan 2013 11:29:32 +, Peter Maydell wrote: > On 19 January 2013 22:28, Grant Likely wrote: > > The smc91c111 device has bitbanged MDIO access, but the model doesn't > > yet implement it. This patch uses the generalized bitbang MDIO support > > pulled out

[Qemu-devel] [PATCH 2/3] net/bitbang_mdio: Never set PHY RST and ANEG_RST bits on register write

2013-01-19 Thread Grant Likely
: Grant Likely --- hw/bitbang_mdio.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/bitbang_mdio.c b/hw/bitbang_mdio.c index f0ee6af..28ac695 100644 --- a/hw/bitbang_mdio.c +++ b/hw/bitbang_mdio.c @@ -30,6 +30,10 @@ #define D(x) /* Advertisement control register

[Qemu-devel] [PATCH 1/3] net/bitbang_mdio: Generalize etraxfs MDIO bitbanging emulation

2013-01-19 Thread Grant Likely
Liguori Signed-off-by: Grant Likely --- hw/bitbang_mdio.c | 263 +++ hw/bitbang_mdio.h | 72 + hw/cris/Makefile.objs |1 + hw/etraxfs_eth.c | 273 + 4 files changed, 337

[Qemu-devel] [PATCH 3/3] net/bitbang_mdio: Use bitbang core for smc91c111 network device

2013-01-19 Thread Grant Likely
s Cc: Anthony Liguori Signed-off-by: Grant Likely --- hw/Makefile.objs |2 +- hw/smc91c111.c | 29 + 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/hw/Makefile.objs b/hw/Makefile.objs index 74b07a7..0104fd4 100644 --- a/hw/Makefile.objs +++

[Qemu-devel] [PATCH 0/3] Generalize bitbang MDIO and use for versatile-pb

2013-01-19 Thread Grant Likely
This series extracts the MDIO bitbang code from the etraxfs driver and makes it usable on targets using the smc9 Ethernet controller. I've tested this using u-boot on the versatile-pb model. net/bitbang_mdio: Generalize etraxfs MDIO bitbanging emulation net/bitbang_mdio: Never set PHY RST and

Re: [Qemu-devel] [PATCH v2] arm: add device tree support

2012-02-01 Thread Grant Likely
On Tue, Jan 31, 2012 at 6:44 PM, Alexander Graf wrote: > > On 01.02.2012, at 02:35, Paul Brook wrote: > >>> We could also just change machine->init() and pass the dtb in there. In a >>> QOM world these would become machine device properties anyways. >>> >>>    machine->init(ram_size, boot_devices,

[Qemu-devel] [PATCH v2] arm: add device tree support

2012-01-31 Thread Grant Likely
issues Signed-off-by: Jeremy Kerr Signed-off-by: Grant Likely Cc: Paul Brook Cc: Peter Maydell Cc: Rob Herring Cc: Edgar E. Iglesias --- Makefile.target |1 + configure |1 + hw/arm_boot.c | 100 ++ hw/boards.h |1

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-30 Thread Grant Likely
On Mon, Jan 30, 2012 at 09:54:45AM +1000, Peter Crosthwaite wrote: > On Mon, Jan 30, 2012 at 6:42 AM, Edgar E. Iglesias > On Sat, Jan 28, 2012 at 11:48:37AM -0700, Grant Likely wrote: > > > On Fri, Jan 27, 2012 at 10:34:01PM +, Paul Brook wrote: > Another major issue with

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-30 Thread Grant Likely
On Sun, Jan 29, 2012 at 09:29:58PM +, Peter Maydell wrote: > On 29 January 2012 18:48, Andreas Färber wrote: > > Am 29.01.2012 17:01, schrieb Grant Likely: > >> Okay, well at least let's start with this.  Here is an updated version of > >> the > >>

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-30 Thread Grant Likely
On Mon, Jan 30, 2012 at 12:36:40PM +0100, Andreas Färber wrote: > Am 29.01.2012 21:36, schrieb Grant Likely: > > On Sun, Jan 29, 2012 at 07:13:55PM +, Peter Maydell wrote: > >> On 29 January 2012 16:01, Grant Likely wrote: > >>> +DEF("dtb", HAS_ARG,

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-29 Thread Grant Likely
On Sun, Jan 29, 2012 at 07:13:55PM +, Peter Maydell wrote: > On 29 January 2012 16:01, Grant Likely wrote: > > diff --git a/configure b/configure > > index f69e08f..0c2deab 100755 > > --- a/configure > > +++ b/configure > > @@ -3411,6 +3411,9 @@ case "$

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-29 Thread Grant Likely
On Sun, Jan 29, 2012 at 11:15:42AM +, Paul Brook wrote: > Clearly we need to have some sort of FDT support. However I'm unconvinced > that it's the correct format for the primary data structure. For one thing > it's a hierarchical tree structure, and in my experience describing links > out

Re: [Qemu-devel] [PATCH] arm: add device tree support

2012-01-28 Thread Grant Likely
On Fri, Jan 27, 2012 at 10:34:01PM +, Paul Brook wrote: > > If compiled with CONFIG_FDT, allow user to specify a device tree file using > > the -dtb argument. If the machine supports it then the dtb will be loaded > > into memory and passed to the kernel on boot. > > Adding annother machine f

[Qemu-devel] [PATCH] arm: add device tree support

2012-01-27 Thread Grant Likely
. Other platforms can easily be added. Signed-off-by: Jeremy Kerr [grant.likely: Changed from platform specifying dtb to user option] [grant.likely: Squashed in initrd and memory property manipulation patches] Signed-off-by: Grant Likely Cc: Paul Brook Cc: Peter Maydell Cc: Rob Herring Cc: Edgar

[Qemu-devel] Adding -dtb option to qemu

2012-01-23 Thread Grant Likely
Hey Peter, I need some advice. I'm adding a -dtb option to qemu for specifying a dtb filename to be passed on to the kernel, similar to how the -initrd flag works. The dtb filename needs to then be passed on to the selected machine, and it looks like the machine->init() callback is the best way

Re: [Qemu-devel] [PATCH] arm: allow machine IDs > 0xffff

2012-01-21 Thread Grant Likely
On Fri, Jan 20, 2012 at 11:43 AM, Grant Likely wrote: > From: Jeremy Kerr > > Signed-off-by: Jeremy Kerr > Cc: Paul Brook > Cc: Peter Maydell > Cc: Rob Herring > Signed-off-by: Grant Likely Oops, this one won't apply directly since it's build on top of anot

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-21 Thread Grant Likely
On Fri, Jan 20, 2012 at 01:57:29PM +, Peter Maydell wrote: > On 20 January 2012 13:48, Rob Herring wrote: > > Kernel DT co-maintainer is not authoritative enough for you? > > Only if I recognise their name :-) [ie, sorry.] > > > The documentation needs some clarification. > > > >> But this i

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-21 Thread Grant Likely
l will > >> never be booted without devicetree and in that case this number is > >> irrelevant. This is the legacy boot interface and qemu really needs to > >> learn to boot with a separate dtb. > > > > Yeah, but the documentation even for DTB boot says we s

[Qemu-devel] [PATCH] arm: allow machine IDs > 0xffff

2012-01-21 Thread Grant Likely
From: Jeremy Kerr Signed-off-by: Jeremy Kerr Cc: Paul Brook Cc: Peter Maydell Cc: Rob Herring Signed-off-by: Grant Likely --- hw/arm_boot.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/arm_boot.c b/hw/arm_boot.c index de8f1a4..f2b7332 100644 --- a

Re: [Qemu-devel] [RFC PATCH 0/7] QEMU patches to generate FDT from qdevs

2010-04-09 Thread Grant Likely
cted vi both i2s and gpio based i2c.  All these > should be fairly well qdev-ified. This looks like a good candidate too then. Getting i2c, spi and gpio sorted out is higher priority for me right now than pci. > Arguably the most interesting is the PPC boards as we already know what device &

Re: [Qemu-devel] [RFC PATCH 1/7] devicetree: Add 8k instead of double dtb size when reserving extra memory

2010-04-09 Thread Grant Likely
changes the device tree loading code to add a fixed 8k of >> additional space to the dtb buffer. > > In that case you almost certainly want double+8k. Or have the calleee tell you > how much they're expecting to grow the tree. Good point. I think I like the latter option. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.

Re: [Qemu-devel] [RFC PATCH 0/7] QEMU patches to generate FDT from qdevs

2010-04-09 Thread Grant Likely
you have both on-chip and external devices. Certainly. What would be a good (preferably ARM) platform to look at? I'm fairly new to working with QEMU, so I'm not very familiar with the platforms that are available. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.

[Qemu-devel] [RFC PATCH] devicetree: Fix buffer overflow on setting device node name

2010-04-07 Thread Grant Likely
Fix bug where temporary buffer for sprintf() was not large enough when setting a device tree node name. Signed-off-by: Grant Likely --- Hi Jeremy. Here's the fix I promised. With this change your current tree works beautifully. I've pushed out the kernel that works with this QEMU

[Qemu-devel] Re: [RFC PATCH 0/7] QEMU patches to generate FDT from qdevs

2010-04-07 Thread Grant Likely
On Wed, Apr 7, 2010 at 1:01 AM, Jeremy Kerr wrote: > Hi Grant, > >> This is an experimental set of patches for populating the flattened >> device tree (fdt) data from the actual set of qdevs in the platform. > > Neat. I've pulled these into my qemu tree, and have updated it to the current > qemu m

Re: [Qemu-devel] [RFC PATCH 0/7] QEMU patches to generate FDT from qdevs

2010-04-07 Thread Grant Likely
Thanks for the comments. Replies below... On Wed, Apr 7, 2010 at 1:10 PM, Blue Swirl wrote: > On 4/7/10, Grant Likely wrote: >> Hi everyone, >> >>  This is an experimental set of patches for populating the flattened >>  device tree (fdt) data from the actual s

[Qemu-devel] [RFC PATCH 7/7] devicetree: Add fdt_populate hook to smc91x device

2010-04-06 Thread Grant Likely
Signed-off-by: Grant Likely --- hw/smc91c111.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/hw/smc91c111.c b/hw/smc91c111.c index b7398c9..300d209 100644 --- a/hw/smc91c111.c +++ b/hw/smc91c111.c @@ -721,8 +721,28 @@ static int smc91c111_init1

[Qemu-devel] [RFC PATCH 6/7] devicetree: Add fdt_populate hook to pl011 device

2010-04-06 Thread Grant Likely
Signed-off-by: Grant Likely --- hw/pl011.c | 29 + 1 files changed, 25 insertions(+), 4 deletions(-) diff --git a/hw/pl011.c b/hw/pl011.c index 81de91e..efc06d2 100644 --- a/hw/pl011.c +++ b/hw/pl011.c @@ -286,6 +286,27 @@ static int pl011_load(QEMUFile *f, void

[Qemu-devel] [RFC PATCH 5/7] devicetree: Add helper to register devices with an fdt_populate hook

2010-04-06 Thread Grant Likely
This patch allows simple registration of devices to include a device tree node populate function. Signed-off-by: Grant Likely --- hw/sysbus.c | 15 +++ hw/sysbus.h |2 ++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/hw/sysbus.c b/hw/sysbus.c index 861572f

[Qemu-devel] [RFC PATCH 4/7] devicetree: Add sysbus fdt populate hooks.

2010-04-06 Thread Grant Likely
This patch adds sysbus specific fdt_populate hooks to fill sysbus device nodes with 'reg' and 'interrupts' properties, and to provide 'ranges' properties for correct address translations. Signed-off-by: Grant Li

[Qemu-devel] [RFC PATCH 3/7] devicetree: add helper for determining IRQ properties in the device tree

2010-04-06 Thread Grant Likely
This patch adds the qbus_fdt_irq_to_number() helper to determine the interrupt number and phandle needed for adding the interrupts property to a device node in the device tree. Signed-off-by: Grant Likely --- hw/qdev.c | 48 hw/qdev.h |1

[Qemu-devel] [RFC PATCH 2/7] devicetree: auto-populate the device tree with qdev data

2010-04-06 Thread Grant Likely
This patch adds hooks to the qemu device model to auto-generate device tree nodes from the registered qemu devices, and calls the device tree populate hook when booting ARM platforms. Signed-off-by: Grant Likely --- hw/arm_boot.c |3 ++ hw/qdev.c | 91

[Qemu-devel] [RFC PATCH 1/7] devicetree: Add 8k instead of double dtb size when reserving extra memory

2010-04-06 Thread Grant Likely
Signed-off-by: Grant Likely --- device_tree.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/device_tree.c b/device_tree.c index 426a631..bad4810 100644 --- a/device_tree.c +++ b/device_tree.c @@ -41,8 +41,8 @@ void *load_device_tree(const char *filename_path,

[Qemu-devel] [RFC PATCH 0/7] QEMU patches to generate FDT from qdevs

2010-04-06 Thread Grant Likely
el patches real-soon-now. This series is based on Jeremy Kerr's device tree branch found here: git://kernel.ubuntu.com/jk/dt/qemu.git Cheers, g. --- Grant Likely (7): devicetree: Add fdt_populate hook to smc91x device devicetree: Add fdt_populate hook to pl011 device