Change NFC_SEND_ADR to NFC_SEND_ADDR.
Signed-off-by: Miquel Raynal
Acked-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd/nand/sunxi_nand_spl.c
index 06695fc15f
Remove NAND_SUNXI from the CHIP pro defconfig to be automatically
selected depending on the state of ARCH_SUNXI.
Signed-off-by: Miquel Raynal
Acked-by: Maxime Ripard
---
configs/CHIP_pro_defconfig | 1 -
drivers/mtd/nand/Kconfig | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff
be safe.
Signed-off-by: Miquel Raynal
Acked-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 15 ---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd/nand/sunxi_nand_spl.c
index 25a0941fd2..d63aa978d4 100644
Add NAND parameters to the Nintendo NES Classic configuration file which
features a Macronix NAND flash chip with 128kiB blocks of 2kiB pages
plus 64 OOB bytes.
Signed-off-by: Miquel Raynal
Acked-by: Maxime Ripard
---
configs/Nintendo_NES_Classic_Edition_defconfig | 4
1 file changed, 4
handle this instead of repeating the
logic through the various functions.
Signed-off-by: Miquel Raynal
Acked-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 42 +++
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/drivers/mtd/nand
The pattern of polling on a status register until a bit is set or a
timeout occurs is repeated multiple times in the driver. Mutualize the
code by introducing the nand_wait_int() helper that does wait for the
bit to flip or returns an error in case of timeout.
Signed-off-by: Miquel Raynal
Acked
Add some clocks/PLL definitions as well as the dependency on MACH_SUN8I
in Kconfig.
Signed-off-by: Miquel Raynal
---
arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 6 ++
drivers/mtd/nand/Kconfig | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch
Ensure the NAND controller reset line is deasserted before use.
Signed-off-by: Miquel Raynal
---
board/sunxi/board.c | 4
1 file changed, 4 insertions(+)
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 8891961dcc..b8f58fe133 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi
Move the ecc_bytes array out of nand_max_ecc_strength() for future use
by nand_read_page().
Signed-off-by: Miquel Raynal
Acked-by: Boris Brezillon
---
drivers/mtd/nand/sunxi_nand_spl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b
t should have been
somewhere in RAM. This, obviously, stalls the board.
Fixes: 8bee2d251afb ("binman: Add binman symbol support to SPL")
Signed-off-by: Miquel Raynal
---
common/spl/spl.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/common/spl/spl.c b/
updated to match the 'selected_strength'.
For instance, one can encounter this issue when no ECC requirement is
filled in the device tree while the NAND chip minimum requirement is not
a strength/step_size combo natively supported by the ECC engine.
Suggested-by: Boris Brezillon
Signed-of
and ARCH_SUNXI.
- Moved the NAND parameters to Kconfig (only for SUNXI because the
tool did not work as expected, maybe due to some definitions that
are not "numbers" but multiplications and sometimes use other
definitions (NAND page size, 2K_SZ, etc).
Miquel Raynal (20):
Hi Maxime,
On Thu, 22 Feb 2018 14:53:35 +0100, Maxime Ripard
wrote:
> On Thu, Feb 22, 2018 at 02:33:41PM +0100, Miquel Raynal wrote:
> > Ensure the NAND controller reset line is deasserted before use.
> >
> > Signed-off-by: Miquel Raynal
> > ---
> > boar
Add some clocks/PLL definitions and the dependency on MACH_SUN8I in
Kconfig so the NAND support in the SPL could be compiled for boards
using A33 SoCs.
Signed-off-by: Miquel Raynal
---
arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 6 ++
drivers/mtd/nand/Kconfig | 2
Ensure the NAND controller reset line is deasserted before use.
Signed-off-by: Miquel Raynal
---
board/sunxi/board.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 8891961dcc..54ac018b80 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi
Move the ecc_bytes array out of nand_max_ecc_strength() for future use
by nand_read_page().
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd/nand
It is best practice to always clear the status register before executing
a command to be sure that the status read afterwards is relevant.
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b
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
---
configs/CHIP_pro_defconfig | 4 +++-
drivers/mtd/nand/Kconfig | 22 ++
2 files changed
been chosen because CPU overload at this stage is not an
issue and it makes the driver more generic, and easier to understand.
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 141 --
1 file changed, 58 insertions(+), 83 deletions(-)
diff --
Add NAND parameters to the Nintendo NES Classic configuration file which
features a Macronix NAND flash chip with 128kiB blocks of 2kiB pages
plus 64 OOB bytes.
Signed-off-by: Miquel Raynal
---
configs/Nintendo_NES_Classic_Edition_defconfig | 4
1 file changed, 4 insertions(+)
diff --git
The pattern of polling on a status register until a bit is set or a
timeout occurs is repeated multiple times in the driver. Mutualize the
code by introducing the nand_wait_int() helper that does wait for the
bit to flip or returns an error in case of timeout.
Signed-off-by: Miquel Raynal
Remove NAND_SUNXI from the CHIP pro defconfig to be automatically
selected depending on the state of ARCH_SUNXI.
Signed-off-by: Miquel Raynal
---
configs/CHIP_pro_defconfig | 1 -
drivers/mtd/nand/Kconfig | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs
Change NFC_SEND_ADR to NFC_SEND_ADDR.
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd/nand/sunxi_nand_spl.c
index 06695fc15f..608cc997ca 100644
--- a
SUNXI because the
tool did not work as expected, maybe due to some definitions that
are not "numbers" but multiplications and sometimes use other
definitions (NAND page size, 2K_SZ, etc).
Miquel Raynal (20):
spl: fix binman_sym output check
mtd: nand: sunxi: fix ECC streng
be safe.
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd/nand/sunxi_nand_spl.c
index 25a0941fd2..2fa1f70d9d 100644
--- a/drivers/mtd/nand
sanity check before starting any new command.
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd/nand/sunxi_nand_spl.c
index afb5fef0a6..f100eff6ac 100644
--- a
Let the Nintendo NES Classic use the Macronix NAND chip on it.
Signed-off-by: Miquel Raynal
---
arch/arm/dts/sun8i-a23-a33.dtsi| 18 ++
.../arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts | 14 ++
2 files changed, 32 insertions(+)
diff
led (and conf->nseeds
logically not zero), exactly like what has been done before with an
identical situation, see commit ea3f750c73e3 ("nand: sunxi: Fix modulo
by zero error").
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 5 +++--
1 file changed, 3 insertions
handle this instead of repeating the
logic through the various functions.
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 43 +++
1 file changed, 21 insertions(+), 22 deletions(-)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd
Prepare the future use of an helper to move the data pointer (the
column) of the NAND chip by renaming nand_reset_column() to
nand_change_column(). Resetting the column is just a matter of giving 0
as argument.
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 10
in RAM. This,
obviously, stalls the board.
Fixes: 8bee2d251afb ("binman: Add binman symbol support to SPL")
Signed-off-by: Miquel Raynal
---
common/spl/spl.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/common/spl/spl.c b/common/spl/spl.c
index b1ce56d0d0..c
Code has been changed to do not use DMA anymore with the NAND
controller, instead PIO is used. Then, DMA-specific initialization may
be dropped.
Signed-off-by: Miquel Raynal
---
board/sunxi/board.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
updated to match the 'selected_strength'.
For instance, one can encounter this issue when no ECC requirement is
filled in the device tree while the NAND chip minimum requirement is not
a strength/step_size combo natively supported by the ECC engine.
Suggested-by: Boris Brezillon
Si
Make SUNXI_NAND select SPL_NAND_SUPPORT in Kconfig, this limit the
number of entries to add in defconfig files when adding NAND support.
For now, the only board using it is the CHIP pro.
Signed-off-by: Miquel Raynal
---
configs/CHIP_pro_defconfig | 1 -
drivers/mtd/nand/Kconfig | 1 +
2
Hi Boris,
On Wed, 24 Jan 2018 09:16:19 +0100
Boris Brezillon wrote:
> On Wed, 24 Jan 2018 01:44:51 +0100
> Miquel Raynal wrote:
>
> > Because using DMA implementation is not generic and was not developped
> > to work on SoCs like A33, migrate the SPL to use PIO.
> >
Hi Maxime,
I have some doubts about your comments, see below.
On Wed, 24 Jan 2018 09:06:26 +0100
Maxime Ripard wrote:
> Hi,
>
> On Wed, Jan 24, 2018 at 01:44:51AM +0100, Miquel Raynal wrote:
> > Because using DMA implementation is not generic and was not developped
> >
Hi Boris,
On Wed, 24 Jan 2018 09:06:38 +0100
Boris Brezillon wrote:
> On Wed, 24 Jan 2018 01:44:50 +0100
> Miquel Raynal wrote:
>
> > Do some cleaning in sunxi NAND SPL driver like adding helpers and
> > clearing flags at the right spot
> >
>
Hi Maxime,
On Wed, 24 Jan 2018 08:56:38 +0100
Maxime Ripard wrote:
> Hi,
>
> On Wed, Jan 24, 2018 at 01:44:50AM +0100, Miquel Raynal wrote:
> > Do some cleaning in sunxi NAND SPL driver like adding helpers and
> > clearing flags at the right spot
> >
>
Hi Maxime,
On Wed, 24 Jan 2018 08:47:31 +0100
Maxime Ripard wrote:
> On Wed, Jan 24, 2018 at 01:44:48AM +0100, Miquel Raynal wrote:
> > In the nand_read_buffer() step, the seed is calculated by doing a modulo
> > by conf->nseeds which is always zero when not using the rando
Hi Maxime,
On Wed, 24 Jan 2018 08:49:10 +0100
Maxime Ripard wrote:
> Hi,
>
> On Wed, Jan 24, 2018 at 01:44:49AM +0100, Miquel Raynal wrote:
> > Add some clocks/PLL definitions and the dependency on MACH_SUN8I in
> > Kconfig so the SPL could be compiled to boards using A33
Hello Maxime,
On Wed, 24 Jan 2018 08:46:18 +0100
Maxime Ripard wrote:
> Hi,
>
> On Wed, Jan 24, 2018 at 01:44:47AM +0100, Miquel Raynal wrote:
> > When no requirement in Device Tree is given about the ECC strength and
> > step size, the engine should fallback on the min
Hello Boris,
On Wed, 24 Jan 2018 08:57:23 +0100
Boris Brezillon wrote:
> On Wed, 24 Jan 2018 01:44:47 +0100
> Miquel Raynal wrote:
>
> > When no requirement in Device Tree is given about the ECC strength and
> > step size, the engine should fallback on the minimal work
Add the NAND controller node, as well as the definition of the missing
pins and clock.
Signed-off-by: Miquel Raynal
---
arch/arm/dts/sun8i-a23-a33.dtsi | 31 +++
arch/arm/dts/sun8i-a33.dtsi | 8
2 files changed, 39 insertions(+)
diff --git a/arch/arm
Add NAND parameters to the Nintendo NES Classic configuration file.
Signed-off-by: Miquel Raynal
---
configs/Nintendo_NES_Classic_Edition_defconfig | 4
1 file changed, 4 insertions(+)
diff --git a/configs/Nintendo_NES_Classic_Edition_defconfig
b/configs
Because using DMA implementation is not generic and was not developped
to work on SoCs like A33, migrate the SPL to use PIO.
Signed-off-by: Miquel Raynal
---
board/sunxi/board.c | 4 +-
drivers/mtd/nand/sunxi_nand_spl.c | 167 +-
2 files
Add some clocks/PLL definitions and the dependency on MACH_SUN8I in
Kconfig so the SPL could be compiled to boards using A33 SoCs.
Signed-off-by: Miquel Raynal
---
arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 6 ++
drivers/mtd/nand/Kconfig | 2 +-
2 files changed, 7
Let the Nintendo NES Classic use the Macronix NAND chip on it.
Signed-off-by: Miquel Raynal
---
arch/arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts | 14 ++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts
b/arch/arm/dts
Do some cleaning in sunxi NAND SPL driver like adding helpers and
clearing flags at the right spot
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 64 +--
1 file changed, 41 insertions(+), 23 deletions(-)
diff --git a/drivers/mtd/nand
ically not zero).
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand/sunxi_nand_spl.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/sunxi_nand_spl.c
b/drivers/mtd/nand/sunxi_nand_spl.c
index eed4472bdc..06695fc15f 100644
--- a/drivers/mt
When no requirement in Device Tree is given about the ECC strength and
step size, the engine should fallback on the minimal working case for
this engine (16b/1024B) instead of the NAND chip requirement which might
be simply unreachable.
Signed-off-by: Miquel Raynal
---
drivers/mtd/nand
Miquel Raynal (8):
mtd: nand: sunxi: Fix strength minimum value
spl: nand: sunxi: Fix second case of modulo by zero error
sunxi: Allow SPL to be compiled for sun8i platforms
spl: nand: sunxi: Enhancements and cleaning
spl: nand: sunxi: use PIO instead of DMA
configs: Add NAND support for
linux compatible string")
Signed-off-by: Miquel Raynal
---
doc/device-tree-bindings/spi/soft-spi.txt | 24 ++--
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/doc/device-tree-bindings/spi/soft-spi.txt
b/doc/device-tree-bindings/spi/soft-spi.txt
index
Armada pinctrl drivers shall not be compiled without the entire pinctrl
framework and thus lack a "depends on" condition, otherwise the driver
will simply not be probed.
Signed-off-by: Miquel Raynal
---
drivers/pinctrl/mvebu/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2
Until now, Armada 3700 SoCs could not enable the mvneta driver, and thus
did not benefit from Ethernet support. Add ARMADA_3700 in the
"depends on" list of the MVNETA Kconfig entry.
Signed-off-by: Miquel Raynal
---
drivers/net/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3
h (the path
contains mx6sabreauto instead of mx6qsabreauto).
Best regards,
Miquèl
--
Miquel Raynal, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17
Retry time exceeded; starting again
--
Miquel Raynal
901 - 956 of 956 matches
Mail list logo