[u-boot][PATCH 01/14] mtd: rawnand: omap_gpmc: Deprecate asm/arch/mem.h

Michael Nazzareno Trimarchi michael at amarulasolutions.com
Wed Oct 12 12:01:13 CEST 2022


Hi

On Tue, Oct 11, 2022 at 1:50 PM Roger Quadros <rogerq at kernel.org> wrote:
>
> We want to get rid of <asm/arch/mem.h> so don't
> enforce it for new platforms.
>
> This also means GPMC_MAX CS doesn't have to be defined
> by platform code.
>
> Define it locally here for now.
>
> Signed-off-by: Roger Quadros <rogerq at kernel.org>
> ---
>  drivers/mtd/nand/raw/omap_gpmc.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c
> index 8b9ff4de18..7e9ccf7878 100644
> --- a/drivers/mtd/nand/raw/omap_gpmc.c
> +++ b/drivers/mtd/nand/raw/omap_gpmc.c
> @@ -8,7 +8,11 @@
>  #include <log.h>
>  #include <asm/io.h>
>  #include <linux/errno.h>
> +
> +#ifdef CONFIG_ARCH_OMAP2PLUS
>  #include <asm/arch/mem.h>
> +#endif
> +
>  #include <linux/mtd/omap_gpmc.h>
>  #include <linux/mtd/nand_ecc.h>
>  #include <linux/mtd/rawnand.h>
> @@ -17,6 +21,10 @@
>  #include <nand.h>
>  #include <linux/mtd/omap_elm.h>
>
> +#ifndef GPMC_MAX_CS
> +#define GPMC_MAX_CS    4
> +#endif
> +

Reviewed-by: Michael Trimarchi <michael at amarulasolutions.com>

>  #define BADBLOCK_MARKER_LENGTH 2
>  #define SECTOR_BYTES           512
>  #define ECCCLEAR               (0x1 << 8)
> --
> 2.17.1
>


-- 
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael at amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info at amarulasolutions.com
www.amarulasolutions.com


More information about the U-Boot mailing list