Re: [U-Boot] [EXT] Re: Issues with driver binding and probing

2019-09-25 Thread Aaron Williams
Hi Simon, On Wednesday, September 25, 2019 8:40:48 PM PDT Bin Meng wrote: > External Email > > -- > +Simon > > Hi Aaron, > > On Thu, Sep 26, 2019 at 11:10 AM Aaron Williams wrote: > > Hi all, > > > > I have an issue where I

Re: [U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由u-boot-boun...@lists.denx.de代发】

2019-09-25 Thread Michael Nazzareno Trimarchi
Hi On Wed, Sep 25, 2019 at 8:19 PM Alexander von Gluck IV wrote: > > Just rounding this one out.. I was definitely looking at the wrong uart. After > moving to uart2, things are working as expected (minus hdmi output from > u-boot) This can be enabled, but it's not the default on tinker

[U-Boot] [PATCH] armv8: ls1028a: disable multimedia feature when not supported

2019-09-25 Thread Yuantian Tang
Ls1028a has 4 personalities: ls1028a, ls1027a, ls1017a and ls1018a. Both ls1027a and ls1017a personalities are lower functionality version which doesn't support the multimedia subsystems, like LCD, GPU. To disable multimedia feature on non-multimedia version, set the status property to disabled

Re: [U-Boot] [PATCH] Support raw initrd for qemu riscv64 targets.

2019-09-25 Thread Bin Meng
Hi Vagrant, On Thu, Sep 26, 2019 at 8:57 AM Vagrant Cascadian wrote: > > Haven't heard any comment on this; is there someone better to CC? > Sorry I missed this. > Would be really nice if it could be considered for v2019.10. > > Thanks! > > live well, > vagrant > > On 2019-07-15, Vagrant

Re: [U-Boot] [PATCH] Support raw initrd for qemu riscv64 targets.

2019-09-25 Thread Vagrant Cascadian
On 2019-09-26, Bin Meng wrote: > On Thu, Sep 26, 2019 at 8:57 AM Vagrant Cascadian wrote: >> On 2019-07-15, Vagrant Cascadian wrote: >> > This allows booting an initrd without headers generated by mkimage, >> > which is generally needed when using distro_bootcmd with >> > extlinux-style boot

[U-Boot] Issues with driver binding and probing

2019-09-25 Thread Aaron Williams
Hi all, I have an issue where I have a nexus driver and a sub serial driver on top of it. The base nexus driver is getting bound and probed properly, however the serial drivers (pci-console) below it are not. My device tree looks something like this: pci-console-nexus@0x0300 {

Re: [U-Boot] [EXT] Re: [RFC 1/3] scsi: ata: Add DM SCSI interface to support None AHCI sata driver

2019-09-25 Thread Peng Ma
Hi Robert, Thanks very much for your comments, please see my comments inline. >-Original Message- >From: Robert Hancock >Sent: 2019年9月25日 23:50 >To: Peng Ma ; s...@chromium.org; Prabhakar X >; ja...@openedev.com; >bmeng...@gmail.com; Andy Tang >Cc: andre.przyw...@arm.com;

Re: [U-Boot] Issues with driver binding and probing

2019-09-25 Thread Bin Meng
+Simon Hi Aaron, On Thu, Sep 26, 2019 at 11:10 AM Aaron Williams wrote: > > Hi all, > > I have an issue where I have a nexus driver and a sub serial driver on top of > it. The base nexus driver is getting bound and probed properly, however the > serial drivers (pci-console) below it are not. >

Re: [U-Boot] [U-BOOT PATCH v1 0/2] add gpio support for HiFive Unleashed A00 board.

2019-09-25 Thread Sagar Kadam
Hi Bin, On Thu, Sep 26, 2019 at 7:26 AM Bin Meng wrote: > > Hi Sagar, > > On Thu, Sep 26, 2019 at 1:54 AM Sagar Kadam wrote: > > > > Hi Bin, > > > > On Wed, Sep 18, 2019 at 1:23 PM Bin Meng wrote: > > > > > > Hi Sagar, > > > > > > On Tue, Sep 10, 2019 at 11:44 PM Sagar Shrikant Kadam > > >

Re: [U-Boot] [PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)

2019-09-25 Thread Vagrant Cascadian
On 2019-08-21, David Abdurachmanov wrote: > Commit 37304aaf60bf92a5dc3ef222ba520698bd862a44 removed preboot > commands in RISC-V targets and broke extlinux support as reported > by Fu Wei . > > The patch finishes migration of CONFIG_USE_PREBOOT and CONFIG_REBOOT > to Kconfig. Tested using

Re: [U-Boot] [U-BOOT PATCH v1 0/2] add gpio support for HiFive Unleashed A00 board.

2019-09-25 Thread Bin Meng
Hi Sagar, On Thu, Sep 26, 2019 at 1:54 AM Sagar Kadam wrote: > > Hi Bin, > > On Wed, Sep 18, 2019 at 1:23 PM Bin Meng wrote: > > > > Hi Sagar, > > > > On Tue, Sep 10, 2019 at 11:44 PM Sagar Shrikant Kadam > > wrote: > > > > > > U-Boot currently is missing GPIO support for FU540-C000 SoC which

Re: [U-Boot] [PATCH v2 1/4] fw_env: remove duplicated definitions

2019-09-25 Thread Tom Rini
On Mon, Aug 26, 2019 at 01:06:15PM +0200, Pierre-Jean Texier wrote: > Since commit d3716dd ("env: Rename the redundancy flags"), the > definitions of ENV_REDUND_OBSOLETE & ENV_REDUND_ACTIVE was moved > to env.h. > > Fixes: > > tools/env/fw_env.c:122:22: error: ‘ENV_REDUND_ACTIVE’ redeclared as

Re: [U-Boot] [PATCH v2 4/4] ci: add envtools support

2019-09-25 Thread Tom Rini
On Mon, Aug 26, 2019 at 01:06:18PM +0200, Pierre-Jean Texier wrote: > This commit add envtools suppport to CI to verify if there > is no build issues. > > Signed-off-by: Pierre-Jean Texier > Acked-by: Heiko Schocher > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [PATCH v2 3/4] env: add missing header file

2019-09-25 Thread Tom Rini
On Mon, Aug 26, 2019 at 01:06:17PM +0200, Pierre-Jean Texier wrote: > Since commit af95f20 ("env: Create a new file for environment functions"), > a new header file exists. > > So, this commit add a missing header file. > > Fixes: > > include/env.h:158:1: error: unknown type name ‘ulong’; did

Re: [U-Boot] [PATCH v2 2/4] fw_env: fix build error

2019-09-25 Thread Tom Rini
On Mon, Aug 26, 2019 at 01:06:16PM +0200, Pierre-Jean Texier wrote: > The following error appears: > > tools/env/fw_env.c:1149:25: error: lvalue required as unary ‘&’ operand > rc = write(fd, _REDUND_OBSOLETE, sizeof(ENV_REDUND_OBSOLETE)); > > Fixes: d3716dd ("env: Rename the redundancy

[U-Boot] [PATCH 1/1] ARM: i.MX6: TARGET_NITROGEN6X: add 'select MX6QDL'

2019-09-25 Thread Troy Kisky
This fixes commit <91435cd40d30> "ARM: i.MX6: exclude the ARM errata from i.MX6 UP system" for nitrogen6x. The above commit removed the errata for the board since MX6Q/MXDL/MX6S is selected via CONFIG_SYS_EXTRA_OPTIONS This restores the errata configs. Signed-off-by: Troy Kisky --- Note:

Re: [U-Boot] [PATCH] Support raw initrd for qemu riscv64 targets.

2019-09-25 Thread Vagrant Cascadian
Haven't heard any comment on this; is there someone better to CC? Would be really nice if it could be considered for v2019.10. Thanks! live well, vagrant On 2019-07-15, Vagrant Cascadian wrote: > This allows booting an initrd without headers generated by mkimage, > which is generally needed

[U-Boot] [PATCH 1/3] imx8: Add AHAB secure boot support

2019-09-25 Thread Peng Fan
Add function and new command "auth_cntr" for secure boot support. When booting with life cycle set to OEM closed, we need to use this function to authenticate the OS container and load kernel & FDT from OS container to their destination. Also add image authentication call when loading container

[U-Boot] [PATCH 2/3] imx8qm: mek: add secure boot script

2019-09-25 Thread Peng Fan
Add secure boot script, use ahab to verify image Signed-off-by: Peng Fan --- include/configs/imx8qm_mek.h | 64 +--- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/include/configs/imx8qm_mek.h b/include/configs/imx8qm_mek.h index

[U-Boot] [PATCH 3/3] imx8qxp: mek: add secure boot script

2019-09-25 Thread Peng Fan
Add secure boot script, use ahab to verify image Signed-off-by: Peng Fan --- include/configs/imx8qxp_mek.h | 64 +-- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/include/configs/imx8qxp_mek.h b/include/configs/imx8qxp_mek.h index

[U-Boot] [PATCH] configs: j721e_evm_a72: Disable PSCI_RESET

2019-09-25 Thread Lokesh Vutla
J721E uses TISCI protocol to reset the device and does not support PSCI reset. So disable PSCI reset. Signed-off-by: Lokesh Vutla --- configs/j721e_evm_a72_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index

Re: [U-Boot] Regressions in MTD / SPI FLASH

2019-09-25 Thread Vignesh Raghavendra
Hi On 24/09/19 9:45 PM, Eugeniy Paltsev wrote: > Hi Vignesh, > sorry for delay, I was pretty busy with another project :( > > I've tried to test SPI with CONFIG_SPI_FLASH_SFDP_SUPPORT enabled, however it > doesn't seem to work. > > CONFIG_SPI_FLASH_SFDP_SUPPORT enabled: >

[U-Boot] [PATCH] configs: am65x_evm_a53: Disable PSCI_RESET

2019-09-25 Thread Lokesh Vutla
AM65x uses TISCI protocol to reset the device and does not support PSCI reset. So disable PSCI reset. Signed-off-by: Lokesh Vutla --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index

Re: [U-Boot] [PATCH RFT 3/3] spi-nor: spi-nor-ids: Add entries for newer variants of n25q256* and n25q512*

2019-09-25 Thread Vignesh Raghavendra
On 25/09/19 1:57 PM, Simon Goldschmidt wrote: > Hi Vignesh, > > On Wed, Sep 25, 2019 at 10:20 AM Vignesh Raghavendra wrote: >> >> Simon, >> >> On 24/09/19 5:54 PM, tudor.amba...@microchip.com wrote: >>> Hi, Simon, >>> >>> On 09/24/2019 02:47 PM, Simon Goldschmidt wrote: External E-Mail

Re: [U-Boot] [PATCH RFT 0/3] spi-nor: spi-nor-ids: Fix 4 Byte addressing for n25q256 and n25q512*

2019-09-25 Thread Vignesh Raghavendra
On 24/09/19 10:53 PM, Eugeniy Paltsev wrote: > Hi Vignesh, > > I've check this patches on top of 31e086e460f. > The read/write/erase seems to work. > > However, as I can see 'sf protect lock' doesn't work - it finish successfully > but the area remains unlocked. Did you verify that area is

Re: [U-Boot] [PATCH RFT 3/3] spi-nor: spi-nor-ids: Add entries for newer variants of n25q256* and n25q512*

2019-09-25 Thread Simon Goldschmidt
Hi Vignesh, On Wed, Sep 25, 2019 at 10:20 AM Vignesh Raghavendra wrote: > > Simon, > > On 24/09/19 5:54 PM, tudor.amba...@microchip.com wrote: > > Hi, Simon, > > > > On 09/24/2019 02:47 PM, Simon Goldschmidt wrote: > >> External E-Mail > >> > >> > >> On Tue, Sep 24, 2019 at 7:55 AM Vignesh

Re: [U-Boot] [PATCH RFT 3/3] spi-nor: spi-nor-ids: Add entries for newer variants of n25q256* and n25q512*

2019-09-25 Thread Vignesh Raghavendra
Simon, On 24/09/19 5:54 PM, tudor.amba...@microchip.com wrote: > Hi, Simon, > > On 09/24/2019 02:47 PM, Simon Goldschmidt wrote: >> External E-Mail >> >> >> On Tue, Sep 24, 2019 at 7:55 AM Vignesh Raghavendra wrote: >>> >>> Newer variants of n25q256* and n25q512* flashes support 4 Byte >>>

Re: [U-Boot] [PATCH v2] armv8: ls1028a: add more personalities support

2019-09-25 Thread Andy Tang
Hi Priyanka, Please see my reply inline. > -Original Message- > From: Priyanka Jain > Sent: 2019年9月25日 13:43 > To: Andy Tang > Cc: u-boot@lists.denx.de > Subject: RE: [U-Boot] [PATCH v2] armv8: ls1028a: add more personalities > support > > > > >-Original Message- > >From:

[U-Boot] [PATCH v3 01/28] serial: serial_mtk: enable FIFO and disable flow control

2019-09-25 Thread Weijie Gao
This patch adds codes to enable FIFO and disable flow control taken from ns16550 driver. Signed-off-by: Weijie Gao --- drivers/serial/serial_mtk.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index

[U-Boot] [PATCH v3 05/28] clk: add clock driver for MediaTek MT76x8 platform

2019-09-25 Thread Weijie Gao
This patch adds a clock driver for MediaTek MT7628/7688 SoC. It provides clock gate control as well as getting clock frequency for CPU/SYS/XTAL and some peripherals. Signed-off-by: Weijie Gao --- v2: Changed to a more generic clock driver rather than a gateing only driver. Now supports

[U-Boot] [PATCH v3 22/28] mmc: mtk-sd: add a dts property cd-active-high for builtin-cd mode

2019-09-25 Thread Weijie Gao
This patch adds a dts property cd-active-high for builtin-cd mode to make it configurable instead of using hardcoded active-low. Signed-off-by: Weijie Gao --- v3: Simplify logic of card-detection. --- drivers/mmc/mtk-sd.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH 2/2] arm64: zynqmp: Define default SYS_PROMPT

2019-09-25 Thread Michal Simek
On 25. 09. 19 13:03, Luca Ceresoli wrote: > Hi Michal, > > On 25/09/19 12:38, Michal Simek wrote: >> All boards are using the same prompt that's why add it as default value to >> Kconfig to simplify defconfigs. >> >> Signed-off-by: Michal Simek >> --- >> >> cmd/Kconfig

Re: [U-Boot] [EXT] [PATCH 2/2] spi-nor: spi-nor-ids: Disable SPI_NOR_4B_OPCODES for n25q512* and n25q256*

2019-09-25 Thread Simon Goldschmidt
On Tue, Sep 24, 2019 at 2:08 PM Simon Goldschmidt wrote: > > Hi Vignesh, > > On Tue, Sep 24, 2019 at 1:54 PM Vignesh Raghavendra wrote: > > > > Simon, > > > > On 24-Sep-19 5:15 PM, Simon Goldschmidt wrote: > > > Hi Tudor, > > > > > > On Tue, Sep 24, 2019 at 1:36 PM wrote: > > >> > > [...] > > >

[U-Boot] [PATCH v3 06/10] x86: Move fsp_fv.h to the generic fsp directory

2019-09-25 Thread Simon Glass
This header file is the same for FSP v1 and v2. Move it into the general fsp directory. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None arch/x86/include/asm/{fsp1 => fsp}/fsp_fv.h | 0 arch/x86/include/asm/fsp1/fsp_support.h | 2 +- 2 files

[U-Boot] [PATCH v3 05/10] x86: Move fsp_types.h to the generic fsp directory

2019-09-25 Thread Simon Glass
This header file is the same for FSP v1 and v2. Move it into the general fsp directory. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None arch/x86/include/asm/{fsp1 => fsp}/fsp_types.h | 0 arch/x86/include/asm/fsp1/fsp_support.h| 2 +- 2

[U-Boot] [PATCH v3 09/10] x86: Move fsp_bootmode.h to the generic fsp directory

2019-09-25 Thread Simon Glass
This header file is the same for FSP v1 and v2, although there may be some additions to come. Move it into the generic fsp directory. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None arch/x86/include/asm/{fsp1 => fsp}/fsp_bootmode.h | 0

[U-Boot] [PATCH v2 13/38] spi: sandbox: Add a test driver for sandbox SPI flash

2019-09-25 Thread Simon Glass
At present SPI-flash testing relies on a sandbox driver which emulates the SPI bus and implements a flash chip behind that emulated bus. This provides good coverage but can only implement features supported by the SPI bus. Add a new 'direct' SPI flash which is implemented directly by sandbox.

[U-Boot] [PATCH v2 05/38] serial: ns16550: Allow serial to enabled/disabled in SPL

2019-09-25 Thread Simon Glass
At present this driver uses the wrong condition for including the code and drivers in SPL/TPL. Update it so that the code is only included if DM_SERIAL is enabled for SPL/TPL. Signed-off-by: Simon Glass --- Changes in v2: None drivers/serial/ns16550.c | 6 +++--- 1 file changed, 3

[U-Boot] [PATCH v2 03/38] dm: gpio: Allow control of GPIO uclass in SPL

2019-09-25 Thread Simon Glass
At present if CONFIG_SPL_GPIO_SUPPORT is enabled then the GPIO uclass is included in SPL/TPL without any control for boards. Some boards may want to disable this to reduce code size where GPIOs are not needed in SPL or TPL. Add a new Kconfig option to permit this. Default it to 'y' so that

[U-Boot] [PATCH v2 31/38] x86: spl: Move broadwell-specific code out of generic x86 spl

2019-09-25 Thread Simon Glass
When TPL is running, broadwell needs to do different init from SPL. There is no need for this code to be in the generic x86 SPL file, so move it to arch_cpu_init(). Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/broadwell/cpu.c | 5 +

[U-Boot] [PATCH v2 14/38] spi: Add support for memory-mapped flash

2019-09-25 Thread Simon Glass
On x86 platforms the SPI flash can be mapped into memory so that the contents can be read with normal memory accesses. Add a new SPI flash method to find the location of the SPI flash in memory. This differs from the existing device-tree "memory-map" mechanism in that the location can be

[U-Boot] [PATCH v2 23/38] efi: Move inline functions to unconditional part of header

2019-09-25 Thread Simon Glass
At present these two functions are defined in efi_loader.h but only if CONFIG_EFI_LOADER is enabled. But these are functions that are useful to other code, such as that which deals with Intel Handoff Blocks (HOBs). Move these to the top of the function. Possibly ascii2unicode() should not be an

[U-Boot] [PATCH v2 30/38] x86: spl: Reduce priority of the basic SPL image loader

2019-09-25 Thread Simon Glass
This image loader works on systems where the flash is directly mapped to the last part of the 32-bit address space. On recent Intel systems (such as apollolake) this is not the case. Reduce the priority of this loader so that another one can override it. While we are here, rename the loader to

[U-Boot] [PATCH 000/126] x86: Add initial support for apollolake

2019-09-25 Thread Simon Glass
Apollolake is an Intel SoC generation aimed at relatively low-end embedded systems. It was released in 2016 but has become more popular recently with some embedded boards using it. This series adds support for apollolake. As an example it adds an implementation of chromebook_coral (a large range

[U-Boot] [PATCH 003/126] dm: core: Drop a few early returns

2019-09-25 Thread Simon Glass
Two functions in this file return early for no good reason. Adjust the code to match the standard DM style of returning 0 at the end of the function on success. Oddly enough this save 12 bytes of code size on ARM. Signed-off-by: Simon Glass --- drivers/core/uclass.c | 14 ++ 1

[U-Boot] [PATCH 014/126] fdt: Show the preprocessed .dts file on error

2019-09-25 Thread Simon Glass
When device-tree compilation fails it is sometimes tricky to see which line is broken, since the input file to dtc is a pre-processed version of the device tree. Add a line that points to the file that needs to be checked: Output is something like this: Error:

[U-Boot] [PATCH 008/126] dm: test: Don't fail when tests are skipped due to build

2019-09-25 Thread Simon Glass
At present tests that are marked as only for livetree fail when executed on sandbox_flattree. They cannot actually be executed, but we should not resport them as 'not found', since this causes errors. Instead, they should be silently skipped. Signed-off-by: Simon Glass --- test/dm/test-main.c

[U-Boot] [PATCH 012/126] dm: core: Add device_foreach_child()

2019-09-25 Thread Simon Glass
We have a 'safe' version of this function but sometimes it is not needed. Add a normal version too and update a few places that can use it. Signed-off-by: Simon Glass --- arch/arm/mach-uniphier/pinctrl-glue.c | 4 ++-- drivers/block/blk-uclass.c| 4 ++-- include/dm/device.h

[U-Boot] [PATCH 029/126] pci: Disable autoconfig in SPL

2019-09-25 Thread Simon Glass
At present U-Boot runs autoconfig in SPL but this is best left to U-Boot proper. For TPL and SPL we can normally used fixed BARs and save code size and time. Signed-off-by: Simon Glass --- drivers/pci/pci-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 025/126] sandbox: Allow use of real I/O with readl(), etc.

2019-09-25 Thread Simon Glass
At present these functions are stubbed out. For more comprehensive testing with PCI devices it is useful to be able to fully emulate I/O access. Add simple implementations for these. Signed-off-by: Simon Glass --- arch/sandbox/cpu/cpu.c | 51

[U-Boot] [PATCH 018/126] sandbox: Add support for clrsetio_32() and friends

2019-09-25 Thread Simon Glass
These functions are available on x86 but not sandbox. They are useful shortcuts and clarify the code, so add them to sandbox. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/io.h | 42 ++- arch/sandbox/lib/pci_io.c | 12 +- 2 files changed,

[U-Boot] [PATCH 038/126] binman: Take account of skip-at-start with image-header

2019-09-25 Thread Simon Glass
The image-header currently sets it offset assuming that skip-at-start is zero. This does not work on x86 where offsets end at 4GB. Add in this value so that the offset is correct. Signed-off-by: Simon Glass --- tools/binman/etype/image_header.py | 1 + 1 file changed, 1 insertion(+) diff

[U-Boot] [PATCH 037/126] binman: Handle reading data for end-at-4gb sections

2019-09-25 Thread Simon Glass
Some x86 sections have special offsets which currently result in empty data being returned from the 'extract' command. Fix this by taking account of the skip-at-start property. Add a little more debugging while we are here. Signed-off-by: Simon Glass --- tools/binman/entry.py | 6

[U-Boot] [PATCH 054/126] x86: Add common functions for TDP and perf control

2019-09-25 Thread Simon Glass
These functions are the same on modern Intel CPUs, so use common code to set them. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/cpu.c | 7 ++ arch/x86/cpu/broadwell/cpu_full.c | 9 --- arch/x86/cpu/intel_common/cpu.c | 20

[U-Boot] [PATCH 051/126] x86: Use a common definition of MSR_IA32_PERF_CTL

2019-09-25 Thread Simon Glass
Remove the duplicate definition as it is not needed. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/cpu.c | 2 +- arch/x86/cpu/broadwell/cpu_full.c | 2 +- arch/x86/cpu/intel_common/cpu.c | 2 +- arch/x86/include/asm/cpu_common.h | 2 -- 4 files changed, 3 insertions(+), 5

[U-Boot] [PATCH v3 01/10] x86: Rename existing FSP code to fsp1

2019-09-25 Thread Simon Glass
Since there is now a new version of the FSP and it is incompatible with the existing version, move the code into an fsp1 directory. This will allow us to put FSP v2 code into an fsp2 directory. Add a Kconfig which defines which version is in use. Some of the code in this new fsp1/ directory is

[U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory

2019-09-25 Thread Simon Glass
This header file is the same for FSP v1 and v2. Move it into the general fsp directory. Signed-off-by: Simon Glass --- Changes in v3: - Drop struct efi_guid and add a comment about forward declarations Changes in v2: - Rewrite to make azalia a common file for FSP1 and FSP2

[U-Boot] [PATCH v2 08/38] spl: handoff: Correct Kconfig condition for SPL and TPL

2019-09-25 Thread Simon Glass
At present these options can be enabled when bloblist is not enabled for SPL or TPL. This is incorrect as SPL handoff requires bloblist. Fix it. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 01/38] binman: Pass the toolpath to binman from the main Makefile

2019-09-25 Thread Simon Glass
Pass in the toolpath in case binman needs to use tools compiled in the U-Boot tools/ directory. Signed-off-by: Simon Glass --- Changes in v2: None Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 0178cdffddb..c5caec8267e 100644 --- a/Makefile +++

[U-Boot] [PATCH v2 04/38] mtd: spi: Add 'struct spi_flash {' to the code

2019-09-25 Thread Simon Glass
At present spi_flash is defined to be spi_nor which is confusing since it is not possible to find the 'spi_flash' by normal text search. Add a comment to help with this. Signed-off-by: Simon Glass --- Changes in v2: None include/linux/mtd/spi-nor.h | 8 +++- 1 file changed, 7

[U-Boot] [PATCH v2 29/38] x86: spl: Use hang() instead of a while() loop

2019-09-25 Thread Simon Glass
Use the standard hang() function when booting fails since this implements the defined U-Boot behaviour for this situation. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/lib/spl.c | 3 +-- arch/x86/lib/tpl.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v2 24/38] x86: fsp: Add a few more definitions for FSP2

2019-09-25 Thread Simon Glass
Add definitions for the FSP signature and the FSP init phase. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/fsp/fsp_infoheader.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/fsp/fsp_infoheader.h

[U-Boot] [PATCH v2 38/38] x86: Rename turbo ratio MSR to MSR_TURBO_RATIO_LIMIT

2019-09-25 Thread Simon Glass
This MSR number is used on most modern Intel processors, so drop the confusing NHM prefix (which might mean Nehalem). Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master arch/x86/cpu/broadwell/cpu_full.c | 2 +- arch/x86/include/asm/msr-index.h | 2 +- 2 files changed, 2

[U-Boot] [PATCH 006/126] dm: core: Correct bad cast in ofnode_get_addr_size_index()

2019-09-25 Thread Simon Glass
At present this code passes an fdt_addr_t pointer as a u64 pointer which is not save, since sizeof(fdt_addr_t) may be 4, e.g. with sandbox. Correct this to avoid a stack corruption problem. Fixes: e679d03b08 (core: ofnode: Add ofnode_get_addr_size_index) Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 004/126] dm: core: Add documentation on how to debug driver model

2019-09-25 Thread Simon Glass
Sometimes devices don't appear and it can be confusing. Add a few notes to help with this situation. Signed-off-by: Simon Glass --- doc/driver-model/debugging.rst | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 doc/driver-model/debugging.rst diff

[U-Boot] [PATCH 017/126] sandbox: Rename PCI ID for swap_case to be more specific

2019-09-25 Thread Simon Glass
Rename this ID to SANDBOX_PCI_SWAP_CASE_EMUL_ID since it is more descriptive and allows us to add new PCI emulators without any conflict or confusion. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/test.h | 2 +- drivers/misc/swap_case.c| 5 +++-- test/dm/pci.c

[U-Boot] [PATCH 022/126] sandbox: pci: Move pci_offset_to_barnum() to pci.h

2019-09-25 Thread Simon Glass
This function is useful in PCI emulators. More it into the header file to avoid duplicating it in other drivers. Signed-off-by: Simon Glass --- drivers/misc/swap_case.c | 7 ++- include/pci.h| 4 2 files changed, 6 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH 020/126] sandbox: pci: Drop the get_devfn() method

