Skip to content
Snippets Groups Projects
user avatar
Ofer Heifetz authored
The Data Flash Control Register (NDCR) contains two types
of parameters: those that are needed for device identification,
and those that can only be set after device identification.

Therefore, the driver can't set them all at once and instead
needs to configure the first group before nand_scan_ident()
and the second group later.

Let's split pxa3xx_nand_config in two halves, and set the
parameters that depend on the device geometry once this is known.

This commit is taken from Linux:
'commit 66e8e47eae65'
("mtd: pxa3xx_nand: Fix initial controller configuration")

Signed-off-by: default avatarChris Packham <judge.packham@gmail.com>
Signed-off-by: default avatarOfer Heifetz <oferh@marvell.com>
Reviewed-by: default avatarIgal Liberman <igall@marvell.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
b87ae6f5
History
Name Last commit Last update