Re: [U-Boot] [PATCH v10 0/7] SPI-NAND support (third batch)

2018-09-28 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 28 Sep 2018 12:18:49 +0530: > On Thu, Sep 27, 2018 at 3:04 PM Miquel Raynal > wrote: > > > > During the last months, Boris Brezillon shared his work to support > > serial flashes within Linux. First, he delivered (and merged) a new > > layer called spi-mem. H

Re: [U-Boot] [PATCH v8 08/15] regmap: Add raw read/write functions

2018-09-28 Thread Mario Six
Hi Daniel, On Thu, Sep 27, 2018 at 1:28 PM Daniel Schwierzeck wrote: > > Hi Mario, > > Am Do., 27. Sep. 2018 um 11:48 Uhr schrieb Mario Six : > > > > The regmap functions currently assume that all register map accesses > > have a data width of 32 bits, but there are maps that have different > > wi

Re: [U-Boot] [PATCH v10 0/7] SPI-NAND support (third batch)

2018-09-28 Thread Jagan Teki
On Fri, Sep 28, 2018 at 12:38 PM Miquel Raynal wrote: > > Hi Jagan, > > Jagan Teki wrote on Fri, 28 Sep 2018 > 12:18:49 +0530: > > > On Thu, Sep 27, 2018 at 3:04 PM Miquel Raynal > > wrote: > > > > > > During the last months, Boris Brezillon shared his work to support > > > serial flashes withi

[U-Boot] [PATCH v9 03/16] regmap: Add documentation

2018-09-28 Thread Mario Six
Document the regmap_alloc() function. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2 -> v3: New in v3 --- drivers/cor

[U-Boot] [PATCH v9 05/16] regmap: Introduce init_range

2018-09-28 Thread Mario Six
Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with an error, which is not currently checked during regmap initialization. Since the indentation depth is already quite deep, extract a new 'init_range' method to do the initialization. Reviewed-by: Anatolij Gustschin Reviewed-

[U-Boot] [PATCH v9 04/16] regmap: Improve error handling

2018-09-28 Thread Mario Six
ofnode_read_simple_addr_cells may fail and return a negative error code. Check for this when initializing regmaps. Also check if both_len is zero, since this is perfectly possible, and would lead to a division-by-zero further down the line. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glas

[U-Boot] [PATCH v9 10/16] regmap: Define regmap_{get,set}

2018-09-28 Thread Mario Six
It would be convenient if one could use the regmap API in conjunction with register maps defined as structs (i.e. structs that directly mirror the memory layout of the registers in question). A similar approach was planned with the regmap_write32/regmap_read32 macros, but was never used. Hence, im

[U-Boot] [PATCH v9 08/16] regmap: Add raw read/write functions

2018-09-28 Thread Mario Six
The regmap functions currently assume that all register map accesses have a data width of 32 bits, but there are maps that have different widths. To rectify this, implement the regmap_raw_read and regmap_raw_write functions from the Linux kernel API that specify the width of a desired read or writ

[U-Boot] [PATCH v9 02/16] regmap: Fix documentation

2018-09-28 Thread Mario Six
The documentation in regmap.h is not in kernel-doc format. Correct this. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2

[U-Boot] [PATCH v9 14/16] misc: Sort Makefile entries

2018-09-28 Thread Mario Six
Makefile entries should be sorted. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six Signed-off-by: Anatolij Gustschin --- v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: Drop re-ordered entries that are not in

[U-Boot] [PATCH v9 07/16] mips: Implement {in, out}_{le, be}_{16, 32, 64} and {in, out}_8

2018-09-28 Thread Mario Six
MIPS is the only architecture currently supported by U-Boot that does not implement any of the in/out register access functions. To have a interface that is useable across architectures, add the functions to the MIPS architecture (implemented using the __raw_write and __raw_read functions). Signe

[U-Boot] [PATCH v9 06/16] regmap: Add error output

2018-09-28 Thread Mario Six
Add some debug output in cases where the initialization of a regmap fails. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes

[U-Boot] [PATCH v9 11/16] test: regmap: Add test for regmap_{set, get}

2018-09-28 Thread Mario Six
Add test for regmap_{set,get} functions. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2 -> v3: New in v3 --- test/dm/

[U-Boot] [PATCH v9 12/16] regmap: Add endianness support

2018-09-28 Thread Mario Six
Add support for switching the endianness of regmap accesses via the "little-endian", "big-endian", and "native-endian" boolean properties in the device tree. The default endianness is native endianness. Signed-off-by: Mario Six --- v8 -> v9: New in v9 --- drivers/core/regmap.c | 130

[U-Boot] [PATCH v9 13/16] regmap: Add overview documentation

2018-09-28 Thread Mario Six
Add some overview documentation that explains the purpose and some of the features and limitations of the regmap interface. Reviewed-by: Bin Meng Signed-off-by: Mario Six --- v8 -> v9: * Amended for inclusion of endianness setting via DT v7 -> v8: New in v8 --- include/regmap.h | 27 +++

[U-Boot] [PATCH v9 01/16] test: regmap: Increase size of syscon0 memory

2018-09-28 Thread Mario Six
The upcoming changes to the regmap interface will contain a proper check for plausibility when reading/writing from/to a register map. To still have the current tests pass, increase the size of the memory region for the syscon0 device, since one of the tests reads and writes beyond this range. Rev