2019-09-25 Thread Simon Glass
This method is not used anymore since the bus/device/function of PCI devices can be obtained from their (parent's per-child) platform data. Drop it. Signed-off-by: Simon Glass --- drivers/misc/swap_case.c | 8 include/pci.h| 7 --- 2 files changed, 15 deletions(-)

[U-Boot] [PATCH 023/126] sandbox: Add a -T flag to use the test device tree

2019-09-25 Thread Simon Glass
U-Boot already supports using -D to indicate that it should use the normal device tree. It is sometimes useful to run with the test device tree, e.g. when running a test. Add a -T option for this along with some documentation. It can be used like this: /tmp/b/sandbox/u-boot -T -c "ut dm

[U-Boot] [PATCH 031/126] pci: Add more debug detail when resources are exhausted

2019-09-25 Thread Simon Glass
If PCI auto-config runs out of memory, show a few more details to help diagnose the problem. Signed-off-by: Simon Glass --- drivers/pci/pci_auto_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c index

[U-Boot] [PATCH 036/126] binman: Add a base implementation of Entry.ReadChildData()

2019-09-25 Thread Simon Glass
At present this function is not present in the Entry base class so it is hard to find the documentation for it. Move the docs from the section class and expand it a little. Signed-off-by: Simon Glass --- tools/binman/entry.py | 16 1 file changed, 16 insertions(+) diff --git

[U-Boot] [PATCH 047/126] spl: Allow SPL/TPL to use of-platdata without libfdt

2019-09-25 Thread Simon Glass
At present libfdt is included in SPL/TPL if SPL/TPL_OF_CONTROL is enabled. But if of-platdata is in use this is not required. Update the condition to avoid building this extra code. This ensures that if a libfdt function is used it will produce a link error rather than silently increasing the

[U-Boot] [PATCH 046/126] spl: Allow distinguishing between two phases in U-Boot

2019-09-25 Thread Simon Glass
U-Boot has two distinct phases: before and after relocation. These are commonly referred to as F (running from Flash) and R (Relocated and running from RAM). Some drivers want to do different things in these phases so update the SPL phase function to return a different value for each.

[U-Boot] [PATCH v3 08/10] x86: Move fsp_infoheader.h to the generic fsp directory

2019-09-25 Thread Simon Glass
This header file is the same for FSP v1 and v2. Move it into the general fsp directory. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None arch/x86/include/asm/fsp1/fsp_support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 04/10] x86: Move fsp_api.h inclusion out of fsp_support.h

