From: Maxime Ripard <maxime.ripard@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 19/20] sunxi: move the NAND parameters to Kconfig
Date: Thu, 22 Feb 2018 15:04:35 +0100 [thread overview]
Message-ID: <20180222140435.u7jdu4a7o7jz326o@flea.lan> (raw)
In-Reply-To: <20180222133350.8033-20-miquel.raynal@bootlin.com>
On Thu, Feb 22, 2018 at 02:33:49PM +0100, Miquel Raynal wrote:
> Move the NAND parameters from defconfig files to Kconfig for SUNXI
> architecture only. Fort now only the CHIP pro is migrated.
>
> It would have been better to convert this defconfig entry to Kconfig for
> all supported machines/architectures but it has been abandoned due to a
> fairly high amount of errors reported by the moveconfig.py tool. This is
> probably due to defines quite often being multiplications of
> values/other defines not correctly handled.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> configs/CHIP_pro_defconfig | 4 +++-
> drivers/mtd/nand/Kconfig | 22 ++++++++++++++++++++++
> 2 files changed, 25 insertions(+), 1 deletion(-)
>
> diff --git a/configs/CHIP_pro_defconfig b/configs/CHIP_pro_defconfig
> index 75951bf03b..9f682239bf 100644
> --- a/configs/CHIP_pro_defconfig
> +++ b/configs/CHIP_pro_defconfig
> @@ -5,7 +5,9 @@ CONFIG_MACH_SUN5I=y
> CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y
> CONFIG_USB0_VBUS_PIN="PB10"
> CONFIG_DEFAULT_DEVICE_TREE="sun5i-gr8-chip-pro"
> -CONFIG_SYS_EXTRA_OPTIONS="SYS_NAND_BLOCK_SIZE=0x40000,SYS_NAND_PAGE_SIZE=4096,SYS_NAND_OOBSIZE=256"
> +CONFIG_SYS_NAND_BLOCK_SIZE=0x40000
> +CONFIG_SYS_NAND_OOBSIZE=0x1000
> +CONFIG_SYS_NAND_OOBSIZE=0x100
> CONFIG_SPL=y
> CONFIG_SPL_I2C_SUPPORT=y
> # CONFIG_CMD_FLASH is not set
> diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
> index cf323c5348..fc930a804c 100644
> --- a/drivers/mtd/nand/Kconfig
> +++ b/drivers/mtd/nand/Kconfig
> @@ -168,6 +168,28 @@ config NAND_ZYNQ_USE_BOOTLOADER1_TIMINGS
>
> comment "Generic NAND options"
>
> +config SYS_NAND_BLOCK_SIZE
> + hex "NAND chip eraseblock size"
> + depends on ARCH_SUNXI
> + help
> + Number of data bytes in one eraseblock for the NAND chip on the
> + board. This is the multiple of NAND_PAGE_SIZE and the number of
> + pages.
The indentation here ...
> +config SYS_NAND_PAGE_SIZE
> + hex "NAND chip page size"
> + depends on ARCH_SUNXI
> + help
> + Number of data bytes in one page for the NAND chip on the
> + board, not including the OOB area.
... and here ...
> +config SYS_NAND_OOBSIZE
> + hex "NAND chip OOB size"
> + depends on ARCH_SUNXI
> + help
> + Number of bytes in the Out-Of-Band area for the NAND chip on
> + the board.
... but you somehow got it right here :)
Otherwise,
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Thanks!
Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180222/d341ec67/attachment.sig>
next prev parent reply other threads:[~2018-02-22 14:04 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-22 13:33 [U-Boot] [PATCH v2 00/20] Bring NAND support to Nintendo NES Classic Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 01/20] spl: fix binman_sym output check Miquel Raynal
2018-02-22 14:21 ` Maxime Ripard
2018-02-22 13:33 ` [U-Boot] [PATCH v2 02/20] mtd: nand: sunxi: fix ECC strength choice Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 03/20] spl: nand: sunxi: fix second case of modulo by zero error Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 04/20] spl: nand: sunxi: fix typo on register name Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 05/20] spl: nand: sunxi: introduce the nand_wait_int() helper Miquel Raynal
2018-02-22 13:40 ` Boris Brezillon
2018-02-22 13:33 ` [U-Boot] [PATCH v2 06/20] spl: nand: sunxi: introduce the nand_wait_cmd_fifo_empty() helper Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 07/20] spl: nand: sunxi: add missing status clear Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 08/20] spl: nand: sunxi: create an helper to handle command execution Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 09/20] spl: nand: sunxi: ensure enough time has passed after changing the column Miquel Raynal
2018-02-22 13:45 ` Boris Brezillon
2018-02-22 13:33 ` [U-Boot] [PATCH v2 10/20] spl: nand: sunxi: make the reset column helper more generic Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 11/20] sunxi: spl: deassert the NAND controller reset line Miquel Raynal
2018-02-22 13:53 ` Maxime Ripard
2018-02-24 16:35 ` Miquel Raynal
2018-02-26 8:40 ` Maxime Ripard
2018-02-26 8:52 ` Wolfgang Denk
2018-02-26 10:53 ` Maxime Ripard
2018-02-22 13:33 ` [U-Boot] [PATCH v2 12/20] spl: nand: sunxi: declare the ecc_bytes array globally Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 13/20] spl: nand: sunxi: use PIO instead of DMA Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 14/20] sunxi: spl: remove DMA related settings of the NAND controller Miquel Raynal
2018-02-22 13:33 ` [U-Boot] [PATCH v2 15/20] sunxi: allow NAND support in SPL to be compiled for sun8i platforms Miquel Raynal
2018-02-22 14:15 ` Maxime Ripard
2018-02-22 13:33 ` [U-Boot] [PATCH v2 16/20] sunxi: dts: enable NAND on NES classic Miquel Raynal
2018-02-22 13:59 ` Maxime Ripard
2018-02-22 13:33 ` [U-Boot] [PATCH v2 17/20] sunxi: automatically select SPL_NAND_SUPPORT in Kconfig Miquel Raynal
2018-02-22 14:00 ` Maxime Ripard
2018-02-22 13:33 ` [U-Boot] [PATCH v2 18/20] sunxi: make NAND_SUNXI use ARCH_SUNXI as default " Miquel Raynal
2018-02-22 14:00 ` Maxime Ripard
2018-02-22 13:33 ` [U-Boot] [PATCH v2 19/20] sunxi: move the NAND parameters to Kconfig Miquel Raynal
2018-02-22 14:04 ` Maxime Ripard [this message]
2018-02-22 13:33 ` [U-Boot] [PATCH v2 20/20] configs: add NAND support for NES Classic Miquel Raynal
2018-02-22 14:05 ` Maxime Ripard
2018-02-22 14:06 ` [U-Boot] [PATCH v2 00/20] Bring NAND support to Nintendo " Boris Brezillon
2018-02-22 14:21 ` Boris Brezillon
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=20180222140435.u7jdu4a7o7jz326o@flea.lan \
--to=maxime.ripard@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox