Re: [U-Boot] [PATCH 2/2] ls1088aqds: Enable USB command on QDS for qspi-boot

2017-09-13 Thread Ashish Kumar
Hello Ran, Could you please help here to convert to Kconfig option? Regards Ashish -Original Message- From: Bin Meng [mailto:bmeng...@gmail.com] Sent: Wednesday, September 13, 2017 2:15 PM To: Ashish Kumar Cc: U-Boot Mailing List ; Amrita

[U-Boot] [PATCH v2 3/9] dm: clk: add clk driver support for stm32h7 SoCs

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This driver implements basic clock setup, only clock gating is implemented. This driver doesn't implement .of_match as it's binded by MFD RCC driver. Files include/dt-bindings/clock/stm32h7-clks.h and

[U-Boot] [PATCH v2 2/9] serial: stm32x7: add STM32H7 support

2017-09-13 Thread patrice.chotard
From: Patrice Chotard STM32F7 and STM32H7 shares the same UART block, add STM32H7 compatible string. Signed-off-by: Patrice Chotard --- drivers/serial/Kconfig | 7 --- drivers/serial/serial_stm32x7.c | 2 ++ 2 files changed, 6

Re: [U-Boot] [PATCH] sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation

2017-09-13 Thread Fabio Estevam
Hi Lukasz, On Wed, Sep 13, 2017 at 6:39 AM, Lukasz Majewski wrote: > #ifdef CONFIG_SPI_FLASH_BAR > +/* > + * This "cleanup" is necessary in a situation when one was accessing > + * spi flash memory > 16 MiB by using Bank Address Register's BA24 bit. > + * > + * After it the BA24

Re: [U-Boot] [PATCH] fs/fat: fix fatbuf leak

2017-09-13 Thread Tom Rini
On Tue, Sep 12, 2017 at 04:40:01PM -0400, Rob Clark wrote: > A new fatbuf was allocated by get_fs_info() (called by fat_itr_root()), > but not freed, resulting in eventually running out of memory. Spotted > by running 'ls -r' in a large FAT filesystem from Shell.efi. > > fatbuf is mainly used

Re: [U-Boot] [linux-sunxi] Re: [PATCH v3 2/3] video: add an option for video simplefb via DT

2017-09-13 Thread Andre Przywara
Hi, On 13/09/17 16:50, Vincent Legoll wrote: >> SIMPLEFB is also used by other platforms, but most platforms also >> won't use it. >> >> Adding an imply VIDEO_DT_SIMPLEFB to VIDEO_DE2 would make everyone >> happy I guess. > > You meant adding a "select VIDEO_DT_SIMPLEFB" to VIDEO_DE2 ? I think

Re: [U-Boot] [PATCH] sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation

2017-09-13 Thread Łukasz Majewski
Hi Fabio, Hi Lukasz, On Wed, Sep 13, 2017 at 6:39 AM, Lukasz Majewski wrote: #ifdef CONFIG_SPI_FLASH_BAR +/* + * This "cleanup" is necessary in a situation when one was accessing + * spi flash memory > 16 MiB by using Bank Address Register's BA24 bit. + * + * After it the

[U-Boot] [PATCH v2 6/9] ARM: DTS: stm32: add stm32h743i-disco files

2017-09-13 Thread patrice.chotard
From: Patrice Chotard All these files are imported from linux kernel v4.13 Add device tree support for STM32H743 SoC and discovery board. This board offers : _ STM32H743XIH6 microcontroller with 2 Mbytes of Flash memory and 1 Mbyte of RAM in TFBGA240+25 package _

[U-Boot] [PATCH v2 9/9] board: Add stm32h7 SoC, discovery and evaluation boards support

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This patch adds support for stm32h7 soc family, stm32h743 discovery and evaluation boards. For more information about STM32H7 series, please visit: http://www.st.com/en/microcontrollers/stm32h7-series.html Signed-off-by: Patrice Chotard

[U-Boot] [PATCH v2 8/9] ARM: DTS: stm32: adapt stm32h7 dts files for U-boot

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This patch adapts stm32h743 disco and eval dts files to match with U-boot requirements or add features wich are not yet upstreamed on kernel side : _ Add RCC clock driver node and update all clocks phandle accordingly. By default, on kernel

Re: [U-Boot] [linux-sunxi] Re: [PATCH v3 2/3] video: add an option for video simplefb via DT

2017-09-13 Thread Vincent Legoll
> SIMPLEFB is also used by other platforms, but most platforms also > won't use it. > > Adding an imply VIDEO_DT_SIMPLEFB to VIDEO_DE2 would make everyone > happy I guess. You meant adding a "select VIDEO_DT_SIMPLEFB" to VIDEO_DE2 ? -- Vincent Legoll

[U-Boot] [PATCH v2 4/9] dm: reset: add stm32 reset driver

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This driver is adapted from linux drivers/reset/reset-stm32.c It's compatible with STM32 F4/F7/H7 SoCs. This driver doesn't implement .of_match as it's binded by MFD RCC driver. To add support for each SoC family, a SoC's specific