2019-09-25 Thread Simon Glass
This header file is different for each version of FSP. Move it into the fsp_arch.h header file. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None arch/x86/include/asm/fsp1/fsp_support.h | 1 - arch/x86/include/asm/fsp_arch.h | 1 + 2 files

[U-Boot] [PATCH v2 06/38] spl: Correct priority selection for image loaders

2019-09-25 Thread Simon Glass
At present the name of the image comes first in the linker-list symbol used. This means that the name of the function sets the sort order, which is not the intention. Update it to put the board device type first, then the priority. This produces the expected behaviour. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 10/38] spl: Set up the bloblist in board_init_r()

2019-09-25 Thread Simon Glass
At present the bloblist is set up in spl_common_init() which can be called from spl_early_init(), i.e. before SDRAM is ready. This prevents the bloblist from being located in SDRAM, which is useful on some platforms where SRAM is inaccessible after U-Boot relocates (e.g. x86 CAR region). It

[U-Boot] [PATCH v2 19/38] x86: fsp: Tidy up comment style a little

2019-09-25 Thread Simon Glass
The comments in the FSP code use a different style from the rest of the x86 code. I am not sure it this is intentional. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/fsp/fsp_support.h | 42 - arch/x86/include/asm/fsp1/fsp_support.h | 30

