Re: [U-Boot] [PATCH] fs: ext4: Prevent erasing buffer past file size

2018-07-23 Thread Marek Vasut
On 07/23/2018 04:09 PM, Tom Rini wrote: > On Mon, Jul 23, 2018 at 11:42:12AM +0200, Marek Vasut wrote: > >> The variable 'n' represents the number of bytes to be read from a certain >> offset in a file, to a certain offset in buffer 'buf'. The variable 'len' >> represents the length of the entire

Re: [U-Boot] [PATCH v2] gpio: xilinx: Convert driver to DM

2018-07-23 Thread Stefan Herbrechtsmeier
Hi Michal, Am 23.07.2018 um 13:43 schrieb Michal Simek: On 20.7.2018 22:05, Stefan Herbrechtsmeier wrote: Am 13.07.2018 um 17:20 schrieb Michal Simek: This patch is enabling GPIO_DM support to have an option to use this driver together with zynq gpio driver. !DM part is kept there till

[U-Boot] [PATCH] sunxi: enable SATA on Banana Pi M2 Berry

2018-07-23 Thread Simon Baatz
Banana Pi M2 Ultra and M2 Berry are very similar boards. SATA can be enabled exactly the same as for M2 Ultra introduced in commit daa8b75a5527 ("sunxi: enable SATA on Banana Pi M2 Ultra"). Signed-off-by: Simon Baatz --- configs/bananapi_m2_berry_defconfig | 3 +++ 1 file changed, 3

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-23 Thread Fabio Estevam
Hi Peng, On Thu, Jul 19, 2018 at 11:04 AM, Peng Fan wrote: > There is i.MX8/8X/8M, 8M is for i.MX8MQ and i.MX8MM > i.MX8/8X has different SoC architecture compared with i.MX8M, > such as there is SCU inside i.MX8/8X. > So add a new macro dedicated for i.MX8/8X. Yes, I understand the

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-23 Thread Simon Glass
Hi Michal, On 23 July 2018 at 03:08, Michal Simek wrote: > > On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: > > Hi Michal, > > > > Am 12.07.2018 um 16:04 schrieb Michal Simek: > >> There should be proper bank name setup to distiguish between different > >> gpio drivers. Use dev->name for it.

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-23 Thread Stefan Herbrechtsmeier
Hi Michal, Am 23.07.2018 um 13:43 schrieb Michal Simek: Reading registers for finding out output value is not working because input value is read instead in case of tristate. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 38

