From: J.Lambrecht@TELEVIC.com (Lambrecht Jürgen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Add 'config IMX_NFC_V1_BISWAP' to swap the Bad block Indicator, and use for imx27pdk nand support.
Date: Wed, 6 Jul 2011 11:06:53 +0200 [thread overview]
Message-ID: <4E1425AD.5050603@televic.com> (raw)
In-Reply-To: <20110706080942.GC26347@pengutronix.de>
On 07/06/2011 10:09 AM, Sascha Hauer wrote:
>
> On Tue, Jul 05, 2011 at 03:33:48PM +0200, J?rgen Lambrecht wrote:
> > - Swap the BI-byte on position 0x7D0 with a data byte at 0x835. To
> fix a bug
> > in Freescale imx NFC v1 SoC's for 2K page NAND flashes: imx27 and
> imx31.
> > Warning: The same solution needs to be applied to the boot loader
> and the
> > flash programmer.
> > - Enable NAND support for the imx27pdk (3ds), and use BISWAP.
> >
> > Signed-off-by: J?rgen Lambrecht <J.Lambrecht@televic.com>
> > ---
> > arch/arm/mach-imx/Kconfig | 30 ++++++++++++++++++++++++++++--
> > arch/arm/mach-imx/mach-mx27_3ds.c | 14 ++++++++++++++
> > drivers/mtd/nand/mxc_nand.c | 29 +++++++++++++++++++++++++++++
> > 3 files changed, 71 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> > index 0519dd7..e8b16a9 100644
> > --- a/arch/arm/mach-imx/Kconfig
> > +++ b/arch/arm/mach-imx/Kconfig
> > @@ -274,7 +274,7 @@ config MACH_EUKREA_MBIMX27_BASEBOARD
> > endchoice
> >
> > config MACH_MX27_3DS
> > - bool "MX27PDK platform"
> > + bool "MX27PDK (3DS) platform"
> > select SOC_IMX27
> > select IMX_HAVE_PLATFORM_FSL_USB2_UDC
> > select IMX_HAVE_PLATFORM_IMX2_WDT
> > @@ -284,13 +284,39 @@ config MACH_MX27_3DS
> > select IMX_HAVE_PLATFORM_IMX_UART
> > select IMX_HAVE_PLATFORM_MXC_EHCI
> > select IMX_HAVE_PLATFORM_MXC_MMC
> > + select IMX_HAVE_PLATFORM_MXC_NAND
> > select IMX_HAVE_PLATFORM_SPI_IMX
> > select MXC_DEBUG_BOARD
> > select MXC_ULPI if USB_ULPI
> > help
> > - Include support for MX27PDK platform. This includes specific
> > + Include support for MX27PDK (3DS) platform. This includes
> specific
> > configurations for the board and its peripherals.
> >
> > +config MACH_MXC_NAND_USE_BBT
> > + bool "Make the MXC NAND driver use the in flash Bad Block Table"
> > + depends on MACH_MX27_3DS
> > + depends on MTD_NAND_MXC
> > + help
> > + Enable this if you want that the MXC NAND driver uses the in
> flash
> > + Bad Block Table to know what blocks are bad instead of
> scanning the
> > + entire flash looking for bad block markers.
>
> Besides the fact that we have too many kconfig options there's another
> problem. We try to build kernels which run on as many boards as
> possible. Adding options like this limit a kernel for a particular
> usecase (bbt vs. scanning)
>
Indeed. I just copied it from MACH_MX31_3DS_MXC_NAND_USE_BBT, and
thought it was good to do the same.
If I want to use it, better just do it without that option, as other
_3ds boards do (and davinci and atmel also do in another way).
I will remove the option in a separate nand patch for imx27pdk.
Regards,
J?rgen
[snip]
next prev parent reply other threads:[~2011-07-06 9:06 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-05 13:33 [PATCH] Add 'config IMX_NFC_V1_BISWAP' to swap the Bad block Indicator, and use for imx27pdk nand support Jürgen Lambrecht
2011-07-05 13:33 ` Jürgen Lambrecht
2011-07-05 15:52 ` Baruch Siach
2011-07-05 15:52 ` Baruch Siach
2011-07-06 7:06 ` Artem Bityutskiy
2011-07-06 7:06 ` Artem Bityutskiy
2011-07-06 8:09 ` Sascha Hauer
2011-07-06 8:09 ` Sascha Hauer
2011-07-06 8:55 ` Lambrecht Jürgen
2011-07-06 9:06 ` Lambrecht Jürgen [this message]
2011-07-06 9:30 ` Lambrecht Jürgen
2011-07-06 9:30 ` Lambrecht Jürgen
2011-07-06 11:48 ` Lothar Waßmann
2011-07-06 11:48 ` Lothar Waßmann
2011-07-06 11:56 ` Artem Bityutskiy
2011-07-06 11:56 ` Artem Bityutskiy
2011-07-06 12:39 ` Lambrecht Jürgen
2011-07-06 12:39 ` Lambrecht Jürgen
2011-07-06 13:53 ` Lothar Waßmann
2011-07-06 13:53 ` Lothar Waßmann
2011-07-06 16:29 ` Sascha Hauer
2011-07-06 16:29 ` Sascha Hauer
2011-07-06 16:48 ` Lothar Waßmann
2011-07-06 16:48 ` Lothar Waßmann
2011-07-06 12:05 ` Sascha Hauer
2011-07-06 12:05 ` Sascha Hauer
2011-07-06 12:25 ` Lothar Waßmann
2011-07-06 12:25 ` Lothar Waßmann
2012-08-08 16:11 ` Gaëtan Carlier
2011-07-06 9:06 ` Wolfram Sang
2011-07-06 9:06 ` Wolfram Sang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E1425AD.5050603@televic.com \
--to=j.lambrecht@televic.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.