mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
mtd: rawnand: omap_gpmc: Deprecate asm/arch/mem.h
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@kernel.org> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com> Link: https://lore.kernel.org/all/20221011115012.6181-2-rogerq@kernel.org Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
This commit is contained in:
parent
308bd74663
commit
c6bafdae50
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
#define BADBLOCK_MARKER_LENGTH 2
|
||||
#define SECTOR_BYTES 512
|
||||
#define ECCCLEAR (0x1 << 8)
|
||||
|
|
Loading…
Add table
Reference in a new issue