Re: [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries

2018-07-23 Thread Adam Ford
On Mon, Mar 19, 2018 at 5:35 PM Tom Rini wrote: > > On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote: > > > Several boards do not use the default UART3, so they do a check > > for ifdef CONFIG_SPL_BUILD and enable the pointer for > > CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx. >

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 11:44:04AM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit 474ecd2c84d97314b8145fbe3a57887f41b2edb3: > > env: Simplify Makefile using $(SPL_TPL_) (2018-07-21 12:24:31 -0400) > > are available in

Re: [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files

2018-07-23 Thread Stephen Warren
On 07/20/2018 07:49 PM, Simon Glass wrote: Use GNU make pattern rules to indicate that a single run of binman produces all three Tegra output files. The avoids make running binman three times (perhaps in parallel) and those instances inteferring with each other. See

Re: [U-Boot] [PATCH v2 5/5] Kconfig: Sort bool, default, select and imply options

2018-07-23 Thread Alexey Brodkin
Hi Michal, On Mon, 2018-07-23 at 15:55 +0200, Michal Simek wrote: > Another round of sorting Kconfig entries aplhabetically. > > Signed-off-by: Michal Simek > --- > > Changes in v2: None [snip] > arch/arc/Kconfig | 10 +- Acked-by: Alexey Brodkin

Re: [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 10:53:02AM -0500, Adam Ford wrote: > On Mon, Mar 19, 2018 at 5:35 PM Tom Rini wrote: > > > > On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote: > > > > > Several boards do not use the default UART3, so they do a check > > > for ifdef CONFIG_SPL_BUILD and enable the

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-23 Thread Stefan Herbrechtsmeier
Hi Michal, Am 23.07.2018 um 11:08 schrieb Michal Simek: On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: Am 12.07.2018 um 16:04 schrieb Michal Simek: There should be proper bank name setup to distiguish between different gpio drivers. Use dev->name for it. Signed-off-by: Michal Simek ---

Re: [U-Boot] [PATCH v2 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-23 Thread Simon Glass
Hi Patrick, On 23 July 2018 at 03:41, Patrick Delaunay wrote: > This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. A revert should have a motivation and a discussion of the purpose, just like any other patch. Can you add it please? > > Signed-off-by: Patrick Delaunay > --- > >

Re: [U-Boot] [RFC PATCH v2 3/6] dm: usb: Add UCLASS_USB_DEV_GENERIC shutdown

2018-07-23 Thread Simon Glass
Hi Jagan, On 20 July 2018 at 01:13, Jagan Teki wrote: > Some OTG controllers which operates on Peripheral > mode are registered as UCLASS_USB_DEV_GENERIC. > > So add support to shutdown them as well. shutdown > happened during 'usb reset' and U-Boot handoff code > for Linux boot. > > controller

Re: [U-Boot] [PATCH v1 6/6] mmc: arm_pl180_mmci: Add "cd_inverted" DT property read

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > Add missing read of "cd_inverted" property in DT. > > Signed-off-by: Patrice Chotard > --- > > drivers/mmc/arm_pl180_mmci.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass ___

Re: [U-Boot] [PATCH v1 5/6] mmc: arm_pl180_mmci: Add missing clk_free

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > Add missing clk_free() call in case of failure > when enabling the clock. > > Signed-off-by: Patrice Chotard > --- > > drivers/mmc/arm_pl180_mmci.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v1 3/6] configs: stm32f769-disco: Enable CONFIG_BLK

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > CONFIG_BLK config flag becomes mandatory, enable it. > > Signed-off-by: Patrice Chotard > --- > > configs/stm32f469-discovery_defconfig | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 07:35:18PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > "mkdir" interface is added to file operations. > > This is a preparatory change as mkdir support for FAT file system > > will be added in next patch. > > > > Signed-off-by:

Re: [U-Boot] [PATCH 1/6] clk: add clk_valid()

2018-07-23 Thread Simon Glass
Hi Fabrice, On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > > add clk_valid() to check for optional clocks are valid. > > Signed-off-by: Fabrice Gasnier > --- > > include/clk.h | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/include/clk.h b/include/clk.h > index

Re: [U-Boot] [PATCH v2 2/2] disk: part: Don't show redundant error message

2018-07-23 Thread Simon Glass
On 20 July 2018 at 09:18, Sam Protsenko wrote: > Underlying API should already print some meaningful error message, so > this one is just brings more noise. E.g. we can see log like this: > > MMC: no card present > ** Bad device mmc 0 ** > > Obviously, second error message is unwanted.

Re: [U-Boot] [PATCH v1 2/6] configs: stm32f746-disco: Enable CONFIG_BLK

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > CONFIG_BLK config flag becomes mandatory, enable it. > > Signed-off-by: Patrice Chotard > --- > > configs/stm32f746-disco_defconfig | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-23 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年7月24日 3:27 > To: Peng Fan > Cc: Stefano Babic ; Fabio Estevam > ; U-Boot-Denx ; dl-linux-imx > > Subject: Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to > support i.MX8 > > Hi

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-23 Thread AKASHI Takahiro
On Mon, Jul 23, 2018 at 07:56:58PM -0400, Tom Rini wrote: > On Mon, Jul 23, 2018 at 05:48:13PM -0600, Simon Glass wrote: > > Hi, > > > > On 20 July 2018 at 11:35, Heinrich Schuchardt wrote: > > > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > >> "mkdir" interface is added to file operations.

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 05:48:13PM -0600, Simon Glass wrote: > Hi, > > On 20 July 2018 at 11:35, Heinrich Schuchardt wrote: > > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > >> "mkdir" interface is added to file operations. > >> This is a preparatory change as mkdir support for FAT file

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-23 Thread Fabio Estevam
Hi Peng, On Mon, Jul 23, 2018 at 9:45 PM, Peng Fan wrote: > In V1, I use CONFIG_IMX8, but I think there is no need to use it, because > CONFIG_ARCH_IMX8 could do same thing. Yes, I prefer to drop "ARCH" for consistency. > I could revert to use CONFIG_IMX8, since you prefer it. Yes, that

Re: [U-Boot] [PATCH 14/17] cmd: fat: add fatmkdir command

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 07:09:17PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > In this patch, a new command, fatmkdir, is added. > > > > Please note that, as there is no notion of "current directory" on u-boot, > > a directory name specified must

Re: [U-Boot] [PATCH 5/6] configs: stm32mp15: enable ADC

2018-07-23 Thread Simon Glass
On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > Enable ADC on stm32mp15. > - CONFIG_CMD_ADC > - CONFIG_STM32_ADC > > Signed-off-by: Fabrice Gasnier > --- > > configs/stm32mp15_basic_defconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 2/6] dm: adc: uclass: get reference regulator once

2018-07-23 Thread Simon Glass
Hi Fabrice, On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > device_get_supply_regulator() only needs to be called once. > But each time there's call to adc_vxx_value() for instance, it calls > adc_vxx_platdata_update() -> device_get_supply_regulator(). > > This also allows

Re: [U-Boot] [UBOOT PATCH] gpio: zynq: Used platdata structure for storing static data instead of priv

2018-07-23 Thread Simon Glass
On 20 July 2018 at 03:06, Vipul Kumar wrote: > This patch used platdata structure instead of priv for storing static > information read from DT. > > Signed-off-by: Vipul Kumar > --- > drivers/gpio/zynq_gpio.c | 67 > > 1 file changed, 34

Re: [U-Boot] [PATCH 3/6] dt-bindings: Document STM32 ADC DT bindings

2018-07-23 Thread Simon Glass
On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > This patch adds documentation of device tree bindings for the STM32 ADC. > It's based on linux-v4.18-rc* dt-bindings, at the time of writing: > - Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt > > Signed-off-by: Fabrice Gasnier > ---

Re: [U-Boot] [PATCH v1 1/6] configs: stm32f429-evaluation: Enable CONFIG_BLK

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > Signed-off-by: Patrice Chotard > --- > > configs/stm32f429-evaluation_defconfig | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v2 5/5] sandbox: led: use new function to configure default state

2018-07-23 Thread Simon Glass
Hi Patrick, On 23 July 2018 at 03:41, Patrick Delaunay wrote: > Initialize the led with the default state defined in device tree > in board_init and solve issue with test for led default state. > > Signed-off-by: Patrick Delaunay > --- > Led default-state is correctly handle in Sandbox, tested

Re: [U-Boot] [PATCH] mkimage: fit_image: Use macros from image.h

2018-07-23 Thread Simon Glass
On 20 July 2018 at 04:31, Michal Simek wrote: > There is no reason not to use macros which are already defined. > It is also much easier for grepping. > > Signed-off-by: Michal Simek > --- > > tools/fit_image.c | 53 + > 1 file changed, 29

Re: [U-Boot] [PATCH v1 4/6] mmc: arm_pl180_mmci: Update to support CONFIG_BLK

2018-07-23 Thread Simon Glass
Hi Patrice, On 20 July 2018 at 01:44, Patrice Chotard wrote: > Config flag CONFIG_BLK becomes mandatory, update arm_pl180_mmci > to support this config. > > This driver is used by STM32Fx and by Vexpress platforms. > Only STM32Fx are DM ready. No DM code is isolated and will be > removed easily

Re: [U-Boot] [PATCH 4/6] adc: Add driver for STM32 ADC

2018-07-23 Thread Simon Glass
Hi Fabrice, On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > This patch adds support for STMicroelectronics STM32 ADC (analog to > digital converter). It's originally based on Linux kernel v4.18-rcs > drivers/iio/adc/stm32-adc*. It's composed of: > - core driver (UCLASS_SIMPLE_BUS) manages

Re: [U-Boot] [PATCH 11/20] w1: enumerate sandbox driver if configured

2018-07-23 Thread Simon Glass
Hi, On 20 July 2018 at 08:01, Lukasz Majewski wrote: > Hi Eugen, > > Thanks for (re-)bringing the One wire support to u-boot. > >> Add a sandbox eeprom on the bus as a device, if sandbox driver is >> configured. >> >> Signed-off-by: Eugen Hristev >> --- >> drivers/w1/w1-uclass.c | 5 + >>

Re: [U-Boot] [PATCH 2/3] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2018-07-23 Thread Marty E. Plummer
On Fri, Jul 13, 2018 at 12:31:49PM +0200, Dr. Philipp Tomsich wrote: > > > On 7 May 2018, at 02:20, Marty E. Plummer wrote: > > > > On Mon, May 07, 2018 at 12:12:54AM +0200, klaus.go...@theobroma-systems.com > > wrote: > >> > >>> On 06.05.2018, at

Re: [U-Boot] [PATCH v2 4/5] stm32mp1: use new function led default state

2018-07-23 Thread Simon Glass
On 23 July 2018 at 03:41, Patrick Delaunay wrote: > Initialize the led with the default state defined in device tree. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > board/st/stm32mp1/stm32mp1.c | 4 > 1 file changed, 4 insertions(+) Reviewed-by: Simon Glass But I

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-23 Thread Simon Glass
Hi, On 20 July 2018 at 11:35, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: >> "mkdir" interface is added to file operations. >> This is a preparatory change as mkdir support for FAT file system >> will be added in next patch. >> >> Signed-off-by: AKASHI Takahiro

Re: [U-Boot] [PATCH] imx8qxp_mek: add README

2018-07-23 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年7月23日 21:44 > To: Peng Fan > Cc: Stefano Babic ; Fabio Estevam > ; U-Boot-Denx ; Diego Dorta > > Subject: Re: [U-Boot] [PATCH] imx8qxp_mek: add README > > Hi Peng, > > On Mon, Jul 23, 2018 at 7:00 AM,

Re: [U-Boot] [PATCH 13/17] fs: fat: support mkdir

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 07:14:21PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > In this patch, mkdir support is added to FAT file system. > > A newly created directory contains only "." and ".." entries. > > > > Signed-off-by: AKASHI Takahiro > > The

Re: [U-Boot] [PATCH 00/17] fs: fat: extend FAT write operations

2018-07-23 Thread AKASHI Takahiro
On Sun, Jul 22, 2018 at 08:44:39AM +0200, Heinrich Schuchardt wrote: > Hello Tom, hello Alex, > > I have been testing the patches. They are working fine for ASCII file > names. To support Unicode file names extra work will be needed. But > probably we should postpone this to a later patch series.

Re: [U-Boot] [PATCH v3 2/3] rtc: pl031: convert the driver to driver model

2018-07-23 Thread AKASHI Takahiro
On Sat, Jul 21, 2018 at 06:53:16AM +0200, Heinrich Schuchardt wrote: > On 07/11/2018 11:06 AM, AKASHI Takahiro wrote: > > With this patch, PL031 driver is converted to driver-model-compliant > > driver. In addition, CONFIG_SYS_RTC_PL031_BASE is no longer valid. > > > > Signed-off-by: AKASHI

[U-Boot] [PATCH] Kconfig: Remove trailing whitespaces in prompt

2018-07-23 Thread Michal Simek
Remove additional trailing whitespaces in prompt reported by kconfiglib: warning: DM_PMIC_SANDBOX (defined at drivers/power/pmic/Kconfig:133) has leading or trailing whitespace in its prompt warning: (defined at dts/Kconfig:204) has leading or trailing whitespace in its prompt Signed-off-by:

Re: [U-Boot] [PATCH 02/17] fs: fat: handle "." and ".." of root dir correctly with fat_itr_resolve()

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 08:09:00PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > FAT's root directory does not have "." nor ".." > > So care must be taken when scanning root directory with fat_itr_resolve(). > > Without this patch, any file path starting

[U-Boot] [PATCH v5] u-boot: remove driver lookup loop from env_save()

2018-07-23 Thread Nicholas Faustini
When called with ENVOP_SAVE, env_get_location() only returns the gd->env_load_location variable without actually checking for the environment location and priority. This behaviour causes env_save() to fall into an infinite loop when the low-level drv->save() call fails. The env_save() function

Re: [U-Boot] [PATCH 03/17] fs: fat: make directory iterator global for write use

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 08:02:57PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > Directory iterator was introduced in major re-work of read operation by > > Rob. We want to use it for write operation extensively as well. > > This patch makes relevant

[U-Boot] [PATCH] microblaze: Add missing quotes around XILINX_MICROBLAZE0_HW_VER

2018-07-23 Thread Michal Simek
This issue is reported by kconfiglib: warning: style: quotes recommended around default value for string symbol XILINX_MICROBLAZE0_HW_VER (defined at board/xilinx/microblaze-generic/Kconfig:37) Signed-off-by: Michal Simek --- board/xilinx/microblaze-generic/Kconfig | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH] ARM: mx6ul: Apply ERR011115 errata workaround

