Re: [U-Boot] [PATCH v11 2/6] efi_loader: Drop setup_ok

2018-10-18 Thread Heinrich Schuchardt
On 10/19/2018 05:25 AM, Simon Glass wrote: > Hi, > > On 15 October 2018 at 11:16, Heinrich Schuchardt wrote: >> On 10/15/2018 04:17 PM, Simon Glass wrote: >>> This value is stored in data which appears to be read-only with sandbox on >>> my Ubuntu 18.04 machine. In any case it is not good

[U-Boot] [PATCH 1/1] efi_selftest: do not write to linker generated array

2018-10-18 Thread Heinrich Schuchardt
Linker generated arrays may be stored in code sections of memory that are not writable. So let's allocate setup_ok as an array at runtime. This avoids an illegal memory access observed in the sandbox. Reported-by: Simon Glass Signed-off-by: Heinrich Schuchardt --- include/efi_selftest.h

Re: [U-Boot] [U-Boot,11/45] rtc: Allow use of RTC in SPL and TPL

2018-10-18 Thread Bin Meng
Hi Simon, On Fri, Oct 19, 2018 at 11:25 AM Simon Glass wrote: > > Hi Bin, > > On 12 October 2018 at 20:46, Bin Meng wrote: > > Hi Heinrich, > > > > On Fri, Oct 12, 2018 at 3:56 AM Heinrich Schuchardt > > wrote: > >> > >> On 10/11/2018 09:21 PM, Heinrich Schuchardt wrote: > >> > > >> > On

Re: [U-Boot] [PATCH v3 29/31] virtio: Add a Sandbox transport driver

2018-10-18 Thread Simon Glass
On 15 October 2018 at 03:21, Bin Meng wrote: > This driver provides support for Sandbox implementation of virtio > transport driver which is used for testing purpose only. > > Two drivers are provided. The 2nd one is a driver that lacks the > 'notify' op. > > Signed-off-by: Bin Meng > > --- > >

Re: [U-Boot] [PATCH 2/2] pci: Change the first CFG read to Vendor ID in enumeration

2018-10-18 Thread Simon Glass
On 9 October 2018 at 02:07, Z.q. Hou wrote: > Hi Simon and Bin, > > Do I need to send the standalone patch 1/2 in version 2? I don't think that is needed, no. - SImon > > Thanks, > Zhiqiang > >> -Original Message- >> From: s...@google.com On Behalf Of Simon Glass >> Sent: 2018年10月9日

Re: [U-Boot] [PATCH v3 10/11] configs: add DM_SPI config option

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > This patch adds CONFIG_DM_SPI for all m68k boards using > the cf_spi.c driver (DSPI module). > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - new patch > Changes for v3: > - none > --- > configs/M52277EVB_defconfig

Re: [U-Boot] [PATCH v3 04/31] dm: Add a new uclass driver for VirtIO transport devices

2018-10-18 Thread Simon Glass
On 15 October 2018 at 03:21, Bin Meng wrote: > This adds a new virtio uclass driver for “virtio” [1] family of > devices that are are found in virtual environments like QEMU, > yet by design they look like physical devices to the guest. > > The uclass driver provides child_pre_probe() and

Re: [U-Boot] [PATCH v2 14/14] travis: Add qemu-x86_64 target for test.py testing

2018-10-18 Thread Simon Glass
On 13 October 2018 at 21:52, Bin Meng wrote: > Add qemu-x86_64 to the list of targets we use for test.py runs. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: None > > .travis.yml | 8 > 1 file changed, 8 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v3 2/9] dm: pinctrl: Add pinctrl_get_pin_name and pinctrl_get_pins_count

2018-10-18 Thread Simon Glass
On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add pinctrl_get_pin_name() and pinctrl_get_pins_count() methods > to obtain pin's name and pin's muxing given a pin reference. > > This will be used by the new pinmux command. > > Signed-off-by: Patrice Chotard > --- > > Changes in v3: > -

Re: [U-Boot] [PATCH] travis: Add sandbox/clang-7 support

2018-10-18 Thread Simon Glass
Hi Tom, On 9 October 2018 at 05:35, Tom Rini wrote: > On Mon, Oct 08, 2018 at 09:40:51PM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 7 October 2018 at 12:20, Tom Rini wrote: >> > >> > To make testing with clang support easier, add sandbox/clang-7 >> > combination to our testing matrix. To

Re: [U-Boot] [PATCH v3 02/11] drivers: spi: cf_spi: add Kconfig option

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > This patch adds cf_spi DM Kconfig option. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - new patch > Changes for v3: > - re-put SOFT_SPI in place, options are out of alphabetical order > --- > drivers/spi/Kconfig | 6

Re: [U-Boot] Please pull u-boot-dm

2018-10-18 Thread Simon Glass
Hi, On 17 October 2018 at 11:14, Stephen Warren wrote: > On 10/16/18 8:33 PM, Bin Meng wrote: >> >> On Wed, Oct 17, 2018 at 7:01 AM Bin Meng wrote: >>> >>> >>> Hi Stephen, >>> >>> On Wed, Oct 17, 2018 at 12:27 AM Stephen Warren >>> wrote: On 10/15/18 5:43 PM, Bin Meng wrote:

Re: [U-Boot] [PATCH v3 06/11] m68k: architecture changes to support fdt

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > This patch adds fdt support to the m68k architecture. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - add OF_CONTROL, DM and DM_SERIAL as default config options > for all cpu families > Changes for v3: > - none > --- >