Re: [U-Boot] [PATCH] spl: stash bootstage info before jump to next stage

2017-09-13 Thread Tom Rini
On Wed, Sep 13, 2017 at 06:24:24PM +0800, Kever Yang wrote: > Since we may jump to next stage like ATF/OP-TEE instead of U-Boot, > we need to stash the bootstage info before it. > > Signed-off-by: Kever Yang > --- > > common/spl/spl.c | 18 +- > 1

[U-Boot] [PATCH 04/15] spl: fit: simplify logic for FDT loading for non-OS boots

2017-09-13 Thread Philipp Tomsich
To better support bootin through an ATF or OPTEE, we need to streamline some of the logic for when the FDT is appended to an image: depending on the image type, we'd like to append the FDT not at all (the case for the OS boot), to the 'firmware' image (if it is a U-Boot) or to one of the loadables

[U-Boot] [PATCH 02/15] spl: add a fdt_addr field to spl_image_info

2017-09-13 Thread Philipp Tomsich
When loading a full U-Boot with detached device-tree using the SPL FIT backend, we should store the address of the FDT loaded as part of the SPL image info: this allows us to fixup the FDT with additional info we may want to propagate onward. Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH 14/15] rockchip: defconfig: puma-rk3399: sync up with SPL changes for ATF

2017-09-13 Thread Philipp Tomsich
This defconfig update makes use of the new features: * CONFIG_ROCKCHIP_SPL_RESERVE_IRAM is now set to 0, as there is no overlap between the M0 firmware and the ATF (we load this to DRAM and relocate it to its final location within the ATF) * tracks the ATF_SUPPORT -> ATF renaming

[U-Boot] [PATCH 15/15] rockchip: defconfig: lion-rk3368: sync up with SPL changes for ATF

2017-09-13 Thread Philipp Tomsich
This tracks the SPL changes for ATF for the RK3368-uQ7: * renames ATF_SUPPORT to ATF * drops CONFIG_SPL_ATF_TEXT_BASE (now dynamically retrieved from the .itb file) Signed-off-by: Philipp Tomsich --- configs/lion-rk3368_defconfig | 3 +-- 1 file

Re: [U-Boot] [linux-sunxi] Re: [PATCH v3 2/3] video: add an option for video simplefb via DT

2017-09-13 Thread Maxime Ripard
On Wed, Sep 13, 2017 at 09:17:21PM +0800, icen...@aosc.io wrote: > 在 2017-09-13 20:04,Maxime Ripard 写道: > > Hi, > > > > On Wed, Sep 13, 2017 at 10:17:50AM +0800, Icenowy Zheng wrote: > > > Add an option to indicate that the video driver should setup a > > > SimpleFB > > > node that passes the

[U-Boot] [PATCH] arm: mach-omap2: Relax checks on OP-TEE location to allow pageable image

2017-09-13 Thread Andrew F. Davis
From: Harinarayan Bhatta When the OP-TEE image is built for secure paging the load address may be in SRAM, remove checks that prevent this. Signed-off-by: Harinarayan Bhatta Signed-off-by: Andrew F. Davis ---

[U-Boot] [PATCH 07/15] spl: atf: introduce spl_invoke_atf and make bl31_entry private

2017-09-13 Thread Philipp Tomsich
This adds a new interface spl_invoke_atf() that takes a spl_image_info argument and then derives the necessary parameters for the ATF entry. Based on the additional information recorded (into /fit-images) from the FIT loadables, we can now easily locate the next boot stage. We now pass a pointer

[U-Boot] [PATCH 01/15] image: add IH_OS_ARM_TRUSTED_FIRMWARE for ARM Trusted Firmware

2017-09-13 Thread Philipp Tomsich
To boot on ARMv8 systems with ARM Trusted Firmware, we need to assemble an ATF-specific parameter structure and also provide the address of the images started by ATF (e.g. BL3-3, which may be the full U-Boot). To allow us to identify an ARM Trusted Firmware contained in a FIT image, this adds the

[U-Boot] [PATCH 06/15] spl: fit: implement recording of loadables into /fit-images

2017-09-13 Thread Philipp Tomsich
If a FDT was loaded (e.g. to append it to U-Boot image), we store it's address and record information for all loadables into this FDT. This allows us to easily keep track of images for multiple privilege levels (e.g. with ATF) or of firmware images preloaded into temporary locations (e.g. PMU

[U-Boot] [PATCH 12/15] rockchip: board: puma-rk3399: update .its file to use new features

2017-09-13 Thread Philipp Tomsich
This commit updates the .its file for the RK3399-Q7 to use the new features and demonstrates how to use those: * it marks the ATF as the 'firmware' * it tracks the OS-type for U-Boot and ATF * it loads the PMU (M0) firmware to DRAM and records the location to /fit-images (where our ATF reads

[U-Boot] [PATCH 10/15] rockchip: dts: rk3399-puma: add /config/arm-trusted-firmware, reset-gpio property

2017-09-13 Thread Philipp Tomsich
With the ATF capable of accessing the FDT passed to the next stage, we can specify configuration items for the ATF in the /config path. This adds the arm-trusted-firmware,reset-gpio that conveys the number of the GPIO used to reset the board (used, when a reboot is requested from ATF via PSCI).

[U-Boot] [PATCH 08/15] spl: rename config item SPL_ATF_SUPPORT to SPL_ATF

2017-09-13 Thread Philipp Tomsich
Having CONFIG_SPL_ATF seems more natural. Rename it, while it it is easy and there's few boards that use it (only RK3399 and RK3368 boards). Signed-off-by: Philipp Tomsich --- common/spl/Kconfig | 2 +- common/spl/Makefile | 2 +- 2 files changed, 2

[U-Boot] [PATCH 05/15] spl: fit: implement fdt_record_loadable

2017-09-13 Thread Philipp Tomsich
During the loading of more complex FIT images (e.g. when the invoked next stage needs to find additional firmware for a power-management core... or if there are multiple images for different privilege levels started in parallel), it is helpful to create a record of what images are loaded where: if

[U-Boot] [PATCH 03/15] spl: change load_addr and entry_point to uintptr_t

2017-09-13 Thread Philipp Tomsich
Mainly a stylistic change: convert the load_addr and entry_point fields of struct spl_image_info to uintptr_t (from ulong). Signed-off-by: Philipp Tomsich --- include/spl.h | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 09/15] spl: atf: drop the SPL_ATF_TEXT_BASE configuration item

2017-09-13 Thread Philipp Tomsich
The SPL_ATF_TEXT_BASE configuration item has become obsolete. Remove it from Kconfig. Signed-off-by: Philipp Tomsich --- common/spl/Kconfig | 6 -- 1 file changed, 6 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index

Re: [U-Boot] [U-Boot, 4/5] configs: rk3328: add support for pmic rk8xx and regulator and i2c driver

2017-09-13 Thread Philipp Tomsich
> From: Elaine Zhang > > Add defconfig for rk8xx and regulator and i2c controller. > > Signed-off-by: Elaine Zhang > Signed-off-by: Kever Yang > --- > > configs/evb-rk3328_defconfig | 6 ++ > 1 file changed,

Re: [U-Boot] [PATCH] u-boot: Upgrade to 2017.09

2017-09-13 Thread Otavio Salvador
Marek, On Wed, Sep 13, 2017 at 5:20 PM, Marek Vasut wrote: > On 09/13/2017 10:11 PM, Otavio Salvador wrote: >> On Wed, Sep 13, 2017 at 5:05 PM, Marek Vasut wrote: >> ... >>> What is the status of those dangling patches ? They were apparently >>>

Re: [U-Boot] [U-Boot, v2, 3/5] spl: fit: Eanble GZIP support for image decompression

2017-09-13 Thread York Sun
On 09/13/2017 01:38 PM, Heinrich Schuchardt wrote: > On 08/08/2017 01:16 AM, York Sun wrote: >> Add Kconfig option SPL_GZIP and SPL_ZLIB to enable gunzip support for >> SPL boot, eg. falcon boot compressed kernel image. >> >> Signed-off-by: York Sun >> Reviewed-by: Tom Rini

Re: [U-Boot] [PATCH] u-boot: Upgrade to 2017.09

2017-09-13 Thread Marek Vasut
On 09/13/2017 11:02 PM, Otavio Salvador wrote: > Marek, > > On Wed, Sep 13, 2017 at 5:20 PM, Marek Vasut wrote: >> On 09/13/2017 10:11 PM, Otavio Salvador wrote: >>> On Wed, Sep 13, 2017 at 5:05 PM, Marek Vasut wrote: >>> ... What is the status

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Stefan Agner
Sorry, the subject should have been v4. -- Stefan On 2017-09-13 14:29, Stefan Agner wrote: > From: Stefan Agner > > This macro allows to detect whether the USB PHY is active. This > is helpful to detect if the boot ROM has previously started the > USB serial

Re: [U-Boot] [U-Boot, 5/8] clk: rockchip: Add rk3328 Saradc clock support

2017-09-13 Thread Philipp Tomsich
> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). > Saradc integer divider control register is 10-bits width. > > Signed-off-by: David Wu > --- > drivers/clk/rockchip/clk_rk3328.c | 37 + > 1 file

Re: [U-Boot] [U-Boot, 6/8] clk: rockchip: Add rk3368 Saradc clock support

2017-09-13 Thread Philipp Tomsich
> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). > Saradc integer divider control register is 8-bits width. > > Signed-off-by: David Wu > --- > arch/arm/include/asm/arch-rockchip/cru_rk3368.h | 5 > drivers/clk/rockchip/clk_rk3368.c

Re: [U-Boot] [U-Boot, 6/8] clk: rockchip: Add rk3368 Saradc clock support

2017-09-13 Thread Philipp Tomsich
On Wed, 13 Sep 2017, David Wu wrote: The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). Saradc integer divider control register is 8-bits width. Signed-off-by: David Wu Reviewed-by: Philipp Tomsich

Re: [U-Boot] [PATCH 04/15] spl: fit: simplify logic for FDT loading for non-OS boots

