From: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v11 01/30] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT
Date: Tue, 9 Apr 2013 22:00:00 +0200 (CEST) [thread overview]
Message-ID: <405551609.1403602.1365537600945.JavaMail.root@advansee.com> (raw)
In-Reply-To: <1365536939-5755-1-git-send-email-benoit.thebaudeau@advansee.com>
On Tuesday, April 9, 2013 9:48:30 PM, Beno?t Th?baudeau wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT option so that other NAND controller
> drivers could use it when a 16-bit NAND is deployed.
>
> drivers/mtd/nand/ndfc has CONFIG_SYS_NDFC_16BIT, so just rename it, so that
> other NAND drivers could reuse the same symbol.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> Acked-by: Scott Wood <scottwood@freescale.com>
> Reviewed-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
> ---
> Changes in v11: None
> Changes in v10: None
> Changes in v9: None
> Changes in v8:
> - New patch.
>
> Changes in v7: None
> Changes in v6: None
> Changes in v5: None
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
> README | 9 ++++++---
> drivers/mtd/nand/ndfc.c | 4 ++--
> 2 files changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/README b/README
> index 5c5cd18..e9c3145 100644
> --- a/README
> +++ b/README
> @@ -3755,9 +3755,12 @@ Low Level (hardware related) configuration options:
> - CONFIG_SYS_SRIOn_MEM_SIZE:
> Size of SRIO port 'n' memory region
>
> -- CONFIG_SYS_NDFC_16
> - Defined to tell the NDFC that the NAND chip is using a
> - 16 bit bus.
> +- CONFIG_SYS_NAND_BUSWIDTH_16BIT
> + Defined to tell the NAND controller that the NAND chip is using
> + a 16 bit bus.
> + Not all NAND drivers use this symbol.
> + Example of driver that uses it:
> + - drivers/mtd/nand/ndfc.c
>
> - CONFIG_SYS_NDFC_EBC0_CFG
> Sets the EBC0_CFG register for the NDFC. If not defined
> diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
> index 6ebbb5e..213d2c9 100644
> --- a/drivers/mtd/nand/ndfc.c
> +++ b/drivers/mtd/nand/ndfc.c
> @@ -156,7 +156,7 @@ static uint8_t ndfc_read_byte(struct mtd_info *mtd)
>
> struct nand_chip *chip = mtd->priv;
>
> -#ifdef CONFIG_SYS_NDFC_16BIT
> +#ifdef CONFIG_SYS_NAND_BUSWIDTH_16BIT
> return (uint8_t) readw(chip->IO_ADDR_R);
> #else
> return readb(chip->IO_ADDR_R);
> @@ -218,7 +218,7 @@ int board_nand_init(struct nand_chip *nand)
> nand->ecc.bytes = 3;
> nand->select_chip = ndfc_select_chip;
>
> -#ifdef CONFIG_SYS_NDFC_16BIT
> +#ifdef CONFIG_SYS_NAND_BUSWIDTH_16BIT
> nand->options |= NAND_BUSWIDTH_16;
> #endif
>
> --
> 1.7.10.4
>
>
Git bundle for v11 here:
http://dl.free.fr/lWM6s9zmk
The changes in v11 are limited to 18/30 (mx31pdk.h).
Best regards,
Beno?t
next prev parent reply other threads:[~2013-04-09 20:00 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 19:48 [U-Boot] [PATCH v11 01/30] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 02/30] mtd: nand: mxc_nand: Fix is_16bit_nand() Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 03/30] nand: mxc: Prepare to add support for i.MX5 Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 04/30] nand: mxc: Add " Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 05/30] imx: mx5: lowlevel_init: Simplify code Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 06/30] imx: mx53ard: Add support for NAND Flash Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 07/30] nand: mxc: Fix debug trace in mxc_nand_read_oob_syndrome() Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 08/30] nand: mxc: Use appropriate page number in syndrome functions Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 09/30] arm: start.S: Fix _TEXT_BASE for SPL Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 10/30] arm: relocate_code() is no longer noreturn Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 11/30] arm1136: Remove redundant relocate_code() return Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 12/30] arm: relocate_code(): Remove useless relocation offset computation Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 13/30] arm: relocate_code(): Use __image_copy_end for end of relocation Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 14/30] arm: crt0.S: Remove bogus .globl Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 15/30] autoconfig.mk: Make it possible to define configs from other configs Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 16/30] Makefile: Change CONFIG_SPL_PAD_TO to image offset Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 17/30] imx: Fix automatic make targets for imx images Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 18/30] nand: mxc: Switch NAND SPL to generic SPL Benoît Thébaudeau
2013-04-09 20:17 ` Albert ARIBAUD
2013-04-09 20:57 ` Benoît Thébaudeau
2013-04-09 21:02 ` Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 19/30] arm926ejs: Remove deprecated and now unused NAND SPL Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 20/30] arm: Remove unused relocate_code() parameters Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 21/30] Makefile: Move SHELL setup to config.mk Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 22/30] .gitignore: Add /SPL Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 23/30] imx: Add u-boot-with-spl.imx make target Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 24/30] imx: Add u-boot-with-nand-spl.imx " Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 25/30] arm: Remove support for smdk6400 Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 26/30] Revert "mkconfig: start deprecating Makefile config targets" Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 27/30] arm: Remove support for unused s3c64xx Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 28/30] arm: Remove deprecated and now unused NAND SPL Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 29/30] arm1176: Remove unused MMU setup from start.S Benoît Thébaudeau
2013-04-09 19:48 ` [U-Boot] [PATCH v11 30/30] arm: Make all linker scripts compatible with per-symbol sections Benoît Thébaudeau
2013-04-09 20:00 ` Benoît Thébaudeau [this message]
2013-04-10 8:24 ` [U-Boot] [PATCH v11 01/30] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT Albert ARIBAUD
2013-04-10 20:43 ` Albert ARIBAUD
2013-04-10 21:26 ` Benoît Thébaudeau
2013-04-10 21:34 ` Fabio Estevam
2013-04-10 22:14 ` Albert ARIBAUD
2013-04-10 21:55 ` Albert ARIBAUD
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=405551609.1403602.1365537600945.JavaMail.root@advansee.com \
--to=benoit.thebaudeau@advansee.com \
--cc=u-boot@lists.denx.de \
/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.