Re: [U-Boot] [PATCH v2 13/14] travis: Update to use QEMU 3.0.0 for testing

2018-10-18 Thread Simon Glass
On 13 October 2018 at 21:52, Bin Meng wrote: > This updates travis-ci to use QEMU 3.0.0 for testing. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - new patch to update to use QEMU 3.0.0 for travis-ci testing > > .travis.yml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [U-Boot] [PATCH v2 10/14] x86: tsc: Introduce config option for early timer frequency

2018-10-18 Thread Simon Glass
On 13 October 2018 at 21:52, Bin Meng wrote: > So far the TSC timer driver supports trying hardware calibration first > and using device tree as last resort for its running frequency as the > normal timer. > > However when it is used as the early timer, it only supports hardware > calibration and

Re: [U-Boot] [PATCH v3 03/11] drivers: spi: cf_spi: convert to driver model

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > Converting to driver model and removes non-dm code. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - removed non DM code part > - add default setup of CTAR registers > - add DT CTAR register setup support > Changes for v3: >

Re: [U-Boot] [PATCH v3 3/9] dm: uclass: Add uclass_foreach_dev_probe

2018-10-18 Thread Simon Glass
Hi Patrick, On 15 October 2018 at 03:01, Patrice CHOTARD wrote: > Hi Bin > > On 10/12/2018 12:13 PM, Bin Meng wrote: >> Hi Patrice, >> >> On Fri, Oct 12, 2018 at 3:51 PM Patrice CHOTARD >> wrote: >>> >>> Hi Bin >>> >>> On 10/11/2018 11:06 AM, Bin Meng wrote: Hi Patrice, On Tue,

Re: [U-Boot] [PATCH v3 01/31] dm: core: Allow uclass to set up a device's child after it is probed

2018-10-18 Thread Simon Glass
On 15 October 2018 at 03:20, Bin Meng wrote: > Some buses need to set up their child devices after they are probed. > Support a common child_post_probe() method for the uclass. > > With this change, the two APIs uclass_pre_probe_device() and > uclass_post_probe_device() become symmetric. > >

Re: [U-Boot] [RFC] fit: include uncompression into fit_image_load

2018-10-18 Thread Simon Glass
Hi Simon, On 16 October 2018 at 13:33, Simon Goldschmidt wrote: > Currently, only the kernel can be compressed in a FIT image. > By moving the uncompression logic to 'fit_image_load()', all types > of images can be compressed. > > This works perfectly for me when using a gzip'ed FPGA image in >

Re: [U-Boot] [PATCH v11 3/6] sandbox: smbios: Update to support sandbox

2018-10-18 Thread Simon Glass
Hi Alex, On 16 October 2018 at 06:55, Alexander Graf wrote: > > > On 15.10.18 16:17, Simon Glass wrote: >> At present this code casts addresses to pointers so cannot be used with >> sandbox. Update it to use mapmem instead. >> >> Signed-off-by: Simon Glass > > Unfortunately this won't work. The

Re: [U-Boot] [PATCH v3 04/11] drivers: serial: mcfuart: add DT support

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > This patch adds devicetree support to the mcfuart.c driver > and removes non DM code. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - remove non DM code > Changes for v3: > - none > --- > drivers/serial/mcfuart.c | 106

Re: [U-Boot] [PATCH 1/1] sandbox: remove stray DEBUG

2018-10-18 Thread Simon Glass
On 14 October 2018 at 12:45, Heinrich Schuchardt wrote: > DEBUG should not be defined in production code. > Change printf() to debug() where this writes a debug message. > > Signed-off-by: Heinrich Schuchardt > --- > arch/sandbox/cpu/cpu.c | 8 > 1 file changed, 4 insertions(+), 4

Re: [U-Boot] [PATCH v11 2/6] efi_loader: Drop setup_ok

2018-10-18 Thread Simon Glass
Hi, On 15 October 2018 at 11:16, Heinrich Schuchardt wrote: > On 10/15/2018 04:17 PM, Simon Glass wrote: >> This value is stored in data which appears to be read-only with sandbox on >> my Ubuntu 18.04 machine. In any case it is not good practice to store >> run-time data in a build-time linker

Re: [U-Boot] [PATCH v3 08/11] m68k: enabling long jumps on mcf54x5 SoCs

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > Growing of binary size asks for long assembly jumps. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - new patch > Changes for v3: > - none > --- > arch/m68k/cpu/mcf547x_8x/start.S | 6 -- > 1 file changed, 4

Re: [U-Boot] [PATCH v2 12/14] travis: Generate grub_x64.efi for qemu-x86_64

2018-10-18 Thread Simon Glass
On 13 October 2018 at 21:52, Bin Meng wrote: > grub_x86.efi is for 32-bit QEMU. Generate the 64-bit one. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - new patch to generate grub_x64.efi for qemu-x86_64 for travis-ci > > .travis.yml | 3 +++ > 1 file changed, 3 insertions(+)

Re: [U-Boot] [PATCH v3 02/31] test: dm: core: Add test case for uclass driver's child_post_probe()

2018-10-18 Thread Simon Glass
On 15 October 2018 at 03:20, Bin Meng wrote: > Add test case to cover uclass driver's child_post_probe() method. > > Signed-off-by: Bin Meng > > --- > > Changes in v3: None > Changes in v2: > - new patch to add test case for uclass driver's child_post_probe() > > include/dm/test.h | 1 + >