[U-Boot] [PATCH v9 09/16] regmap: Support reading from specific range

2018-09-28 Thread Mario Six
It is useful to be able to treat the different ranges of a regmap separately to be able to use distinct offset for them, but this is currently not implemented in the regmap API. To preserve backwards compatibility, add regmap_read_range and regmap_write_range functions that take an additional para

[U-Boot] [PATCH v9 16/16] misc: Add IHS FPGA driver

2018-09-28 Thread Mario Six
Add a driver for gdsys IHS (Integrated Hardware Systems) FPGAs, which supports initialization of the FPGA, as well as information gathering. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: N

[U-Boot] [PATCH v9 15/16] misc: Add gdsys_soc driver

2018-09-28 Thread Mario Six
This patch adds a driver for the bus associated with a IHS FPGA. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2 -> v3: * Fixed style violations * Added

Re: [U-Boot] [PATCH v10 0/7] SPI-NAND support (third batch)

2018-09-28 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 28 Sep 2018 12:56:43 +0530: > On Fri, Sep 28, 2018 at 12:38 PM Miquel Raynal > wrote: > > > > Hi Jagan, > > > > Jagan Teki wrote on Fri, 28 Sep 2018 > > 12:18:49 +0530: > > > > > On Thu, Sep 27, 2018 at 3:04 PM Miquel Raynal > > > wrote: > > > > > > > >

Re: [U-Boot] [PATCH v2] cmd: usb_mass_storage: add protection for block_dev

2018-09-28 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > > On 09/26/2018 01:04 PM, Patrick Delaunay wrote: > > solve data abort for the command "ums 0 ubi 0" > > because result of case blk_get_device_part_str() result is OK but with > > block_dev = 0 when CONFIG_CMD_UBIFS is activate and ubi volume is > > mounted > > I don't

Re: [U-Boot] [PATCH v10 0/7] SPI-NAND support (third batch)

2018-09-28 Thread Miquel Raynal
Hi Miquel, Miquel Raynal wrote on Fri, 28 Sep 2018 09:35:02 +0200: > Hi Jagan, > > Jagan Teki wrote on Fri, 28 Sep 2018 > 12:56:43 +0530: > > > On Fri, Sep 28, 2018 at 12:38 PM Miquel Raynal > > wrote: > > > > > > Hi Jagan, > > > > > > Jagan Teki wrote on Fri, 28 Sep 2018 > > > 12:18:49 +

[U-Boot] [PATCH v11] mtd: mtdpart: add a generic mtdparts-like parser

2018-09-28 Thread Miquel Raynal
The current parser is very specific to U-Boot mtdparts implementation. It does not use MTD structures like mtd_info and mtd_partition. Copy and adapt the current parser in drivers/mtd/mtd-uclass.c (to not break the current use of mtdparts.c itself) and write some kind of a wrapper around the curren

[U-Boot] [PATCH v11] cmd: mtd: add 'mtd' command

2018-09-28 Thread Miquel Raynal
There should not be a 'nand' command, a 'sf' command and certainly not a new 'spi-nand' command. Write a 'mtd' command instead to manage all MTD devices/partitions at once. This should be the preferred way to access any MTD device. Signed-off-by: Miquel Raynal Acked-by: Jagan Teki Reviewed-by: S

[U-Boot] [PATCH 03/48] mpc83xx: Introduce ARCH_MPC832*

2018-09-28 Thread Mario Six
Replace CONFIG_MPC832* with proper CONFIG_ARCH_MPC832* Kconfig options. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig | 7 +++ arch/powerpc/cpu/mpc83xx/speed.c | 10 +- arch/powerpc/include/asm/immap_83xx.h | 2 +- include/configs/MPC8323ERDB.h |

[U-Boot] [PATCH 04/48] mpc83xx: Introduce ARCH_MPC834*

2018-09-28 Thread Mario Six
Replace CONFIG_MPC834* with proper CONFIG_ARCH_MPC834* Kconfig options. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig | 14 ++ arch/powerpc/cpu/mpc83xx/cpu_init.c | 2 +- arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +- arch/powerpc/cpu/mpc8

[U-Boot] [PATCH 05/48] mpc83xx: Introduce ARCH_MPC836*

2018-09-28 Thread Mario Six
Replace CONFIG_MPC836* with proper CONFIG_ARCH_MPC836* Kconfig options. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig | 4 arch/powerpc/cpu/mpc83xx/speed.c | 10 +- arch/powerpc/include/asm/fsl_lbc.h | 4 ++-- arch/powerpc/include/asm/global_data.h

[U-Boot] [PATCH 00/48] mpc83xx: Kconfig migrations

2018-09-28 Thread Mario Six
This series converts the first bunch of legacy configuration options to the Kconfig framework. Functionality is preserved where possible, and setting configuration options is made a comfortable as possible. Mario Six (48): mpc83xx: Introduce ARCH_MPC830* mpc83xx: Introduce ARCH_MPC831* mpc8

[U-Boot] [PATCH 06/48] mpc83xx: Introduce ARCH_MPC837X