[U-Boot] [PATCH v2 02/38] binman: Allow selection of logging verbosity

2019-09-25 Thread Simon Glass
Support a new BINMAN_VERBOSE option to the build, to allow passing the -v flag to binman. Signed-off-by: Simon Glass --- Changes in v2: None Makefile| 3 ++- tools/binman/README | 6 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index

[U-Boot] [PATCH v2 09/38] spl: Add an arch-specific hook for writing to SPL handoff

2019-09-25 Thread Simon Glass
At present there is an arch-specific area in the SPL handoff area intended for use by arch-specific code, but there is no explicit call to fill in this data. Add a hook for this. Also use the hook to remove the sandbox-specific test code from write_spl_handoff(). Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v2 20/38] x86: fsp: Move common dram functions into a common file

2019-09-25 Thread Simon Glass
Most of the DRAM functionality can be shared between FSP1 and FSP2. Move it into a shared file. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/fsp/fsp_support.h | 9 +++ arch/x86/lib/Makefile | 1 + arch/x86/lib/fsp/Makefile | 5 ++

[U-Boot] [PATCH v2 26/38] x86: Move common Intel CPU info code into a function

2019-09-25 Thread Simon Glass
Add cpu_intel_get_info() to find out the CPU info on modern Intel CPUs. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/broadwell/cpu_full.c| 9 + arch/x86/cpu/intel_common/cpu.c | 13 + arch/x86/cpu/ivybridge/model_206ax.c | 8 ++--