Re: [U-Boot] [RFC] fit: include uncompression into fit_image_load

2018-10-18 Thread Simon Glass
Hi Simon, On 17 October 2018 at 03:41, Simon Goldschmidt wrote: > On Wed, Oct 17, 2018 at 8:54 AM Alexander Graf wrote: >> >> >> >> On 16.10.18 21:33, Simon Goldschmidt wrote: >> > Currently, only the kernel can be compressed in a FIT image. >> > By moving the uncompression logic to

Re: [U-Boot] [PATCH 1/1] sandbox: README: setting environment variables

2018-10-18 Thread Simon Glass
On 14 October 2018 at 13:40, Heinrich Schuchardt wrote: > The command to set environment variables is setenv. > > Signed-off-by: Heinrich Schuchardt > --- > board/sandbox/README.sandbox | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) Reviewed-by: Simon Glass

Re: [U-Boot] efi_loader: handling of global data in *.efi files

2018-10-18 Thread Simon Glass
Hi Heinrich, On 13 October 2018 at 04:40, Heinrich Schuchardt wrote: > Hello Alex, hello Simon, > > in arch/arm/lib/elf_aarch64_efi.lds we merge the .bss section into the > .data section with a comment by Simon: > > "The EFI loader doesn't seem to like a .bss section, so we stick it into >

Re: [U-Boot] [PATCH v3 05/11] drivers: serial: mcfuart: add Kconfig option

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > This patch adds missing CONFIG_MCFUART to Kconfig. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - better Kconfig help > Changes for v3: > - none > --- > drivers/serial/Kconfig | 9 + > 1 file changed, 9

Re: [U-Boot] [PATCH v3 03/31] riscv: bootm: Add dm_remove_devices_flags() call to do_bootm_linux()

2018-10-18 Thread Simon Glass
On 15 October 2018 at 03:20, Bin Meng wrote: > This adds a call to dm_remove_devices_flags() to do_bootm_linux() > so that drivers that have one of the removal flags set (e.g. > DM_FLAG_ACTIVE_DMA_REMOVE) in their driver struct, may do some > last-stage cleanup before the OS is started. > > arm

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

2018-10-18 Thread Simon Glass
On 15 October 2018 at 01:24, Mario Six wrote: > The regmap functions currently assume that all register map accesses > have a data width of 32 bits, but there are maps that have different > widths. > > To rectify this, implement the regmap_raw_read and regmap_raw_write > functions from the Linux

Re: [U-Boot] [PATCH v3 09/11] configs: enable use of DT for all m68k boards

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > Enable DT usage for all m68k boards. To provide a > working single binary, the dts has been kept as embedded. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - new patch > Changes for v3: > - none > --- >

Re: [U-Boot] [PATCH 07/12] x86: put global data pointer into the .data section

2018-10-18 Thread Simon Glass
On 13 October 2018 at 09:06, Bin Meng wrote: > From: Heinrich Schuchardt > > On x86_64 the field global_data_ptr is assigned before relocation. As > sections for uninitialized global data (.bss) overlap with the relocation > sections (.rela) this destroys the relocation table and leads to

Re: [U-Boot] [PATCH v3 30/31] test: dm: virtio: Add test cases for virtio uclass

2018-10-18 Thread Simon Glass
On 15 October 2018 at 03:21, Bin Meng wrote: > Now that we have a sandbox virtio transport driver, add some test > cases to test virtio uclass driver. > > Signed-off-by: Bin Meng > > --- > > Changes in v3: > - Exclude VIRTIO_BLK in sandbox_noblk_defconfig build > > Changes in v2: > - new patch

Re: [U-Boot] [PATCH] watchdog: aspeed: restore default value of reset_mask

2018-10-18 Thread Simon Glass
On 16 October 2018 at 05:57, Cédric Le Goater wrote: > This is required for the current Linux kernel to reboot. It should also > probably be fixed in Linux. > > Signed-off-by: Cédric Le Goater > --- > arch/arm/include/asm/arch-aspeed/wdt.h | 9 + > drivers/watchdog/ast_wdt.c

Re: [U-Boot] [PATCH v2 03/14] x86: doc: Mention qemu-x86_64 support

2018-10-18 Thread Simon Glass
On 13 October 2018 at 21:52, Bin Meng wrote: > Currently only 32-bit U-Boot for QEMU x86 is documented. Mention > the 64-bit support. > > Signed-off-by: Bin Meng > Reviewed-by: Heinrich Schuchardt > > --- > > Changes in v2: > - some rewording in the doc per Heinrich's review comments > >

Re: [U-Boot] [PATCH v2 11/14] x86: quark: Specify X86_TSC_TIMER_EARLY_FREQ

2018-10-18 Thread Simon Glass
On 13 October 2018 at 21:52, Bin Meng wrote: > Specify X86_TSC_TIMER_EARLY_FREQ for Quark SoC so that TSC as > the early timer can be supported. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - Change the config option value to 400 which indicates 400 MHz > >

Re: [U-Boot] [PATCH 05/12] x86: qemu: enable CONFIG_SPL_DM_RTC

2018-10-18 Thread Simon Glass
On 13 October 2018 at 09:06, Bin Meng wrote: > From: Heinrich Schuchardt > > Since commit 380d4f787a3f ("rtc: Allow use of RTC in SPL and TPL") > qemu-x86_64_defconfig does not boot anymore. > > Fixes: 380d4f787a3f ("rtc: Allow use of RTC in SPL and TPL") > Signed-off-by: Heinrich Schuchardt >

Re: [U-Boot] [PATCH] drivers: serial: probe all serial devices

2018-10-18 Thread Simon Glass
Hi Bin, On 15 October 2018 at 06:28, Bin Meng wrote: > On Mon, Oct 15, 2018 at 8:15 PM Vabhav Sharma wrote: >> >> Serial subsystem search and probe only one first serial >> device and unable to use remaining available UART devices >> >> This patch changes the logic to probe all available serial

Re: [U-Boot] [PATCH 2/4] cmd: adc: add info on channel mask

2018-10-18 Thread Simon Glass
Hi Fabrice, On 11 October 2018 at 10:00, Fabrice Gasnier wrote: > Enhance adc info command to report also the channel mask. > > Signed-off-by: Fabrice Gasnier > --- > > cmd/adc.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/cmd/adc.c b/cmd/adc.c > index

Re: [U-Boot] [PATCH 1/1] x86: qemu: enable CONFIG_SPL_DM_RTC

2018-10-18 Thread Simon Glass
On 11 October 2018 at 13:50, Heinrich Schuchardt wrote: > Since commit 380d4f787a3f ("rtc: Allow use of RTC in SPL and TPL") > qemu-x86_64_defconfig does not boot anymore. > > Fixes: 380d4f787a3f ("rtc: Allow use of RTC in SPL and TPL") > Signed-off-by: Heinrich Schuchardt > --- >

Re: [U-Boot] [PATCH v3 07/11] m68k: add initial dts files for all m68k boards

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > This patch adds basic dts files for all the m68k boards. > > Signed-off-by: Angelo Dureghello > --- > Changes for v2: > - new patch > Changes for v3: > - none > --- > arch/m68k/dts/M5208EVBE.dts | 22 +++ >

Re: [U-Boot] [PATCH v3 11/11] configs: remove CONFIG_SYS_DSPI_XX references

2018-10-18 Thread Simon Glass
On 13 October 2018 at 16:34, Angelo Dureghello wrote: > This patch removes CONFIG_SYS_DSPI_XX options from > include/configs "m68k" .h board files, since CTAR > registers are now set with default values in the cf_spi > driver initialization, and configurable by devicetree. > > Note, these options

Re: [U-Boot] [PATCH v3 4/9] cmd: pinmux: Add pinmux command

2018-10-18 Thread Simon Glass
On 9 October 2018 at 07:31, Patrice Chotard wrote: > pinmux command allows to : > - list all pin-controllers available on platforms > - select a pin-controller > - display the muxing of all pins of the current pin-controller >or all pin-controllers depending of given options > >

Re: [U-Boot] [PATCH 3/4] cmd: adc: print single conversion also in uV

2018-10-18 Thread Simon Glass
On 11 October 2018 at 10:00, Fabrice Gasnier wrote: > Use newly introduced adc_raw_to_uV() API to print conversion result > both as raw value and micro-volts by default. > > Signed-off-by: Fabrice Gasnier > --- > > cmd/adc.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) >

Re: [U-Boot] [PATCH v3 1/9] dm: pinctrl: Add get_pin_muxing() ops

2018-10-18 Thread Simon Glass
Hi Patrice, On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add get_pin_muxing() which allows to display the muxing > of a given pin belonging to a pin-controller. > > Signed-off-by: Patrice Chotard > --- > > Changes in v3: > - Replace const char **buf parameter by char *buf, int size

Re: [U-Boot] [PATCH v2 02/14] x86: Ensure no instruction sets of MMX/SSE are generated in 64-bit build

2018-10-18 Thread Simon Glass
On 13 October 2018 at 21:52, Bin Meng wrote: > With the '-march=core2' fix, it seems that we have some luck that > the 64-bit U-Boot boots again. However if we examine the disassembly > codes there are still SSE instructions elsewhere which means passing > cpu type to GCC is not enough to prevent

Re: [U-Boot] [PATCH 5/6] serial: ns16550: fix debug uart putc called before init

2018-10-18 Thread Simon Glass
On 9 August 2018 at 13:04, Simon Goldschmidt wrote: > If _debug_uart_putc() is called before _debug_uart_init(), the > ns16550 debug uart driver hangs in a tight loop waiting for the > tx FIFO to get empty. > > As this can happen via a printf sneaking in before the port calls > debug_uart_init(),

Re: [U-Boot] [PATCH] debug uart: don't print before initialization

2018-10-18 Thread Simon Glass
Hi Simon, On 17 October 2018 at 14:02, Simon Goldschmidt wrote: > > > Simon Goldschmidt schrieb am Mi., 10. Okt. > 2018, 22:16: >> >> On Wed, Oct 10, 2018 at 10:03 PM Simon Glass wrote: >> > >> > Hi Simon, >> > >> > On 10 October 2018 at 07:28, Simon Goldschmidt >> > wrote: >> > > >> > > +

Re: [U-Boot] [PATCH 4/4] cmd: adc: add an option to scan some or all available channels

2018-10-18 Thread Simon Glass
Hi Fabrice, On 11 October 2018 at 10:00, Fabrice Gasnier wrote: > Add new option to 'adc' command to do a single scan of: > - some channel(s), using mask argument > - all channels available on an ADC device (when optional mask is omitted). > > Signed-off-by: Fabrice Gasnier > --- > > cmd/adc.c