2018-07-23 Thread Stefano Babic
Hi Marcin, On 19/07/2018 13:37, Marcin Niestroj wrote: > ERR05 in IMX6UL errata says to use OCRAM memory above > 0x908000 (instead of 0x907000) for silicon revision 1.2 shipped > prior date code 1740. > > As we cannot check affected targets in runtime, apply that > workaround by default for

Re: [U-Boot] [PATCH V2] eth: dm: fec: Add gpio phy reset binding

2018-07-23 Thread Michael Nazzareno Trimarchi
Hi Jagan On Mon, Jul 23, 2018 at 10:40 AM, Jagan Teki wrote: > On Mon, Jul 23, 2018 at 1:57 PM, Stefano Babic wrote: >> Hi Jagan, >> >> On 07/07/2018 13:36, Jagan Teki wrote: >>> On Sun, Jun 17, 2018 at 6:52 PM, Michael Trimarchi >>> wrote: Add the missing gpio phy reset binding to the

Re: [U-Boot] [PATCH v2] arm, imx6: add support for SD/MMC Manufacture Mode

2018-07-23 Thread Stefano Babic
Hi Jay, On 22/06/2018 07:16, Jay Carlson wrote: > This patch adds support for booting blank i.MX6 devices in SD/MMC Manufacture > Mode: a fallback mode which the boot ROM enters when no fuses or boot mode > pins have been set, the USB serial downloader connection is inactive, and > there > is

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-23 Thread Michal Simek
On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: > Hi Michal, > > Am 12.07.2018 um 16:04 schrieb Michal Simek: >> There should be proper bank name setup to distiguish between different >> gpio drivers. Use dev->name for it. >> >> Signed-off-by: Michal Simek >> --- >> >>  

