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

2018-12-05 Thread Alexander Graf
On 26.10.18 20:00, Philipp Tomsich wrote: > > >> On 26.10.2018, at 19:17, Manivannan Sadhasivam >> wrote: >> >> On Fri, Sep 28, 2018 at 12:32:57AM +0530, Manivannan Sadhasivam wrote: >>> This patchset adds support for Rock960 and Ficus 96Boards from Vamrs. >>> Since both boards share most of

Re: [U-Boot] [PATCH] sunxi: H6: DRAM: avoid memcpy() on MMIO registers

2018-12-05 Thread Maxime Ripard
On Thu, Dec 06, 2018 at 12:02:20AM +, Andre Przywara wrote: > Using memcpy() for MMIO operations is, however tempting, not a good idea: > It depends on the specific implementation of memcpy, also lacks barriers. > In this particular case the first registers were written using 64-bit > writes, a

Re: [U-Boot] [PATCH 20/21] Add inttypes.h

2018-12-05 Thread Masahiro Yamada
On Sat, Nov 24, 2018 at 1:43 PM Simon Glass wrote: > > Even if U-Boot does not use this, some libraries do. Add back this header > file so that the build does not fall back to using the host version, which > may include stdint.h and break the build due to conflicts with uint64_t, > etc. The roo

Re: [U-Boot] [PATCH v2 0/7] Add USB boot to HS DRA7xx/AM57xx

2018-12-05 Thread Lokesh Vutla
On 05/12/18 11:21 PM, Andrew F. Davis wrote: Hello all, This series adds USB boot support to HS DRA7xx/AM57xx platforms. We start by cleaning up DFU boot in SPL support. What is done in the first patch for DFU, if acceptable, should be done to the other boot modes. The 4th patch is needed as

Re: [U-Boot] [PATCH 00/19] riscv: Adding RISC-V CPU and timer driver

2018-12-05 Thread Anup Patel
Hi Bin, On Tue, Nov 13, 2018 at 1:47 PM Bin Meng wrote: > > This adds DM drivers to support RISC-V CPU and timer. > > The U-Boot RISC-V SBI support is still working in progress. > Some patches in this series like adding CSR numbers, exception > numbers, are prerequisites for the SBI implementatio

Re: [U-Boot] network not work with u-boot

2018-12-05 Thread cleanc...@163.com
Hi Wolfgang, Thank you so much, I managed to upload the kernel image by using a tftp server in my desktop. I thought the tftp was a kind of ftp with a naming difference... As for the configuration item ipaddr1, I still cannot delete it, I am not happy about that. Do you or anyone else know how

Re: [U-Boot] [RFC PATCH v2 05/11] mtd: spi: Port SPI NOR framework from Linux

2018-12-05 Thread Simon Goldschmidt
Am 04.12.2018 um 13:26 schrieb Vignesh R: Current U-Boot SPI NOR support (sf layer) is quite outdated as it does not support 4 byte addressing opcodes, SFDP table parsing and different types of quad mode enable sequences. Many newer flashes no longer support BANK registers used by sf layer to a a

[U-Boot] [PATCH] dm: Tidy up 'dm tree' output when there are many devices