2018-09-28 Thread Mario Six
Replace CONFIG_MPC837x with a proper CONFIG_ARCH_MPC837X Kconfig option. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig | 3 +++ arch/powerpc/cpu/mpc83xx/speed.c | 30 ++-- arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 2 +- arch/

[U-Boot] [PATCH 02/48] mpc83xx: Introduce ARCH_MPC831*

2018-09-28 Thread Mario Six
Replace CONFIG_MPC833* with proper CONFIG_ARCH_MPC833* Kconfig options. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig | 15 +++ arch/powerpc/cpu/mpc83xx/cpu.c | 2 +- arch/powerpc/cpu/mpc83xx/cpu_init.c | 4 +-- arch/powerpc/cpu/mpc83x

[U-Boot] [PATCH 09/48] keymile: Move config files

2018-09-28 Thread Mario Six
We want to unroll several include files, while keeping include statements consistent. To make it easier to not break the include statements, move the include files to the main configs directory. All three include files moved will be unrolled, so they won't pollute the directory for long. Signed-o

[U-Boot] [PATCH 11/48] keymile: Simplify config files

2018-09-28 Thread Mario Six
Simplify the config files in which we recently unrolled the km8309-common.h include file. Signed-off-by: Mario Six --- include/configs/kmtegr1.h | 13 - include/configs/kmvect1.h | 12 include/configs/suvd3.h | 25 - include/configs/tuxx1.h |

[U-Boot] [PATCH 01/48] mpc83xx: Introduce ARCH_MPC830*

2018-09-28 Thread Mario Six
Replace CONFIG_MPC830* with proper CONFIG_ARCH_MPC830* Kconfig options. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig | 17 + arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +- arch/powerpc/cpu/mpc83xx/speed.c | 38 ++

[U-Boot] [PATCH 10/48] keymile: Unroll includes

2018-09-28 Thread Mario Six
To further simplify config include files, unroll the km/km8309-common.h and km/km8321-common.h include files. Signed-off-by: Mario Six --- include/configs/km8309-common.h | 174 --- include/configs/km8321-common.h | 139 --- include

[U-Boot] [PATCH 08/48] keymile: Simplify kmtegr1, kmvect1, suvd3 configs

2018-09-28 Thread Mario Six
The kmtegr1, kmvect1, and suvd3 boards now have separate config files, which were all copied from the suvd3. Unwind the #ifdef logic in these config files to only include the options necessary for each board. Signed-off-by: Mario Six --- include/configs/kmtegr1.h | 90 --

[U-Boot] [PATCH 16/48] keymile: Make distinct kmeter1, and kmcoge5ne configs

2018-09-28 Thread Mario Six
The kmeter1, and kmcoge5ne boards also build from the same config file with #ifdef logic. Create a separate include config for each board with the #ifdef logic resolved as needed. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig | 11 +- board/keymile/km83xx/Kconfig

[U-Boot] [PATCH 07/48] keymile: Make distinct kmtegr1, kmvect1, suvd3 configs

2018-09-28 Thread Mario Six
The kmtegr1, kmvect1, and suvd3 boards all use the same config include file with lots of #ifdefs in it. The Kconfig migation will become easier if we get rid of these #ifdefs first. Hence, create distinct config include files for these boards. These configs will be copies of the suvd3 for now; we

[U-Boot] [PATCH 17/48] keymile: Simplify kmcoge5ne, kmeter1 configs

2018-09-28 Thread Mario Six
Simplify the kmcoge5ne and kmeter1 configs to only include the #ifdefs necessary for each board. Signed-off-by: Mario Six --- include/configs/kmcoge5ne.h | 29 -- include/configs/kmeter1.h | 97 + 2 files changed, 1 insertion(+), 125 dele

[U-Boot] [PATCH 18/48] mpc83xx: Make distinct MPC8313ERDB targets

