qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [ARM] Unused OMAP NAND support - can we remove?


From: Peter Maydell
Subject: Re: [Qemu-devel] [ARM] Unused OMAP NAND support - can we remove?
Date: Fri, 10 Jan 2014 09:02:38 +0000

On 10 January 2014 08:47, Peter Crosthwaite
<address@hidden> wrote:
> I'm trying to apply a QOMification change pattern to NAND and I notice
> that OMAP gpmc has NAND support. However no one is using it - there
> are no calls to the omap_gpmc_attach_nand, nor does the code call
> nand_init, leaving me to believe this is dead code. The fact that it
> is so far out of stylistic date makes me think its best deleted and
> can be updated and re-added later if wanted. Otherwise I need to apply
> my change pattern to dead code which is not ideal.

This is used by the omap3 patchset (git://git.linaro.org/qemu/qemu-linaro.git
'rebasing' branch). At the time I got the GPMC changes upstream I was
planning to get the remainder of OMAP3 upstream in the immediate
future, which is why the support is there. Unfortunately priorities
changed and OMAP3 upstreaming got put on the back burner (partly
because it's a huge job). I'd still like to get OMAP3 upstream someday,
so if it's not too awful to apply your change to omap_gpmc_attach_nand()
I think that would be preferable.

The specific users of the function in the omap3 code are the board
model files like hw/arm/beagle.c, which do:

     s->nand = nand_init(dmtd ? dmtd->bdrv : NULL, NAND_MFR_MICRON, 0xba);
     nand_setpins(s->nand, 0, 0, 0, 1, 0); /* no write-protect */
     omap_gpmc_attach_nand(s->cpu->gpmc, BEAGLE_NAND_CS, s->nand);

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]