2018-12-05 Thread Simon Glass
At present the 'Index' column assumes there is only one digit. But on some devices (e.g. snow) there are a lot of regulators and GPIO banks. Adjust the output to allow for two digits without messing up the display. Also capatalise the heading to match. Fixes: 5197dafc42 (dm: core: Widen the dump

Re: [U-Boot] Pull request: u-boot-spi/master

2018-12-05 Thread Tom Rini
On Thu, Dec 06, 2018 at 12:53:32AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. I've done a short summary this time, can you please include one in the future? Thanks. > > thanks, > Jagan. > > The following changes since commit a3e1653ddeb02f39481eba572275016171e9670c: > > M

Re: [U-Boot] [PATCH] fdt: Add warning about CONFIG_OF_EMBED

2018-12-05 Thread Tom Rini
On Wed, Dec 05, 2018 at 06:57:08AM -0700, Simon Glass wrote: > This option has crept into use with some boards. Add a warning to try to > prevent this. > > As an example: >https://lists.denx.de/pipermail/u-boot/2017-September/304966.html > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini

Re: [U-Boot] [PATCH] arm: dts: am33xx: Sync dts with Linux 4.20.0

2018-12-05 Thread Tom Rini
On Wed, Dec 05, 2018 at 02:53:42PM +0100, Felix Brack wrote: > This patch synchronizes the am33xx SoC specific files with those from > Linux 4.20.0. Hence all board maintainers of am33xx based boards are > on the cc list. > The main purpose of this patch is to prevent further diverging of the > dt

Re: [U-Boot] [PATCH 1/7] cmd: part: Add 'number' sub-command

2018-12-05 Thread Simon Glass
On Tue, 27 Nov 2018 at 12:57, Ruslan Trofymenko wrote: > > This sub-command serves for getting the partition index from > partition name. Also it can be used to test the existence of specified > partition. > > Signed-off-by: Ruslan Trofymenko > --- > cmd/part.c | 16 +++- > 1 file ch

Re: [U-Boot] [PATCH 3/3] travis: Use buildman for building with clang

2018-12-05 Thread Tom Rini
On Wed, Dec 05, 2018 at 05:35:28AM -0700, Simon Glass wrote: > Now that buildman supports clang, use it. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.den

Re: [U-Boot] [PATCH 3/7] common: Implement A/B metadata

2018-12-05 Thread Simon Glass
Hi Ruslan, On Tue, 27 Nov 2018 at 12:57, Ruslan Trofymenko wrote: > > This patch determines the A/B-specific bootloader message structure > that is the basis for implementation of recovery and A/B update > functions. A/B metadata is stored in this structure and used to decide > which slot should

Re: [U-Boot] [PATCH 2/3] buildman: Add support for building with clang

2018-12-05 Thread Tom Rini
On Wed, Dec 05, 2018 at 05:35:27AM -0700, Simon Glass wrote: > Add a -O option which allows building with clang. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@l

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

2018-12-05 Thread Tom Rini
On Wed, Dec 05, 2018 at 03:12:29PM +0800, Rick Chen wrote: > Hi Tom, > > Please pull some riscv update: > 1. Fix BBL may be corrupted problem. > 2. Support U-Boot run in S-mode. > > https://travis-ci.org/rickchen36/u-boot-riscv/builds/463646974 > > Thanks > > Rick > > > The following changes

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

2018-12-05 Thread Tom Rini
On Wed, Dec 05, 2018 at 01:53:41AM +0100, Anatolij Gustschin wrote: > Hi Tom, > > please pull some video updates for v2019.01. > > https://travis-ci.org/vdsao/u-boot-video/builds/463489627 > > Thanks, > Anatolij > > The following changes since commit 8f5bfb7615e82ffccebf79530b08034f81e56268: >

Re: [U-Boot] [PATCH] sf: prevent clean_bar overwriting error codes

2018-12-05 Thread Simon Glass
On Tue, 27 Nov 2018 at 13:09, Simon Goldschmidt wrote: > > In spi_flash.c, if CONFIG_SPI_FLASH_BAR is enabled, the function > 'clean_bar' makes sure that the Bank Address Register is reset at the > end of functions using it. > > However, if this is enabled, those functions may return zero (success

Re: [U-Boot] [PATCH 6/7] doc: android: Add simple guide for A/B updates

2018-12-05 Thread Simon Glass
Hi, On Tue, 27 Nov 2018 at 12:57, Ruslan Trofymenko wrote: > > Add a short documentation for A/B enablement and 'android_ab_select' > command usage. > > Signed-off-by: Ruslan Trofymenko > --- > doc/README.android-ab | 67 > +++ > 1 file changed,

Re: [U-Boot] [PATCH 5/7] test/py: Add base test case for A/B updates

2018-12-05 Thread Simon Glass
On Tue, 27 Nov 2018 at 12:57, Ruslan Trofymenko wrote: > > Add sandbox test for 'android_ab_select' command. > > Test: ./test/py/test.py --bd sandbox --build -k test_ab > > Signed-off-by: Ruslan Trofymenko > --- > configs/sandbox_defconfig | 2 ++ > test/py/tests/test_ab.py | 74 > +++

Re: [U-Boot] [PATCH 2/7] disk: part: Extend API to get partition info

2018-12-05 Thread Simon Glass
Hi Ruslan, On Tue, 27 Nov 2018 at 12:57, Ruslan Trofymenko wrote: > > This patch adds part_get_info_by_dev_and_name_or_num() function which > allows us to get partition info from its number or name. Partition of > interest is specified by string like "device_num:partition_number" or > "device_num

Re: [U-Boot] [PATCH] serial: serial_stm32: Add reset support

2018-12-05 Thread Simon Glass
On Tue, 4 Dec 2018 at 06:11, Patrice Chotard wrote: > > In some cases, UART is configured by early boot stage. > To be sure of the initial state of UART and to avoid > spurious chars on console, reset the serial block before > configuring it. > > Signed-off-by: Patrice Chotard > --- > > drivers/

Re: [U-Boot] [RESENT PATCH 1/2] rockchip: rk3128: use ROCKCHIP_BOOT_MODE_REG to update reboot flag

2018-12-05 Thread Simon Glass
Hi Philipp, On Thu, 29 Nov 2018 at 13:57, Philipp Tomsich wrote: > > Simon, > > On 29.11.2018, at 19:43, Simon Glass wrote: > > Hi Kever, > > On Wed, 28 Nov 2018 at 18:10, Kever Yang wrote: > > > Hi Philipp, > > > On 11/28/2018 05:07 PM, Philipp Tomsich wrote: > > Kever, > > On 28.11.2018, at 0

Re: [U-Boot] Question regarding early pinctrl and driver model in u-boot

2018-12-05 Thread Simon Glass
Hi Lukasz, On Mon, 3 Dec 2018 at 15:13, Lukasz Majewski wrote: > > Dear All, > > I've stumbled upon a following issue: > > - I do have a vybrid SoC which is not using SPL. It only uses U-boot > proper (u-boot.vyb). > > - In the board_early_init_f() (when we are still in SRAM) I do perform > p

Re: [U-Boot] [PATCH] common: fdt_support: print hexadecimal numbers in debug

2018-12-05 Thread Simon Glass
On Wed, 5 Dec 2018 at 02:46, Sekhar Nori wrote: > > We usually deal with hexadecimal addresses and sizes in > device-tree. Its much easier if debug logs print hexadecimal > values too. > > Signed-off-by: Sekhar Nori > --- > common/fdt_support.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 dele

Re: [U-Boot] [RFC PATCH] spl/tpl: change banner into upper case

2018-12-05 Thread Simon Glass
On Wed, 5 Dec 2018 at 03:30, Heiko Schocher wrote: > > commit d6330064634a ("spl: Add a define for SPL_TPL_PROMPT") > > changes the SPL/TPL banner from upper case into lower > case. As SPL and TPL are three-letter acronyms and they > are written in upper case, change it back to upper case. > > Sig

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

2018-12-05 Thread Simon Glass
Hi Tom, The following changes since commit 2e2a2a5d4f0c2e2642326d9000ce1f1553632e6a: Merge branch 'master' of git://git.denx.de/u-boot-sh (2018-12-04 19:22:31 -0500) are available in the Git repository at: git://git.denx.de/u-boot-dm.git tags/dm-pull-5dec18 for you to fetch changes up to b

[U-Boot] [PATCH] sunxi: update README.sunxi64

2018-12-05 Thread Andre Przywara
Now that the Allwinner port in the official mainline ARM Trusted Firmware repository has reached feature parity with the "legacy" ATF port, let's use the opportunity to update the Allwinner 64-bit build instructions. This changes: - Update ATF build instructions to use the mainline repo. - Add quic

Re: [U-Boot] [RESEND][PATCH] power: regulator: denied disable on always-on regulator

2018-12-05 Thread Simon Glass
On Tue, 4 Dec 2018 at 01:02, Patrice CHOTARD wrote: > > Hi Simon > > On 12/3/18 7:20 PM, Simon Glass wrote: > > Hi, > > > > On Mon, 3 Dec 2018 at 04:07, Felix Brack wrote: > >> > >> On 15.11.2018 13:45, Patrice Chotard wrote: > >>> From: Patrick Delaunay > >>> > >>> Don't disable regulator which

Re: [U-Boot] [PATCH 0/5] dm: serial: Fix up some serial API errors

2018-12-05 Thread Simon Glass
Hi Andy, On Wed, 5 Dec 2018 at 14:26, Andy Shevchenko wrote: > > On Wed, Dec 5, 2018 at 9:54 PM Simon Glass wrote: > > > > New serial functions should use a device pointer as the first argument. > > The old functions are only there for backwards compatibilty, and can be > > adjusted soon. > > >

Re: [U-Boot] [PATCH] usb: dwc2-otg: make regs_phy (in platdata) a uintptr_t

2018-12-05 Thread Marek Vasut
On 12/06/2018 01:32 AM, Philipp Tomsich wrote: > The regs_phy field of the platform data structure for dwc2-otg is > today declared an unsigned int, but will eventually be cast into a > void* for a writel operation. This triggers errors on modern GCC > versions. > > E.g. we get the following erro

Re: [U-Boot] [PATCH] usb: dwc2-otg: make regs_phy (in platdata) a uintptr_t

2018-12-05 Thread Philipp Tomsich
Marek, I need the below change before I can apply an overdue series to the rockchip tree. Please review and let me know if it’s ok for you that I pick this one through the rockchip tree, so I can put the Rock960 series on top… Thanks, Philipp. > On 06.12.2018, at 01:32, Philipp Tomsich > wr

[U-Boot] [PATCH] usb: dwc2-otg: make regs_phy (in platdata) a uintptr_t

2018-12-05 Thread Philipp Tomsich
The regs_phy field of the platform data structure for dwc2-otg is today declared an unsigned int, but will eventually be cast into a void* for a writel operation. This triggers errors on modern GCC versions. E.g. we get the following error with GCC 6.3: drivers/usb/phy/rockchip_usb2_phy.c: In f

[U-Boot] [PATCH] sunxi: H6: DRAM: avoid memcpy() on MMIO registers

2018-12-05 Thread Andre Przywara
Using memcpy() for MMIO operations is, however tempting, not a good idea: It depends on the specific implementation of memcpy, also lacks barriers. In this particular case the first registers were written using 64-bit writes, and the last register using four separate single-byte writes. Neither is

Re: [U-Boot] [PATCH 05/19] riscv: Add a SYSCON driver for Core Local Interruptor

2018-12-05 Thread Auer, Lukas
Hi Bin, On Wed, 2018-12-05 at 17:59 +0800, Bin Meng wrote: > Hi Lukas, > > On Wed, Nov 14, 2018 at 6:33 PM Auer, Lukas > wrote: > > > > Hi Bin, > > > > On Wed, 2018-11-14 at 09:48 +0800, Bin Meng wrote: > > > Hi Lukas, > > > > > > On Tue, Nov 13, 2018 at 10:45 PM Auer, Lukas > > > wrote: > >

Re: [U-Boot] [PATCH 05/21] sandbox: sysreset: Update to support power-on reset

2018-12-05 Thread sjg
If U-Boot is started from SPL or TPL, then those earlier phases deal with the reset cause. On real hardware this cause may be lost once it is read. Emulate that behaviour in sandbox by reporting a warm reset when a previous phase has run since start-up. Signed-off-by: Simon Glass --- drivers/sy

Re: [U-Boot] [PATCH v3 1/7] dm: serial: Add ->getconfig() callback

2018-12-05 Thread sjg
Hi Andy, On Wed, 5 Dec 2018 at 07:01, Andy Shevchenko wrote: > > On Wed, Dec 05, 2018 at 05:55:37AM -0700, Simon Glass wrote: > > On Tue, 27 Nov 2018 at 09:03, Andy Shevchenko > > wrote: > > > On Mon, Nov 26, 2018 at 06:02:28PM -0700, Simon Glass wrote: > > > > The rest of similar functions are

Re: [U-Boot] [PATCH v3 6/7] x86: acpi: Add SPCR table description

2018-12-05 Thread sjg
Add SPCR table description as it provided in Linux kernel. Port subtype for ACPI_DBG2_SERIAL_PORT is used as an interface type in SPCR. Thus, provide a set of definitions to be utilized later. Signed-off-by: Andy Shevchenko Reviewed-by: Bin Meng --- arch/x86/include/asm/acpi_table.h | 49 +

Re: [U-Boot] [PATCH 07/21] sandbox: Use 'extras' to specify 'head' files

2018-12-05 Thread sjg
At present sandbox has a start.o in the 'start' target but also includes it in the normal target list. This is not how this is normally handled. It is needed because sandbox does not include the u-boot-init variable in its link rule. Update the rule and move start.o from the normal target list to

Re: [U-Boot] [PATCH v3 2/7] dm: serial: Introduce ->getinfo() callback

2018-12-05 Thread sjg
On Tue, 20 Nov 2018 at 14:52, Andy Shevchenko wrote: > > New callback will give a necessary information to fill up ACPI SPCR table, > for example. Maybe used later for other purposes. > > Signed-off-by: Andy Shevchenko > --- > drivers/serial/sandbox.c | 21 ++ > drivers/ser

Re: [U-Boot] [PATCH v3 4/7] serial: ns16550: Read reg-io-width from device tree

2018-12-05 Thread sjg
On Tue, 20 Nov 2018 at 14:52, Andy Shevchenko wrote: > > Cache the value of the reg-io-width property for the future use. > > Signed-off-by: Andy Shevchenko > --- > drivers/serial/ns16550.c | 1 + > include/ns16550.h| 2 ++ > 2 files changed, 3 insertions(+) Reviewed-by: Simon Glass A

Re: [U-Boot] [PATCH 02/21] sandbox: Check the filename in jump_to_image_no_args()

2018-12-05 Thread sjg
If the filename is NULL this function currently crashes. Update it to fail gracefully. Signed-off-by: Simon Glass --- arch/sandbox/cpu/spl.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) Applied to u-boot-dm/master, thanks! ___ U-Boot

Re: [U-Boot] [PATCH 10/21] tpm: Export tpm_clear_and_reenable()

2018-12-05 Thread sjg
This function is intended to be exported but is not. Add it to the header file. Signed-off-by: Simon Glass --- include/tpm-common.h | 8 1 file changed, 8 insertions(+) Applied to u-boot-dm/master, thanks! ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [PATCH 15/21] input: i8042: Use remove() instead of exported functions

2018-12-05 Thread sjg
We should not have exported functions in a driver. The i8042_disable() function is used to disable the keyboard. Provide a remove() method instead, which is the standard way of disabling a device. We could potentially add a method to flush input but that does not seem necessary. Signed-off-by: Si

Re: [U-Boot] [PATCH v3 7/7] x86: acpi: Generate SPCR table

2018-12-05 Thread sjg
On Tue, 20 Nov 2018 at 14:52, Andy Shevchenko wrote: > > Microsoft specifies a SPCR (Serial Port Console Redirection Table) [1]. > Let's provide it in U-Boot. > > [1]: > https://docs.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-table > > Signed-off-by: And

Re: [U-Boot] [PATCH] binman: Add myself as maintainer

2018-12-05 Thread sjg
Add an entry for my maintainership of this tool. Signed-off-by: Simon Glass --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) Applied to u-boot-dm/master, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-