2018-09-28 Thread Mario Six
MPC8313ERDB has the option of either enabling NOR or NAND boot in its config file (by commenting out certain #ifdefs). To keep this ability after migrating options to Kconfig, we introduce two MPC8313ERDB configs: one for NOR, and one for NAND. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83

[U-Boot] [PATCH 19/48] mpc83xx: Simplify MPC8313ERDB configs

2018-09-28 Thread Mario Six
Remove all options from the new MPC8313ERDB_{NOR,NAND} configs that are not specific to NOR or NAND. Signed-off-by: Mario Six --- include/configs/MPC8313ERDB_NAND.h | 61 --- include/configs/MPC8313ERDB_NOR.h | 74 +- 2 files chang

[U-Boot] [PATCH 22/48] vme8349/caddy2: Simplify configs

2018-09-28 Thread Mario Six
Simplify the vme8349 and caddy2 configs by keeping only the options necessary for each board. Signed-off-by: Mario Six --- include/configs/caddy2.h | 29 - include/configs/vme8349.h | 29 - 2 files changed, 58 deletions(-) diff --git a/in

[U-Boot] [PATCH 15/48] keymile: Simplify configs after include unroll

2018-09-28 Thread Mario Six
Simplify the keymile configs again after unrolling the km83xx-common.h include file. Signed-off-by: Mario Six --- include/configs/km8360.h | 11 --- include/configs/kmopti2.h | 13 - include/configs/kmsupx5.h | 13 - include/configs/kmtegr1.h | 18 ---

[U-Boot] [PATCH 13/48] keymile: Simplify kmsupx5, tuge1, kmopti2, and kmtepr2 configs

2018-09-28 Thread Mario Six
Simplify the kmsupx5, tuge1, kmopti2, and kmtepr2 config files to only include the #ifdefs needed for each board. Signed-off-by: Mario Six --- include/configs/kmopti2.h | 73 --- include/configs/kmsupx5.h | 97 --- inclu

[U-Boot] [PATCH 20/48] VME8349: Migrate to CONFIG_TARGET_VME8349

2018-09-28 Thread Mario Six
CONFIG_TARGET_VME8349 can replace CONFIG_VME8349. Hence, replace CONFIG_VME8349 with CONFIG_TARGET_VME8349, and remove CONFIG_VME8349. Signed-off-by: Mario Six --- drivers/pci/pci_auto.c | 2 +- drivers/pci/pci_auto_old.c | 2 +- include/configs/vme8349.h | 1 - 3 files changed, 2 insertion

[U-Boot] [PATCH 14/48] keymile: Unroll km/km83xx-common.h

2018-09-28 Thread Mario Six
Simplify the keymile config files once more by unrolling the km/km83xx-common.h Signed-off-by: Mario Six --- include/configs/km8360.h | 300 +- include/configs/kmopti2.h | 300 +- include/configs/kmsupx5.h |

[U-Boot] [PATCH 12/48] keymile: Make distinct kmsupx5, tuge1, kmopti2, and kmtepr2 configs

2018-09-28 Thread Mario Six
The kmsupx5, tuge1, kmopti2, and kmtepr2 boards all build from the same include config file with lots of #ifdef logic. To ease Kconfig migration, create new config include files for these boards, and resolve the #ifdef logic as needed. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconf

[U-Boot] [PATCH 23/48] powerpc: Add LSDMR config values

2018-09-28 Thread Mario Six
The LSDMR_* macros are used to configure the system bus on MPC83xx. A few of the possible LSDMR_* macros were never defined in the respective include files. This renders the SDRAM support on the MPC8349EMDS unusable, because it uses these undefined macros. To make the SDRAM option work, introduce

[U-Boot] [PATCH 25/48] MPC8349EMDS: Simplify configs

2018-09-28 Thread Mario Six
The SDRAM support now resides in a separate board variant. Hence, remove the SDRAM option from the original board. Signed-off-by: Mario Six --- include/configs/MPC8349EMDS.h | 76 - include/configs/MPC8349EMDS_SDRAM.h | 4 -- 2 files changed, 80 deletio

[U-Boot] [PATCH 21/48] mpc83xx: Make distinct caddy2 config

2018-09-28 Thread Mario Six
vme8349.h contains two separate boards: The vme8349 itself, and the caddy2 board. The caddy2 board is chosen by setting certain config variables. Create a proper config file for the caddy2 board to make Kconfig migration easier. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig | 4

[U-Boot] [PATCH 24/48] mpc83xx: Make distinct MPC8349EMDS_SDRAM board

2018-09-28 Thread Mario Six
The MPC8349EMDS config file contains config options to enable SDRAM support. To keep this ability after the Kconfig migration, create a new MPC8349EMDS_SDRAM board that enables the SDRAM support. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig| 8 + board/freescale/mpc8349emd

[U-Boot] [PATCH 32/48] MPC8313ERDB: Remove CONFIG_MPC8313ERDB

2018-09-28 Thread Mario Six
CONFIG_MPC8313ERDB is unused, and TARGET_MPC8313ERDB_NAND/TARGET_MPC8313ERDB_NOR Kconfig could replace it. Hence, get rid of CONFIG_MPC8313ERDB. Signed-off-by: Mario Six --- include/configs/MPC8313ERDB_NAND.h | 1 - include/configs/MPC8313ERDB_NOR.h | 1 - 2 files changed, 2 deletions(-) diff

[U-Boot] [PATCH 31/48] strider: Migrate to CONFIG_TARGET_STRIDER

2018-09-28 Thread Mario Six
Use the proper CONFIG_TARGET_STRIDER Kconfig option to replace the CONFIG_STRIDER ad-hoc config option. Signed-off-by: Mario Six --- board/gdsys/common/Makefile | 4 ++-- board/gdsys/mpc8308/Makefile | 2 +- include/configs/strider.h| 1 - 3 files changed, 3 insertions(+), 4 deletions(-) d

[U-Boot] [PATCH 30/48] hrcom: Migrate to CONFIG_TARGET_HRCON

2018-09-28 Thread Mario Six
Use the proper CONFIG_TARGET_HRCON Kconfig option to replace the CONFIG_HRCON ad-hoc config option. Signed-off-by: Mario Six --- board/gdsys/common/Makefile | 2 +- board/gdsys/mpc8308/Makefile | 2 +- include/configs/hrcon.h | 1 - include/gdsys_fpga.h | 2 +- 4 files changed, 3 i

[U-Boot] [PATCH 28/48] MPC832XEMDS: Migrate to CONFIG_TARGET_MPC832XEMDS

2018-09-28 Thread Mario Six
Use the proper CONFIG_TARGET_MPC832XEMDS Kconfig option to replace the CONFIG_MPC832XEMDS ad-hoc config option. Signed-off-by: Mario Six --- board/freescale/common/pq-mds-pib.c | 6 +++--- include/configs/MPC832XEMDS.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/b

[U-Boot] [PATCH 33/48] MPC8315ERDB: Remove CONFIG_MPC8315ERDB

2018-09-28 Thread Mario Six
CONFIG_MPC8315ERDB is unused, and TARGET_MPC8315ERDB could replace it. Hence, get rid of CONFIG_MPC8315ERDB. Signed-off-by: Mario Six --- include/configs/MPC8315ERDB.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/MPC8315ERDB.h b/include/configs/MPC8315ERDB.h index 76077044

[U-Boot] [PATCH 47/48] sbc8349: Remove SDRAM functionality

2018-09-28 Thread Mario Six
The MPC8349EMDS configuration was the basis for the sbc8349, so it also contains its SDRAM option. Since * the SDRAM has to be soldered onto the board, * the sbc8349 never used the support, and * the support never worked (see previous patch fixing it), we can assume that the support on the sbc834

[U-Boot] [PATCH 29/48] MPC8349ITX: Migrate to CONFIG_TARGET_MPC8349ITX

2018-09-28 Thread Mario Six
Use the proper CONFIG_TARGET_MPC8349ITX Kconfig option to replace the CONFIG_MPC8349ITX ad-hoc config option. Signed-off-by: Mario Six --- board/freescale/mpc8349itx/mpc8349itx.c | 2 +- configs/MPC8349ITX_LOWBOOT_defconfig| 1 - configs/MPC8349ITX_defconfig| 1 - include/configs

[U-Boot] [PATCH 26/48] mpc8315erdb: Merge BR/OR settings

2018-09-28 Thread Mario Six
The mpc8315erdb has the option of either configuring the eLBC (enhanced local system bus) such that * NOR flash is the first memory bank, and NAND flash is the second memory bank, or * NAND flash is the first memory bank, and NOR flash is the second memory bank, by using CONFIG_SYS_NOR_{BR,OR

[U-Boot] [PATCH 37/48] mpc83xx: Replace CONFIG_83XX_CLKIN in calculations

2018-09-28 Thread Mario Six
CONFIG_SYS_CLK_FREQ is the standard way to set the system clock frequency. On MPC83xx, CONFIG_83XX_CLKIN is used for this purpose. Hence, the obvious way is to replace CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ. A few MPC83xx boards use the CONFIG_83XX_CLKIN variable for computing CONFIG_SYS_NS165

[U-Boot] [PATCH 27/48] ve8313: Merge BR/OR settings

2018-09-28 Thread Mario Six
The ve8313 has the option of either configuring the eLBC (enhanced local system bus) such that * NOR flash is the first memory bank, and NAND flash is the second memory bank, or * NAND flash is the first memory bank, and NOR flash is the second memory bank, by using CONFIG_SYS_NOR_{BR,OR}_PRELI

[U-Boot] [PATCH 40/48] mpc83xx: pcie: Read the clock from registers

2018-09-28 Thread Mario Six
The MPC83xx DM timer driver disables arch.pciexp*_clk, and uses clk_get_rate instead. But the legacy MPC83xx PCIe driver still uses arch.pciexp*_clk for the clock. Hence, read the PCIe clock from the registers in the legacy MPC83xx PCIe driver. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc8

[U-Boot] [PATCH 34/48] MPC837XEMDS: Remove CONFIG_MPC837XEMDS

2018-09-28 Thread Mario Six
CONFIG_MPC837XEMDS is unused, and TARGET_MPC837XEMDS could replace it. Hence, get rid of CONFIG_MPC837XEMDS. Signed-off-by: Mario Six --- include/configs/MPC837XEMDS.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h index ea009eb0

[U-Boot] [PATCH 36/48] mpc83xx: Migrate legacy PCI options to Kconfig

2018-09-28 Thread Mario Six
The MPC83xx include files contain some settings of the PCI subsystem. Migrate these to Kconfig until a proper DM PCI driver exists. Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc83xx/Kconfig| 26 ++ board/freescale/mpc8349emds/pci.c | 12 ++-- configs/MP

[U-Boot] [PATCH 35/48] MPC837XERDB: Remove CONFIG_MPC837XERDB

2018-09-28 Thread Mario Six
CONFIG_MPC837XERDB is unused, and TARGET_MPC837XERDB could replace it. Hence, get rid of CONFIG_MPC837XERDB. Signed-off-by: Mario Six --- include/configs/MPC837XERDB.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/MPC837XERDB.h b/include/configs/MPC837XERDB.h index 40824be2

[U-Boot] [PATCH 43/48] mpc83xx: Migrate LBLAW_* to Kconfig

2018-09-28 Thread Mario Six
The LBLAW_* values determine the window configuration of the memory controller. Hence, they must be known at compile time, and cannot be implemented in the DT mechanism. Configuration of this crucial variable should still be somewhat comfortable. Hence, make its fields configurable in Kconfig, and

[U-Boot] [PATCH 46/48] mpc83xx: Simplify BR,OR lines

2018-09-28 Thread Mario Six
Re-format all BR,OR #define lines into single lines. This makes them harder to read, but accessible to semi-automatic replacement. Signed-off-by: Mario Six --- include/configs/MPC8308RDB.h| 46 +--- include/configs/MPC8313ERDB_NAND.h | 67

[U-Boot] [PATCH 44/48] mpc83xx: Normalize BR/OR option lines

2018-09-28 Thread Mario Six
All BR/OR option lines should have the same layout to make them easier to migrate to Kconfig. This includes using the same option macros everywhere. The normalize the lines, * replace function macros with their results, and * replace hardcoded hex values with standard macros Signed-off-by: Mario

[U-Boot] [PATCH 39/48] mpc83xx: Kconfig: Migrate HRCW to Kconfig

2018-09-28 Thread Mario Six
The HRCW (hardware reset configuration word) is a constant that must be hard-coded into the boot loader image. So, it must be available at compile time, and cannot be migrated to the DT mechanism, but has to be kept in Kconfig. Configuration of this crucial variable should still be somewhat comfor

[U-Boot] [PATCH 45/48] tqm834x: Expand CONFIG_SYS_OR_TIMING_FLASH macro

2018-09-28 Thread Mario Six
We want to normalize all BR/OR config lines as much as possible. The TQM834x board uses CONFIG_SYS_OR_TIMING_FLASH in a OR definition, which we want to remove. But CONFIG_SYS_OR_TIMING_FLASH is also used outside of the config file. Replace these usages with the definition of the variable, so we c

[U-Boot] [PATCH 38/48] mpc83xx: Get rid of CONFIG_83XX_CLKIN

2018-09-28 Thread Mario Six
MPC83xx uses CONFIG_83XX_CLKIN instead of CONFIG_SYS_CLK_FREQ to set the system clock. To migrate the architecture, we can replace CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ. To do this * replace all occurrences of CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ * set CONFIG_SYS_CLK_FREQ to the old val

[U-Boot] [PATCH 41/48] powerpc: Migrate HIGH_BATS to Kconfig

2018-09-28 Thread Mario Six
Migrate the CONFIG_HIGH_BATS variable to Kconfig. Signed-off-by: Mario Six --- arch/powerpc/Kconfig | 6 ++ configs/MPC8313ERDB_33_defconfig | 1 + configs/MPC8313ERDB_66_defconfig | 1 + configs/MPC8313ERDB_NAND_33_defconfig | 1 + configs/MPC8313ERDB_NAND_66_defc

Re: [U-Boot] [PATCH 2/7] drivers: spi: cf_spi: migrate to DM and DT

2018-09-28 Thread Angelo Dureghello
Hi Simon, On Thu, Sep 27, 2018 at 06:41:37AM -0700, Simon Glass wrote: > Hi Angelo, > > On 26 September 2018 at 11:53, Angelo Dureghello wrote: > > Hi Simon, > > > > thanks for the review. > > > > On Tue, Sep 25, 2018 at 10:42:08PM -0700, Simon Glass wrote: > >> Hi Angelo, > >> > >> On 20 Septem

Re: [U-Boot] [PATCH v3 0/4] Add Rock960 and Ficus 96Board support

2018-09-28 Thread Daniel Lezcano
On 27/09/2018 21:02, Manivannan Sadhasivam wrote: > This patchset adds support for Rock960 and Ficus 96Boards from Vamrs. > Since both boards share most of the configurations, a common Rock960 > family support is added with common support and the actual boards are > based on this. > > The previous

Re: [U-Boot] [PATCH] arm: socfpga: stratix10: Add generic FPGA reconfig mailbox API for S10

2018-09-28 Thread Ang, Chee Hong
On Thu, 2018-09-27 at 22:39 +0200, Marek Vasut wrote: > On 09/27/2018 08:37 AM, Ang, Chee Hong wrote: > > > > On Thu, 2018-09-27 at 08:21 +0200, Marek Vasut wrote: > > > > > > On 09/27/2018 07:08 AM, Ang, Chee Hong wrote: > > > > > > > > > > > > On Wed, 2018-09-26 at 16:53 +0200, Marek Vasut wr

Re: [U-Boot] [PATCH 2/3] spi: Add support for the Aspeed ast2500 SPI controllers

2018-09-28 Thread Cédric Le Goater
Hello Simon, The Aspeed AST2500 FMC controller can handle SPI flash and NOR flash memory, and the Aspeed AST2500 SPI Flash Controllers only SPI. If there is some misunderstanding on this driver, it might come from the fact it is closer to a SPI-NOR driver like we have in Linux, than a generic S

Re: [U-Boot] [PATCH 01/48] mpc83xx: Introduce ARCH_MPC830*

2018-09-28 Thread Bin Meng
Hi Mario, On Fri, Sep 28, 2018 at 5:59 PM Mario Six wrote: > > Replace CONFIG_MPC830* with proper CONFIG_ARCH_MPC830* Kconfig options. > > Signed-off-by: Mario Six > --- > arch/powerpc/cpu/mpc83xx/Kconfig | 17 + > arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +- >

Re: [U-Boot] [PATCH 2/5] net: re-add support for the Faraday ftgmac100 controller

2018-09-28 Thread Cédric Le Goater
Hello Simon, On 9/27/18 3:41 PM, Simon Glass wrote: > Hi Cedric, > > On 10 September 2018 at 07:21, Cédric Le Goater wrote: >> The driver is based on the previous one and adds the same support for >> the Faraday ftgmac100 controller with MAC and MDIO bus support for >> RGMII/RMII modes. >> >> Dr

[U-Boot] [PATCH v3] misc: Add support for the Arm Versatile Express config bus

2018-09-28 Thread Liviu Dudau
Add support for the Arm Versatile Express config bus that is being used for exposing various subsystems via a generic configuration bus. This driver adds support for generating transactions on this configuration bus and can be used by other drivers to abstract the communication with the actual func

[U-Boot] [PATCH v2] i2c: Add support for the Arm's Versatile Express I2C controller.

2018-09-28 Thread Liviu Dudau
The Arm Versatile Express I2C controller is a simple register-based controller that uses a register to control the state of the SCL and SDA lines. Add support for it. Signed-off-by: Liviu Dudau Reviewed-by: Heiko Schocher --- Changelog: - v2: Added MAINTAINERS entry and fixed checkpatch warnin

[U-Boot] [PATCH v2] video: Add support for NXP's TDA19988 HDMI encoder

2018-09-28 Thread Liviu Dudau
Add support for the NXP TDA19988 HDMI encoder as used on the Juno development board from Arm. Signed-off-by: Liviu Dudau --- Changelog: - v2: Added MAINTAINERS entry and fixed checkpatch warnings. MAINTAINERS | 5 + drivers/video/Kconfig| 8 + drivers/video/Makefile |

Re: [U-Boot] [PATCH 4/5] net: ftgmac100: add support for Aspeed SoC

2018-09-28 Thread Cédric Le Goater
Hello Simon, On 9/27/18 3:41 PM, Simon Glass wrote: > Hi Cedric, > > On 10 September 2018 at 07:21, Cédric Le Goater wrote: >> The Faraday ftgmac100 MAC controllers as found on the Aspeed SoCs have >> some slight differences in the HW interface (End-Of-Rx/Tx-Ring >> bits). Also include the Aspee

[U-Boot] [PATCH v2] video: Add support for Arm's Mali Display Processors

2018-09-28 Thread Liviu Dudau
Add support for Arm Mali Display Processors DP500, DP550 and DP650. Only one layer is being used to display the console or boot logo, even if more layers are supported in the hardware. Signed-off-by: Liviu Dudau --- Changelog: - v2: Added MAINTAINERS entry and fixed checkpatch warnings. MAINT

[U-Boot] [PATCH v2] uclass: Use uclass_foreach_dev() macro instead of open coding

2018-09-28 Thread Liviu Dudau
Use the uclass_foreach_dev() macro instead of the open coded version. Signed-off-by: Liviu Dudau --- Changelog: - v2: Find more places where the open coded version exists and replace them with the macro drivers/core/dump.c | 2 +- drivers/core/uclass.c | 18 +- 2 file

[U-Boot] [PATCH v3] cmd: usb_mass_storage: add protection for block_dev

2018-09-28 Thread Patrick Delaunay
Check the value of block_dev before to use this pointer. This patch solves problem for the command "ums 0 ubi 0" when ubifs is previously mounted; in this case the function blk_get_device_part_str("ubi 0") don't return error but return block_dev = NULL and then data abort. Signed-off-by: Patrick D

Re: [U-Boot] [PATCH v10 0/7] SPI-NAND support (third batch)

2018-09-28 Thread Jagan Teki
On Fri, Sep 28, 2018 at 3:10 PM Miquel Raynal wrote: > > Hi Miquel, > > Miquel Raynal wrote on Fri, 28 Sep 2018 > 09:35:02 +0200: > > > Hi Jagan, > > > > Jagan Teki wrote on Fri, 28 Sep 2018 > > 12:56:43 +0530: > > > > > On Fri, Sep 28, 2018 at 12:38 PM Miquel Raynal > > > wrote: > > > > > > >

Re: [U-Boot] [PATCH v10 0/7] SPI-NAND support (third batch)

2018-09-28 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 28 Sep 2018 19:09:21 +0530: > On Fri, Sep 28, 2018 at 3:10 PM Miquel Raynal > wrote: > > > > Hi Miquel, > > > > Miquel Raynal wrote on Fri, 28 Sep 2018 > > 09:35:02 +0200: > > > > > Hi Jagan, > > > > > > Jagan Teki wrote on Fri, 28 Sep 2018 > > > 12:56:43

[U-Boot] [PATCH v3 1/4] pico-imx6ul, pico-imx7d: Use eMMC user partition by default

2018-09-28 Thread Otavio Salvador
After discussing with TechNexion about how its default setting, it is better to install on the eMMC user partition by default, when using DFU, so it works out of box for majority of users. Reviewed-by: Fabio Estevam Signed-off-by: Otavio Salvador --- Changes in v3: None Changes in v2: None in

[U-Boot] [PATCH v3 2/4] pico-imx6ul, pico-imx7d: Enable USB and PXE boot support

2018-09-28 Thread Otavio Salvador
This allow the use of a USB storage or PXE network booting as fallback, allowing for example for manufacturing installation of eMMC storage in an easy way. Reviewed-by: Fabio Estevam Signed-off-by: Otavio Salvador --- Changes in v3: None Changes in v2: - improve commit log (fabio) include/con

[U-Boot] [PATCH v3 4/4] pico-imx7d: Add USB Host support

2018-09-28 Thread Otavio Salvador
From: Fabio Estevam USB OTG2 port is connected to the USB host connector. Add support for it. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- Changes in v3: - new patch Changes in v2: None board/technexion/pico-imx7d/pico-imx7d.c | 29 +++- 1 file chang

[U-Boot] [PATCH v3 3/4] pico-imx7d: Make SPL binary fit into 64kB

2018-09-28 Thread Otavio Salvador
From: Fabio Estevam Currently SPL binary is larger than 64kB, which is larger than CONFIG_SPL_MAX_SIZE defined in imx7_spl.h. This causes boot failure on the pico-mx7 targets. Remove CONFIG_SPL_LIBDISK_SUPPORT option for now, so that the SPL binary can fit into the 64kB range. Signed-off-by: F

Re: [U-Boot] [PATCH v3 1/4] pico-imx6ul, pico-imx7d: Use eMMC user partition by default

2018-09-28 Thread Otavio Salvador
Hello Stefano, I forgot to add you to Cc list On Fri, Sep 28, 2018 at 11:22 AM Otavio Salvador wrote: > > After discussing with TechNexion about how its default setting, it is > better to install on the eMMC user partition by default, when using > DFU, so it works out of box for majority of user

Re: [U-Boot] [PATCH 00/48] mpc83xx: Kconfig migrations

2018-09-28 Thread York Sun
On 09/28/2018 02:53 AM, Mario Six wrote: > This series converts the first bunch of legacy configuration options to > the Kconfig framework. > > Functionality is preserved where possible, and setting configuration > options is made a comfortable as possible. > > Mario Six (48): > mpc83xx: Introd

[U-Boot] Please pull u-boot-fsl-qoriq master

2018-09-28 Thread York Sun
Tom, The following changes since commit 9dc8d155d4e88563f572ee79aab758eb4272f3fd: Merge git://git.denx.de/u-boot-imx (2018-09-19 20:35:27 -0400) are available in the git repository at: git://git.denx.de/u-boot-fsl-qoriq.git tags/fsl-qoriq-for-v2018.11-rc1 for you to fetch changes up to 26c

Re: [U-Boot] enabling MMU in U-Boot-2017.09

2018-09-28 Thread Mrun Lele
Hi Bin, Thanks for your reply. I am using acadia processor. After Linux boots we are getting some problems in MMU path. Debugging that would be one way to move ahead. However, I want to enable MMU in Uboot context to test MMU path to RAM. Also, is there any document or README which will have a

[U-Boot] Please pull u-boot-mpc85xx master

2018-09-28 Thread York Sun
Tom, The following changes since commit 9dc8d155d4e88563f572ee79aab758eb4272f3fd: Merge git://git.denx.de/u-boot-imx (2018-09-19 20:35:27 -0400) are available in the git repository at: git://git.denx.de/u-boot-mpc85xx.git tags/mpc85xx-for-v2018.11-rc1 for you to fetch changes up to 432054b

Re: [U-Boot] [PATCH v9 1/8] ppa/fm/qe: use block layer in ppa/fm/qe driver

2018-09-28 Thread York Sun
On 09/24/2018 11:50 PM, Yinbo Zhu wrote: > At present the MMC subsystem maintains its own list > of MMC devices. This cannot work with driver model > when CONFIG_BLK is enabled, use blk_dread to > replace previous mmc read interface, > use mmc_get_blk_desc to get the mmc device property > > Signed

Re: [U-Boot] [PATCH 1/3, v2] armv8: dts: fsl-ls1043a: add sata node support

2018-09-28 Thread York Sun
On 07/31/2018 08:37 PM, Peng Ma wrote: > Add sata node to support ls1043a. > > Signed-off-by: Peng Ma > --- > v2: > -no changes This patch set has been applied to fsl-qoriq master, awaiting upstream. Thanks. York ___ U-Boot mailing list U-Boot@

Re: [U-Boot] [PATCH 1/4] armv7: fsl: remove sata support

2018-09-28 Thread York Sun
On 07/31/2018 11:18 PM, Peng Ma wrote: > Remove the old implementation in order to enable DM for sata > > Signed-off-by: Peng Ma > --- This patch set has been applied to fsl-qoriq master, awaiting upstream. Thanks. York ___ U-Boot mailing list U-Boo

Re: [U-Boot] [PATCH] ls1012afrwy: Add ls1012afrwy revC board support.

2018-09-28 Thread York Sun
On 08/13/2018 09:19 PM, Pramod Kumar wrote: > ls1012afrwy support three revisions of the board. > 512MB revA, revB boards and 1GB revC board. > revision A and B board are collectively identified as revA/B, > however revision C board is identifies as revC. > > Signed-off-by: Pramod Kumar > --- Ap

Re: [U-Boot] [PATCH] u-boot: fixup the iommu-map property of fsl-mc node

2018-09-28 Thread York Sun
On 08/20/2018 03:31 AM, Nipun Gupta wrote: > The iommu-map property in the fsl-mc node is updated by > valid stream-ids by u-boot. This patch is to fixup this > property for LS208x and LS1088. > > Signed-off-by: Nipun Gupta > --- > Applied to fsl-qoriq master, awaiting upstream. Thanks. York _

  1   2   >