Re: [U-Boot] [PATCH 0/6] mx6cuboxi: Add support for SOMs with eMMC

2018-07-23 Thread Stefano Babic
On 11/06/2018 14:26, Baruch Siach wrote: > The newer rev 1.5 of the SolidRun i.MX6 SOM can optionally come with eMMC on > the SOM. This series adds support for the eMMC device on these SOMs. > > Since eMMC has card detect signal this series uses the new mmc_get_op_cond() > function that is broken

Re: [U-Boot] [PATCH] imx: mx6: Fix implementantion reset_misc

2018-07-23 Thread Stefano Babic
On 20/06/2018 23:27, Michael Trimarchi wrote: > lcdif_power_down should not be included in spl build to avoid build > failure introduced by commit eb111bb31d882877e75e6b8083808dcaf6493b92 > > Signed-off-by: Michael Trimarchi > --- > arch/arm/mach-imx/mx6/soc.c | 2 ++ > 1 file changed, 2

Re: [U-Boot] [PATCH v2 00/11] Add ethernet support for phyCORE-RK3288

2018-07-23 Thread Janine Hagemann
Unfortunately the v1-patches were only send to the maintainers and not to the official mailinglist. Am 21.07.2018 um 01:25 schrieb Grygorii Strashko: On 07/18/2018 03:46 AM, Janine Hagemann wrote: - Remove 0004-Net-phy-ti-Fix-fifo_depth-register-write.patch because    of the change from

