On Sun, 24 Jul 2016 20:41:30 -0500
Scott Wood <o...@buserror.net> 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
&g
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"
y should it return
> -EPROBE_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" <boris.brezil...@free-electrons.com>:
> > On Mon, 20 Jun 2016 12:48:38
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
Hi Philipp,
On Mon, 20 Jun 2016 14:05:54 +0200
Philipp Zabel <p.za...@pengutronix.de> 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 <icen...@aosc.xyz>
On Mon, 6 Jun 2016 13:59:11 +0200
Boris Brezillon <boris.brezil...@free-electrons.com> 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 s
On Wed, 15 Jun 2016 11:22:12 +0200
Boris Brezillon <boris.brezil...@free-electrons.com> wrote:
> The column address passed to the RNDOUT operation was missing the page
> size offset.
>
Applied.
> Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
>
On Sun, 19 Jun 2016 19:07:47 -0500
Scott Wood <o...@buserror.net> 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 qu
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
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
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" <boris.brezil...@free-electrons.com>:
> &g
aintainer).
>
>
> 19.06.2016, 20:06, "Boris Brezillon" <boris.brezil...@free-electrons.com>:
> > +Philipp
> >
> > On Sun, 19 Jun 2016 19:37:39 +0800
> > Icenowy Zheng <icen...@aosc.xyz> wrote:
> >
> >> The NAND controller on some sun8
+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
On Mon, 6 Jun 2016 10:16:55 +0200
Boris Brezillon <boris.brezil...@free-electrons.com> 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 m
The column address passed to the RNDOUT operation was missing the page
size offset.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Fixes: 614049a8d904 ("mtd: nand: sunxi: add support for DMA assisted
operations")
---
drivers/mtd/nand/sunxi_nand.c | 6 --
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 <boris.brezil...@free-electrons.com>
---
cmd/
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-b
Hi Siarhei,
On Fri, 10 Jun 2016 01:07:45 +0300
Siarhei Siamashka <siarhei.siamas...@gmail.com> wrote:
> On Wed, 1 Jun 2016 14:54:24 +0200
> Boris Brezillon <boris.brezil...@free-electrons.com> wrote:
>
> > On Wed, 1 Jun 2016 14:41:36 +0300
> > Siarhei Siama
We need some macros to manipulate the NAND controller clock.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 5 +
1 file changed, 5 insertions(+)
diff --gi
Add a full-id entry for the H27QCG8T2E5R‐BCF NAND.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
drivers/mtd/nand/nand_ids.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/mtd/nand/nand_ids.c b
s,
etc.), then they can do so between 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 <computersforpe...@gmail.com>
Signed-off-by: Boris Brezillon <boris
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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@r
From: Maxime Ripard <maxime.rip...@free-electrons.com>
Add the NAND controller definition to sun5i.dtsi.
Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
arch/arm/d
Enable the NAND controller in the sun5i-r8-chip.dts.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
arch/arm/dts/sun5i-a10s.dtsi | 14 ++
arch/arm/dts/sun5i-a13-olinuxino.dts | 15 +
On Mon, 6 Jun 2016 22:31:38 +0200
Boris Brezillon <boris.brezil...@free-electrons.com> wrote:
> On Mon, 6 Jun 2016 22:59:03 +0300
> Aleksei Mamlin <mamli...@gmail.com> wrote:
>
> > On Mon, 6 Jun 2016 20:55:49 +0200
> > Boris Brezillon <boris
On Tue, 7 Jun 2016 00:06:45 +0300
Aleksei Mamlin <mamli...@gmail.com> wrote:
> On Mon, 6 Jun 2016 22:31:38 +0200
> Boris Brezillon <boris.brezil...@free-electrons.com> wrote:
>
> > On Mon, 6 Jun 2016 22:59:03 +0300
> > Aleksei Mamlin <mamli...@gmail.com> wr
On Mon, 06 Jun 2016 18:54:03 -0500
Scott Wood <o...@buserror.net> wrote:
> On Mon, 2016-06-06 at 20:31 +0200, Boris Brezillon wrote:
> > On Mon, 06 Jun 2016 12:56:48 -0500
> > Scott Wood <o...@buserror.net> wrote:
> >
> > > On Mon, 2016-0
On Mon, 6 Jun 2016 22:59:03 +0300
Aleksei Mamlin <mamli...@gmail.com> wrote:
> On Mon, 6 Jun 2016 20:55:49 +0200
> Boris Brezillon <boris.brezil...@free-electrons.com> wrote:
>
> > On Mon, 6 Jun 2016 13:24:22 +0300
> > Aleksei Mamlin <mamli...@gmail.c
= {0xad, 0xd7, 0x94, 0xda, 0x74, 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 4M
On Mon, 6 Jun 2016 13:24:24 +0300
Aleksei Mamlin <mamli...@gmail.com> wrote:
> Enable the NFC and describe the NAND flash connected to this controller.
>
> Signed-off-by: Aleksei Mamlin <mamli...@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezil...@free-electrons
On Mon, 6 Jun 2016 13:24:23 +0300
Aleksei Mamlin <mamli...@gmail.com> wrote:
> Enable the NFC and describe the NAND flash connected to this controller.
>
> Signed-off-by: Aleksei Mamlin <mamli...@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezil...@free-electrons
On Mon, 06 Jun 2016 12:56:48 -0500
Scott Wood <o...@buserror.net> 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 <hdego...@redhat.com> wrote:
> >
> > > > +#ifndef CONFIG
On Fri, 15 Apr 2016 15:10:30 +0200
Boris Brezillon <boris.brezil...@free-electrons.com> 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.
Enable the NAND controller in the sun5i-r8-chip.dts.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
arch/arm/dts/sun5i-a10s.dtsi | 14 ++
arch/arm/dts/sun5i-a13-olinuxino.dts | 15 +++
arch/arm/dts/sun5i-r8-chip.dts
Add a full-id entry for the H27QCG8T2E5R‐BCF NAND.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
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
://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):
mtd: nand: add
s,
etc.), then they can do so between 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 <computersforpe...@gmail.com>
Signed-off-by: Boris Brezillon <boris
We some macro to manipulate the NAND controller clock.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
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/i
On Mon, 6 Jun 2016 13:59:14 +0200
Boris Brezillon <boris.brezil...@free-electrons.com> 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
tri
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 <boris.brezil...@free-electrons.com>
---
drivers/mtd/nand/sunxi_nand.c | 6 ++
AND that
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 <bor
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
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
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 <boris.brezil...@free-electrons.com>
Acked-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes since v1:
- Drop uneeded brac
of the original source code I copied from the kernel).
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
Changes since v1:
- Add a link to the original bch.c source file
---
nand-image-builder.c | 49 -
1 file chan
--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 <boris.brezil...@free-electrons.com>
Acked-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
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 <boris.brezil...@free-electrons.com>
Acked-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes since v3
the config parameters through Kconfig options.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
drivers/mtd/nand/sunxi_nand_spl.c | 56 ++-
1 file changed, 14 insertions(+), 42 deleti
to specify the offset of the redundant u-boot
image.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
# Conflicts:
# common/spl/spl_nand.c
# drivers/mtd/nand/Kconfig
---
common/spl/spl_nand.c| 5 +
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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
driv
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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@r
on NAND_SUNXI and make it dependent
on SPL selection.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
drivers/mtd/nand/Kconfig | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/drivers/mtd/na
'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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
Changes since v1:
- fix the nand_max_
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 Brezillon (7):
spl: nand: sunxi
On Sat, 04 Jun 2016 02:14:09 -0500
Scott Wood <o...@buserror.net> wrote:
> On Sat, 2016-06-04 at 08:06 +0200, Boris Brezillon wrote:
> > On Fri, 03 Jun 2016 20:08:49 -0500
> > Scott Wood <o...@buserror.net> wrote:
> >
> > > This doesn't work. CONFIG_S
On Fri, 03 Jun 2016 20:15:16 -0500
Scott Wood <o...@buserror.net> 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 co
On Fri, 03 Jun 2016 20:08:49 -0500
Scott Wood <o...@buserror.net> 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
of the original source code I copied from the kernel).
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
Changes since v1:
- Add a link to the original bch.c source file
---
nand-image-builder.c | 49 -
1 file chan
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 <boris.brezil...@free-electrons.com>
Acked-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes since v1:
- Drop uneeded brac
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 <boris.brezil...@free-electrons.com>
---
Changes since v2:
- limit line width in the help context
Changes since v1:
--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 <boris.brezil...@free-electrons.com>
---
nand-image-builder.c | 4 ++--
1 file changed, 2 insertions
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 <boris.brezil...@free-electrons.com>
---
Changes since v1:
- use shorter option names
- rework the help context
---
nand
of the original source code I copied from the kernel).
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
Changes since v1:
- Add a link to the original bch.c source file
---
nand-image-builder.c | 49 -
1 file chan
On Wed, 1 Jun 2016 15:35:07 +0300
Siarhei Siamashka <siarhei.siamas...@gmail.com> wrote:
> On Wed, 1 Jun 2016 13:23:24 +0200
> Boris Brezillon <boris.brezil...@free-electrons.com> wrote:
>
> > NAND chips are supposed to expose their capabilities through advanced
>
On Wed, 1 Jun 2016 14:43:22 +0200
Bernhard Nortmann <bernhard.nortm...@web.de> 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 explan
On Wed, 1 Jun 2016 14:41:36 +0300
Siarhei Siamashka <siarhei.siamas...@gmail.com> wrote:
> On Mon, 30 May 2016 19:02:13 +0200
> Boris Brezillon <boris.brezil...@free-electrons.com> wrote:
>
> > On Mon, 30 May 2016 19:46:17 +0300
> > Siarhei Siamashka &l
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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@r
the config parameters through Kconfig options.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
drivers/mtd/nand/sunxi_nand_spl.c | 56 ++-
1 file changed, 14 insertions(+), 42 deleti
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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
'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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
Changes since v1:
- fix the nand_max_
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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@r
to specify the offset of the redundant u-boot
image.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
common/spl/spl_nand.c| 8
drivers/mtd/nand/Kconfig | 6 ++
2 files changed, 14 insertions(+)
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 <boris.brezil...@free-electrons.com>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
driv
ly 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 Brezillon (7):
spl: nand: sunxi
On Fri, 20 May 2016 15:55:51 +0200
Boris Brezillon <boris.brezil...@free-electrons.com> 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 bootload
of the original source code I copied from the kernel).
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
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
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 <boris.brezil...@free-electrons.com>
---
nand-image-builder.c | 17 +++--
1 file changed, 15 insertions
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 <boris.brezil...@free-electrons.com>
---
nand-image-builder.c | 30 +-
1 file changed, 25 insertions(+), 5 del
Hi Bernhard,
On Mon, 30 May 2016 23:23:31 +0200
Bernhard Nortmann <bernhard.nortm...@web.de> 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 suppor
On Mon, 30 May 2016 19:46:17 +0300
Siarhei Siamashka <siarhei.siamas...@gmail.com> wrote:
> On Mon, 30 May 2016 17:24:16 +0200
> Boris Brezillon <boris.brezil...@free-electrons.com> wrote:
>
> > Hi Hans,
> >
> > On Mon, 30 May 2016 17:12:53 +0200
&g
Hi Hans,
On Mon, 30 May 2016 17:12:53 +0200
Boris Brezillon <boris.brezil...@free-electrons.com> 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
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 <boris.brezil...@f
ly 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 'syndrome' mode
spl: nand: rename th
the config parameters through Kconfig options.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
drivers/mtd/nand/sunxi_nand_spl.c | 56 ++-
1 file changed, 14 insertions(+), 42 deletions(-)
diff --git a/drivers/mtd/nand/sunxi_nand_sp
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 <boris.brezil...@free-electrons.com>
---
drivers/mtd/nand/sunxi_nand_spl.
'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 <boris.brezil...@free-electrons.com>
---
drivers/mtd/nand/sunxi_nand_spl.c | 262 +-
1 file c
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 <boris.brezil...@free-electrons.com>
---
drivers/mtd/nand/sunxi_nand_spl.
to specify the offset of the redundant u-boot
image.
Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
---
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_
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 <boris.brezil...@free-electrons.com>
---
drivers/mtd/nand/sunxi_nand_spl.c
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 <boris.brezil...@free-electrons.com>
---
common/spl/spl_nand.c
Hi Scott,
On Tue, 03 May 2016 00:06:45 -0500
Scott Wood <o...@buserror.net> wrote:
> On Mon, 2016-04-25 at 22:53 +0200, Boris Brezillon wrote:
> > On Mon, 25 Apr 2016 13:36:46 -0400
> > Tom Rini <tr...@konsulko.com> wrote:
> >
> > > On Mon, Apr 25,
Hi Scott,
On Tue, 03 May 2016 00:06:45 -0500
Scott Wood <o...@buserror.net> wrote:
> On Mon, 2016-04-25 at 22:53 +0200, Boris Brezillon wrote:
> > On Mon, 25 Apr 2016 13:36:46 -0400
> > Tom Rini <tr...@konsulko.com> wrote:
> >
> > > On Mon, Apr 25,
On Mon, 25 Apr 2016 15:22:50 +0200
Maxime Ripard <maxime.rip...@free-electrons.com> wrote:
> Add the settings to support the NTSC standard.
>
> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Reviewed-by: Boris Brezillon <boris.brezil...@free-electrons.co
lt;maxime.rip...@free-electrons.com>
Reviewed-by: Boris Brezillon <boris.brezil...@free-electrons.com>
> ---
> drivers/gpu/drm/sun4i/sun4i_tv.c | 42
>
> 1 file changed, 42 insertions(+)
>
> diff --git a/drivers/gpu/drm/sun4i/
t for that TV encoder.
>
> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Reviewed-by: Boris Brezillon <boris.brezil...@free-electrons.com>
> ---
> drivers/gpu/drm/sun4i/Makefile | 2 +
> drivers/gpu/drm/sun4i/sun4i_tv.c | 621
>
ignals directly.
>
> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Reviewed-by: Boris Brezillon <boris.brezil...@free-electrons.com>
> ---
> drivers/gpu/drm/sun4i/Makefile | 1 +
> drivers/gpu/drm/sun4i/sun4i_drv.c | 24
&
(HDMI, TV, VGA) or not.
>
> Add a driver with a limited set of features for now, and we will hopefully
> support all of them eventually
>
> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Just 2 comments below. Once addressed you can add my
Reviewed-by: B
On Mon, 25 Apr 2016 13:36:46 -0400
Tom Rini <tr...@konsulko.com> wrote:
> On Mon, Apr 25, 2016 at 04:43:14PM +0200, Boris Brezillon wrote:
>
> > Hi Scott,
> >
> > I've recently contributed a lot of MTD/NAND related patches (and intend
> > to continue doi
ther people are also working on merging the BBT code of the NAND and
OneNAND framework. Which unfortunately means that we're not done porting
invasive changes to U-Boot :-/.
Any advice is welcome.
Thanks,
Boris
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http:
1 - 100 of 942 matches
Mail list logo