2017-09-13 Thread York Sun
On 09/13/2017 12:30 PM, Philipp Tomsich wrote: > To better support bootin through an ATF or OPTEE, we need to > streamline some of the logic for when the FDT is appended to an image: > depending on the image type, we'd like to append the FDT not at all > (the case for the OS boot), to the

[U-Boot] [v2 PATCH 2/4] Increase the default environment size on odroid, as config_distro_bootcmd requires a more space for the environment.

2017-09-13 Thread Vagrant Cascadian
Signed-off-by: Vagrant Cascadian --- include/configs/odroid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/odroid.h b/include/configs/odroid.h index 43138e2191..573ccbdd36 100644 --- a/include/configs/odroid.h +++

[U-Boot] [v2 PATCH 3/4] Switch odroid to use config_distro_bootcmd.

2017-09-13 Thread Vagrant Cascadian
Using distro_bootcmd standardizes board behavior across many platforms. This is particularly useful for distributions supporting multiple boards without requiring custom configuration for each board. Signed-off-by: Vagrant Cascadian --- include/configs/odroid.h | 19

[U-Boot] [v2 PATCH 1/4] Fix default console on odroid to only specify the device, as "console=" is redundant with the boot environment.

2017-09-13 Thread Vagrant Cascadian
Signed-off-by: Vagrant Cascadian --- include/configs/odroid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/odroid.h b/include/configs/odroid.h index 2afb19f84a..43138e2191 100644 --- a/include/configs/odroid.h +++

Re: [U-Boot] [PATCH] u-boot: Upgrade to 2017.09

2017-09-13 Thread Marek Vasut
On 09/13/2017 10:11 PM, Otavio Salvador wrote: > On Wed, Sep 13, 2017 at 5:05 PM, Marek Vasut wrote: > ... >> What is the status of those dangling patches ? They were apparently >> posted, but didn't make it into the last two (?) releases. > > I am confused. Are you asking

Re: [U-Boot] [U-Boot,1/8] adc: Add driver for Rockchip Saradc

2017-09-13 Thread Philipp Tomsich
On Wed, 13 Sep 2017, David Wu wrote: The ADC can support some channels signal-ended some bits Successive Approximation Register (SAR) A/D Converter, like 6-channel and 10-bit. It converts the analog input signal into some bits binary digital codes. Signed-off-by: David Wu

Re: [U-Boot] [U-Boot, 6/8] clk: rockchip: Add rk3368 Saradc clock support

2017-09-13 Thread Dr. Philipp Tomsich
> On 13 Sep 2017, at 22:41, Philipp Tomsich > wrote: > > > > On Wed, 13 Sep 2017, David Wu wrote: > >> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). >> Saradc integer divider control register is 8-bits width. >> >>

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Fabio Estevam
On Wed, Sep 13, 2017 at 4:47 PM, Stefan Agner wrote: > The USB serial downloader only works with the OTG USB PHY anyway, so I > will rename it. I like to have USB still in there, how about: > > is_usbotg_phy_active() Looks fine. Please send a v4 with it and we should be good

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Eric Nelson
Hi Stefan, On 09/13/2017 12:47 PM, Stefan Agner wrote: On 2017-09-13 02:19, Stefano Babic wrote: Hi Eric, Stefan, On 13/09/2017 02:30, Eric Nelson wrote: Hi Stefan, I hate to be fussy about this, but I don't think I saw a reply to my earlier comment about the term "USB PHY".

[U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Stefan Agner
From: Stefan Agner This macro allows to detect whether the USB PHY is active. This is helpful to detect if the boot ROM has previously started the USB serial downloader. The idea is taken from the mfgtool support in the NXP U-Boot:

[U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-13 Thread Stefan Agner
From: Stefan Agner The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode command). However, in case the system entered boot ROM due to unbootable primary boot

Re: [U-Boot] [PATCH] u-boot: Upgrade to 2017.09

2017-09-13 Thread Marek Vasut
On 09/11/2017 10:30 PM, Otavio Salvador wrote: > This upgrades the U-Boot to the 2017.09 release. > > Signed-off-by: Otavio Salvador Wrong ML, but since this is already here ... > --- > > .../u-boot/{u-boot-common_2017.07.inc => u-boot-common_2017.09.inc} | 2 >

Re: [U-Boot] [U-Boot,1/8] adc: Add driver for Rockchip Saradc

2017-09-13 Thread Philipp Tomsich
> The ADC can support some channels signal-ended some bits Successive > Approximation > Register (SAR) A/D Converter, like 6-channel and 10-bit. It converts the > analog > input signal into some bits binary digital codes. > > Signed-off-by: David Wu > --- >

Re: [U-Boot] [U-Boot,3/5] power: pmic: rk805: support rk805 pmic

2017-09-13 Thread Philipp Tomsich
On Wed, 13 Sep 2017, Kever Yang wrote: From: Elaine Zhang Add Rockchip pmic rk805 support. Again: a bit more info would be helpful (see my review of patch 2/5 for a few hints). Signed-off-by: Elaine Zhang Signed-off-by: Kever Yang

Re: [U-Boot] [U-Boot, 7/8] clk: rockchip: Add rk3399 Saradc clock support

2017-09-13 Thread Philipp Tomsich
> The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). > Saradc integer divider control register is 8-bits width. > > Signed-off-by: David Wu > --- > drivers/clk/rockchip/clk_rk3399.c | 34 ++ > 1 file changed, 34