Re: [U-Boot] [PATCH 01/16] pico-imx7d: Convert to distro config

2018-07-23 Thread Stefano Babic
Hi Otavio, On 29/06/2018 20:19, Otavio Salvador wrote: > From: Fabio Estevam > > Instead of keeping a custom environment, use a more generic approach > by switching to disto config. > > Signed-off-by: Fabio Estevam > Signed-off-by: Otavio Salvador > --- > Applied (whole patchset) to

Re: [U-Boot] [PATCH v3] mx25: fix the offset between the USB ports' registers

2018-07-23 Thread Stefano Babic
On 16/07/2018 22:11, Martin Kaiser wrote: > From: Martin Kaiser > > The USBOH module on imx25 chips contains two USB controllers which are > called USB OTG Controller and USB Host Controller. Each one has its EHCI > root hub. The OTG Controller's EHCI registers start at offset 0, the Host >

Re: [U-Boot] [PATCH] tools/imximage: get HAB information from header

2018-07-23 Thread Stefano Babic
On 06/07/2018 16:10, Holger Dengler wrote: > Signing parts of a u-boot imximage for image verification in High > Assurance Boot (HAB) in a post-build process, requires some > information from the imximage header. Currently, this information is > only provided during the image build, which makes

[U-Boot] [PATCH v2 1/5] stm32mp1: add gpio led support

2018-07-23 Thread Patrick Delaunay
This patch add the 4 LED available on the ED1 board and activated gpio led driver. Reviewed-by: Simon Glass Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 24 configs/stm32mp15_basic_defconfig| 2 ++ 2

[U-Boot] [PATCH v2 3/5] dm: led: move default state support in led uclass

2018-07-23 Thread Patrick Delaunay
This patch save common LED property "default-state" value in post bind of LED uclass. The configuration for this default state is only performed when led_default_state() is called; It can be called in your board_init() or it could added in init_sequence_r[] in future. Reviewed-by: Simon Glass

[U-Boot] [PATCH v2 4/5] stm32mp1: use new function led default state

2018-07-23 Thread Patrick Delaunay
Initialize the led with the default state defined in device tree. Signed-off-by: Patrick Delaunay --- Changes in v2: None board/st/stm32mp1/stm32mp1.c | 4 1 file changed, 4 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index cc39fa6..db8c805

Re: [U-Boot] [PATCH 09/17] fs: fat: support write with non-zero offset

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 07:46:49PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > In this patch, all the necessary code for allowing for a file offset > > at write is implemented. What plays a major roll here is get_set_cluster(), > > which, in contrast to

Re: [U-Boot] [PATCH] Kconfig: Remove trailing whitespaces in prompt

2018-07-23 Thread Felix Brack
On 23.07.2018 08:38, Michal Simek wrote: > Remove additional trailing whitespaces in prompt reported by kconfiglib: > > warning: DM_PMIC_SANDBOX (defined at drivers/power/pmic/Kconfig:133) has > leading or trailing whitespace in its prompt > warning: (defined at dts/Kconfig:204) has leading or

Re: [U-Boot] [PATCH] ARM: dh_imx6: enable GigaDevice, Macronix, and Winbond SPI Flash support in Kconfig

2018-07-23 Thread Stefano Babic
On 06/07/2018 11:26, lz...@dh-electronics.de wrote: > From: Ludwig Zenz > > In preparation for delivery bottlenecks, enable support for GigaDevice, > Macronix, and Winbond nor flash chips. > > Signed-off-by: Ludwig Zenz > --- > configs/dh_imx6_defconfig | 3 +++ > 1 file changed, 3

[U-Boot] [PATCH] fs: ext4: Prevent erasing buffer past file size

2018-07-23 Thread Marek Vasut
The variable 'n' represents the number of bytes to be read from a certain offset in a file, to a certain offset in buffer 'buf'. The variable 'len' represents the length of the entire file, clamped correctly to avoid any overflows. Therefore, comparing 'n' and 'len' to determine whether clearing