Re: [U-Boot] [PATCH 13/21] cros: Correct a printf() string and comment

2018-12-05 Thread sjg
Correct a warning that occurs on sandbox. Also fix the comment style in cros_ec_set_lid_shutdown_mask(). Signed-off-by: Simon Glass --- drivers/misc/cros_ec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-dm/master, thanks!

Re: [U-Boot] [PATCH v3 3/7] serial: ns16550: Group reg_* members of ns16550_platdata

2018-12-05 Thread sjg
On Tue, 20 Nov 2018 at 14:52, Andy Shevchenko wrote: > > Group reg_* members of struct ns16550_platdata together for better > maintenance. > > No functional change intended. > > Signed-off-by: Andy Shevchenko > --- > include/ns16550.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Rev

Re: [U-Boot] [PATCH 04/21] sandbox: net: Correct name copy in eth_raw_bus_post_bind()

2018-12-05 Thread sjg
We cannot be sure that the interface name takes up the full length of the space available to it. Use strcpy() instead of memcpy() in this case. This corrects a valgrind warning. Signed-off-by: Simon Glass --- drivers/net/sandbox-raw-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) A

Re: [U-Boot] [PATCH 3/3] buildman/toolchain.py: handle inconsistent tarball names

2018-12-05 Thread sjg
On Wed, Nov 28, 2018 at 2:38 PM Simon Glass wrote: > Hi Trevor, > > On Tue, 27 Nov 2018 at 17:51, Trevor Woerner wrote: > > > > On Mon, Nov 26, 2018 at 8:06 PM Simon Glass wrote: > >> > >> Reviewed-by: Simon Glass > >> But please use single quotes for strings. > > > > > > I can send a v2 if yo

Re: [U-Boot] [PATCH v3 5/7] serial: ns16550: Provide ->getinfo() implementation

2018-12-05 Thread sjg
On Tue, 20 Nov 2018 at 14:52, Andy Shevchenko wrote: > > New callback will supply necessary information, for example, > to ACPI SPCR table. > > Signed-off-by: Andy Shevchenko > --- > drivers/serial/ns16550.c | 20 > 1 file changed, 20 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 01/21] sandbox: Fix up the debug message for the image filename

2018-12-05 Thread sjg
This currently prints out the wrong filename. Fix it. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm/master, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https:/

Re: [U-Boot] [PATCH 12/21] tpm: Fix a logging warning in unpack_byte_string()

2018-12-05 Thread sjg
Fix the printf() string to avoid a warning. Signed-off-by: Simon Glass --- lib/tpm-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm/master, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/

Re: [U-Boot] [PATCH 09/21] tpm: Remove use of build-time TPM versions

2018-12-05 Thread sjg
There is only one place in the code which assumes at build-time that we are using either a v1 or a v2 TPM. Fix this up and add a new function to return the version of a TPM. Supported TPM versions (v1 and v2) can be enabled independently and it is possible to use both versions at once. This is use

Re: [U-Boot] [PATCH 06/21] sandbox: Zero the ram buffer on startup