[U-Boot] [PATCH v2 21/38] x86: Move common fsp functions into a common file

2019-09-25 Thread Simon Glass
Some of this file can be shared between FSP1 and FSP2. Move it into a shared file. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/fsp/fsp_support.h | 17 arch/x86/include/asm/fsp1/fsp_support.h | 10 --- arch/x86/lib/fsp/Makefile | 1 +

[U-Boot] [PATCH v2 32/38] x86: fsp: Save usable RAM and hob_list in the handoff area

2019-09-25 Thread Simon Glass
The useable RAM is calculated when the RAM is inited. Save this value so that it can be easily used in U-Boot proper. Also save a pointer to the hob list so that it is accessible (before relocation only) in U-Boot proper. This avoids having to scan it in SPL, for everything U-Boot proper might

[U-Boot] [PATCH 001/126] dm: core: Use U-Boot logging instead of pr_debug()

2019-09-25 Thread Simon Glass
The pr_debug() functions do not response to setting the log level and in fact have their own separate log level. Use U-Boot logging instead. Perhaps we should make these options redirect to log_debug(), etc.? Signed-off-by: Simon Glass --- drivers/core/lists.c | 20 1

[U-Boot] [PATCH 044/126] spl: Convert CONFIG_SPL_LIMIT to hex