Re: [U-Boot] [PATCH v3 9/9] pinctrl: sandbox: Add get_pin_muxing ops support

2018-10-18 Thread Simon Glass
On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add get_pin_mux ops support to display the pin muxing > description of the sandbox_pins[] > > Signed-off-by: Patrice Chotard > --- > > Changes in v3: > - Fix typo > > Changes in v2: None > > drivers/pinctrl/pinctrl-sandbox.c | 15

Re: [U-Boot] [U-Boot,11/45] rtc: Allow use of RTC in SPL and TPL

2018-10-18 Thread Simon Glass
Hi Bin, On 12 October 2018 at 20:46, Bin Meng wrote: > Hi Heinrich, > > On Fri, Oct 12, 2018 at 3:56 AM Heinrich Schuchardt > wrote: >> >> On 10/11/2018 09:21 PM, Heinrich Schuchardt wrote: >> > >> > On 10/01/2018 08:22 PM, Simon Glass wrote: >> >> Add Kconfig options so that the RTC can be

Re: [U-Boot] [PATCH 0/4] Add adc uclass's channel mask and conversion helpers and enhance adc cmd

2018-10-18 Thread Simon Glass
Hi Fabrice, On 11 October 2018 at 10:00, Fabrice Gasnier wrote: > This series adds ADC uclass's helpers to > - retrieve the ADC device available channels > - ease conversions to standard unit (µV) > - enhance 'adc' command to print information on available ADC channels > - enhance 'adc' command

Re: [U-Boot] [PATCH v3 7/9] pinctrl: stm32: Add get_pin_muxing() ops

2018-10-18 Thread Simon Glass
Hi Patrice, On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add get_pin_muxing() ops to obtain the pin muxing description > a given pin index. > > Signed-off-by: Patrice Chotard > --- > > Changes in v3: None > Changes in v2: None > > drivers/pinctrl/pinctrl_stm32.c | 77 >

Re: [U-Boot] [PATCH] syscon: reset node list syscon_list after relocation

2018-10-18 Thread Simon Glass
Hi Patrick, On 12 October 2018 at 09:26, Patrick Delaunay wrote: > Reset the list head after the reallocation because the list syscon_list > use allocated pointer and they are no more valid. > This patch avoid issue (crash) when syscon_node_to_regmap() is called > before and after reallocation.

Re: [U-Boot] [PATCH v3 6/9] pinctrl: stm32: Add get_pin_name() ops

2018-10-18 Thread Simon Glass
On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add get_pin_name ops to obtain a pin name given a > pin index of a specified pin-controller. > > Signed-off-by: Patrice Chotard > --- > > Changes in v3: None > Changes in v2: None > > drivers/pinctrl/pinctrl_stm32.c | 47 >

Re: [U-Boot] [PATCH v3 5/9] pinctrl: stm32: Add get_pins_count() ops

2018-10-18 Thread Simon Glass
On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add get_pins_count ops to obtain the number of pins > owns by a pin-controller. > On STM32 SoCs bindings, each pin-controller owns > several gpio banks. Each GPIO bank can own up to 16 pins. > > To obtain the total pins count, walk through each

Re: [U-Boot] [PATCH v6 21/34] imx8: cpu: add uclass based CPU driver

2018-10-18 Thread Peng Fan
Hi Anatolij, > -Original Message- > From: Anatolij Gustschin [mailto:ag...@denx.de] > Sent: 2018年10月18日 20:28 > To: u-boot@lists.denx.de; Peng Fan ; sba...@denx.de > Subject: [PATCH v6 21/34] imx8: cpu: add uclass based CPU driver > > print_cpuinfo() in board init code requires uclass

Re: [U-Boot] [PATCH v6 20/34] imx8: cpu: add function for reading FEC MAC from fuse

2018-10-18 Thread Peng Fan
Hi Anatolij, > -Original Message- > From: Anatolij Gustschin [mailto:ag...@denx.de] > Sent: 2018年10月18日 20:28 > To: u-boot@lists.denx.de; Peng Fan ; sba...@denx.de > Subject: [PATCH v6 20/34] imx8: cpu: add function for reading FEC MAC from > fuse > > FEC driver requires

Re: [U-Boot] Errors when starting sandbox

2018-10-18 Thread Simon Glass
Hi Joe, On 1 October 2018 at 16:01, Joe Hershberger wrote: > > On Mon, Oct 1, 2018 at 4:27 PM, Simon Glass wrote: > > Hi Joe, > > > > On 1 October 2018 at 15:14, Joe Hershberger wrote: > >> > >> Hi Simon, > >> > >> On Mon, Oct 1, 2018 at 12:32 PM, Simon Glass wrote: > >> > Hi Joe, > >> > > >>

Re: [U-Boot] [PATCH 0/2] arm: lpc32xx: create platform specific Kconfig file

2018-10-18 Thread Vladimir Zapolskiy
Hi Tom, On 09/17/2018 09:43 PM, Vladimir Zapolskiy wrote: > There is a need to introduce ARCH_LPC32XX build config symbol > to improve selection of build options for drivers, which are > specific to NXP LPC32xx platform only. At the same time the > new Kconfig file and sections can be used to

[U-Boot] [PATCH] mtd: nand: lpc32xx slc: disable DMA support in SPL builds

2018-10-18 Thread Vladimir Zapolskiy
Testing and analysis shows that at the moment LPC32xx NAND SLC driver can not get PL080 DMA backbone support in SPL build, because SPL NAND loaders operate with subpage (ECC step to be precisely) reads, and this is not supported in the NAND SLC + DMA + hardware ECC calculation bundle. The change

[U-Boot] [PATCH] mtd: nand: lpc32xx mlc: predefine number of NAND chips to support

2018-10-18 Thread Vladimir Zapolskiy
Build option CONFIG_SYS_MAX_NAND_CHIPS is used by NXP LPC32xx NAND MLC driver only, as a preparation for potential removal or replacement of the option the change predefines CONFIG_SYS_MAX_NAND_CHIPS to 1, same value is used by the single user Work Microwave Work 92105 board, thus it will be safe

[U-Boot] [PATCH v7 30/34] serial: lpuart: support uclass clk api

2018-10-18 Thread Anatolij Gustschin
From: Peng Fan Modify most APIs to use udevice as the first parameter, then it will be easy to get the clk reference by using udevice pointer. Use uclass api to get lpuart clk when CONFIG_CLK is enabled. Signed-off-by: Peng Fan Signed-off-by: Anatolij Gustschin Cc: Stefano Babic --- Changes

Re: [U-Boot] [PATCH] ARM: Samsung: Add Exynos5422-based Odroid HC2 support

2018-10-18 Thread Dirk Meul
Odroid HC2 board is based on Odroid XU4 board, like the Odroid HC1. The linux kernel does not provide a hc2 DTB so the hc1 DTB is also used for the Odroid HC2. Signed-off-by: Dirk Meul --- board/samsung/common/exynos5-dt-types.c | 16 +--- board/samsung/common/exynos5-dt.c |

[U-Boot] socfpga cyclone5 dts

2018-10-18 Thread goldsi...@gmx.de
Hi Marek, I was playing with updating the dts files for cyclone5 (and arria5) from current kernel sources, but I found that the kernel as 4 boards that U-Boot doesn't have and U-Boot has 6 boards that the kernel doesn't have. How should I proceed here? Should I copy new boards from the

[U-Boot] efi-next: Kconfig: error: recursive dependency detected!

2018-10-18 Thread Heinrich Schuchardt
Hello Alex, in branch efi-next Kconfig has a recursive dependency: $ make qemu_arm64_defconfig drivers/usb/Kconfig:1:error: recursive dependency detected! drivers/usb/Kconfig:1: symbol USB is selected by DISTRO_DEFAULTS Kconfig:89: symbol DISTRO_DEFAULTS depends on USB For a resolution

Re: [U-Boot] [PATCH 1/3] pwm: sunxi: fix off-by-one that prevented PWM to use prescaler bypass

2018-10-18 Thread Anatolij Gustschin
On Tue, 16 Oct 2018 21:56:33 -0700 Vasily Khoruzhick anars...@gmail.com wrote: > Fix off-by-one that prevented PWM driver to use prescaler bypass. > Without this change prescaler is always enabled. > > Signed-off-by: Vasily Khoruzhick > --- > drivers/pwm/sunxi_pwm.c | 2 +- > 1 file changed, 1

Re: [U-Boot] socfpga cyclone5 dts

2018-10-18 Thread Marek Vasut
On 10/18/2018 10:20 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:marek.va...@gmail.com>> > schrieb am Do., 18. Okt. 2018, 22:15: > > On 10/18/2018 09:28 PM, Simon Goldschmidt wrote: > > Hi Marek, > > Hi, > > > I was playing with updating the dts files for cyclone5

Re: [U-Boot] socfpga cyclone5 dts

2018-10-18 Thread Simon Goldschmidt
Marek Vasut schrieb am Do., 18. Okt. 2018, 22:15: > On 10/18/2018 09:28 PM, Simon Goldschmidt wrote: > > Hi Marek, > > Hi, > > > I was playing with updating the dts files for cyclone5 (and arria5) from > > current kernel sources, but I found that the kernel as 4 boards that > > U-Boot doesn't

Re: [U-Boot] socfpga cyclone5 dts

2018-10-18 Thread Marek Vasut
On 10/18/2018 09:28 PM, Simon Goldschmidt wrote: > Hi Marek, Hi, > I was playing with updating the dts files for cyclone5 (and arria5) from > current kernel sources, but I found that the kernel as 4 boards that > U-Boot doesn't have and U-Boot has 6 boards that the kernel doesn't have. Thanks

Re: [U-Boot] [PATCH] arm: ti: boot: Remove environment partition

2018-10-18 Thread Bajjuri, Praneeth
On 10/18/2018 2:47 PM, Sam Protsenko wrote: Remove "environment" partition and do not read it when booting Android from eMMC. We don't use this partition anymore, so this is just an unintentional leftover. Earlier we were reading dtb file from "environment" partition to feed it further to

[U-Boot] [PATCH 1/1] efi_loader: fix typos

2018-10-18 Thread Heinrich Schuchardt
Fix typos in EFI subsystem comments. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c| 2 +- lib/efi_loader/efi_bootmgr.c | 2 +- lib/efi_loader/efi_console.c | 4 ++-- lib/efi_loader/efi_device_path_to_text.c | 8

[U-Boot] [PATCH] arm: ti: boot: Remove environment partition

2018-10-18 Thread Sam Protsenko
Remove "environment" partition and do not read it when booting Android from eMMC. We don't use this partition anymore, so this is just an unintentional leftover. Earlier we were reading dtb file from "environment" partition to feed it further to kernel. Now we are using dtb from FIT image ("boot"

[U-Boot] socfpga cyclone5 dts

2018-10-18 Thread Simon Goldschmidt
Hi Marek, I was playing with updating the dts files for cyclone5 (and arria5) from current kernel sources, but I found that the kernel as 4 boards that U-Boot doesn't have and U-Boot has 6 boards that the kernel doesn't have. How should I proceed here? Should I copy new boards from the kernel?

[U-Boot] [PATCH] mmc: dw_mmc: fix dwmci_data_transfer not filling data buffer

2018-10-18 Thread paweljarosz3691
From: Paweł Jarosz In current version of the driver when data size is low (observed with 2 bytes or 16 bytes) like in case when mmc tries to read card capabilities or switch card mode, data buffer in function dwmci_data_transfer not being filled. The reason is that interrupt Receive FIFO Data

[U-Boot] [PATCH] usb: ohci: Add OHCI PCI driver

2018-10-18 Thread Marek Vasut
Add small OHCI PCI driver for USB 1.1 OHCI controllers on PCI bus. This driver matches only on PCI class (serial-ohci) and requires DM-USB ; any sort of deprecated legacy usage is not supported. Signed-off-by: Marek Vasut --- drivers/usb/host/Kconfig| 6 drivers/usb/host/Makefile |

[U-Boot] [PATCH] cmd: fdt: Fix fdt address information after the movement

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch fixes the address information of fdt. wrong case: => fdt addr 0x4800 => fdt move 0x4800 0x4100 0xa000 => fdt addr The address of the fdt is 4800 Active address in this case is 0x4100. Signed-off-by: Hiroyuki Yokoyama Signed-off-by:

[U-Boot] [PATCH 6/9] ARM: rmobile: Tidy up SYSC_PWRx define of 3DG on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama Tidy up unused definition related to power control of 3DG. Signed-off-by: Hiroyuki Yokoyama --- board/renesas/draak/draak.c | 6 -- board/renesas/salvator-x/salvator-x.c | 6 -- board/renesas/ulcb/ulcb.c | 6 -- 3 files changed, 18

[U-Boot] [PATCH 3/9] ARM: rmobile: Remove TMU0/TMU1 settings on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama U-Boot uses ARM generic timer, TMU0 and TMU1 are not used, remove them. Signed-off-by: Hiroyuki Yokoyama --- board/renesas/draak/draak.c | 5 - board/renesas/eagle/eagle.c | 5 - board/renesas/ebisu/ebisu.c | 5 -

[U-Boot] [PATCH 4/9] ARM: rmobile: Remove Watchdog and CPG settings on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This code is unnecessary, because these registers are set by the initial program loader (IPL). Signed-off-by: Hiroyuki Yokoyama --- board/renesas/draak/draak.c | 13 - board/renesas/salvator-x/salvator-x.c | 13 -

[U-Boot] [PATCH 7/9] ARM: rmobile: Enable cache command on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch enables the cache command, mostly for convenience of testing. Signed-off-by: Hiroyuki Yokoyama Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/Kconfig| 1 + configs/r8a7795_salvator-x_defconfig | 1 + include/configs/draak.h | 1 -

[U-Boot] [PATCH 2/9] ARM: rmobile: Remove console parameter from bootargs on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch removes 'console=' argument, because kernel uses stdout-path as parameter. Signed-off-by: Hiroyuki Yokoyama --- configs/r8a7795_salvator-x_defconfig | 2 +- configs/r8a7795_ulcb_defconfig| 2 +- configs/r8a77965_salvator-x_defconfig | 2 +-

[U-Boot] [PATCH 8/9] ARM: rmobile: Fix module clock controls refer status on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama When referring to the MSTPSR register, it contains the clock status of SYS, RT, SECURE, and controlling SMSTPCR using this value has the problem of being affected by the RT and SECURE status.This patch changes the reference register to SMSTPCR. Signed-off-by: Hiroyuki

[U-Boot] [PATCH 5/9] ARM: rmobile: salvator-x: Remove GSX clock force supply

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama GSX clock force supply code is unnecessary at U-Boot, because GSX clock control is supported at the kernel driver. Signed-off-by: Hiroyuki Yokoyama --- board/renesas/salvator-x/salvator-x.c | 12 1 file changed, 12 deletions(-) diff --git

[U-Boot] [PATCH 1/9] ARM: rmobile: Fix CPGWPR Address define and Settings on Gen3

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch fixes the write-protect control of CPG. Signed-off-by: Hiroyuki Yokoyama --- board/renesas/draak/draak.c | 4 ++-- board/renesas/salvator-x/salvator-x.c | 4 ++-- board/renesas/ulcb/ulcb.c | 4 ++-- 3 files changed, 6 insertions(+), 6

[U-Boot] [PATCH 9/9] ARM: dts: rmobile: r8a77990: Add USB2.0(EHCI) DT nodes on Ebisu

2018-10-18 Thread Marek Vasut
From: Hiroyuki Yokoyama Add device tree nodes for USB2.0(EHCI) on R-Car E3 Ebisu board. Signed-off-by: Hiroyuki Yokoyama --- arch/arm/dts/r8a77990-ebisu.dts | 16 ++ arch/arm/dts/r8a77990.dtsi| 38 +++

[U-Boot] [PATCH] fdt: Fix uncompress_blob() for U-Boot proper

