UPSTREAM: mtd: nand: lpc32xx mlc: predefine number of NAND chips to support
Build option CONFIG_SYS_MAX_NAND_CHIPS is used by NXP LPC32xx NAND MLC driver only, as a preparation for potential removal or replacement of the option the change predefines CONFIG_SYS_MAX_NAND_CHIPS to 1, same value is used by the single user Work Microwave Work 92105 board, thus it will be safe now to remove the option as a board specific one. Change-Id: I970ed8175e95e7a7a15d310b78c9d83f95be4ea3 Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit a098ce21420e2359042041efaede75a8360c9f42)
This commit is contained in:
parent
3fced5d039
commit
a286c3a152
|
|
@ -83,6 +83,10 @@ struct lpc32xx_nand_mlc_registers {
|
|||
static struct lpc32xx_nand_mlc_registers __iomem *lpc32xx_nand_mlc_registers
|
||||
= (struct lpc32xx_nand_mlc_registers __iomem *)MLC_NAND_BASE;
|
||||
|
||||
#if !defined(CONFIG_SYS_MAX_NAND_CHIPS)
|
||||
#define CONFIG_SYS_MAX_NAND_CHIPS 1
|
||||
#endif
|
||||
|
||||
#define clkdiv(v, w, o) (((1+(clk/v)) & w) << o)
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue