Re: [U-Boot] [PATCH 4/4] configs: at91sam9x5ek: move SYS_NO_FLASH to defconfig

2017-02-10 Thread Masahiro Yamada
2017-02-07 0:34 GMT+09:00 Simon Glass : > On 2 February 2017 at 22:29, Wenyou Yang wrote: >> Move CONFIG_SYS_NO_FLASH to the configs/sama5d4*_defconfig file. >> >> Signed-off-by: Wenyou Yang >> --- >> >>

Re: [U-Boot] [PATCH v2 4/4] configs: at91sam9x5ek: move SYS_NO_FLASH to defconfig

2017-02-10 Thread Masahiro Yamada
2017-02-07 18:11 GMT+09:00 Wenyou Yang : > Move CONFIG_SYS_NO_FLASH to the configs/sama5d4*_defconfig file. > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass We do not this kind of patch. Partial move is not helpful at

Re: [U-Boot] [PATCH v3 16/17] board: toradex: use get_nand_dev_by_index()

2017-02-10 Thread Marcel Ziswiler
On Fri, 2017-02-10 at 14:23 -0600, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it > here > instead of accessing to nand_info array directly. > > Cc: Lucas Stach >

[U-Boot] UBoot Fails to boot from SD Card

2017-02-10 Thread James Stenquist
Hi, I am using u-boot-2017.01 and the default P4080DS_SDCARD_defconfig and it fails to boot the P4080DS. So far I have tried these commands dd if=u-boot.bin of=${device} bs=512 seek=8 dd if=../fsl_fman_ucode_p4080_r3.0_106_2_18.bin of=${device} bs=512 seek=2080 These commands

Re: [U-Boot] [PATCH v6 1/3] SPL: add support to boot from a partition type

2017-02-10 Thread Dalon Westergreen
On Fri, 2017-02-10 at 22:59 +0100, Alexander Graf wrote: > > > > > Am 10.02.2017 um 22:43 schrieb Tom Rini : > > > > > > > > On Thu, Feb 09, 2017 at 12:20:02PM -0800, Dalon Westergreen wrote: > > > > > > the socfpga bootrom supports mmc booting from either a raw image > >

Re: [U-Boot] [PATCH v9 0/2] SPL: Add support to boot a partition type

2017-02-10 Thread Marek Vasut
On 02/11/2017 02:15 AM, Dalon Westergreen wrote: > This adds support for the spl to seach for and boot from an arbitrary > partition type rather then a specific partition number. When > USE_PARTITION_TYPE is enabled, spl will search for the partition type but > fallback to the specified partition

[U-Boot] [PATCH 2/2] i2c: sandbox: remove code snippet from Kconfig help

2017-02-10 Thread Masahiro Yamada
With the Kconfig re-sync with Linux 4.10, characters such as '}', ';' in Kconfig help message cause warnings: $ make defconfig *** Default configuration is based on 'sandbox_defconfig' drivers/i2c/Kconfig:132:warning: ignoring unsupported character '}' drivers/i2c/Kconfig:132:warning: ignoring

[U-Boot] [PATCH 0/2] kconfig resync with Linux 4.10

2017-02-10 Thread Masahiro Yamada
I tested the new keyword "imply", and it worked. Masahiro Yamada (2): kconfig: re-sync with Linux 4.10 i2c: sandbox: remove code snippet from Kconfig help drivers/i2c/Kconfig | 23 +- scripts/kconfig/Makefile | 92 +- scripts/kconfig/conf.c

Re: [U-Boot] [PATCH v8 2/2] SPL: Move SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig

2017-02-10 Thread Tom Rini
On Fri, Feb 10, 2017 at 02:58:40PM -0800, Dalon Westergreen wrote: > Added SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and > SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig. > > Due to SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION being moved to > Kconfig the board defconfigs for db-88f6820-gp_defconfig >

Re: [U-Boot] [PATCH v8 1/2] SPL: add support to boot from a partition type

2017-02-10 Thread Tom Rini
On Fri, Feb 10, 2017 at 04:04:48PM -0800, Dalon Westergreen wrote: > On Sat, 2017-02-11 at 00:47 +0100, Marek Vasut wrote: > > On 02/10/2017 11:58 PM, Dalon Westergreen wrote: > > > > > > the socfpga bootrom supports mmc booting from either a raw image > > > starting at 0x0, or from a partition

Re: [U-Boot] [PATCH] fsl_i2c.c: Fix warning on gcc-6.x

2017-02-10 Thread Tom Rini
On Fri, Feb 10, 2017 at 08:02:31AM +0100, Heiko Schocher wrote: > Hello Tom, > > Am 09.02.2017 um 21:40 schrieb Tom Rini: > >With gcc-6.x we see: > >drivers/i2c/fsl_i2c.c:86:3: warning: ‘fsl_i2c_speed_map’ defined but not > >used [-Wunused-const-variable=] > > > >The easy way to fix this is that

[U-Boot] [PATCH v9 1/2] SPL: add support to boot from a partition type

2017-02-10 Thread Dalon Westergreen
the socfpga bootrom supports mmc booting from either a raw image starting at 0x0, or from a partition of type 0xa2. This patch adds support for locating the boot image in the first type 0xa2 partition found. Assigned a partition number of -1 will cause a search for a partition of type

[U-Boot] [PATCH v9 2/2] SPL: Move SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig

2017-02-10 Thread Dalon Westergreen
Added SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig. Due to SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION being moved to Kconfig the board defconfigs for db-88f6820-gp_defconfig kc1_defconfig and sniper_defconfig need to be updated. Signed-off-by: Dalon

[U-Boot] [PATCH v9 0/2] SPL: Add support to boot a partition type

2017-02-10 Thread Dalon Westergreen
This adds support for the spl to seach for and boot from an arbitrary partition type rather then a specific partition number. When USE_PARTITION_TYPE is enabled, spl will search for the partition type but fallback to the specified partition number. SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION is moved

Re: [U-Boot] [PATCH v3 14/16] rockchip: rk3188: Add main, spl and tpl boards

2017-02-10 Thread Heiko Stuebner
Am Montag, 6. Februar 2017, 07:35:25 CET schrieb Simon Glass: > Hi Heiko, > > On 3 February 2017 at 08:09, Heiko Stuebner wrote: > > The rk3188 needs 3 uboot stages: a tpl living in 1KB of sram, a spl > > the resides in the rest of the sram and loads the regular uboot living > >

Re: [U-Boot] [RFC PATCH] armv8: Extend modification of MMU tables

2017-02-10 Thread york sun
On 02/10/2017 09:51 AM, york@nxp.com wrote: > On 02/10/2017 09:34 AM, Stephen Warren wrote: >> >> Still, I looked at all the "struct mm_region" tables in U-Boot and >> couldn't find any that set PXN/UXN for normal memory, and I don't >> believe this function will be called for anything other

Re: [U-Boot] [PATCH v8 1/2] SPL: add support to boot from a partition type

2017-02-10 Thread Dalon Westergreen
On Sat, 2017-02-11 at 00:47 +0100, Marek Vasut wrote: > On 02/10/2017 11:58 PM, Dalon Westergreen wrote: > > > > the socfpga bootrom supports mmc booting from either a raw image > > starting at 0x0, or from a partition of type 0xa2.  This patch > > adds support for locating the boot image in the

Re: [U-Boot] [PATCH v8 1/2] SPL: add support to boot from a partition type

2017-02-10 Thread Marek Vasut
On 02/10/2017 11:58 PM, Dalon Westergreen wrote: > the socfpga bootrom supports mmc booting from either a raw image > starting at 0x0, or from a partition of type 0xa2. This patch > adds support for locating the boot image in the first type 0xa2 > partition found. > > Assigned a partition number

[U-Boot] [PATCH v2 06/10] PINCTRL: stm32f7: add pin control driver

2017-02-10 Thread Vikas Manocha
This driver uses the same pin control binding as that of linux, binding document of this patch is copied from linux. One addition done is for GPIO input and output mode configuration which was missing. Signed-off-by: Vikas Manocha --- Changed in v2: - added blank

[U-Boot] [PATCH v2 09/10] ARM: DT: stm32f7: add ethernet pin contol node

2017-02-10 Thread Vikas Manocha
It also removes the ethernet pin configuration done during the board initialization. Signed-off-by: Vikas Manocha --- Changed in v2: None arch/arm/dts/stm32f746-disco.dts | 1 + arch/arm/dts/stm32f746.dtsi| 14 +

[U-Boot] [PATCH v2 10/10] ARM: DT: stm32f7: add qspi pin contol node

2017-02-10 Thread Vikas Manocha
It also removes the qspi pin configuration done during the board initialization. Signed-off-by: Vikas Manocha --- Changed in v2: None arch/arm/dts/stm32f746-disco.dts | 1 + arch/arm/dts/stm32f746.dtsi| 11

[U-Boot] [PATCH v2 08/10] ARM: DT: stm32f7: add pin control node for serial port pins

2017-02-10 Thread Vikas Manocha
And remove the uart pin configuration from board initialization. Signed-off-by: Vikas Manocha --- Changed in v2: None arch/arm/dts/stm32f746-disco.dts | 6 ++ arch/arm/dts/stm32f746.dtsi| 13 +

[U-Boot] [PATCH v2 05/10] stm32f7: clk: remove usart1 clock enable from board init

2017-02-10 Thread Vikas Manocha
Before clock driver availability it was required to enable usart1 clock for serial init but now with clock driver is taking care of usart1 clock. Signed-off-by: Vikas Manocha --- Changed in v2: None board/st/stm32f746-disco/stm32f746-disco.c | 1 -

[U-Boot] [PATCH v2 07/10] ARM: DT: stm32f7: add pin control device node

2017-02-10 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- Changed in v2: None arch/arm/dts/stm32f746.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/stm32f746.dtsi b/arch/arm/dts/stm32f746.dtsi index afcd327..f59eca8 100644 ---

[U-Boot] [PATCH v2 03/10] stm32f7: serial: use clock driver to enable clock

2017-02-10 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- Changed in v2: - added blank lines in code like before return and after variable declaration. drivers/serial/serial_stm32x7.c | 18 ++ 1 file changed, 18 insertions(+) diff --git

[U-Boot] [PATCH v2 04/10] ARM: DT: stm32f7: add usart1 & clock device tree nodes

2017-02-10 Thread Vikas Manocha
Also created alias for usart1 and specified oscillator clock for stm32f7 discovery board. Signed-off-by: Vikas Manocha --- Changed in v2: None arch/arm/dts/stm32f746-disco.dts | 5 + arch/arm/dts/stm32f746.dtsi | 27 +++ 2 files changed,

[U-Boot] [PATCH v2 02/10] clk: stm32f7: add clock driver for stm32f7 family

2017-02-10 Thread Vikas Manocha
add basic clock driver support for stm32f7 to enable clocks required by the peripherals. Signed-off-by: Vikas Manocha --- Changed in v2: - added blank lines in code like before return and after variable declaration. - re-arranged header file

[U-Boot] [PATCH v2 01/10] serial: stm32f7: add device tree support

2017-02-10 Thread Vikas Manocha
This patch adds device tree support for stm32f7 serial driver & removes serial platform data structure. Signed-off-by: Vikas Manocha --- Changed in v2: None board/st/stm32f746-disco/stm32f746-disco.c | 10 -- drivers/serial/serial_stm32x7.c| 24

[U-Boot] [PATCH v2 00/10] stm32f7: add clock and pin control drivers

2017-02-10 Thread Vikas Manocha
This patchset: - adds support for stm32f7 clock driver. - adds support for stm32f7 pin control driver. - adds device tree nodes for stm32f7 serial & clock. - adds stm32f7 pin control device tree sub nodes : - serial usart1 - ethernet

Re: [U-Boot] [PATCH v3 11/16] rockchip: rk3188: Add core devicetree files

2017-02-10 Thread Heiko Stuebner
Am Montag, 6. Februar 2017, 07:35:16 CET schrieb Simon Glass: > On 3 February 2017 at 08:09, Heiko Stuebner wrote: > > The rk3188 shares a lot of peripherals with the rk3066 and thus > > has a common include called rk3xxx.dtsi. Add both this one and > > the specialized rk3188 on

[U-Boot] [PATCH v8 1/2] SPL: add support to boot from a partition type

2017-02-10 Thread Dalon Westergreen
the socfpga bootrom supports mmc booting from either a raw image starting at 0x0, or from a partition of type 0xa2. This patch adds support for locating the boot image in the first type 0xa2 partition found. Assigned a partition number of -1 will cause a search for a partition of type

[U-Boot] [PATCH v7 0/2] SPL: Add support to boot a partition type

2017-02-10 Thread Dalon Westergreen
This adds support for the spl to seach for and boot from an arbitrary partition type rather then a specific partition number. When USE_PARTITION_TYPE is enabled, spl will search for the partition type but fallback to the specified partition number. SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION is moved

[U-Boot] [PATCH v8 2/2] SPL: Move SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig

2017-02-10 Thread Dalon Westergreen
Added SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig. Due to SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION being moved to Kconfig the board defconfigs for db-88f6820-gp_defconfig kc1_defconfig and sniper_defconfig need to be updated. Signed-off-by: Dalon

Re: [U-Boot] [PATCH v6 1/3] SPL: add support to boot from a partition type

2017-02-10 Thread Dalon Westergreen
On Fri, 2017-02-10 at 23:08 +0100, Marek Vasut wrote: > On 02/10/2017 10:43 PM, Tom Rini wrote: > > > > On Thu, Feb 09, 2017 at 12:20:02PM -0800, Dalon Westergreen wrote: > > > > > > > > the socfpga bootrom supports mmc booting from either a raw image > > > starting at 0x0, or from a partition

[U-Boot] [PATCH v7 2/2] SPL: Move SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig

2017-02-10 Thread Dalon Westergreen
Added SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig. Due to SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION being moved to Kconfig the board defconfigs for db-88f6820-gp_defconfig kc1_defconfig and sniper_defconfig need to be updated. Signed-off-by: Dalon

[U-Boot] [PATCH v7 1/2] SPL: add support to boot from a partition type

2017-02-10 Thread Dalon Westergreen
the socfpga bootrom supports mmc booting from either a raw image starting at 0x0, or from a partition of type 0xa2. This patch adds support for locating the boot image in the first type 0xa2 partition found. Assigned a partition number of -1 will cause a search for a partition of type

[U-Boot] [PATCH v7 0/2] SPL: Add support to boot a partition type

2017-02-10 Thread Dalon Westergreen
This adds support for the spl to seach for and boot from an arbitrary partition type rather then a specific partition number. When USE_PARTITION_TYPE is enabled, spl will search for the partition type but fallback to the specified partition number. SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION is moved

Re: [U-Boot] [PATCH v6 1/3] SPL: add support to boot from a partition type

2017-02-10 Thread Marek Vasut
On 02/10/2017 10:43 PM, Tom Rini wrote: > On Thu, Feb 09, 2017 at 12:20:02PM -0800, Dalon Westergreen wrote: > >> the socfpga bootrom supports mmc booting from either a raw image >> starting at 0x0, or from a partition of type 0xa2. This patch >> adds support for locating the boot image in the

Re: [U-Boot] [PATCH v6 1/3] SPL: add support to boot from a partition type

2017-02-10 Thread Alexander Graf
> Am 10.02.2017 um 22:43 schrieb Tom Rini : > >> On Thu, Feb 09, 2017 at 12:20:02PM -0800, Dalon Westergreen wrote: >> >> the socfpga bootrom supports mmc booting from either a raw image >> starting at 0x0, or from a partition of type 0xa2. This patch >> adds support for

Re: [U-Boot] [PATCH 06/10] PINCTRL: stm32f7: add pin control driver

2017-02-10 Thread vikas
Hi Simon, On 02/10/2017 08:22 AM, Simon Glass wrote: > Hi Vikas, > > On 4 February 2017 at 15:43, Vikas Manocha wrote: >> This driver uses the same pin control binding as that of linux, binding >> document of this patch is copied from linux. One addition done is for >>

Re: [U-Boot] [PATCH v6 1/3] SPL: add support to boot from a partition type

2017-02-10 Thread Dalon Westergreen
On Fri, 2017-02-10 at 16:43 -0500, Tom Rini wrote: > On Thu, Feb 09, 2017 at 12:20:02PM -0800, Dalon Westergreen wrote: > > > > > the socfpga bootrom supports mmc booting from either a raw image > > starting at 0x0, or from a partition of type 0xa2.  This patch > > adds support for locating the

Re: [U-Boot] [PATCH v6 2/3] SPL: Move SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig

2017-02-10 Thread Tom Rini
On Fri, Feb 10, 2017 at 01:51:57PM -0800, Dalon Westergreen wrote: > On Fri, 2017-02-10 at 16:43 -0500, Tom Rini wrote: > > On Thu, Feb 09, 2017 at 12:20:03PM -0800, Dalon Westergreen wrote: > > > > > > Added SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and > > > SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to

Re: [U-Boot] [PATCH v6 2/3] SPL: Move SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig

2017-02-10 Thread Dalon Westergreen
On Fri, 2017-02-10 at 16:43 -0500, Tom Rini wrote: > On Thu, Feb 09, 2017 at 12:20:03PM -0800, Dalon Westergreen wrote: > > > > Added SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and > > SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig. > > > > Signed-off-by: Dalon Westergreen > >

Re: [U-Boot] [PATCH] ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

2017-02-10 Thread Tom Rini
On Fri, Feb 10, 2017 at 06:24:18PM +0100, Jean-Jacques Hiblot wrote: > > > On 06/02/2017 22:13, Jean-Jacques Hiblot wrote: > > > > > >On 06/02/2017 13:49, Tom Rini wrote: > >>On Mon, Feb 06, 2017 at 12:25:19PM +0100, Jean-Jacques Hiblot wrote: > >>> > >>>On 03/02/2017 17:52, Tom Rini wrote: >

Re: [U-Boot] [PATCH 03/10] stm32f7: serial: use clock driver to enable clock

2017-02-10 Thread vikas
Thanks Simon, On 02/10/2017 08:22 AM, Simon Glass wrote: > Hi Vikas, > > On 4 February 2017 at 15:43, Vikas Manocha wrote: >> Signed-off-by: Vikas Manocha >> --- >> drivers/serial/serial_stm32x7.c | 18 +- >> 1 file changed, 17

Re: [U-Boot] [PATCH] arm: omap5: Fix generation of reserved-memory DT node

2017-02-10 Thread Tom Rini
On Fri, Feb 10, 2017 at 08:23:23AM -0600, Andrew F. Davis wrote: > When the node 'reserved-memory' is not defined in the DT we fail > to add needed properties. We also fail to move 'offs' to point to > the new node. Fix these here. > > Signed-off-by: Andrew F. Davis Reviewed-by:

Re: [U-Boot] [PATCH] ddr:fsl: Fix warnings on gcc-6.x

2017-02-10 Thread Tom Rini
On Fri, Feb 10, 2017 at 04:45:12PM +, york sun wrote: > On 02/09/2017 03:10 PM, Tom Rini wrote: > > With gcc-6.x we will see many warnings like: > > warning: ‘dual_0S’ defined but not used [-Wunused-const-variable=] > > > > Depending on exactly what DDR choices are or are not enabled when we

Re: [U-Boot] [PATCH 02/10] clk: stm32f7: add clock driver for stm32f7 family

2017-02-10 Thread vikas
Thanks Simon, On 02/10/2017 08:22 AM, Simon Glass wrote: > Hi Vikas, > > On 4 February 2017 at 15:43, Vikas Manocha wrote: >> add basic clock driver support for stm32f7 to enable clocks required by >> the peripherals. >> >> Signed-off-by: Vikas Manocha

Re: [U-Boot] [PATCH v6 1/3] SPL: add support to boot from a partition type

2017-02-10 Thread Tom Rini
On Thu, Feb 09, 2017 at 12:20:02PM -0800, Dalon Westergreen wrote: > the socfpga bootrom supports mmc booting from either a raw image > starting at 0x0, or from a partition of type 0xa2. This patch > adds support for locating the boot image in the first type 0xa2 > partition found. > > Assigned

Re: [U-Boot] [PATCH v6 2/3] SPL: Move SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig

2017-02-10 Thread Tom Rini
On Thu, Feb 09, 2017 at 12:20:03PM -0800, Dalon Westergreen wrote: > Added SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and > SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to Kconfig. > > Signed-off-by: Dalon Westergreen > > -- > Changes in v3: > -> Split off defconfig changes for

Re: [U-Boot] [RFC PATCH] armv8: Extend modification of MMU tables

2017-02-10 Thread Stephen Warren
On 02/10/2017 10:51 AM, york sun wrote: On 02/10/2017 09:34 AM, Stephen Warren wrote: On 02/03/2017 03:24 PM, York Sun wrote: Device memory needs to be set along with PXN and UNX bits. Normal memory must clear these bits. To support modification of PXN, UXN bits, extend existing function

Re: [U-Boot] [PATCH v3 10/17] net: fm: use get_nand_dev_by_index()

2017-02-10 Thread Joe Hershberger
On Fri, Feb 10, 2017 at 2:22 PM, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it here > instead of accessing to nand_info array directly. > > Signed-off-by:

Re: [U-Boot] [PATCH v3 09/17] net: phy: cortina: use get_nand_dev_by_index()

2017-02-10 Thread Joe Hershberger
On Fri, Feb 10, 2017 at 2:22 PM, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it here > instead of accessing to nand_info array directly > > Signed-off-by:

[U-Boot] [RFC PATCH 3/4] arm: sunxi: added SPI register definitions for sun6i/sun8i/sun9i/sun50i

2017-02-10 Thread S.J.R. van Schaik
Introduces SPI registers for sun6i/sun8i/sun9i/sun50i by adding struct sunxi_spi_regs and flags. Signed-off-by: S.J.R. van Schaik --- arch/arm/include/asm/arch-sunxi/spi_sun6i.h | 56 + 1 file changed, 56 insertions(+) create mode 100644

[U-Boot] [RFC PATCH 1/4] arm: sunxi: added missing AHB_GATE_OFFSET_SPIx defines for sun6i/sun9i

2017-02-10 Thread S.J.R. van Schaik
Added missing AHB_GATE_OFFSET_SPIx defines to enable/disable clock gating for SPI on the sun6i and sun9i platforms. Signed-off-by: S.J.R. van Schaik --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 2 ++ arch/arm/include/asm/arch-sunxi/clock_sun9i.h | 4 2

[U-Boot] [PATCH] mtd: nand: build MXS driver for MX7 as well

2017-02-10 Thread Andrey Yurovsky
The i.MX7 has the same GPMI controller as i.MX6 and is covered by the MXS driver. Tell Kconfig that we can use this driver on the MX7 platform (the MXS driver already has the few i.MX7-specific changes needed for basic operation and the board itself sets the pinmux correctly). Tested on i.MX7D

[U-Boot] [RFC PATCH 4/4] arm: sunxi: added SPI driver for Allwinner devices

2017-02-10 Thread S.J.R. van Schaik
Implements a driver model SPI driver for Allwinner devices (sunxi). Signed-off-by: S.J.R. van Schaik --- drivers/spi/Kconfig | 5 + drivers/spi/Makefile| 1 + drivers/spi/sunxi_spi.c | 329 3 files changed,

[U-Boot] [RFC PATCH 2/4] arm: sunxi: added SPI register definitions for sun4i/sun7i

2017-02-10 Thread S.J.R. van Schaik
Introduces SPI registers for sun4i/sun7i by adding struct sunxi_spi_regs and flags. Signed-off-by: S.J.R. van Schaik --- arch/arm/include/asm/arch-sunxi/spi.h | 29 arch/arm/include/asm/arch-sunxi/spi_sun4i.h | 53 +

[U-Boot] [RFC PATCH 0/4] arm: sunxi: Allwinner SPI driver

2017-02-10 Thread S.J.R. van Schaik
Hi, The following patches implement a working SPI driver based on driver model for Allwinner (sunxi) devices. We have tested the driver on the A20 OLinuXino LIME 2 (sun7i) with a Winbond w25q128bv chip loading and booting a FIT image from the chip. The sun6i/sun8i/sun9i/sun50i code also builds

[U-Boot] [PATCH v3 8/9] STiH410-B2260: Add device tree

2017-02-10 Thread patrice.chotard
From: Patrice Chotard This device tree has been extracted from v4.9 kernel Signed-off-by: Patrice Chotard Reviewed-by: Tom Rini --- arch/arm/dts/Makefile |2 + arch/arm/dts/st-pincfg.h

Re: [U-Boot] [PATCH] drivers/usb/ehci: Use platform-specific accessors

2017-02-10 Thread Marek Vasut
On 02/10/2017 09:23 PM, Alexey Brodkin wrote: > Current implementation doesn't allow utilization of platform-specific > reads and writes. > > But some arches or platforms may want to use their accessors that do > some extra work like adding barriers for data serialization etc. > > Interesting

[U-Boot] [PATCH v3 02/17] common: env_nand: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko --- common/env_nand.c | 33

[U-Boot] [PATCH v3 13/17] board: atmel: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Cc: Stelian Pop Cc: Bo Shen Cc: Josh Wu

[U-Boot] [PATCH v3 10/17] net: fm: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko --- drivers/net/fm/fm.c | 3 ++- 1 file changed,

[U-Boot] [PATCH v3 15/17] board: BuR: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Cc: Hannes Schmelzer Signed-off-by: Grygorii Strashko ---

[U-Boot] [PATCH v3 12/17] cmd: mvebu: bubt: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko --- cmd/mvebu/bubt.c | 14 ++ 1 file

[U-Boot] [PATCH v3 03/17] dfu: dfu_nand: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko --- drivers/dfu/dfu_nand.c | 12 +--- 1

[U-Boot] [PATCH v3 06/17] common: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko --- common/fb_nand.c | 2 +-

[U-Boot] [PATCH] drivers/usb/ehci: Use platform-specific accessors

2017-02-10 Thread Alexey Brodkin
Current implementation doesn't allow utilization of platform-specific reads and writes. But some arches or platforms may want to use their accessors that do some extra work like adding barriers for data serialization etc. Interesting enough OHCI accessors already do that so just aligning EHCI to

[U-Boot] [PATCH v3 16/17] board: toradex: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Cc: Lucas Stach Cc: Marcel Ziswiler Signed-off-by: Grygorii

[U-Boot] [PATCH v3 01/17] cmd: nand: abstract global variable usage for dm conversion

2017-02-10 Thread Grygorii Strashko
From: Mugunthan V N nand_info is used all over the file so abstract it with get_nand_dev_by_index() which will help for DM conversion. Signed-off-by: Mugunthan V N Signed-off-by: Grygorii Strashko --- cmd/nand.c

[U-Boot] [PATCH v3 17/17] mtd: nand: make nand_info array static

2017-02-10 Thread Grygorii Strashko
Make make nand_info array static, since all direct users of nand_info array have been converted to use get_nand_dev_by_index() API. Signed-off-by: Grygorii Strashko --- drivers/mtd/nand/nand.c | 2 +- include/nand.h | 1 - 2 files changed, 1 insertion(+), 2

[U-Boot] [PATCH v3 11/17] mtd: nand: drv: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly Signed-off-by: Grygorii Strashko --- drivers/mtd/nand/fsmc_nand.c | 2 +-

[U-Boot] [PATCH v3 09/17] net: phy: cortina: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly Signed-off-by: Grygorii Strashko --- drivers/net/phy/cortina.c | 3 ++- 1 file

[U-Boot] [PATCH v3 07/17] fs: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko --- fs/jffs2/jffs2_1pass.c | 9 +++--

[U-Boot] [PATCH v3 00/17] nand: remove direct acces to nand_info array

2017-02-10 Thread Grygorii Strashko
This is a preparation required for adding Nand DM support. This series introduces new API get_nand_dev_by_index() to avoid direct acces to nand_info array and updates u-boot to use it. As result, nand_info array is made static in the last patch. Changes in v3: - preparation patches separated from

[U-Boot] [PATCH v3 14/17] board: ronetix: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Cc: Ilko Iliev Signed-off-by: Grygorii Strashko ---

[U-Boot] [PATCH v3 08/17] cmd: nand: remove direct access to struct mtd_info->priv

2017-02-10 Thread Grygorii Strashko
Replace direct access to struct mtd_info->priv with proper accessor mtd_to_nand(). Signed-off-by: Grygorii Strashko --- cmd/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/nand.c b/cmd/nand.c index f2b440e..d9de978 100644 --- a/cmd/nand.c

[U-Boot] [PATCH v3 05/17] cmd: jffs2: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko --- cmd/jffs2.c | 7 --- 1 file changed, 4

[U-Boot] [PATCH v3 04/17] cmd: bootm: use get_nand_dev_by_index()

2017-02-10 Thread Grygorii Strashko
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko --- cmd/bootm.c | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH v3 1/6] spl: Convert CONFIG_SPL_ABORT_ON_RAW_IMAGE into a positive option

2017-02-10 Thread Andrew F. Davis
On 02/10/2017 12:38 PM, Simon Glass wrote: > Hi Andrew, > > On 8 February 2017 at 10:21, Andrew F. Davis wrote: >> >> CONFIG_SPL_ABORT_ON_RAW_IMAGE causes SPL to abort and move on when it >> encounters RAW images, express this same functionality as a positive >> option enabling

Re: [U-Boot] [PATCH v3 5/6] ARM: AM57xx: Disable non-FIT based image loading for HS devices

2017-02-10 Thread Simon Glass
On 8 February 2017 at 10:21, Andrew F. Davis wrote: > Disable support for loading non-FIT images for AM57xx platforms using > the high-security (HS) device variant. > > Signed-off-by: Andrew F. Davis > --- > configs/am57xx_hs_evm_defconfig | 2 ++ > 1 file changed, 2

Re: [U-Boot] [PATCH v3 6/6] ARM: DRA7xx: Disable non-FIT based image loading for HS devices

2017-02-10 Thread Simon Glass
On 8 February 2017 at 10:22, Andrew F. Davis wrote: > Disable support for loading non-FIT images for DRA7xx platforms using > the high-security (HS) device variant. > > Signed-off-by: Andrew F. Davis > --- > configs/dra7xx_hs_evm_defconfig | 2 ++ > 1 file changed, 2

Re: [U-Boot] [PATCH v3 4/6] ARM: AM43xx: Disable non-FIT based image loading for HS devices

2017-02-10 Thread Simon Glass
On 8 February 2017 at 10:21, Andrew F. Davis wrote: > Disable support for loading non-FIT images for AM43xx platforms using > the high-security (HS) device variant. > > Signed-off-by: Andrew F. Davis > --- > configs/am43xx_hs_evm_defconfig | 2 ++ > 1 file changed, 2

Re: [U-Boot] [PATCH v3 3/6] ARM: AM335x: Disable non-FIT based image loading for HS devices

2017-02-10 Thread Simon Glass
On 8 February 2017 at 10:21, Andrew F. Davis wrote: > Disable support for loading non-FIT images for AM335x platforms using > the high-security (HS) device variant. > > Signed-off-by: Andrew F. Davis > --- > configs/am335x_hs_evm_defconfig | 2 ++ > 1 file changed, 2

Re: [U-Boot] [PATCH v3 1/6] spl: Convert CONFIG_SPL_ABORT_ON_RAW_IMAGE into a positive option

2017-02-10 Thread Simon Glass
Hi Andrew, On 8 February 2017 at 10:21, Andrew F. Davis wrote: > > CONFIG_SPL_ABORT_ON_RAW_IMAGE causes SPL to abort and move on when it > encounters RAW images, express this same functionality as a positive > option enabling support for RAW images: CONFIG_SPL_RAW_IMAGE_SUPPORT > >

Re: [U-Boot] [PATCH v3 2/6] spl: Add option to enable SPL Legacy image support

2017-02-10 Thread Simon Glass
On 8 February 2017 at 10:21, Andrew F. Davis wrote: > Add a Kconfig option that enables Legacy image support, this allows > boards to explicitly disable this, for instance when needed for > security reasons. > > Signed-off-by: Andrew F. Davis > --- > Kconfig |

Re: [U-Boot] [PATCH v1] cmd: itest: correct calculus for long format

2017-02-10 Thread Simon Glass
On 10 February 2017 at 05:59, Andy Shevchenko wrote: > From: Sebastien Colleur > > itest shell command doesn't work correctly in long format when > doing comparaison due to wrong mask value calculus that overflow > on 32 bits

Re: [U-Boot] [PATCH] dm: core: Fix Handling global_data moving in SPL

2017-02-10 Thread Simon Glass
Hi Lokesh, On 10 February 2017 at 06:41, Lokesh Vutla wrote: > commit 2f11cd9121658 ("dm: core: Handle global_data moving in SPL") > handles relocation of GD in SPL if spl_init() is called before > board_init_r(). But it is not necessary that spl_init() is not > always called

Re: [U-Boot] [RFC PATCH] armv8: Extend modification of MMU tables

2017-02-10 Thread york sun
On 02/10/2017 09:34 AM, Stephen Warren wrote: > On 02/03/2017 03:24 PM, York Sun wrote: >> Device memory needs to be set along with PXN and UNX bits. Normal memory >> must clear these bits. To support modification of PXN, UXN bits, extend >> existing function mmu_set_region_dcache_behaviour() to

Re: [U-Boot] [PATCH v2 10/15] drivers: nand: implement a NAND uclass

2017-02-10 Thread Grygorii Strashko
On 02/10/2017 10:22 AM, Simon Glass wrote: Hi, On 6 February 2017 at 11:39, Grygorii Strashko wrote: On 02/06/2017 09:34 AM, Simon Glass wrote: Hi, On 31 January 2017 at 13:37, Grygorii Strashko wrote: From: Mugunthan V N

Re: [U-Boot] [RFC PATCH] armv8: cache: Switch MMU table without turning off MMU

2017-02-10 Thread york sun
On 02/10/2017 09:32 AM, Mark Rutland wrote: > Hi, > > On Fri, Feb 03, 2017 at 02:22:48PM -0800, York Sun wrote: >> We don't have to completely turn off MMU and cache to switch to >> another MMU table as far as the data is coherent before and after >> the switching. This patch relaxes the

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-10 Thread Marek Vasut
On 02/10/2017 05:32 PM, Andy Shevchenko wrote: > From: Felipe Balbi > > If last packet is short, we shouldn't write req->length bytes to > non-volatile media, we should write only what's available to us, which > is held in req->actual. > > Signed-off-by: Felipe

Re: [U-Boot] [RFC PATCH] armv8: Extend modification of MMU tables

2017-02-10 Thread Stephen Warren
On 02/03/2017 03:24 PM, York Sun wrote: Device memory needs to be set along with PXN and UNX bits. Normal memory must clear these bits. To support modification of PXN, UXN bits, extend existing function mmu_set_region_dcache_behaviour() to accept attributes directly. Also fix parsing d-cache

Re: [U-Boot] [PATCH] ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

2017-02-10 Thread Jean-Jacques Hiblot
On 06/02/2017 22:13, Jean-Jacques Hiblot wrote: On 06/02/2017 13:49, Tom Rini wrote: On Mon, Feb 06, 2017 at 12:25:19PM +0100, Jean-Jacques Hiblot wrote: On 03/02/2017 17:52, Tom Rini wrote: On Wed, Feb 01, 2017 at 11:39:14AM +0100, Jean-Jacques Hiblot wrote: To keep a consistent MMC

Re: [U-Boot] [RFC PATCH] armv8: cache: Switch MMU table without turning off MMU

2017-02-10 Thread Mark Rutland
Hi, On Fri, Feb 03, 2017 at 02:22:48PM -0800, York Sun wrote: > We don't have to completely turn off MMU and cache to switch to > another MMU table as far as the data is coherent before and after > the switching. This patch relaxes the procedure. > > Signed-off-by: York Sun >

Re: [U-Boot] [PATCH] ddr:fsl: Fix warnings on gcc-6.x

2017-02-10 Thread york sun
On 02/09/2017 03:10 PM, Tom Rini wrote: > With gcc-6.x we will see many warnings like: > warning: ‘dual_0S’ defined but not used [-Wunused-const-variable=] > > Depending on exactly what DDR choices are or are not enabled when we use > this file. So we use slightly more exact #ifdef tests in order

Re: [U-Boot] [RFC PATCH] armv8: cache: Switch MMU table without turning off MMU

2017-02-10 Thread Stephen Warren
On 02/03/2017 03:22 PM, York Sun wrote: We don't have to completely turn off MMU and cache to switch to another MMU table as far as the data is coherent before and after the switching. This patch relaxes the procedure. This seems plausible, but I'm not immersed well enough in the details to

Re: [U-Boot] [PATCH v2 1/4] Introduce CONFIG_SPL_ABORT_ON_NON_FIT_IMAGE

2017-02-10 Thread Andrew F. Davis
On 02/10/2017 10:23 AM, Simon Glass wrote: > Hi Andrew, > > On 8 February 2017 at 08:18, Andrew F. Davis wrote: >> On 12/06/2016 09:47 PM, Simon Glass wrote: >>> Hi Andrew, >>> >>> On 5 December 2016 at 17:37, Andrew F. Davis wrote: On 11/14/2016 06:33 PM, Simon

Re: [U-Boot] [PATCH] armv8: Fix MMU table page descriptor

2017-02-10 Thread Stephen Warren
On 02/02/2017 10:58 AM, York Sun wrote: Page descriptor uses different format than block descriptor. Both bit 1 and 0 must be set to indicate a valid page. diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c @@ -230,7 +230,7 @@ static void add_map(struct mm_region

  1   2   >