2019-09-25 Thread Simon Glass
This is currently a decimal value which is not as convenient or meaningful. Also U-Boot tends to use hex everywhere. Convert this option to hex and add a comment for the size_check macro. Signed-off-by: Simon Glass --- Makefile| 10 +++---

[U-Boot] [PATCH 056/126] x86: Add new common CPU functions for turbo/burst mode

2019-09-25 Thread Simon Glass
Add a few more CPU functions that are common on Intel CPUs. Also add attribution for the code source. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/cpu.c | 60 +++ arch/x86/include/asm/cpu_common.h | 49 + 2 files changed, 109

[U-Boot] [PATCH 016/126] sandbox: mmc: Fix up MMC emulator for valgrind

2019-09-25 Thread Simon Glass
At present running sandbox with valgrind produces some warnings due to the MMC emulator not filling in all the expected fields. Fix it. Signed-off-by: Simon Glass --- drivers/mmc/sandbox_mmc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/sandbox_mmc.c

[U-Boot] [PATCH 045/126] spl: Add a size check for TPL

2019-09-25 Thread Simon Glass
We have the ability to enforce a maximum size for SPL but not yet for TPL. Add a new option for this. Document the size check macro while we are here. Signed-off-by: Simon Glass --- Makefile | 7 +++ common/spl/Kconfig | 8 2 files changed, 15 insertions(+) diff --git