2018-12-05 Thread sjg
At present the RAM buffer is not inited unless it is read from a file, likely produced by an earlier phase of U-Boot. This causes valgrind warnings whenever the RAM buffer is used. Correct this by initing it if needed. Signed-off-by: Simon Glass --- arch/sandbox/cpu/start.c | 7 +++

Re: [U-Boot] [PATCH 03/21] sandbox: physmem: Use mapping to support sandbox

2018-12-05 Thread sjg
Replace the raw cast with a map_sysmem() call so this code works with sandbox. Signed-off-by: Simon Glass --- lib/physmem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Applied to u-boot-dm/master, thanks! ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] [PATCH 19/21] Add UINT32_MAX and UINT64_MAX

2018-12-05 Thread sjg
These constants are defined by stdint.h but not by kernel.h, which is its stand-in in U-Boot. Add the definitions so that libraries which expect stdint.h constants can work. Signed-off-by: Simon Glass --- include/linux/kernel.h | 4 1 file changed, 4 insertions(+) Applied to u-boot-dm/mas

Re: [U-Boot] [PATCH 11/21] tpm: Add non-volatile index attributes needed for v2

2018-12-05 Thread sjg
Version-2 TPMs support attributes for nvdata. Add definitions to the header file so that clients can use it. Signed-off-by: Simon Glass --- include/tpm-v2.h | 33 + 1 file changed, 33 insertions(+) Applied to u-boot-dm/master, thanks! ___

Re: [U-Boot] [PATCH] dm: rtc: Fix function name in comment

2018-12-05 Thread sjg
On 11/25/18 7:32 PM, Philipp Tomsich wrote: > The documentation comment for dm_rtc_set was referring to dm_rtc_put > instead. Fix it. > > Signed-off-by: Philipp Tomsich > --- > > include/rtc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied to u-boot-dm/master, thanks! _

Re: [U-Boot] [PATCH 14/21] cros_ec: Adjust to use v1 vboot context only

2018-12-05 Thread sjg
At present there are no users of the 64-byte v2 context. The v1 context is only 16 bytes long and currently an error is raised if too much data is returned from the EC. Update the code to limit the size to 16 bytes. Signed-off-by: Simon Glass --- drivers/misc/cros_ec_sandbox.c | 10 ++

Re: [U-Boot] [PATCH 20/21] Add inttypes.h