[U-Boot] [PULL] Please pull u-boot-imx

2018-07-23 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit 474ecd2c84d97314b8145fbe3a57887f41b2edb3: env: Simplify Makefile using $(SPL_TPL_) (2018-07-21 12:24:31 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for you to

[U-Boot] [PATCH v2 0/5] dm: led: remove auto probe in binding function

2018-07-23 Thread Patrick Delaunay
Hi, The commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7 introduce auto probe of LED in binding function but that cause issue on my board. This first patch of this patchset activateis the LED on my board to explain the issue, the second patch revert this commit and the third one propose an other

[U-Boot] [PATCH v2 5/5] sandbox: led: use new function to configure default state

2018-07-23 Thread Patrick Delaunay
Initialize the led with the default state defined in device tree in board_init and solve issue with test for led default state. Signed-off-by: Patrick Delaunay --- Led default-state is correctly handle in Sandbox, tested with: ./u-boot -d ./arch/sandbox/dts/test.dtb => led list sandbox:red

[U-Boot] [PATCH] imx8qxp_mek: add README

2018-07-23 Thread Peng Fan
Add README file for i.MX8QXP MEK board. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Anatolij Gustschin --- This patch is for testing i.MX8QXP patchset [PATCH V2 00/32] i.MX: Add i.MX8QXP support https://lists.denx.de/pipermail/u-boot/2018-July/335079.html The board is

Re: [U-Boot] [PATCH 03/17] fs: fat: make directory iterator global for write use

2018-07-23 Thread AKASHI Takahiro
On Mon, Jul 23, 2018 at 05:06:46PM +0900, AKASHI Takahiro wrote: > On Fri, Jul 20, 2018 at 08:02:57PM +0200, Heinrich Schuchardt wrote: > > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > > Directory iterator was introduced in major re-work of read operation by > > > Rob. We want to use it for

[U-Boot] [PATCH] ddr: altera: Add ECC DRAM scrubbing support for Stratix 10

2018-07-23 Thread tien . fong . chee
From: Tien Fong Chee The SDRAM must first be rewritten by zeroes if ECC is used to initialize the ECC metadata. Make the CPU overwrite the DRAM with zeroes in such a case. This scrubbing implementation turns the caches on temporarily, then overwrites the whole RAM with zeroes, flushes the caches

Re: [U-Boot] [PATCH v2] arm, imx6: fix NOR/OneNAND boot mode mix-up

2018-07-23 Thread Stefano Babic
Hi Jay, On 22/06/2018 07:18, Jay Carlson wrote: > This patch fixes the ordering of the EMI enum to match Table 8-8 in > the i.MX6ULL Reference Manual, and has been spot-checked in two other > i.MX reference manuals for accuracy. > > Signed-off-by: Jay Carlson > --- >

Re: [U-Boot] [PATCH v1 1/5] ARM: PSCI: initialize stack pointer on secondary CPUs

2018-07-23 Thread Stefano Babic
On 03/07/2018 14:32, Stefan Agner wrote: > Hi Tom, Hi Stefano, > > On 02.07.2018 11:08, Patrick DELAUNAY wrote: >> Hi Stefan >> >>> From: Stefan Agner [mailto:ste...@agner.ch] >>> Sent: mercredi 27 juin 2018 10:36 >>> Subject: Re: [PATCH v1 1/5] ARM: PSCI: initialize stack pointer on >>>

Re: [U-Boot] [PATCH 2/3] ARM: imx6: configure ddrcode pins in spl DHCOM i.MX6 PDK

2018-07-23 Thread Stefano Babic
On 05/07/2018 09:23, lz...@dh-electronics.de wrote: > From: Ludwig Zenz > > Preperation for conditional DDR3 initialization based on GPIO codes. > > Signed-off-by: Ludwig Zenz > --- > board/dhelectronics/dh_imx6/dh_imx6_spl.c | 40 > +++ > 1 file changed, 40

Re: [U-Boot] [PATCH 1/3] Revert "ARM: imx6: Disable DDR DRAM calibration DHCOM i.MX6 PDK"

2018-07-23 Thread Stefano Babic
On 05/07/2018 09:23, lz...@dh-electronics.de wrote: > From: Ludwig Zenz > > This reverts commit a637fe6f27fd4c19ef9f43a5f871c244581422ac. > > The DDR DRAM calibration was enhanced by write leveling correction code. > It can be used with T-topology now. > > Signed-off-by: Ludwig Zenz > --- >

Re: [U-Boot] [PATCH] configs: imx6q_logic: Cleanup ramdiskaddr and fdtaddr

2018-07-23 Thread Stefano Babic
On 20/07/2018 15:25, Adam Ford wrote: > There are already definitions for ramdisk_addr_r and fdt_addr_r, so > having a duplicate copy called ramdiskaddr and fdtaddr is confusing. > This patch converts any references to ramdisk_addr_r and fdt_addr_r > and removes the duplicates. > > Signed-off-by:

[U-Boot] [PATCH v2 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-23 Thread Patrick Delaunay
This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/led/led_gpio.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index a36942b..533587d 100644 ---

Re: [U-Boot] [PATCH V2] eth: dm: fec: Add gpio phy reset binding

2018-07-23 Thread Stefano Babic
Hi Jagan, On 07/07/2018 13:36, Jagan Teki wrote: > On Sun, Jun 17, 2018 at 6:52 PM, Michael Trimarchi > wrote: >> Add the missing gpio phy reset binding to the gpio and >> reset time configuration >> >> Signed-off-by: Michael Trimarchi >> --- >> Changes v1 -> v2: >> - fix commit message

Re: [U-Boot] [PATCH 06/17] fs: fat: write returns error code instead of -1

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 07:55:06PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > It would be good that FAT write function return error code instead of > > just returning -1 as fat_read_file() does. > > This patch attempts to address this issue although it

Re: [U-Boot] [PATCH V2] eth: dm: fec: Add gpio phy reset binding

2018-07-23 Thread Jagan Teki
On Mon, Jul 23, 2018 at 1:57 PM, Stefano Babic wrote: > Hi Jagan, > > On 07/07/2018 13:36, Jagan Teki wrote: >> On Sun, Jun 17, 2018 at 6:52 PM, Michael Trimarchi >> wrote: >>> Add the missing gpio phy reset binding to the gpio and >>> reset time configuration >>> >>> Signed-off-by: Michael

Re: [U-Boot] [PATCH v3] arm, imx6: add alternative PAD_CTL_DSE constants

2018-07-23 Thread Stefano Babic
On 28/06/2018 15:56, Mark Jonas wrote: > Not all i.MX6 pads use the same drive strength table. So far only the > 240 Ohm to 34 Ohm table was available. Because the constants used have > speaking names it can be confusing to use e.g. PAD_CTL_DSE_48ohm when > according to the reference manual 52 Ohm

Re: [U-Boot] [PATCH] arm: imx7d: cl-som-imx7: sf: support all SF types

2018-07-23 Thread Stefano Babic
On 24/06/2018 11:13, Yaniv Levinsky wrote: > From: Uri Mashiach > > Enable the support for all SPI flash types. > > Signed-off-by: Uri Mashiach > Signed-off-by: Yaniv Levinsky > --- > configs/cl-som-imx7_defconfig | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git

Re: [U-Boot] [PATCH] imx: i.mx6q: imx6q_logic: Migrate to SPL and enable SDP

2018-07-23 Thread Stefano Babic
On 06/07/2018 03:58, Adam Ford wrote: > Since the vast majority of i.MX6 boards are migrating to SPL, > this patch converts im6q_logic to SPL and enables the SDP for > loading SPL and u-boot.img over USB. The Falcon mode only > supports NAND flash as of now due to limited space/RAM, but > all

Re: [U-Boot] [PATCH 3/3] ARM: imx6: DHCOM i.MX6 PDK: ddr init for 32bit bus and 4GBit chips

2018-07-23 Thread Stefano Babic
On 05/07/2018 09:23, lz...@dh-electronics.de wrote: > From: Ludwig Zenz > > Support 1GIB + 2GIB DDR3 with 64bit bus width and 512MIB + 1GIB with 32bit > bus width > > Signed-off-by: Ludwig Zenz > --- > board/dhelectronics/dh_imx6/dh_imx6_spl.c | 191 > +++--- > 1

Re: [U-Boot] [PATCH] imx8qxp_mek: add README

2018-07-23 Thread Fabio Estevam
Hi Peng, On Mon, Jul 23, 2018 at 7:00 AM, Peng Fan wrote: > Add README file for i.MX8QXP MEK board. Thanks for submitting the README file. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Anatolij Gustschin > --- > > This patch is for testing i.MX8QXP patchset

[U-Boot] [PATCH v2 1/5] common: Log should depends on DM not be selected by DM

2018-07-23 Thread Michal Simek
Better use depends on instead of select. Signed-off-by: Michal Simek Reviewed-by: Tom Rini --- Changes in v2: None I found this in connection to setup imply CMD_DM and it seems to not standard that it is selecting DM which is not used anywhere else. --- common/Kconfig | 2 +- 1 file

[U-Boot] [PATCH v2 2/5] Kconfig: Replace spaces with tabs and missing newline

2018-07-23 Thread Michal Simek
Trivial Kconfig cleanup. Use tabs instead of spaces and every Kconfig entry should be separated by newline. Signed-off-by: Michal Simek --- Changes in v2: - new patch - not to confuse script arch/arm/Kconfig | 10 +- arch/arm/mach-imx/mx6/Kconfig | 14 +++---

[U-Boot] [PATCH v2 3/5] Kconfig: Sort bool, default, select and imply options

2018-07-23 Thread Michal Simek
Fix Kconfig bool, default, select and imply options to be alphabetically sorted. Signed-off-by: Michal Simek --- Changes in v2: - new patch I have sorted only Kconfig which I need for the next patch. --- arch/Kconfig | 54 +- arch/arm/Kconfig

[U-Boot] [PATCH v2 5/5] Kconfig: Sort bool, default, select and imply options

2018-07-23 Thread Michal Simek
Another round of sorting Kconfig entries aplhabetically. Signed-off-by: Michal Simek --- Changes in v2: None Kconfig | 22 ++--- arch/arc/Kconfig | 10 +- arch/arm/cpu/armv7/ls102xa/Kconfig| 10 +-

[U-Boot] [PATCH v2 4/5] dm: Change CMD_DM enabling

2018-07-23 Thread Michal Simek
CMD_DM is used for debug purpose and it shouldn't be enabled by default via Kconfig. Unfortunately this is in the tree for quite a long time that's why solution is to use imply DM for all targets which are enabling DM. Signed-off-by: Michal Simek --- Changes in v2: - sort them Based on this

Re: [U-Boot] [PATCH] spl: fpga: Implement fpga bistream loading with fpga_load

2018-07-23 Thread Michal Simek
On 19.7.2018 10:35, Marek Vasut wrote: > On 07/19/2018 08:44 AM, Michal Simek wrote: >> On 19.7.2018 08:36, Luis Araneda wrote: >>> Hi, >>> >>> On Thu, Jul 19, 2018 at 1:58 AM Michal Simek >>> wrote: On 18.7.2018 22:11, Marek Vasut wrote: > On 07/18/2018 04:57 PM, Michal Simek wrote:

[U-Boot] [PATCH] fpga: Kconfig: Replace spaces with tabs

2018-07-23 Thread Michal Simek
Trivial Kconfig cleanup. Use tabs instead of spaces. Signed-off-by: Michal Simek --- drivers/fpga/Kconfig | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index d36c4c5e2804..50e901973d13 100644 ---

Re: [U-Boot] [PATCH] fs: ext4: Prevent erasing buffer past file size

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 11:42:12AM +0200, Marek Vasut wrote: > The variable 'n' represents the number of bytes to be read from a certain > offset in a file, to a certain offset in buffer 'buf'. The variable 'len' > represents the length of the entire file, clamped correctly to avoid any >

[U-Boot] [PATCH 1/4] gpio: xilinx: Find out bank before use in xilinx_gpio_get_function()

2018-07-23 Thread Michal Simek
Call xilinx_gpio_get_bank_pin() before use. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index

[U-Boot] Ethernet sandox driver issue

2018-07-23 Thread Steven Stoner
Hello there, Sorry about this but I could use some assistance. I am trying to get the ethernet to work under the sandbox and am having issues. I saw and applied the patch from Joe Hershberger-2 that seemed to be relevant to my issue. I have applied the patches on the following page to my

Re: [U-Boot] [PATCH 2/2] dm: Change CMD_DM enabling

2018-07-23 Thread Michal Simek
On 20.7.2018 14:53, Tom Rini wrote: > On Fri, Jul 20, 2018 at 02:05:07PM +0200, Michal Simek wrote: > >> CMD_DM is used for debug purpose and it shouldn't be enabled by default >> via Kconfig. Unfortunately this is in the tree for quite a long time >> that's why solution is to use imply DM for

Re: [U-Boot] [PATCH 2/2] dm: Change CMD_DM enabling

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 08:40:51AM +0200, Michal Simek wrote: > On 20.7.2018 14:53, Tom Rini wrote: > > On Fri, Jul 20, 2018 at 02:05:07PM +0200, Michal Simek wrote: > > > >> CMD_DM is used for debug purpose and it shouldn't be enabled by default > >> via Kconfig. Unfortunately this is in the

[U-Boot] [PATCH 5/6] configs: stm32mp15: enable ADC

2018-07-23 Thread Fabrice Gasnier
Enable ADC on stm32mp15. - CONFIG_CMD_ADC - CONFIG_STM32_ADC Signed-off-by: Fabrice Gasnier --- configs/stm32mp15_basic_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/stm32mp15_basic_defconfig b/configs/stm32mp15_basic_defconfig index 3a94db5..bbb65b5

[U-Boot] [PATCH 4/4] gpio: xilinx: Remove !DM driver

2018-07-23 Thread Michal Simek
There is no user for !DM driver that's why remove it. Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 338 + 1 file changed, 2 insertions(+), 336 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index

[U-Boot] [PATCH 2/4] gpio: xilinx: Swap xilinx_gpio_get_function with xilinx_gpio_get_value

2018-07-23 Thread Michal Simek
Exchange two functions to avoid function declaration for next patch. Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c

  1   2   >