[U-Boot] [PATCH 041/126] iod: Enhance to support display of multiple values

2019-09-25 Thread Simon Glass
At present the 'iod' command differs from 'md' in that it only shows a single value. It is useful to see a dump of multiple values, particularly when x86 peripherals contain register sets accessible via I/O ports. Enhance the command to match md. Signed-off-by: Simon Glass --- cmd/io.c | 84

[U-Boot] [PATCH 030/126] pci: Correct 'specifified' and 'Plese' typos

2019-09-25 Thread Simon Glass
Fix these spelling errors the header file and documentation. Fix a small typo in the PCI documentation. Signed-off-by: Simon Glass --- doc/driver-model/pci-info.rst | 2 +- include/pci.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 033/126] dm: pci: Add a function to read a PCI BAR

2019-09-25 Thread Simon Glass
At present PCI address transaction is not supported so drivers must manually read the correct BAR after reading the device tree info. The ns16550 has a suitable implementation, so move this code into the core DM support. Note that there is no live-tree equivalent at present. Signed-off-by: Simon

[U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings

2019-09-25 Thread Simon Glass
These warnings appear every thing sandbox is run (see below) and dwarf the actual useful output. Suppress them. Hopefully at some point a way can be found to fix the root cause. U-Boot 2019.10-rc2 Model: sandbox DRAM: 128 MiB Warning: host_lo MAC addresses don't match: Address in ROM is

[U-Boot] [PATCH 052/126] x86: Add a common function to set CPU thermal target

2019-09-25 Thread Simon Glass
This code appears in a few places, so move it to a common file. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/cpu_full.c| 20 +--- arch/x86/cpu/intel_common/cpu.c | 22 ++ arch/x86/cpu/ivybridge/model_206ax.c | 25 +++--

[U-Boot] [PATCH 034/126] serial: ns16550: Add a PCI device/function field

2019-09-25 Thread Simon Glass
When this UART is used early in boot (before PCI is set up) it is convenient to store the PCI BDF of the UART so that it can be manually configured. This is useful when it is used as a debug UART, for example. Add a new field to hold this information, so that drivers can simply use the existing

[U-Boot] [PATCH 040/126] cros_ec: Add MEC_EMI_BASE and size to the header file

2019-09-25 Thread Simon Glass
Provide these values which are part of the EC interface now. Signed-off-by: Simon Glass --- include/ec_commands.h | 4 1 file changed, 4 insertions(+) diff --git a/include/ec_commands.h b/include/ec_commands.h index 392c1f1a43a..444ba61e591 100644 --- a/include/ec_commands.h +++

Re: [U-Boot] help with serial on the rockchip64

2019-09-25 Thread Simon South
On 2019-09-24 9:33 p.m., Sergio de Almeida Lenzi wrote: note that NetBSD only uses ONE boot file... Ah, I'm not familiar with the U-Boot package in NetBSD; I've been working from the main U-Boot repository. So I'm don't know how pkgsrc builds that image or what it contains. So the

[U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code

2019-09-25 Thread Simon Glass
At present the x86 FSP (Firmware Support Package) code assumes that FSP version 1 is used. Since this code was added to U-Boot a new version (FSP2) has been produced by Intel. In preparation for adding support for FSP2, move the existing code into a directory that indicates it is used for FSP1.

[U-Boot] [PATCH v3 03/10] x86: Create a new fsp_arch.h header

2019-09-25 Thread Simon Glass
At present fsp_support.h includes fsp_vpd.h which is an FPSv1 concept (VPD means Vital Product Data). For FSPv2 only UPD (Updatable Product Data) is used. To avoid mangling header files, put these two includes in a separate header which we can adjust as necessary for FSPv2. Signed-off-by: Simon

[U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h to the generic fsp directory

2019-09-25 Thread Simon Glass
This header file is the same for FSP v1 and v2. Move it into the general fsp directory. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h| 0 arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h |

  1   2   3   >