On Sun, 24 Jul 2016 20:41:30 -0500
Scott Wood wrote:
> On Wed, Jun 15, 2016 at 10:42:18AM +0200, Boris Brezillon wrote:
> > diff --git a/cmd/nand.c b/cmd/nand.c
> > index 583a18f..3a5e3a0 100644
> > --- a/cmd/nand.c
> > +++ b/cmd/nand.c
> > @@ -306,7 +306,7 @@ st
On Fri, 24 Jun 2016 13:00:04 +0800
Icenowy Zheng wrote:
> Document the reset lines
>
> Signed-off-by: Icenowy Zheng
Applied both.
Thanks,
Boris
> ---
> Changes in v7:
> - Rebased for nand/next branch.
> - Merged the two part of "Optional properties" of nand/next's document
> into on
OBE_DEFER again?
Sorry, I just had a brainfart :-). Your implementation is correct.
BTW, can you avoid top-posting and reply inline?
>
> 24.06.2016, 00:01, "Boris Brezillon" :
> > On Mon, 20 Jun 2016 12:48:38 +0800
> > Icenowy Zheng wrote:
> >
> >> Th
On Mon, 20 Jun 2016 12:48:38 +0800
Icenowy Zheng wrote:
> The NAND controller on some sun8i chips needs its reset line to be
> deasserted before they can enter working state.
>
> Signed-off-by: Icenowy Zheng
> ---
> Changes in v2:
> - Corrected the error checking code of reset line.
>
>
Hi Philipp,
On Mon, 20 Jun 2016 14:05:54 +0200
Philipp Zabel wrote:
> Am Sonntag, den 19.06.2016, 14:06 +0200 schrieb Boris Brezillon:
> > +Philipp
> >
> > On Sun, 19 Jun 2016 19:37:39 +0800
> > Icenowy Zheng wrote:
> >
> > > The NAND controller o
On Mon, 6 Jun 2016 13:59:11 +0200
Boris Brezillon wrote:
> Hello,
>
> Those 3 patches aims a fixing support for SLC NANDs with rather small
> NAND pages (<= 4k).
>
> The first patch promote 512 bytes ECC steps to 1k steps, which should
> both save a few OOB bytes
On Wed, 15 Jun 2016 11:22:12 +0200
Boris Brezillon wrote:
> The column address passed to the RNDOUT operation was missing the page
> size offset.
>
Applied.
> Signed-off-by: Boris Brezillon
> Fixes: 614049a8d904 ("mtd: nand: sunxi: add support for DMA as
On Sun, 19 Jun 2016 19:07:47 -0500
Scott Wood wrote:
> On Mon, Jun 06, 2016 at 10:16:58AM +0200, Boris Brezillon wrote:
> > On modern NAND it's more than recommended to have a backup copy of the
> > u-boot binary to recover from corruption: bitflips are quite common on
&g
On Sun, 19 Jun 2016 23:40:35 +0800
Icenowy Zheng wrote:
> The NAND controller on some sun8i chips needs its reset line to be deasserted
> before they can enter working state. This commit added the reset line process
> to the driver.
>
> Signed-off-by: Icenowy Zheng
> ---
> Changes in v2:
> -
On Sun, 19 Jun 2016 23:01:28 +0800
Icenowy Zheng wrote:
> The NAND controller on some sun8i chips needs its reset line to be deasserted
> before they can enter working state. This commit added the reset line process
> to the driver.
>
> Signed-off-by: Icenowy Zheng
> ---
> Changes in v1:
> -
le errors. But there may be other reasons for
devm_reset_control_get_optional() to fail. The only one that is really
reflecting that the reset line is not defined in the DT is -ENOENT.
>
> 19.06.2016, 20:53, "Boris Brezillon" :
> > On Sun, 19 Jun 2016 20:41:09 +0800
> > i
aintainer).
>
>
> 19.06.2016, 20:06, "Boris Brezillon" :
> > +Philipp
> >
> > On Sun, 19 Jun 2016 19:37:39 +0800
> > Icenowy Zheng wrote:
> >
> >> The NAND controller on some sun8i chips needs its reset line to be
> >> deasserted
+Philipp
On Sun, 19 Jun 2016 19:37:39 +0800
Icenowy Zheng wrote:
> The NAND controller on some sun8i chips needs its reset line to be deasserted
> before they can enter working state. This commit added the reset line process
> to the driver.
>
> Signed-off-by: Icenowy Zheng
> ---
> drivers/mt
On Mon, 6 Jun 2016 10:16:55 +0200
Boris Brezillon wrote:
> Hello,
>
> This patch series aims at adding support for NAND auto-detection to
> the sunxi SPL NAND driver.
>
> As explained in patch 7, this auto-detection is nothing more than a
> dumb "trial and error&qu
The column address passed to the RNDOUT operation was missing the page
size offset.
Signed-off-by: Boris Brezillon
Fixes: 614049a8d904 ("mtd: nand: sunxi: add support for DMA assisted
operations")
---
drivers/mtd/nand/sunxi_nand.c | 6 --
1 file changed, 4 insertions(+), 2
platforms, where the ROM code
tests several hardcoded configs, which are not necessarily matching the
NAND characteristics).
Add an extension to the nand write.raw command allowing one to disable
the verification step.
Signed-off-by: Boris Brezillon
---
cmd/nand.c | 15 ++-
1 file
The sun4i-timer driver registers its sched_clock only if the machine is
compatible with "allwinner,sun5i-a13", "allwinner,sun5i-a10s" or
"allwinner,sun4i-a10".
Add the missing "allwinner,sun5i-a13" string to the machine compatible.
Signed-off-by: Boris Br
Hi Siarhei,
On Fri, 10 Jun 2016 01:07:45 +0300
Siarhei Siamashka wrote:
> On Wed, 1 Jun 2016 14:54:24 +0200
> Boris Brezillon wrote:
>
> > On Wed, 1 Jun 2016 14:41:36 +0300
> > Siarhei Siamashka wrote:
> >
> > > On Mon, 30 May 2016 19:02:1
We need some macros to manipulate the NAND controller clock.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun4i.h
b/arch/arm/include/asm
Add a full-id entry for the H27QCG8T2E5R‐BCF NAND.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/nand_ids.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c
index 561d2cd..ce0a14e 100644
--- a
tween calling nand_scan_ident() and
nand_scan_tail().
The original commit has been slightly reworked to use the fdtdec_xxx()
helpers (instead of the of_() ones).
Signed-off-by: Brian Norris
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/nand_base.c
We already have an SPL driver for the sunxi NAND controller, now add
the normal/standard one.
The source has been copied from Linux 4.6 with a few changes to make
it work in u-boot.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
board/sunxi/board.c|5 +-
drivers
From: Maxime Ripard
Add the NAND controller definition to sun5i.dtsi.
Signed-off-by: Maxime Ripard
Signed-off-by: Boris Brezillon
---
arch/arm/dts/sun5i.dtsi | 49 +
1 file changed, 49 insertions(+)
diff --git a/arch/arm/dts/sun5i.dtsi b/arch
Enable the NAND controller in the sun5i-r8-chip.dts.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
arch/arm/dts/sun5i-a10s.dtsi | 14 ++
arch/arm/dts/sun5i-a13-olinuxino.dts | 15 +++
arch/arm/dts/sun5i-r8-chip.dts | 15 +++
3
Boris
[1]https://patchwork.ozlabs.org/patch/627928/
Changes since v1:
- moved the sunxi_nand_init() prototype definition into include/nand.h
- added Hans Acked-by tags
Boris Brezillon (4):
sunxi: Add missing macros to configure the NAND controller clk
mtd: nand: Add the sunxi NAND controller driver
mtd: nand
On Mon, 6 Jun 2016 22:31:38 +0200
Boris Brezillon wrote:
> On Mon, 6 Jun 2016 22:59:03 +0300
> Aleksei Mamlin wrote:
>
> > On Mon, 6 Jun 2016 20:55:49 +0200
> > Boris Brezillon wrote:
> >
> > > On Mon, 6 Jun 2016 13:24:22 +0300
> > > Aleksei M
On Tue, 7 Jun 2016 00:06:45 +0300
Aleksei Mamlin wrote:
> On Mon, 6 Jun 2016 22:31:38 +0200
> Boris Brezillon wrote:
>
> > On Mon, 6 Jun 2016 22:59:03 +0300
> > Aleksei Mamlin wrote:
> >
> > > On Mon, 6 Jun 2016 20:55:49 +0200
> > > Boris Brez
On Mon, 06 Jun 2016 18:54:03 -0500
Scott Wood wrote:
> On Mon, 2016-06-06 at 20:31 +0200, Boris Brezillon wrote:
> > On Mon, 06 Jun 2016 12:56:48 -0500
> > Scott Wood wrote:
> >
> > > On Mon, 2016-06-06 at 18:22 +0200, Boris Brezillon wrote:
> > &
On Mon, 6 Jun 2016 22:59:03 +0300
Aleksei Mamlin wrote:
> On Mon, 6 Jun 2016 20:55:49 +0200
> Boris Brezillon wrote:
>
> > On Mon, 6 Jun 2016 13:24:22 +0300
> > Aleksei Mamlin wrote:
> >
> > > Add the full description of the Hynix H27UBG8T2BTR-BC NAND
0xc3} },
> + SZ_8K, SZ_4K, SZ_2M, NAND_NEED_SCRAMBLING, 6, 640,
> + NAND_ECC_INFO(40, SZ_1K), 0 },
>
> LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS),
> LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_
On Mon, 6 Jun 2016 13:24:24 +0300
Aleksei Mamlin wrote:
> Enable the NFC and describe the NAND flash connected to this controller.
>
> Signed-off-by: Aleksei Mamlin
Reviewed-by: Boris Brezillon
> ---
> arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts | 41
> +
On Mon, 6 Jun 2016 13:24:23 +0300
Aleksei Mamlin wrote:
> Enable the NFC and describe the NAND flash connected to this controller.
>
> Signed-off-by: Aleksei Mamlin
Reviewed-by: Boris Brezillon
> ---
> arch/arm/boot/dts/sun4i-a10-marsboard.dts | 41
> ++
On Mon, 06 Jun 2016 12:16:33 -0500
Scott Wood wrote:
> On Sat, 2016-06-04 at 13:06 +0200, Boris Brezillon wrote:
> > On Sat, 04 Jun 2016 02:14:09 -0500
> > Scott Wood wrote:
> >
> > > On Sat, 2016-06-04 at 08:06 +0200, Boris Brezillon wrote:
> > &g
On Mon, 06 Jun 2016 12:56:48 -0500
Scott Wood wrote:
> On Mon, 2016-06-06 at 18:22 +0200, Boris Brezillon wrote:
> > On Mon, 6 Jun 2016 17:36:10 +0200
> > Hans de Goede wrote:
> >
> > > > +#ifndef CONFIG_SPL_BUILD
> > > >
On Fri, 15 Apr 2016 15:10:30 +0200
Boris Brezillon wrote:
> The sunxi NAND controller is able to pipeline ECC operations only when
> operated in DMA mode, which improves a lot NAND throughput while keeping
> CPU usage low.
Applied both.
>
> Signed-off-by: Boris Brezillon
.
Hehe, I was expecting this one :-). Do you know where I should put this
prototype definition? A board.h file in board/sunxi/?
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
You received this message because you are subscribed to the Googl
Enable the NAND controller in the sun5i-r8-chip.dts.
Signed-off-by: Boris Brezillon
---
arch/arm/dts/sun5i-a10s.dtsi | 14 ++
arch/arm/dts/sun5i-a13-olinuxino.dts | 15 +++
arch/arm/dts/sun5i-r8-chip.dts | 15 +++
3 files changed, 44 insertions
From: Maxime Ripard
Add the NAND controller definition to sun5i.dtsi.
Signed-off-by: Maxime Ripard
Signed-off-by: Boris Brezillon
---
arch/arm/dts/sun5i.dtsi | 49 +
1 file changed, 49 insertions(+)
diff --git a/arch/arm/dts/sun5i.dtsi b/arch
Add a full-id entry for the H27QCG8T2E5R‐BCF NAND.
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/nand_ids.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c
index 561d2cd..ce0a14e 100644
--- a/drivers/mtd/nand/nand_ids.c
Boris
[1]https://patchwork.ozlabs.org/patch/627928/
Boris Brezillon (4):
sunxi: Add missing macros to configure the NAND controller clk
mtd: nand: Add the sunxi NAND controller driver
mtd: nand: Add a full-id entry for the H27QCG8T2E5R‐BCF NAND
sunxi: Enable NAND controller on the CHIP
Brian Norris (1):
We already have an SPL driver for the sunxi NAND controller, now add
the normal/standard one.
The source has been copied from Linux 4.6 with a few changes to make
it work in u-boot.
Signed-off-by: Boris Brezillon
---
board/sunxi/board.c|9 +-
drivers/mtd/nand/Kconfig
tween calling nand_scan_ident() and
nand_scan_tail().
The original commit has been slightly reworked to use the fdtdec_xxx()
helpers (instead of the of_() ones).
Signed-off-by: Brian Norris
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/nand_base.c
We some macro to manipulate the NAND controller clock.
Signed-off-by: Boris Brezillon
---
arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun4i.h
b/arch/arm/include/asm/arch-sunxi/clock_sun4i.h
index
On Mon, 6 Jun 2016 13:59:14 +0200
Boris Brezillon wrote:
Oops, I forgot to add this commit message:
"
Implement ecc->write_subpage() to prevent core code from assigning
this hook to nand_write_subpage_hwecc(). This default implementation
tries to call ecc->hwctl() which in our c
you to correct the case
where most of your bitflips are concentrated in a single 512bytes portion.
This fact makes the 1k ECC block size more advantageous than the 512bytes
one.
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand.c | 6 ++
1 file changed, 6 insertions(+)
diff --git
hat
requires ECC steps != 512 | 1024.
The last patch implements ecc->write_subpage(), thus fixing a NULL
pointer dereference when the NAND chip supports subpage write.
Best Regards,
Boris
Boris Brezillon (3):
mtd: nand: sunxi: prefer 1k ECC blocks when applicable
mtd: nand: sunxi: check ecc->si
Verify that the ecc->size value is either 512 or 1024 bytes.
This should always be the case if this field was assigned to the
nand->ecc_step_size_ds value, but can be wrong when the user overloaded
this value with the nand-ecc-step-size DT property.
Signed-off-by: Boris Brezillon
---
d
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand.c | 33 -
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c
index 252cbbf..409acbe 100644
--- a/drivers/mtd/nand/sunxi_nand.c
Add error messages explaining what is wrong or missing in the arguments
passed by to the sunxi-nand-image-builder tool.
Signed-off-by: Boris Brezillon
Acked-by: Bernhard Nortmann
---
Changes since v1:
- Drop uneeded braces
---
nand-image-builder.c | 30 +-
1 file
the original source code I copied from the kernel).
Signed-off-by: Boris Brezillon
---
Changes since v1:
- Add a link to the original bch.c source file
---
nand-image-builder.c | 49 -
1 file changed, 8 insertions(+), 41 deletions(-)
diff --git a
--help/-h is not working correctly (it's printing the help context on
stderr instead of stdout).
Adding a valid shortcut for --help solves the problem.
Signed-off-by: Boris Brezillon
Acked-by: Bernhard Nortmann
---
nand-image-builder.c | 4 ++--
1 file changed, 2 insertions(+), 2 dele
Add explanations on where the options to pass to the tool should be
extracted from, and add two examples to illustrate this explanation.
Signed-off-by: Boris Brezillon
Acked-by: Bernhard Nortmann
---
Changes since v3:
- cosmetic changes to the help context
Changes since v2:
- limit line width
n, then I'd recommend
specifying all the config parameters through Kconfig options.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/sunxi_nand_spl.c | 56 ++-
1 file changed, 14 insertions(+), 42 deletions(-)
diff --git a/dri
ption to specify the offset of the redundant u-boot
image.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
# Conflicts:
# common/spl/spl_nand.c
# drivers/mtd/nand/Kconfig
---
common/spl/spl_nand.c| 5 +
drivers/mtd/nand/Kconfig | 8
2 files changed, 13 inser
Use CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND value instead of trying to guess
where the redundant u-boot image is based on simple (and most of the time
erroneous) heuristics.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
# Conflicts:
# drivers/mtd/nand/sunxi_nand_spl.c
---
drivers
d rewriting the same values in NFC registers each time we read a page.
These new functions are passed a pointer to an nfc_config struct to limit
the number of parameters.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/sunxi_nand_spl.c | 185 +++---
rename the max_number_of_retries parameters and the
MAX_RETRIES macro into timeout_us and DEFAULT_TIMEOUT_US to reflect that
we're actually waiting a given amount of time and not only a number of
retries.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/sunxi_
NAND_SUNXI and make it dependent
on SPL selection.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/Kconfig | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 2fc73ef..5fe169f 100644
dumb 'trial and error' mechanism.
With this new approach we can get rid of the fixed config list that was
used in the sunxi NAND SPL driver.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
Changes since v1:
- fix the nand_max_ecc_strength()
---
drivers/mtd/nand/sunxi_n
we try to limit the impact on boot-time here).
Patch 6 and 7 are implementing the auto-detection logic.
Best Regards,
Boris
Changes since v2:
- rework the Kconfig options for SYS_U_BOOT_OFFS and
SYS_U_BOOT_REDUND_OFFS
Changes since v1:
- added Hans ack
- fixed 2 typos in patch 7
Boris Bre
On Sat, 04 Jun 2016 02:14:09 -0500
Scott Wood wrote:
> On Sat, 2016-06-04 at 08:06 +0200, Boris Brezillon wrote:
> > On Fri, 03 Jun 2016 20:08:49 -0500
> > Scott Wood wrote:
> >
> > > This doesn't work. CONFIG_SPL_NAND_U_BOOT_OFFS will always be defined
On Fri, 03 Jun 2016 20:15:16 -0500
Scott Wood wrote:
> On Wed, 2016-06-01 at 13:23 +0200, Boris Brezillon wrote:
> > On modern NAND it's more than recommended to have a backup copy of the
> > u-boot binary to recover from corruption: bitflips are quite common on
> &g
On Fri, 03 Jun 2016 20:08:49 -0500
Scott Wood wrote:
> On Wed, 2016-06-01 at 13:23 +0200, Boris Brezillon wrote:
> > The SYS_NAND_U_BOOT_OFFS is quite generic, but the Kconfig entry is forced
> > to explicitly depend on platforms that are not already defining it in their
> &g
the original source code I copied from the kernel).
Signed-off-by: Boris Brezillon
---
Changes since v1:
- Add a link to the original bch.c source file
---
nand-image-builder.c | 49 -
1 file changed, 8 insertions(+), 41 deletions(-)
diff --git a
Add error messages explaining what is wrong or missing in the arguments
passed by to the sunxi-nand-image-builder tool.
Signed-off-by: Boris Brezillon
Acked-by: Bernhard Nortmann
---
Changes since v1:
- Drop uneeded braces
---
nand-image-builder.c | 30 +-
1 file
Add explanations on where the options to pass to the tool should be
extracted from, and add two examples to illustrate this explanation.
Signed-off-by: Boris Brezillon
---
Changes since v2:
- limit line width in the help context
Changes since v1:
- use shorter option names
- rework the help
--help/-h is not working correctly (it's printing the help context on
stderr instead of stdout).
Adding a valid shortcut for --help solves the problem.
Signed-off-by: Boris Brezillon
---
nand-image-builder.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nand-
On Fri, 3 Jun 2016 07:43:40 +0200
Bernhard Nortmann wrote:
> Am 02.06.2016 um 17:33 schrieb Boris Brezillon:
> > Add explanations on where the options to pass to the tool should be
> > extracted from, and add two examples to illustrate this explanation.
> >
> > Sig
Add error messages explaining what is wrong or missing in the arguments
passed by to the sunxi-nand-image-builder tool.
Signed-off-by: Boris Brezillon
Acked-by: Bernhard Nortmann
---
Changes since v1:
- Drop uneeded braces
---
nand-image-builder.c | 30 +-
1 file
Add explanations on where the options to pass to the tool should be
extracted from, and add two examples to illustrate this explanation.
Signed-off-by: Boris Brezillon
---
Changes since v1:
- use shorter option names
- rework the help context
---
nand-image-builder.c | 67
the original source code I copied from the kernel).
Signed-off-by: Boris Brezillon
---
Changes since v1:
- Add a link to the original bch.c source file
---
nand-image-builder.c | 49 -
1 file changed, 8 insertions(+), 41 deletions(-)
diff --git a
On Wed, 1 Jun 2016 15:35:07 +0300
Siarhei Siamashka wrote:
> On Wed, 1 Jun 2016 13:23:24 +0200
> Boris Brezillon wrote:
>
> > NAND chips are supposed to expose their capabilities through advanced
> > mechanisms like READID, ONFI or JEDEC parameter tables. While
On Wed, 1 Jun 2016 14:43:22 +0200
Bernhard Nortmann wrote:
> Am 01.06.2016 um 11:05 schrieb Boris Brezillon:
> > Add explanation on where the options to pass to the tool should be
> > extracted from, and add two examples to illustrate this explanation.
> >
> > Sig
On Wed, 1 Jun 2016 14:41:36 +0300
Siarhei Siamashka wrote:
> On Mon, 30 May 2016 19:02:13 +0200
> Boris Brezillon wrote:
>
> > On Mon, 30 May 2016 19:46:17 +0300
> > Siarhei Siamashka wrote:
> >
> > > On Mon, 30 May 2016 17:24:16 +0200
> > >
rename the max_number_of_retries parameters and the
MAX_RETRIES macro into timeout_us and DEFAULT_TIMEOUT_US to reflect that
we're actually waiting a given amount of time and not only a number of
retries.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/sunxi_
n, then I'd recommend
specifying all the config parameters through Kconfig options.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/sunxi_nand_spl.c | 56 ++-
1 file changed, 14 insertions(+), 42 deletions(-)
diff --git a/dri
Use CONFIG_SPL_NAND_U_BOOT_OFFS_REDUND value instead of trying to guess
where the redundant u-boot image is based on simple (and most of the time
erroneous) heuristics.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/sunxi_nand_spl.c | 20
1
dumb 'trial and error' mechanism.
With this new approach we can get rid of the fixed config list that was
used in the sunxi NAND SPL driver.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
Changes since v1:
- fix the nand_max_ecc_strength()
---
drivers/mtd/nand/sunxi_n
selection.
common/spl/spl_nand.c now sets CONFIG_SYS_NAND_U_BOOT_OFFS to
CONFIG_SPL_NAND_U_BOOT_OFFS only when it's undefined. This way we stay
compatible with the existing behavior.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
common/spl/spl_nand.c | 4
dr
ption to specify the offset of the redundant u-boot
image.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
common/spl/spl_nand.c| 8
drivers/mtd/nand/Kconfig | 6 ++
2 files changed, 14 insertions(+)
diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c
index 61
d rewriting the same values in NFC registers each time we read a page.
These new functions are passed a pointer to an nfc_config struct to limit
the number of parameters.
Signed-off-by: Boris Brezillon
Acked-by: Hans de Goede
---
drivers/mtd/nand/sunxi_nand_spl.c | 185 +++---
olling
loop, which is really important to make the "trial and error"
approach efficient (we try to limit the impact on boot-time here).
Patch 6 and 7 are implementing the auto-detection logic.
Best Regards,
Boris
Changes since v1:
- added Hans ack
- fixed 2 typos in patch 7
Boris Bre
On Fri, 20 May 2016 15:55:51 +0200
Boris Brezillon wrote:
> NAND chips are supposed to expose their capabilities through advanced
> mechanisms like READID, ONFI or JEDEC parameter tables. While those
> methods are appropriate for the bootloader itself, it's way to
> complica
the original source code I copied from the kernel).
Signed-off-by: Boris Brezillon
---
Hi,
A PR containing those 2 patches has been seent [1], but please review
the changes before merging the PR.
Thanks,
Boris
[1]https://github.com/linux-sunxi/sunxi-tools/pull/55
nand-image-builder.c | 48
Add error messages explaining what is wrong or missing in the arguments
passed by to the sunxi-nand-image-builder tool.
Signed-off-by: Boris Brezillon
---
nand-image-builder.c | 30 +-
1 file changed, 25 insertions(+), 5 deletions(-)
diff --git a/nand-image
Add explanation on where the options to pass to the tool should be
extracted from, and add two examples to illustrate this explanation.
Signed-off-by: Boris Brezillon
---
nand-image-builder.c | 17 +++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/nand-image
Hi Bernhard,
On Mon, 30 May 2016 23:23:31 +0200
Bernhard Nortmann wrote:
> Am 30.05.2016 um 17:12 schrieb Boris Brezillon:
> > Generating raw NAND images is particularly useful for boot0 images
> > creation since the mainline driver is not supporting the funky layout
> > us
On Mon, 30 May 2016 19:46:17 +0300
Siarhei Siamashka wrote:
> On Mon, 30 May 2016 17:24:16 +0200
> Boris Brezillon wrote:
>
> > Hi Hans,
> >
> > On Mon, 30 May 2016 17:12:53 +0200
> > Boris Brezillon wrote:
> >
> > > Generating raw NAN
Hi Hans,
On Mon, 30 May 2016 17:12:53 +0200
Boris Brezillon wrote:
> Generating raw NAND images is particularly useful for boot0 images
> creation since the mainline driver is not supporting the funky layout
> used by Allwinner's ROM code to load the boot0 binary from NAND.
>
hat they can be flashed before soldering on the NAND on the board
(using a regular NAND programmer).
The tool takes care of generating ECC bytes and randomizing data as
expected by the NAND controller, and re-arranging the ECC/data sections
correctly.
Signed-off-by: Boris Brezillon
---
Hi Siarhei,
olling
loop, which is really important to make the "trial and error"
approach efficient (we try to limit the impact on boot-time here).
Patch 6 and 7 are implementing the auto-detection logic.
Best Regards,
Boris
Boris Brezillon (7):
spl: nand: sunxi: remove support for so-called 'sy
n, then I'd recommend
specifying all the config parameters through Kconfig options.
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 56 ++-
1 file changed, 14 insertions(+), 42 deletions(-)
diff --git a/drivers/mtd/nand/sunxi_na
rename the max_number_of_retries parameters and the
MAX_RETRIES macro into timeout_us and DEFAULT_TIMEOUT_US to reflect that
we're actually waiting a given amount of time and not only a number of
retries.
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 29 +
dumb 'trial and error' mechanism.
With this new approach we can get rid of the fixed config list that was
used in the sunxi NAND SPL driver.
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 262 +-
1 file changed, 204 insertions(+
Use CONFIG_SPL_NAND_U_BOOT_OFFS_REDUND value instead of trying to guess
where the redundant u-boot image is based on simple (and most of the time
erroneous) heuristics.
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 20
1 file changed, 20 deletions
ption to specify the offset of the redundant u-boot
image.
Signed-off-by: Boris Brezillon
---
common/spl/spl_nand.c| 8
drivers/mtd/nand/Kconfig | 6 ++
2 files changed, 14 insertions(+)
diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c
index 612bd4a..0bf0848 100644
d rewriting the same values in NFC registers each time we read a page.
These new functions are passed a pointer to an nfc_config struct to limit
the number of parameters.
Signed-off-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 185 +++---
1 file cha
selection.
common/spl/spl_nand.c now sets CONFIG_SYS_NAND_U_BOOT_OFFS to
CONFIG_SPL_NAND_U_BOOT_OFFS only when it's undefined. This way we stay
compatible with the existing behavior.
Signed-off-by: Boris Brezillon
---
common/spl/spl_nand.c | 4
drivers/mtd/nand/Kc
Hi Scott,
On Tue, 03 May 2016 00:06:45 -0500
Scott Wood wrote:
> On Mon, 2016-04-25 at 22:53 +0200, Boris Brezillon wrote:
> > On Mon, 25 Apr 2016 13:36:46 -0400
> > Tom Rini wrote:
> >
> > > On Mon, Apr 25, 2016 at 04:43:14PM +0200, Boris Brezillon wr
Hi Scott,
On Tue, 03 May 2016 00:06:45 -0500
Scott Wood wrote:
> On Mon, 2016-04-25 at 22:53 +0200, Boris Brezillon wrote:
> > On Mon, 25 Apr 2016 13:36:46 -0400
> > Tom Rini wrote:
> >
> > > On Mon, Apr 25, 2016 at 04:43:14PM +0200, Boris Brezillon wr
1 - 100 of 1074 matches
Mail list logo