2018-10-18 Thread Marek Vasut
When U-Boot proper is compiled with CONFIG_MULTI_DTB_FIT and tries to call uncompress_blob(), it fails with -ENOTSUPP. This is because the full implementation of this function which includes compression is available only in SPL. In U-Boot proper or if the compression is not enabled, the blob is

[U-Boot] [PATCH] ARM: dts: rmobile: Build -u-boot variants of DTs

2018-10-18 Thread Marek Vasut
Build the -u-boot variants of the device trees so they can be included in Multi-DTB fitImage, which in turn allows us to build single U-Boot image for multiple boards. Signed-off-by: Marek Vasut --- arch/arm/dts/Makefile | 16 1 file changed, 8 insertions(+), 8 deletions(-)

[U-Boot] [PATCH] ARM: rmobile: Drop PRR syscon driver

2018-10-18 Thread Marek Vasut
The PRR syscon driver is available too late for Multi DTB build of U-Boot. Replace it with simple check whether a platform is Gen3 or not and produce an address of the PRR. Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/cpu_info-rcar.c | 61 --- 1 file changed, 8

[U-Boot] [BUG] H2+/H3 : SPI driver : error: ‘AHB_GATE_OFFSET_SPI0’ undeclared (first use in this function)

2018-10-18 Thread Arjan van Vught
Version: u-boot-2018.09 Configuration : orangepi_zero_defconfig In file included from include/wait_bit.h:15:0, from drivers/spi/sun4i_spi.c:26: drivers/spi/sun4i_spi.c: In function 'sun4i_spi_enable_clock':   LD  drivers/usb/musb-new/built-in.o

Re: [U-Boot] [U-Boot, 3/3] pwm: sunxi: choose best prescaler to improve PWM resolution

2018-10-18 Thread Vagrant Cascadian
On 2018-10-16, Vasily Khoruzhick wrote: > Choose best prescaler to improve PWM resolution. Without this change > driver chooses first prescaler that gives us period value within > range, but it could be not the best one. > > Signed-off-by: Vasily Khoruzhick Fixes LCD backlight issues with the

Re: [U-Boot] [PATCH v3 5/5] sunxi: DT: add support for Pinebook

2018-10-18 Thread Vagrant Cascadian
On 2018-10-17, Vasily Khoruzhick wrote: > Pinebook is a laptop produced by Pine64, with USB-connected keyboard, > USB-connected touchpad and an eDP LCD panel connected via a RGB-eDP > bridge from Analogix. > > Signed-off-by: Vasily Khoruzhick > Acked-by: Maxime Ripard > Tested-by: Maxime Ripard

Re: [U-Boot] [PATCH v2 02/19] dm: i2c: Add dm_i2c_probe_device() to test the presence of a chip

2018-10-18 Thread Jean-Jacques Hiblot
On 12/10/2018 02:00, Simon Glass wrote: Hi Jean-Jacques, On 11 October 2018 at 06:01, Jean-Jacques Hiblot wrote: Hi Simon, thanks for the reviews. On 11/10/2018 05:13, Simon Glass wrote: Hi Jean-Jacques, On 5 October 2018 at 10:45, Jean-Jacques Hiblot wrote: In a non-DM environment,

Re: [U-Boot] [RFC PATCH v2 2/3] tools: Add a tool to get a list of defconfigs based on filters

2018-10-18 Thread Jean-Jacques Hiblot
On 09/10/2018 18:20, Simon Glass wrote: Hi Jean-Jacques, On 3 October 2018 at 07:53, Jean-Jacques Hiblot wrote: The possible filters are "arch", "vendor", "soc", "cpu" and "arch". The list of all the defconfigs is read from boards.cfg. If this file doesn't exist, then tools/genboardscfg.py

[U-Boot] [PATCH] i2c: imx_lpi2c: fix typo and register base address format

2018-10-18 Thread Anatolij Gustschin
Output the register base address in hex notation. Signed-off-by: Anatolij Gustschin --- drivers/i2c/imx_lpi2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c index 6c343072fb..4586d4331f 100644 ---

Re: [U-Boot] [PATCH v3 1/5] mmc: sunxi: add support for automatic delay calibration

2018-10-18 Thread Andre Przywara
On Wed, 17 Oct 2018 22:56:47 -0700 Vasily Khoruzhick wrote: > A64 and H6 support automatic delay calibration and Linux driver uses > it instead of hardcoded delays. Add support for it to u-boot driver. > > Fixes eMMC instability on Pinebook > > Signed-off-by: Vasily Khoruzhick > Acked-by:

Re: [U-Boot] [PATCH v3 2/5] dm: video: bridge: don't fail to activate bridge if reset or sleep GPIO is missing

2018-10-18 Thread Andre Przywara
On Wed, 17 Oct 2018 22:56:48 -0700 Vasily Khoruzhick wrote: > Both GPIOs are optional, so we shouldn't fail if any is missing. > Without this fix reset is not deasserted if sleep GPIO is missing. > > Signed-off-by: Vasily Khoruzhick > Acked-by: Maxime Ripard > Tested-by: Maxime Ripard > Cc:

[U-Boot] [PATCH] gpio: pca953x: Clear the polarity invert register at init

2018-10-18 Thread Anatolij Gustschin
From: Ye Li The pca953x_gpio driver uses default value of polarity inversion register. For some devices like PCA9557 and MAX7310, their polarity inversion register default value is 0xf0. So for high 4 ports, when reading their values, the values are inverted as the actual level. This patch

  1   2   >