Re: [U-Boot] [U-Boot, 8/8] arm: dts: rv1108: Add Saradc node at dtsi level

2017-09-13 Thread Philipp Tomsich
> Signed-off-by: David Wu > --- > arch/arm/dts/rv1108.dtsi | 11 +++ > 1 file changed, 11 insertions(+) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot, v2, 3/5] spl: fit: Eanble GZIP support for image decompression

2017-09-13 Thread Heinrich Schuchardt
On 08/08/2017 01:16 AM, York Sun wrote: > Add Kconfig option SPL_GZIP and SPL_ZLIB to enable gunzip support for > SPL boot, eg. falcon boot compressed kernel image. > > Signed-off-by: York Sun > Reviewed-by: Tom Rini > --- > > Changes in v2: > Combine

Re: [U-Boot] [PATCH] nios2: 10m50: Add CPU pre-relocation in device tree

2017-09-13 Thread Marek Vasut
On 07/28/2017 07:07 AM, Gan, Yau Wai wrote: > Tag CPU with dm-pre-reloc to enable driver before > relocation. > > Signed-off-by: Gan, Yau Wai > Cc: Thomas Chou Reviewed-by: Marek Vasut Tom, please apply directly as the maintainer

[U-Boot] [v2 PATCH 0/4] Switch odroid to use distro_bootcmd.

2017-09-13 Thread Vagrant Cascadian
Using distro_bootcmd standardizes board behavior across many platforms. This is particularly useful for distributions supporting multiple boards without requiring custom configuration for each board. There are a few changes needed to support distro_bootcmd, such as fixing the default value for

[U-Boot] [v2 PATCH 4/4] Inherit default value for bootdelay from distro_bootcmd on odroid.

2017-09-13 Thread Vagrant Cascadian
The default value with distro_bootcmd is 2 seconds, which is reasonably fast, and provides a consistent experience across platforms supporting distro_bootcmd. The current bootdelay value of 0 seconds is a bit challenging to interrupt when desired. Cc: Jaehoon Chung

Re: [U-Boot] [U-Boot,2/5] power: pmic: rk816: support rk816 pmic

2017-09-13 Thread Philipp Tomsich
> From: Elaine Zhang > > Add Rockchip pmic rk816 support. > > Signed-off-by: Elaine Zhang > Signed-off-by: Kever Yang > --- > > drivers/power/pmic/rk8xx.c | 1 + > drivers/power/regulator/rk8xx.c | 212 >

Re: [U-Boot] [U-Boot,3/5] power: pmic: rk805: support rk805 pmic

2017-09-13 Thread Philipp Tomsich
> From: Elaine Zhang > > Add Rockchip pmic rk805 support. > > Signed-off-by: Elaine Zhang > Signed-off-by: Kever Yang > --- > > drivers/power/pmic/rk8xx.c | 1 + > drivers/power/regulator/rk8xx.c | 6 ++

Re: [U-Boot] [U-Boot, 7/8] clk: rockchip: Add rk3399 Saradc clock support

2017-09-13 Thread Philipp Tomsich
On Wed, 13 Sep 2017, David Wu wrote: The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). Saradc integer divider control register is 8-bits width. Signed-off-by: David Wu Reviewed-by: Philipp Tomsich

Re: [U-Boot] [PATCH 04/15] spl: fit: simplify logic for FDT loading for non-OS boots

2017-09-13 Thread York Sun
On 09/13/2017 02:21 PM, Dr. Philipp Tomsich wrote: > York, > >> On 13 Sep 2017, at 23:16, York Sun wrote: >> >> On 09/13/2017 12:30 PM, Philipp Tomsich wrote: >>> To better support bootin through an ATF or OPTEE, we need to >>> streamline some of the logic for when the FDT is

[U-Boot] [v2 PATCH] Inherit default value for bootdelay from distro_bootcmd on odroid-xu3.

2017-09-13 Thread Vagrant Cascadian
The default value with distro_bootcmd is 2 seconds, which is reasonably fast, and provides a consistent experience across platforms supporting distro_bootcmd. The current bootdelay value of 0 seconds is a bit challenging to interrupt when desired. Signed-off-by: Vagrant Cascadian

[U-Boot] [PATCH v3 00/21] efi_loader: enough UEFI for standard distro boot

2017-09-13 Thread Rob Clark
This patchset fleshes out EFI_LOADER enough to support booting an upstream \EFI\BOOT\bootaa64.efi (which then loads fallback.efi and then eventually the per-distro shim.efi which loads the per-distro grubaa64.efi) without resorting to hacks to hard-code u-boot to load a particular distro's grub,

[U-Boot] [PATCH v3 09/21] efi_loader: use proper device-paths for net