2018-12-05 Thread sjg
Even if U-Boot does not use this, some libraries do. Add back this header file so that the build does not fall back to using the host version, which may include stdint.h and break the build due to conflicts with uint64_t, etc. This partially reverts commit dee37fc99d94 ("Remove includes and PRI*

Re: [U-Boot] [PATCH 16/21] video: backlight: Fix log message in enable_sequence()

2018-12-05 Thread sjg
On Fri, 23 Nov 2018 21:29:39 -0700 Simon Glass s...@chromium.org wrote: > This has an extra argument. Remove it. > > Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin Applied to u-boot-dm/master, thanks! ___ U-Boot mailing list U-Boot@lists.de

Re: [U-Boot] [PATCH 17/21] time: Update mdelay() to delay in one large chunk

2018-12-05 Thread sjg
The current function delays in one millisecond at a time. This does not work well on sandbox since it results in lots of calls to usleep(1000) in a tight loop. This makes the sleep duration quite variable since each call results in a sleep of *at least* 1000us, but possibly more. Depending on how b

Re: [U-Boot] [PATCH v3 1/1] dm: core: add functions to get/remap I/O addresses by name

2018-12-05 Thread sjg
On Mon, 3 Dec 2018 at 11:37, Álvaro Fernández Rojas wrote: > > This functions allow us to get and remap I/O addresses by name, which is > useful when there are multiple reg addresses indexed by reg-names property. > This is needed in bmips dma/eth patch series, but can also be used on many > othe

Re: [U-Boot] [PATCH] dm: (re)sort uclass ids alphabetically

2018-12-05 Thread sjg
The comment in uclass-id.h states that "U-Boot uclasses start here - in alphabetical order" but the subsequent list is not sorted alphabetically. This reestablishes order. Signed-off-by: Philipp Tomsich --- include/dm/uclass-id.h | 8 1 file changed, 4 insertions(+), 4 deletions(-)

Re: [U-Boot] [PATCH 0/5] dm: serial: Fix up some serial API errors

2018-12-05 Thread Andy Shevchenko
On Wed, Dec 5, 2018 at 9:54 PM Simon Glass wrote: > > New serial functions should use a device pointer as the first argument. > The old functions are only there for backwards compatibilty, and can be > adjusted soon. > > For now, adjust the new functions to work correctly. > Thanks! I'm not sure

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-05 Thread Simon Goldschmidt
Am 05.12.2018 um 07:55 schrieb Simon Goldschmidt: On Wed, Dec 5, 2018 at 7:51 AM Vignesh R wrote: On 05/12/18 1:41 AM, Simon Goldschmidt wrote: Am 04.12.2018 um 13:55 schrieb Boris Brezillon: On Tue, 4 Dec 2018 17:56:48 +0530 Vignesh R wrote: U-Boot SPI NOR support (sf layer) is quite out

Re: [U-Boot] boot.bin on SD Card for SAMA5D3 Xplained

2018-12-05 Thread Robert Nelson
On Wed, Dec 5, 2018 at 8:37 AM wrote: > > > > On 05.12.2018 02:15, Daniel Evans wrote: > > Trying to get uboot SPL boot.bin to run on an SD card for the sama5d3 > > xplained board. All I get is RomBOOT and no other messages. I have tried > > throwing in a couple test pins to toggle in board_ea

[U-Boot] [PATCH 5/5] dm: serial: Tidy up header file comments

2018-12-05 Thread Simon Glass
The getconfig() comment is out of date. Fix this and add comments for recently added functions. Signed-off-by: Simon Glass --- include/serial.h | 32 +--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/include/serial.h b/include/serial.h index 8a790cc

[U-Boot] [PATCH 2/5] dm: serial: Adjust serial_getconfig() to use proper API

2018-12-05 Thread Simon Glass
All driver-model functions should have a device as the first parameter. Update this function accordingly. Signed-off-by: Simon Glass --- arch/x86/lib/acpi_table.c | 5 - drivers/serial/serial-uclass.c | 9 +++-- include/serial.h | 2 +- test/dm/serial.c

[U-Boot] [PATCH 1/5] serial: Move new functions to serial.h

2018-12-05 Thread Simon Glass
We should not be adding new functions to common.h. Move these recently added functions to serial.h. Signed-off-by: Simon Glass --- include/common.h | 5 - include/serial.h | 4 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/common.h b/include/common.h index 20c9

[U-Boot] [PATCH 3/5] dm: serial: Adjust serial_setconfig() to use proper API

2018-12-05 Thread Simon Glass
All driver-model functions should have a device as the first parameter. Update this function accordingly. Signed-off-by: Simon Glass --- drivers/serial/serial-uclass.c | 9 +++-- include/serial.h | 2 +- test/dm/serial.c | 11 +++ 3 files changed, 11 in

[U-Boot] [PATCH 4/5] dm: serial: Adjust serial_getinfo() to use proper API

2018-12-05 Thread Simon Glass
All driver-model functions should have a device as the first parameter. Update this function accordingly. Signed-off-by: Simon Glass --- arch/x86/lib/acpi_table.c | 10 +- drivers/serial/serial-uclass.c | 9 +++-- include/serial.h | 2 +- test/dm/serial.c

[U-Boot] [PATCH 0/5] dm: serial: Fix up some serial API errors

2018-12-05 Thread Simon Glass
New serial functions should use a device pointer as the first argument. The old functions are only there for backwards compatibilty, and can be adjusted soon. For now, adjust the new functions to work correctly. Simon Glass (5): serial: Move new functions to serial.h dm: serial: Adjust seria

[U-Boot] Pull request: u-boot-spi/master

2018-12-05 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit a3e1653ddeb02f39481eba572275016171e9670c: Merge git://git.denx.de/u-boot-marvell (2018-11-20 12:39:16 -0500) are available in the Git repository at: git://git.denx.de/u-boot-spi.git master for you to fetch cha

Re: [U-Boot] [PATCH v4 00/11] mtd/sf: Various fixes

2018-12-05 Thread Jagan Teki
On Sun, Dec 2, 2018 at 3:25 PM Boris Brezillon wrote: > > Hello, > > This is the 4th version of the mtd / sf fixes patchset. This v4 just > adds a new check in del_mtd_device() (and a debug() when > del_mtd_partitions() fails). > > Regards, > > Boris > > P.S.: travis-ci results => > https://

[U-Boot] [PATCH] defconfigs: am335x_hs_evm: Sync HS and non-HS defconfigs

2018-12-05 Thread Andrew F. Davis
Sync new additions to non-HS defconfig with HS defconfig. Signed-off-by: Andrew F. Davis --- configs/am335x_hs_evm_defconfig | 8 +++- configs/am335x_hs_evm_uart_defconfig | 13 +++-- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/configs/am335x_hs_evm_defconfi

Re: [U-Boot] boot.bin on SD Card for SAMA5D3 Xplained

2018-12-05 Thread Daniel Evans
Thanks, That put me on the right path. For some reason the nandheader is being added to the top of the boot.bin for the mmc/SD build. $ ls -l boot.bin -rw-r--r-- 1 nelson nelson 62686 Dec 5 12:25 boot.bin $ hexdump boot.bin | head 000 2405 c090 2405 c090 2405 c090 2405 c090 * 0d0 000f

[U-Boot] [PATCH v2 3/7] dfu: Remove dependency on HUSH parser in SPL

2018-12-05 Thread Andrew F. Davis
CLI support with the HUSH parser is not currently SPL safe due to it's use of realloc. That function is not defined for SPLs that use SYS_MALLOC_SIMPLE. CLI support can be built in to SPL and some functions do work, but use of some like run_command() will cause build to fail. When no SPL code calls

[U-Boot] [PATCH v2 4/7] ARM: mach-omap2: Kconfig: Allow OMAP5 devices to set entry point

2018-12-05 Thread Andrew F. Davis
Like AM33xx and AM43xx, DRA7xx and AM57xx devices may need to have an non-standard boot address in memory. This may be due to the device being a high security variant, which place the Initial SoftWare (ISW) after certificates and secure software. Allow these devices to set this from Kconfig. Sign

[U-Boot] [PATCH v2 5/7] defconfigs: Add config for DRA7xx High Security EVM with USB Boot support

2018-12-05 Thread Andrew F. Davis
Add a new defconfig file for the DRA7xx High Security EVM. This config is specific for the case of USB booting. Signed-off-by: Andrew F. Davis --- MAINTAINERS | 1 + configs/dra7xx_hs_evm_usb_defconfig | 106 2 files changed, 107 insertions(

[U-Boot] [PATCH v2 6/7] defconfigs: Add config for AM57xx High Security EVM with USB/UART Boot support

2018-12-05 Thread Andrew F. Davis
Add a new defconfig file for the AM57xx High Security EVM. This config is specific for the case of USB/UART booting. Signed-off-by: Andrew F. Davis --- MAINTAINERS | 1 + configs/am57xx_hs_evm_usb_defconfig | 92 + 2 files changed, 93 insertio

[U-Boot] [PATCH v2 7/7] doc: ti-secure: Add ULO info for AM57xx/DRA7xx secure devices from TI

2018-12-05 Thread Andrew F. Davis
Booting from UART and USB on HS devices is now supported for this platform. Update documentation for the same. Signed-off-by: Andrew F. Davis --- doc/README.ti-secure | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/README.ti-secure b/doc/README.ti-secure index 4b5

[U-Boot] [PATCH v2 2/7] dfu: Make DFU support more SPL friendly

2018-12-05 Thread Andrew F. Davis
Do this by using $(SPL_) in Makefiles and CONFIG_IS_ENABLED in C code. This ensures the files and features are only built into the right build for which they are enabled. Using the macros to simplify this patch was made possible by the config symbol rename done in the last patch. Signed-off-by: An

[U-Boot] [PATCH v2 1/7] spl: Kconfig: Drop the _SUPPORT postfix from SPL_DFU

2018-12-05 Thread Andrew F. Davis
The symbol CONFIG_SPL_DFU_SUPPORT in SPL build has the same meaning as CONFIG_DFU in regular U-Boot. Drop the _SUPPORT to allow for cleaner use in code. Signed-off-by: Andrew F. Davis --- arch/arm/cpu/armv8/zynqmp/spl.c | 2 +- arch/arm/mach-omap2/boot-common.c | 2 +- common/Makefile

[U-Boot] [PATCH v2 0/7] Add USB boot to HS DRA7xx/AM57xx

2018-12-05 Thread Andrew F. Davis
Hello all, This series adds USB boot support to HS DRA7xx/AM57xx platforms. We start by cleaning up DFU boot in SPL support. What is done in the first patch for DFU, if acceptable, should be done to the other boot modes. The 4th patch is needed as on HS devices a header is added to the boot imag

Re: [U-Boot] [PATCH 6/7] defconfigs: Add config for AM57xx High Security EVM with UART/USB Boot support

2018-12-05 Thread Andrew F. Davis
On 12/5/18 6:42 AM, Lokesh Vutla wrote: > > > On 05/12/18 3:07 AM, Andrew F. Davis wrote: >> On 12/2/18 11:24 PM, Lokesh Vutla wrote: >>> >>> >>> On 30/11/18 10:41 PM, Andrew F. Davis wrote: Add a new defconfig file for the AM57xx High Security EVM. This config is specific for the case

[U-Boot] [PATCH v3 7/7] MIPS: bootm: Add support for Vcore III linux kernel

2018-12-05 Thread Gregory CLEMENT
The kernels built for the Vcore III linux kernel have different expectation in the way the data were passed. Unlike with yamon, the command line is expected to be a single string passed in argv[1]. An other expectation is that the arguments are located in the cached address space. However, like y

[U-Boot] [PATCH v3 6/7] MSCC: add board support for the Luton based evaluation board

2018-12-05 Thread Gregory CLEMENT
Adding the support for the Luton boards PCB91 which share common code with the Ocelots boards, including board code, device tree and configuration. Signed-off-by: Gregory CLEMENT --- MAINTAINERS| 1 + arch/mips/dts/luton_pcb091.dts | 35 ++ arch/mips/dts/mscc,lut

[U-Boot] [PATCH v3 5/7] MSCC: add board support for the Ocelots based evaluation boards

2018-12-05 Thread Gregory CLEMENT
Adding the support for 2 boards sharing common code for Ocelot chip: PCB120 and PCB123 Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 5 + arch/mips/dts/mscc,ocelot.dtsi | 152 +++ arch/mips/dts/mscc,ocelot_pcb.dtsi | 42 arc

[U-Boot] [PATCH v3 3/7] MSCC: add support for Ocelot SoCs

2018-12-05 Thread Gregory CLEMENT
This family of SoCs are found in the Microsemi Switches solution and have already a support in the linux kernel. Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 7 + arch/mips/Kconfig | 6 + arch/mips/Makefile

[U-Boot] [PATCH v3 4/7] MSCC: add support for Luton SoCs

2018-12-05 Thread Gregory CLEMENT
As the Ocelots SoCs, this family of SoCs are found in the Microsemi Switches solution. Signed-off-by: Gregory CLEMENT --- arch/mips/mach-mscc/Kconfig | 13 + arch/mips/mach-mscc/Makefile | 1 + arch/mips/mach-mscc/cpu.c | 14 +- arch/mip

[U-Boot] [PATCH v3 0/7] ] Add support for the SoCs found in Microsemi switches

2018-12-05 Thread Gregory CLEMENT
Hello, For the record this the third version of the series adding the support of 2 SoCs: Ocelot and Luton from Microsemi. Both of them belongs to the same family Vcore III. We found them on various advanced switches product. The support for Ocelot already have been submit to Linux, but not yet t

[U-Boot] [PATCH v3 2/7] MIPS: Allow to prefetch and lock instructions into cache

2018-12-05 Thread Gregory CLEMENT
This path add a new helper allowing to prefetch and lock instructions into cache. This is useful very early in the boot when no RAM is available yet. Signed-off-by: Gregory CLEMENT --- arch/mips/include/asm/cacheops.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/

[U-Boot] [PATCH v3 1/7] MIPS: move create_tlb() in an proper header: mipsregs.h

2018-12-05 Thread Gregory CLEMENT
Export create_tlb() as an inline function in mipsregs.h. It allows to remove the declaration of the function from the board files. Then it will allow also to use this function very early in the boot when the stack is not usable. Signed-off-by: Gregory CLEMENT --- arch/mips/cpu/cpu.c

Re: [U-Boot] [PATCH] fdt: Add warning about CONFIG_OF_EMBED

2018-12-05 Thread Tom Rini
On Wed, Dec 05, 2018 at 05:08:53PM +0100, Simon Goldschmidt wrote: > Hi Simon, > > Am 05.12.2018 um 16:57 schrieb Simon Glass: > >Hi Simon, > > > >On Wed, 5 Dec 2018 at 07:22, Simon Goldschmidt > > wrote: > >> > >>Am 05.12.2018 um 14:57 schrieb Simon Glass: > >>>This option has crept into use with

Re: [U-Boot] [PATCH 66/93] arm: Remove ot1200 board

2018-12-05 Thread Simon Goldschmidt
Am 05.12.2018 um 16:55 schrieb Simon Glass: Hi Simon, On Wed, 5 Dec 2018 at 07:17, Simon Goldschmidt wrote: Am 05.12.2018 um 14:54 schrieb Simon Glass: Hi Simon, On Wed, 5 Dec 2018 at 06:38, Simon Goldschmidt wrote: On Wed, Dec 5, 2018 at 2:21 PM Simon Glass wrote: Hi Simon, On Sun,

Re: [U-Boot] [PATCH] fdt: Add warning about CONFIG_OF_EMBED

2018-12-05 Thread Simon Goldschmidt
Hi Simon, Am 05.12.2018 um 16:57 schrieb Simon Glass: Hi Simon, On Wed, 5 Dec 2018 at 07:22, Simon Goldschmidt wrote: Am 05.12.2018 um 14:57 schrieb Simon Glass: This option has crept into use with some boards. Add a warning to try to prevent this. As an example: https://lists.denx.de

[U-Boot] [PATCH v2 3/3] ddr: vybrid: Add calibration code to memory controler's (DDRMC) setup code

2018-12-05 Thread Lukasz Majewski
This patch extends the vf610 DDR memory controller code to support SW leveling. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Agner --- Changes in v2: - Remove not needed #ifdef arch/arm/mach-imx/ddrmc-vf610.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/

[U-Boot] [PATCH v2 2/3] ddr: vybrid: Provide code to perform on-boot calibration

2018-12-05 Thread Lukasz Majewski
This patch provides the code to calibrate the DDR's DQS to DQ signals (RDLVL). It is based on: VFxxx Controller Reference Manual, Rev. 0, 10/2016, page 1600 10.1.6.16.4.1 "Software Read Leveling in MC Evaluation Mode" and NXP's community thread: "Vybrid: About DDR leveling feature on DDRMC." http

  1   2   3   >