[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 7/9] hw/ppc/e500: Implement pflash handling
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 7/9] hw/ppc/e500: Implement pflash handling |
Date: |
Tue, 18 Oct 2022 10:28:14 +0100 |
On Sun, 16 Oct 2022 at 13:28, Bernhard Beschow <shentey@gmail.com> wrote:
>
> Allows e500 boards to have their root file system reside on flash using
> only builtin devices located in the eLBC memory region.
>
> Note that the flash memory area is only created when a -pflash argument is
> given, and that the size is determined by the given file. The idea is to
> put users into control.
>
> Signed-off-by: Bernhard Beschow <shentey@gmail.com>
> + pfl = pflash_cfi01_register("e500.flash", size, blk, 64 * KiB, 2,
> + 0x89, 0x18, 0x0000, 0x0, 1);
> + memory_region_add_subregion(&pms->pbus_dev->mmio, 0,
> + pflash_cfi01_get_memory(pfl));
pflash_cfi01_register() puts the memory region into the
system address space. It's just a legacy convenience wrapper
function, so if you need to put the resulting memory region somewhere
else, just directly create, configure and map the device in
this board code.
thanks
-- PMM
- [PATCH v3 4/9] hw/block/pflash_cfi02: Attach memory region in boards, (continued)
- [PATCH v3 4/9] hw/block/pflash_cfi02: Attach memory region in boards, Bernhard Beschow, 2022/10/16
- [PATCH v3 5/9] hw/sd/sdhci-internal: Unexport ESDHC defines, Bernhard Beschow, 2022/10/16
- [PATCH v3 6/9] hw/sd/sdhci: Rename ESDHC_* defines to USDHC_*, Bernhard Beschow, 2022/10/16
- [PATCH v3 8/9] hw/sd/sdhci: Implement Freescale eSDHC device model, Bernhard Beschow, 2022/10/16
- [PATCH v3 9/9] hw/ppc/e500: Add Freescale eSDHC to e500plat, Bernhard Beschow, 2022/10/16
- [PATCH v3 7/9] hw/ppc/e500: Implement pflash handling, Bernhard Beschow, 2022/10/16
- Re: [PATCH v3 7/9] hw/ppc/e500: Implement pflash handling,
Peter Maydell <=
Re: [PATCH v3 0/9] ppc/e500: Add support for two types of flash, cleanup, Bernhard Beschow, 2022/10/16