2017-09-13 Thread Rob Clark
Signed-off-by: Rob Clark --- lib/efi_loader/efi_net.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c index 0b949d86e8..aa0618fd3a 100644 --- a/lib/efi_loader/efi_net.c +++

[U-Boot] [PATCH v3 02/21] part: extract MBR signature from partitions

2017-09-13 Thread Rob Clark
From: Peter Jones EFI client programs need the signature information from the partition table to determine the disk a partition is on, so we need to fill that in here. Signed-off-by: Peter Jones [separated from efi_loader part, and fixed build-errors for

[U-Boot] [PATCH v3 17/21] efi_loader: set loaded image code/data type properly

2017-09-13 Thread Rob Clark
These should be set according to the image type. Shell.efi and SCT.efi use these fields to determine what sort of image they are loading. Signed-off-by: Rob Clark --- include/pe.h | 6 ++ lib/efi_loader/efi_image_loader.c | 22

Re: [U-Boot] [PATCH 04/15] spl: fit: simplify logic for FDT loading for non-OS boots

2017-09-13 Thread Dr. Philipp Tomsich
York, > On 13 Sep 2017, at 23:24, York Sun wrote: > > On 09/13/2017 02:21 PM, Dr. Philipp Tomsich wrote: >> York, >> >>> On 13 Sep 2017, at 23:16, York Sun wrote: >>> >>> On 09/13/2017 12:30 PM, Philipp Tomsich wrote: To better support bootin through

Re: [U-Boot] [PATCH] serial: serial_sh: take into account port->clk_mode for SH7785/7786

2017-09-13 Thread Thomas Petazzoni
Hello, On Mon, 28 Aug 2017 14:16:38 +0200, Thomas Petazzoni wrote: > In the SH7785/SH7786 case, the SCSCR value is harcoded to be 0x3a, > which means bits CKE1/CKE0 have the value 10b. This tells the SCIF > that the "External clock/SCIF_SCK pin functions as clock input". > > However, this is not

Re: [U-Boot] undefined reference to `environment'

2017-09-13 Thread Thomas Petazzoni
Hello, On Tue, 29 Aug 2017 17:18:24 -0400, Tom Rini wrote: > > env/embedded.o is missing in the link. It is added to extra-y by: > > > > extra-$(CONFIG_ENV_IS_IN_FLASH) += embedded.o > > > > I dumped extra-y right after this line, and it does contain embedded.o. > > However, it does not get

[U-Boot] [PATCH v3 03/21] efi: add some missing __packed

2017-09-13 Thread Rob Clark
All of the device-path related structures should be packed. UEFI defines the device-path as a byte-aligned data structure. Signed-off-by: Rob Clark --- include/efi_api.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/efi_api.h

[U-Boot] [PATCH v3 11/21] efi_loader: add file/filesys support

2017-09-13 Thread Rob Clark
fallback.efi (and probably other things) use UEFI's simple-file-system protocol and file support to search for OS's to boot. Signed-off-by: Rob Clark --- include/efi.h | 2 + include/efi_api.h | 65 + include/efi_loader.h

[U-Boot] [PATCH v3 15/21] efi_loader: add bootmgr

2017-09-13 Thread Rob Clark
Similar to a "real" UEFI implementation, the bootmgr looks at the BootOrder and Boot variables to try to find an EFI payload to load and boot. This is added as a sub-command of bootefi. The idea is that the distro bootcmd would first try loading a payload via the bootmgr, and then if that

[U-Boot] [PATCH v3 16/21] efi_loader: file_path should be variable length

2017-09-13 Thread Rob Clark
Signed-off-by: Rob Clark --- include/efi_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/efi_api.h b/include/efi_api.h index d0aefa8221..604c5b7ec4 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -373,7 +373,7 @@ struct

[U-Boot] [PATCH v3 08/21] efi_loader: use proper device-paths for partitions

2017-09-13 Thread Rob Clark
Also, create disk objects for the disk itself, in addition to the partitions. (UEFI terminology is a bit confusing, a "disk" object is really a partition.) This helps grub properly identify the boot device since it is trying to match up partition "disk" object with it's parent device. Now

[U-Boot] [PATCH v3 19/21] efi_loader: split out escape sequence based size query

2017-09-13 Thread Rob Clark
We need to do something different for vidconsole, since it cannot respond to the query on stdin. Prep work for next patch. Signed-off-by: Rob Clark --- lib/efi_loader/efi_console.c | 53 +--- 1 file changed, 30 insertions(+), 23

[U-Boot] [PATCH 0/3] dm: video: enhancements for Shell.efi

2017-09-13 Thread Rob Clark
Split out of earlier efi_loader patchset, and updated with some comments, use of simple_strtol[1], and added kconfig option to enable ANSI escape sequence support. [1] not a hard dependency, but to ensure correct behavior in all cases, depends on "lib: strto: fix incorrect handling of

[U-Boot] [PATCH 3/3] dm: video: Add color ANSI escape sequence support

2017-09-13 Thread Rob Clark
Note that this doesn't differentiate (due to lack of information in video_priv) between different possible component orders for 32bpp. But the main user at this point is efi_loader, and GOP expects xBGR so any video drivers that this is incorrect for already have problems. (Also, conveniently,

Re: [U-Boot] I/O accessors on SuperH and endianness

2017-09-13 Thread Thomas Petazzoni
Hello, Has anyone any comments/suggestions on the below questions? How is this problem solved on other architectures? Thanks, Thomas On Mon, 28 Aug 2017 14:32:49 +0200, Thomas Petazzoni wrote: > Hello, > > As you've noticed, I'm porting U-Boot to a SH4 board running > big-endian. The

[U-Boot] [PATCH v2 1/9] pinctrl: stm32: add stm32h743-pinctrl compatible

2017-09-13 Thread patrice.chotard
From: Patrice Chotard STM32H7 SoCs uses the same pinctrl block as found into STM32F7 SoCs Signed-off-by: Patrice Chotard --- drivers/pinctrl/pinctrl_stm32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl_stm32.c

[U-Boot] [PATCH v2 0/9] Add STM32H7 SoC, Discovery and Evaluation board support

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This series adds support for STM32H7 SoCs series and its Discovery and Evaluation board For more detailed information please visit: www.st.com/en/microcontrollers/stm32h7-series.html v2:_ add stm32h743 Evaluation board support _ squash all DTS

[U-Boot] [PATCH v2 7/9] ARM: DTS: stm32: add stm32h743i-eval files

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This file is imported from linux kernel v4.13 Add device tree support for STM32H743 evaluation board. This board offers : _ STM32H743XIH6 microcontroller with 2 Mbytes of Flash memory and 1 Mbyte of RAM in TFBGA240+25 package _ 5.7” 640x480

[U-Boot] [PATCH v2 5/9] dm: misc: add stm32 rcc driver

2017-09-13 Thread patrice.chotard
From: Christophe Kerello This patch adds the support of reset and clock control block (rcc) found on STM32 SoCs. This driver is similar to a MFD linux driver. This driver supports currently STM32H7 only. STM32F4 and STM32F7 will be migrated to this rcc MFD driver in

[U-Boot] [PATCH v3 01/21] part: move efi_guid_t

2017-09-13 Thread Rob Clark
Prep work for next patch. Signed-off-by: Rob Clark --- include/efi.h | 4 include/part.h | 3 ++- include/part_efi.h | 4 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/efi.h b/include/efi.h index 02b78b31b1..87b0b43f20 100644 ---

[U-Boot] [PATCH v3 04/21] efi: add some more device path structures

2017-09-13 Thread Rob Clark
From: Peter Jones Signed-off-by: Peter Jones Signed-off-by: Rob Clark --- include/efi_api.h | 54 ++ 1 file changed, 54 insertions(+) diff --git a/include/efi_api.h

[U-Boot] [PATCH v3 05/21] efi_loader: add device-path utils

2017-09-13 Thread Rob Clark
Helpers to construct device-paths from devices, partitions, files, and for parsing and manipulating device-paths. For non-legacy devices, this will use u-boot's device-model to construct device-paths which include bus hierarchy to construct device-paths. For legacy devices we still fake it, but

[U-Boot] [PATCH v3 18/21] efi_loader: print GUIDs

2017-09-13 Thread Rob Clark
Utilize printf GUID support to print GUIDs. Signed-off-by: Rob Clark --- lib/efi_loader/efi_boottime.c | 22 +++--- lib/efi_loader/efi_variable.c | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c

[U-Boot] [PATCH v3 10/21] efi_loader: refactor boot device and loaded_image handling

2017-09-13 Thread Rob Clark
Get rid of the hacky fake boot-device and duplicate device-path constructing (which needs to match what efi_disk and efi_net do). Instead convert over to use efi_device_path helpers to construct device-paths, and use that to look up the actual boot device. Also, extract out a helper to plug

[U-Boot] [PATCH v3 20/21] efi_loader: Correctly figure out size for vidconsole

2017-09-13 Thread Rob Clark
If stdout is vidconsole, we cannot rely on ANSI escape sequences to query the size, as vidconsole cannot reply on stdin. Instead special- case this if stdout is vidconsole. Signed-off-by: Rob Clark --- lib/efi_loader/efi_console.c | 16 +++- 1 file changed, 15

[U-Boot] [PATCH v3 06/21] efi_loader: drop redundant efi_device_path_protocol

2017-09-13 Thread Rob Clark
This is really the same thing as the efi_device_path struct. Signed-off-by: Rob Clark --- include/efi_api.h| 12 ++-- lib/efi_loader/efi_device_path_to_text.c | 13 - 2 files changed, 10 insertions(+), 15 deletions(-) diff --git

Re: [U-Boot] [U-Boot, v2, 3/5] spl: fit: Eanble GZIP support for image decompression

2017-09-13 Thread Heinrich Schuchardt
On 09/13/2017 11:07 PM, York Sun wrote: > On 09/13/2017 01:38 PM, Heinrich Schuchardt wrote: >> On 08/08/2017 01:16 AM, York Sun wrote: >>> Add Kconfig option SPL_GZIP and SPL_ZLIB to enable gunzip support for >>> SPL boot, eg. falcon boot compressed kernel image. >>> >>> Signed-off-by: York Sun

Re: [U-Boot] [PATCH v3 1/2] imx: add macro to detect whether USB PHY is active

2017-09-13 Thread Eric Nelson
On 09/13/2017 02:29 PM, Stefan Agner wrote: From: Stefan Agner This macro allows to detect whether the USB PHY is active. This is helpful to detect if the boot ROM has previously started the USB serial downloader. The idea is taken from the mfgtool support in the NXP

Re: [U-Boot] [PATCH v3 2/2] imx_common: detect USB serial downloader reliably

2017-09-13 Thread Eric Nelson
Hi Stefan, Thanks for this patch. On 09/13/2017 02:29 PM, Stefan Agner wrote: From: Stefan Agner The current mechanism using SCR/GPR registers work well when the serial downloader boot mode has been selected explicitly (either via boot mode pins or using bmode

Re: [U-Boot] include/configs: remove references to SMNAND_ENV_OFFSET

2017-09-13 Thread Tom Rini
On Mon, Sep 04, 2017 at 09:08:02PM -0500, Adam Ford wrote: > In mancy cases both CONFIG_ENV_OFFSET and CONFIG_ENV_ADDR point > to an otherwise-unused SMNAND_ENV_OFFSET. > This patch will set both CONFIG_ENV_OFFSET and CONFIG_ENV_ADDR to > whatever value was defined by SMNAND_ENV_OFFSET. > >

Re: [U-Boot] Convert CONFIG_EMIF4 et al to Kconfig

2017-09-13 Thread Tom Rini
On Tue, Sep 12, 2017 at 03:27:33PM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_EMIF4 >CONFIG_SDRC > > Signed-off-by: Adam Ford > Reviewed-by: Simon Glass > Reviewed-by: Stefano Babic Applied to

Re: [U-Boot] omap3: omap3_logic: Finish enabling fastboot on MUSB

2017-09-13 Thread Tom Rini
On Sun, Aug 13, 2017 at 07:36:14AM -0500, Adam Ford wrote: > Either the USB and Fastboot were never finished, or somehow it got > lost. This puts enough hooks back into omap3logic to enable > fastboot and hopefully prepare it for Kconfig conversion. > > Signed-off-by: Adam Ford

Re: [U-Boot] [U-Boot, 2/2] Convert CONFIG_MAC_ADDR_IN_SPIFLASH et al to Kconfig

2017-09-13 Thread Tom Rini
On Fri, Sep 08, 2017 at 05:01:18PM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_MAC_ADDR_IN_SPIFLASH >CONFIG_MAC_ADDR_IN_EEPROM > > Signed-off-by: Adam Ford Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital

Re: [U-Boot] [U-Boot, V3] arm: dts: omap3: Re-sync DTS files with Linux 4.13-RC5

2017-09-13 Thread Tom Rini
On Fri, Aug 25, 2017 at 07:33:26AM -0500, Adam Ford wrote: > The DTS files had some spacing issues and they needed fixing. This > pull re-sync's the OMAP3xx related DTS files with Linux 4.13-RC5. > > To keep the DTS and DTSI files clean and in sync with Linux, new > u-boot.dtsi files are added.

Re: [U-Boot] [U-Boot, 1/2] davinci: da850evm: Make EEPROM MAC code configurable

2017-09-13 Thread Tom Rini
On Fri, Sep 08, 2017 at 05:01:17PM -0500, Adam Ford wrote: > There was a check for CONFIG_MAC_ADDR_IN_EEPROM and > a check for CONFIG_MAC_ADDR_IN_SPIFLASH, however > some of the EEPROM related code wasn't encapsulated > inside the #if defined statement so the EEPROM code > could get executed even

[U-Boot] [PATCH v3 0/5] configs: at91: Remove value of CONFIG_SYS_EXTRA_OPTIONS option

2017-09-13 Thread Wenyou Yang
The CONFIG_SYS_EXTRA_OPTIONS option is deprecated, remove the value of this option from the board default config files. Changes in v3: - Rebase the u-boot/master (ba39608147). Changes in v2: - Rebase the uboot/master (84a42069f253). Wenyou Yang (5): ARM: at91: Move CONFIG_AT91FAMILY option

[U-Boot] [PATCH v3 2/5] ARM: at91: Add the SoC options to Kconfig

2017-09-13 Thread Wenyou Yang
From: Wenyou Yang To prepare to remove the SoCs options such as SAMA5D2, SAMA5D3 and SAMA5D4 from the CONFIG_SYS_EXTRA_OPTIONS option which is deprecated, add the SoC options to Kconfig. Signed-off-by: Wenyou Yang --- Changes in v3: None

[U-Boot] [PATCH v3 1/5] ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig

2017-09-13 Thread Wenyou Yang
From: Wenyou Yang Move the CONFIG_AT91FAMILY option from include/mach/.h header file to Kconfig. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/Kconfig| 3 +++

  1   2   3   >