Re: [U-Boot] [PATCH v3 13/22] ram: rk3328: use common sdram driver

2019-11-24 Thread Matwey V. Kornilov
Hi, I cannot apply this series on top of current master. On top of which commit it is supposed to be applied? пт, 15 нояб. 2019 г. в 06:05, Kever Yang : > > From: YouMin Chen > > RK3328 has a similar controller and phy with PX30, so we can use the > common driver for it and remove the duplicate

Re: [U-Boot] [PATCH 1/1] efi_loader: default EFI_LOADER=n on ARM11

2019-11-24 Thread Matthias Brugger
On 20/11/2019 19:04, Heinrich Schuchardt wrote: > Some of the ARM11 boards have tight limits on the size of U-Boots. Hence > use EFI_LOADER=n as default on ARM11. > > Set EFI_LOADER=y for the Raspberry Pi and Raspberry Pi Zero as these boards > have sufficient storage on the SD card. > > Sugges

Re: [U-Boot] [GIT PULL] Raspberry Pi updates for v2020.01

2019-11-24 Thread Matthias Brugger
On 22/11/2019 14:40, Marek Szyprowski wrote: > Hi Matthias, > > On 20.11.2019 10:10, Matthias Brugger wrote: >> Hi Tom, >> >> On 20/11/2019 02:57, Tom Rini wrote: >>> On Tue, Nov 19, 2019 at 05:02:34PM +0100, Matthias Brugger wrote: >>> Hi Tom, Please have a look at the below patc

Re: [U-Boot] Pull request for UEFI sub-system for efi-2020-01-rc4 (2)

2019-11-24 Thread Tom Rini
On Sat, Nov 23, 2019 at 03:07:12PM +0100, Heinrich Schuchardt wrote: > The following changes since commit 2800540d101d7b0dd0629c5177fca48331d2927d: > > Update MAINTAINERS to include environment files (2019-11-21 08:36:40 > -0500) > > are available in the Git repository at: > > https://gitla

Re: [U-Boot] [PATCHv2] buildman: Fix problem with non-existent output directories

2019-11-24 Thread Tom Rini
On Tue, Nov 19, 2019 at 03:14:33PM -0500, Tom Rini wrote: > Now that we have buildman telling genboards.cfg to use an output > directory we need to ensure that it exists. > > Cc: Bin Meng > Cc: Simon Glass > Fixes: bc750bca1246 ("tools: buildman: Honor output directory when generating > boards

Re: [U-Boot] [PATCH] moveconfig.py: Fix more Python3 UTF issues

2019-11-24 Thread Tom Rini
On Sun, Nov 10, 2019 at 09:19:37PM -0500, Tom Rini wrote: > With the move to using Python 3 for real, we encounter two different > issues. First, the file include/video_font_data.h includes at least one > UTF-16 character. Given that it does not include any CONFIG symbols it > is easiest to just

Re: [U-Boot] [PATCH v2 1/1] arm: fix -march for ARM11

2019-11-24 Thread Tom Rini
On Sat, Nov 23, 2019 at 09:14:54AM +0100, Heinrich Schuchardt wrote: > In GCC 9 support for the Armv5 and Armv5E architectures (which have no > known implementations) has been removed, cf. > https://gcc.gnu.org/gcc-9/changes.html > > ARM11 is an armv6 implementation. So change the architecture fl

Re: [U-Boot] [PATCH v2] travis: move orangepi to vendor job

2019-11-24 Thread Tom Rini
On Thu, Nov 21, 2019 at 06:50:12AM +0100, Heiko Schocher wrote: > move orangepi builds into a new job, and exclude > orangepi builds from sunxi and rockchip jobs. > > Signed-off-by: Heiko Schocher > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: P

Re: [U-Boot] [PATCH v2 1/3] tools: checkpatch: Restore 'debug' and 'printf' to logFunctions list

2019-11-24 Thread Tom Rini
On Thu, Nov 21, 2019 at 02:32:46PM +, James Byrne wrote: > The 'debug' and 'printf' functions were previously added to the list of > logFunctions in commit 0cab42110dbf ("checkpatch.pl: Add 'debug' to > the list of logFunctions") and commit 397bfd4642c1 ("checkpatch.pl: > Add 'printf' to logFu

Re: [U-Boot] [PATCH v3] travis: rework NXP layerscape jobs

2019-11-24 Thread Tom Rini
On Fri, Nov 22, 2019 at 11:17:29AM +0100, Heiko Schocher wrote: > remove from NXP arm32 all layerscape boards and > build them instead in already existing layerscape > jobs (which now not only build aarch64 boards) > > Signed-off-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom s

Re: [U-Boot] [PATCH] scripts: dtc: ignore files generated generated by python

2019-11-24 Thread Tom Rini
On Wed, Nov 13, 2019 at 02:42:41PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add __pycache__ to ignored files and extend the rule for _libfdt to also > include generated shared objects (e.g. > _libfdt.cpython-37m-x86_64-linux-gnu.so). > > Signed-off-by: Bartosz Golaszew

Re: [U-Boot] Pull request: u-boot-rockchip-20191124

2019-11-24 Thread Tom Rini
e950cba2d89b6bd: > > Prepare v2020.01-rc3 (2019-11-18 21:31:49 -0500) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20191124 > > for you to fetch changes up to 8019d32c4701b95410

Re: [U-Boot] [PATCH v5 17/26] configs: socfpga: mcvevk: Remove useless UBI infos

2019-11-24 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:19PM +0200, Miquel Raynal wrote: > There is no flash on this board, there is no reason to define MTD > environment variables nor UBI. Drop them from the configuration file. > > Signed-off-by: Miquel Raynal > --- > configs/socfpga_mcvevk_defconfig | 3 --- > 1 file

Re: [U-Boot] [PATCH v3 13/22] ram: rk3328: use common sdram driver

2019-11-24 Thread Matwey V. Kornilov
I've found that the series is already applied, sorry :-) It works fine on rock64 for me. вс, 24 нояб. 2019 г. в 11:05, Matwey V. Kornilov : > > Hi, > > I cannot apply this series on top of current master. On top of which > commit it is supposed to be applied? > > пт, 15 нояб. 2019 г. в 06:05, Keve

Re: [U-Boot] [PATCH 2/5] common: add blkcache init

2019-11-24 Thread Eric Nelson
Hi Angelo, On 11/23/19 3:47 PM, Angelo Dureghello wrote: From: Angelo Durgehello On m68k, block_cache list is relocated, but next and prev list pointers are not adjusted to the relocated struct list_head address, so the first iteration over the block_cache list hangs. This patch initializes t

Re: [U-Boot] [PATCH] blk: Check if_type in blk_get_devnum_by_typename

2019-11-24 Thread Heinrich Schuchardt
On 11/24/19 7:09 PM, Juha Sarlin wrote: While searching for a BLK device, this function checks only for a matching devnum. It should check if_type, too. Could you, please, describe in which cases you have observed a problem and how it can be reproduced. According to the function description th

[U-Boot] Pico-imx7d and imx7d sabre Break on 2020.01-rc3

2019-11-24 Thread Joris Offouga
Anatolij, Fabio I just compiled a fresh U-Boot with U-Boot master and It looks like commit f0b54d (video: mxsfb: Configure the clock after eLCDIF reset") [1] breaks my Pico-imx7d and imx7d-Sabre. see logs after: U-Boot 2020.01-rc3-00489-g47b48fe186 (Nov 24 2019 - 15:18:23 +0100) CPU:   Frees

[U-Boot] [PATCH] armv8: layerscape: fix SPL multi DTB loading

2019-11-24 Thread Michael Walle
Mark board_fit_config_name_match() as weak so a board can overwrite the empty function. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/fsl-layerscape/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-l

Re: [U-Boot] Pico-imx7d and imx7d sabre Break on 2020.01-rc3

2019-11-24 Thread Fabio Estevam
Hi Joris, On Sun, Nov 24, 2019 at 5:06 PM Joris Offouga wrote: > > Anatolij, Fabio > > > I just compiled a fresh U-Boot with U-Boot master and It looks > like commit f0b54d (video: mxsfb: Configure the clock after eLCDIF > reset") [1] > breaks my Pico-imx7d and imx7d-Sabre. > see logs after: > >

[U-Boot] [PATCH] Revert "video: mxsfb: Configure the clock after eLCDIF reset"

2019-11-24 Thread Fabio Estevam
Commit ec3dcea74470 ("video: mxsfb: Configure the clock after eLCDIF reset") causes boot regression on imx7d-pico/imx7d-sdb boards, so revert it until a better solution is prepared. This reverts commit ec3dcea7447031463643c33143b3a5f027f0b54d. Reported-by: Joris Offouga Signed-off-by: Fabio Est

Re: [U-Boot] [PATCH 5/6] arm: dts: ls1028a: adds Ethernet switch node and its dependencies

2019-11-24 Thread Alexandru Marginean
Hi Michael, On 11/24/2019 1:11 AM, Michael Walle wrote: > Am 2019-11-22 02:36, schrieb Alex Marginean: >> The definition follows the DSA binding in kernel and describes the >> switch, >> its ports and PHYs. >> ENETC PF6 is the 2nd Eth controller linked to the switch on LS1028, it is > > nitpicki

Re: [U-Boot] [PATCH] Revert "video: mxsfb: Configure the clock after eLCDIF reset"

2019-11-24 Thread Anatolij Gustschin
Hi Fabio, On Sun, 24 Nov 2019 17:37:52 -0300 Fabio Estevam feste...@gmail.com wrote: > Commit ec3dcea74470 ("video: mxsfb: Configure the clock after eLCDIF reset") > causes boot regression on imx7d-pico/imx7d-sdb boards, so revert it > until a better solution is prepared. > > This reverts commi

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

2019-11-24 Thread Anatolij Gustschin
Hi Tom, The following changes since commit 9a0cbae22a613dfd55e15565785749b74c19fdf0: Merge tag 'u-boot-rockchip-20191124' of https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip (2019-11-23 20:50:11 -0500) are available in the Git repository at: https://gitlab.denx

[U-Boot] [GIT PULL resed] Raspberry Pi updates for v2020.01

2019-11-24 Thread Matthias Brugger
Hi Tom, This is a new pull request for the RPi updates for v2020.01. After you noticed that the first pull request broke FAT implementation I deleted the corresponding patch series from the pull request. In the meantime the one binary support for RPi is ready to be merged, so I added the series.

[U-Boot] [PATCH] blk: Check if_type in blk_get_devnum_by_typename

2019-11-24 Thread Juha Sarlin
While searching for a BLK device, this function checks only for a matching devnum. It should check if_type, too. Signed-off-by: Juha Sarlin --- drivers/block/blk-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c

[U-Boot] [PATCH 2/2] bootm: Add a bootm command for type IH_OS_EFI

2019-11-24 Thread Cristian Ciocaltea
Add support for booting EFI binaries contained in FIT images. A typical usage scenario is chain-loading GRUB2 in a verified boot environment. Signed-off-by: Cristian Ciocaltea --- cmd/Kconfig | 9 - cmd/bootefi.c | 2 +- common/bootm_os.c | 44

[U-Boot] [PATCH 1/2] image: Add IH_OS_EFI for EFI chain-load boot

2019-11-24 Thread Cristian Ciocaltea
Add a new OS type to be used for chain-loading an EFI compatible firmware or boot loader like GRUB2, possibly in a verified boot scenario. Bellow is sample ITS file that generates a FIT image supporting secure boot. Please note the presence of 'os = "efi";' line, which identifies the currently int

[U-Boot] [PATCH 0/2] Add support for booting EFI FIT images

2019-11-24 Thread Cristian Ciocaltea
Currently the only way to run an EFI binary like GRUB2 is via the 'bootefi' command, which cannot be used in a verified boot scenario. The obvious solution to this limitation is to add support for booting FIT images containing those EFI binaries. The implementation relies on a new image type - IH

Re: [U-Boot] [PATCH] blk: Check if_type in blk_get_devnum_by_typename

2019-11-24 Thread Juha Sarlin
> On 24 Nov 2019, at 19:37, Heinrich Schuchardt wrote: > > On 11/24/19 7:09 PM, Juha Sarlin wrote: >> While searching for a BLK device, this function checks only for a >> matching devnum. It should check if_type, too. > > Could you, please, describe in which cases you have observed a problem >

[U-Boot] [PATCH 1/1] buildman: Improve [make-flags] section parser to allow quoted strings

2019-11-24 Thread Cristian Ciocaltea
The parser responsible for the '[make-flags]' section in the '.buildman' settings file is currently not able to handle quoted strings, as given in the sample bellow: [make-flags] qemu_arm=HOSTCC="cc -isystem /add/include" HOSTLDFLAGS="-L/add/lib" This patch replaces the simple string splitter bas

[U-Boot] [RFC PATCH 0/1] Update doc/README.drivers.eth

2019-11-24 Thread Andre Przywara
Hi, during my quest in converting two network drivers to the driver model, I couldn't find any real documentation in explaining the new network driver model, or how to address such a port. After some digging in the code (both in the framework and in some drivers), I decided to update the existing

[U-Boot] [RFC PATCH 1/1] doc: net: Rewrite network driver documentation

2019-11-24 Thread Andre Przywara
doc/README.drivers.eth seems like a good source for understanding U-Boot's network subsystem, but is only talking about legacy network drivers. This is particularly sad as proper documentation would help in porting drivers over to the driver model. Rewrite the document to describe network drivers

[U-Boot] [PATCH] binman: README: fix default filename of u-boot-with-ucode-ptr

2019-11-24 Thread Masahiro Yamada
The suffix should be ".bin" instead of ".dtb" . Signed-off-by: Masahiro Yamada --- tools/binman/README.entries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/README.entries b/tools/binman/README.entries index 10994335217c..26050da7702f 100644 --- a/tools/binman

Re: [U-Boot] [PATCH] binman: README: fix default filename of u-boot-with-ucode-ptr

2019-11-24 Thread Bin Meng
On Mon, Nov 25, 2019 at 9:45 AM Masahiro Yamada wrote: > > The suffix should be ".bin" instead of ".dtb" . > > Signed-off-by: Masahiro Yamada > --- > > tools/binman/README.entries | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng __

[U-Boot] [PATCH v2] configs: ls1028ardb: enable usb net r8152_eth

2019-11-24 Thread Yinbo Zhu
Enable ls1028ardb usb net r8152_eth Signed-off-by: Yinbo Zhu --- configs/ls1028ardb_tfa_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/ls1028ardb_tfa_defconfig b/configs/ls1028ardb_tfa_defconfig index 1fab450..0664014 100644 --- a/configs/ls1028ardb_tfa_defconfig +++ b/c

Re: [U-Boot] [PATCH v3] arm: add acpi support for the arm

2019-11-24 Thread Steven Hao
Dear Bin: Firstly: I know that acpi about x86 is existing. And it is usefull for x86 platfporm. If it is used to arm platform,some modification may have to do. For example,facs table is useless for arm. In adition,The acpi table is writed statically and then modified dynamically in my patch.

Re: [U-Boot] [PATCH v3] arm: add acpi support for the arm

2019-11-24 Thread Bin Meng
Hi Steven, On Mon, Nov 25, 2019 at 10:09 AM Steven Hao wrote: > > Dear Bin: > > Firstly: > I know that acpi about x86 is existing. And it is usefull for x86 platfporm. > If it is used to arm platform,some modification may have to do. For > example,facs table is useless for arm. > > In adition,

Re: [U-Boot] [PATCH v3] arm: add acpi support for the arm

2019-11-24 Thread Steven Hao
Dear Bin: I have a suggetion that the acpi specification definition such as all acpi table structure definition should be place in /include directory. and write_acpi_tables function can be placed in platform directory. Creating acpi table mothod can be diffrent between x86 and arm. Thank you

Re: [U-Boot] [PATCH] board: ti: am43xx: remove net platform code

2019-11-24 Thread Lokesh Vutla
On 22/11/19 10:56 PM, Grygorii Strashko wrote: > The TI AM43xx platform has DM_ETH and OF_CONTROL enabled, > so remove networking platform code. > > Signed-off-by: Grygorii Strashko Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot m

Re: [U-Boot] [PATCH] board: ti: dra7-evm: remove net platform code

2019-11-24 Thread Lokesh Vutla
On 22/11/19 10:56 PM, Grygorii Strashko wrote: > The DRA7 has DM_ETH and OF_CONTROL enabled, so remove networking platform > code. > > Signed-off-by: Grygorii Strashko Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-B

Re: [U-Boot] [PATCH v3 1/3] spi: nxp_fspi: new driver for the FlexSPI controller

2019-11-24 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Michael Walle >Sent: Thursday, November 21, 2019 6:18 PM >To: u-boot@lists.denx.de >Subject: Re: [U-Boot] [PATCH v3 1/3] spi: nxp_fspi: new driver for the FlexSPI >controller > >Am 2019-11-06 00:03, schrieb Michael Walle: >> This is a port o

Re: [U-Boot] [PATCH v4] armv8: Add workaround for USB erratum A-050106

2019-11-24 Thread Priyanka Jain
>-Original Message- >From: Ran Wang >Sent: Thursday, November 21, 2019 12:26 PM >To: Priyanka Jain >Cc: u-boot@lists.denx.de; Albert Aribaud >Subject: RE: [PATCH v4] armv8: Add workaround for USB erratum A-050106 > >Hi Priyanka, > >On Thursday, November 21, 2019 13:26, Priyanka Jain wr

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

2019-11-24 Thread Simon Glass
Apollo Lake 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 Apollo Lake. As an example it adds an implementation of chromebook_coral (a large range

[U-Boot] [PATCH v5 001/101] binman: Add a library to access binman entries

2019-11-24 Thread Simon Glass
SPL and TPL can access information about binman entries using link-time symbols but this is not available in U-Boot proper. Of course it could be made available, but the intention is to just read the device tree. Add support for this, so that U-Boot can locate entries. Signed-off-by: Simon Glass

[U-Boot] [PATCH v5 003/101] dm: core: Fix offset_to_ofnode() with invalid offset

2019-11-24 Thread Simon Glass
If the offset is -1 this function correctly sets up a null ofnode. But if the offset is any other negative number (e.g. -FDT_ERR_BADPATH) then it does the wrong thing. An offset of -1 in ofnode indicates that the ofnode is not valid. Any other negative value is not handled by ofnode_valid(). We co

[U-Boot] [PATCH v5 002/101] dm: gpio: Allow control of GPIO uclass in SPL

2019-11-24 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 existin

[U-Boot] [PATCH v5 005/101] dm: pci: Move pci_get_devfn() into a common file

2019-11-24 Thread Simon Glass
Early in boot it is necessary to decode the PCI device/function values for particular peripherals in the device tree or of-platdata. This is needed in TPL where CONFIG_PCI is not defined. To handle this, move pci_get_devfn() into a file that is built even when CONFIG_PCI is not defined. Also add

[U-Boot] [PATCH v5 010/101] x86: spi: Add helper functions for Intel Fast SPI

2019-11-24 Thread Simon Glass
Most x86 CPUs use a mechanism where the SPI flash is mapped into the very top of 32-bit address space, so that it can be executed in place and read simply by copying from memory. For an 8MB ROM the mapping starts at 0xff80. However some recent Intel CPUs do not use a simple 1:1 memory map. Ins

[U-Boot] [PATCH v5 009/101] i2c: designware: Support use in SPL

2019-11-24 Thread Simon Glass
Allow this driver to set up an IO address in SPL using an 'early-regs' property. This allows SPL to use the I2C driver without having to enable the full PCI stack. Also split out ofdata_to_platdata in designware driver since this is more correct, and more convenient for the new logic. Signed-off-

[U-Boot] [PATCH v5 007/101] i2c: designware: Tidy up PCI support

2019-11-24 Thread Simon Glass
This is hacked into the driver at present. It seems better to have it as a separate driver that uses the base driver. Create a new file and put the X86 code into it. Actually the Baytrail settings should really come from the device tree. Note that 'has_max_speed' is added as well. This is current

[U-Boot] [PATCH v5 004/101] dm: pci: Allow delaying auto-config until after relocation

2019-11-24 Thread Simon Glass
At present PCI auto-configuration happens in U-Boot both before and after relocation. This is a waste of time and may mess up static addresses used in board_init_f(). Adjust the code to supporting doing auto-configuration once, after relocation, under control of a device-tree property. This is nee

[U-Boot] [PATCH v5 006/101] net: Move the checksum functions to lib/

2019-11-24 Thread Simon Glass
These functions are used by code outside the network support, so move them to lib/ to be more accessible. Without this, the functions are only accessible if CONFIG_NET is defined. Many boards do not enable that option but still want to do checksums in this format. Fix up a few code-style nits whi

[U-Boot] [PATCH v5 019/101] x86: power: Add an ACPI PMC uclass

2019-11-24 Thread Simon Glass
Intel x86 SoCs have a power manager/controller which handles several power-related aspects of the platform. Add a uclass for this, with a few useful operations. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: - Fix alpha order in Kconfig - Switch over to

[U-Boot] [PATCH v5 016/101] x86: timer: Reduce timer code size in TPL on Intel CPUs

2019-11-24 Thread Simon Glass
Most of the timer-calibration methods are not needed on recent Intel CPUs and just increase code size. Add an option to use the known-good way to get the clock frequency in TPL. Size reduction is about 700 bytes. Note that version 1 of this commit caused bootstage to crash since the CPU was not id

[U-Boot] [PATCH v5 017/101] x86: Drop unnecessary cpu code for TPL

2019-11-24 Thread Simon Glass
We don't need to know every detail about the CPU in TPL. Drop some superfluous functions to reduce code size. Add a simple CPU detection algorithm which just supports Intel and AMD, since we only support TPL on Intel, so far. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Dr

[U-Boot] [PATCH v5 029/101] x86: Correct mrccache find_next_mrc_cache() calculation

2019-11-24 Thread Simon Glass
This should take account of the end of the new cache record since a record cannot extend beyond the end of the flash region. This problem was not seen before due to the alignment of the relatively small amount of MRC data. But with Apollo Lake the MRC data is about 45KB, even if most of it is zero

[U-Boot] [PATCH v5 031/101] x86: Adjust mrccache_get_region() to support get_mmap()

2019-11-24 Thread Simon Glass
It is now possible to obtain the memory map for a SPI controllers instead of having it hard-coded in the device tree. Update the code to support this. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Use SPI mmap() instead of SPI flash

[U-Boot] [PATCH v5 014/101] Revert "RFC: sandbox: net: Suppress the MAC-address warnings"

2019-11-24 Thread Simon Glass
This reverts commit 96ac4def8b6686de8566b91419ce98cd5765079b. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/sandbox/cpu/state.c | 12 ++-- arch/sandbox/include/asm/state.h | 5 + cmd/nvedit.c

[U-Boot] [PATCH v5 018/101] x86: Drop unnecessary interrupt code for TPL

2019-11-24 Thread Simon Glass
We don't expect an exception in TPL and don't need to set up interrupts in TPL. Drop this whole file. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Drop the whole interrupt file for TPL Changes in v3: None Changes in v2: None arch/x86/cpu/i386/Makefile | 2 ++ 1 file cha

[U-Boot] [PATCH v5 012/101] board_r: Move early-timer init later

2019-11-24 Thread Simon Glass
At present the early timer init happens as soon as driver mode is set up. This makes it impossible to do any in that needs driver model but must run before devices are problem (as needed with Intel's FSP-S, for example). In any case it is not a good idea to tie probing of particular drivers too cl

[U-Boot] [PATCH v5 011/101] fdt: Show the preprocessed .dts file on error

2019-11-24 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: When the error is in the main .dts file, output is something like this:

[U-Boot] [PATCH v5 021/101] x86: power: Add a 'pmc' command

2019-11-24 Thread Simon Glass
Add a simple command to show information about the PMC. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: - Rename power-mgr uclass to acpi-pmc Changes in v2: None arch/Kconfig | 1 + cmd/Kconfig | 8 ++ cmd/Makefile | 1 + cmd/pmc.c| 81 +++

[U-Boot] [PATCH v5 013/101] RFC: sandbox: net: Suppress the MAC-address warnings

2019-11-24 Thread Simon Glass
These warnings appear every thing sandbox is run (see below) and dwarf the actual useful output. Suppress them in two ways: 1. For the mismatch warnings, only set the ethaddr environment variables when running tests. 2. For the 'MAC address from ROM' warning, never print this on sandbox. Signed-

[U-Boot] [PATCH v5 022/101] pci: Add support for p2sb uclass

2019-11-24 Thread Simon Glass
The Primary-to-Sideband bus (P2SB) is used to access various peripherals through memory-mapped I/O in a large chunk of PCI space. The space is segmented into different channels and peripherals are accessed by device-specific means within those channels. Devices should be added in the device tree as

[U-Boot] [PATCH v5 026/101] sandbox: Add a test for IRQ

2019-11-24 Thread Simon Glass
Add a simple sandbox test for this uclass. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Drop itss uclass change in Makefile (now in previous patch) - Drop sandbox defconfig change now that p2sb change is correct - Enable IRQ for sandbox64 too to avoid build error Changes

[U-Boot] [PATCH v5 023/101] sandbox: Disable mmio by default in tests

2019-11-24 Thread Simon Glass
When reseting sandbox for tests, disable mmio support since that is the default state. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Split out into a separate patch Changes in v3: None Changes in v2: None arch/sandbox/cpu/state.c | 1 + 1 file changed, 1 insertion(+) di

[U-Boot] [PATCH v5 045/101] x86: fsp: Add FSP2 base support

2019-11-24 Thread Simon Glass
Add support for some important configuration options and FSP memory init. The memory init uses swizzle tables from the device tree. Support for the FSP_S binary is also included. Bootstage timing is used for both FSP_M and FSP_S and memory-mapped SPI reads. Signed-off-by: Simon Glass --- Chang

[U-Boot] [PATCH v5 037/101] x86: Move fsp_prepare_mrc_cache() to fsp1 directory

2019-11-24 Thread Simon Glass
This function needs to be different for FSP2, so move the existing function into the fsp1 directory. Since it is only called from one file, drop it from the header file. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v

[U-Boot] [PATCH v5 030/101] x86: Adjust mrccache_get_region() to use livetree

2019-11-24 Thread Simon Glass
Change the algorithm to first find the flash device then read the properties using the livetree API. With this change the device is not probed so this needs to be done in mrccache_save(). Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: - Update mrccache live

[U-Boot] [PATCH v5 008/101] i2c: designware: Avoid using static data

2019-11-24 Thread Simon Glass
Drivers are not allowed to use static data since they may be used in SPL where BSS is not available. It is possible that driver model may provide support for numbering devices in the future. But for now, move this to global_data. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4:

[U-Boot] [PATCH v5 046/101] x86: fsp: Set up an MTRR for the graphics frame buffer

2019-11-24 Thread Simon Glass
The FSP-S may do this but at least for coral it does not. Set this up so that graphics is not deathly slow. It isn't clear whether the FSP is expected to set up MTRR. It is not mentioned in the APL FSP document. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes i

[U-Boot] [PATCH v5 089/101] x86: apl: Add hostbridge driver

2019-11-24 Thread Simon Glass
This driver models the hostbridge as a northbridge. It simply sets up the graphics BAR. It supports of-platdata. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Avoid needing to know internals of pinctrl in this driver - Move code to pinctrl driver - Switch over to use pinctr

[U-Boot] [PATCH v5 054/101] x86: Update the fsp command for FSP2

2019-11-24 Thread Simon Glass
The current 'fsp' command only works with FSP1. Update it to handle FSP2 as well. Convert everything to hex which is what U-Boot uses. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Explain why FSP-M cannot be shown - Use hex for size values also Changes in v3: - Convert co

[U-Boot] [PATCH v5 040/101] x86: Don't imply libfdt or SPI flash in TPL

2019-11-24 Thread Simon Glass
We don't want to pull in libfdt if of-platdata is being used, since it reduces the available code-size saves. Also, SPI flash is seldom needed in TPL. Drop these options. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: None Changes in v3: - Don't imply S

[U-Boot] [PATCH v5 038/101] x86: Set the DRAM banks to reflect real location

2019-11-24 Thread Simon Glass
At present with fsp a single DRAM bank is added which extends to the whole size of memory. However there is typically only 2GB of memory available below the 4GB boundary, and this is what is used by U-Boot while running in 32-bit mode. Scan the tables to set the banks correct. The first bank is se

[U-Boot] [PATCH v5 028/101] x86: Reduce mrccache record alignment size

2019-11-24 Thread Simon Glass
At present the records are 4KB in size. This is unnecessarily large when the SPI-flash erase size is 256 bytes. Reduce it so it will be more efficient with Apollo Lake's 24-byte variable-data record. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: - apol

[U-Boot] [PATCH v5 039/101] x86: Set up the MTRR for SDRAM

2019-11-24 Thread Simon Glass
Set up MTRRs for the FSP SDRAM regions to improve performance. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: - Fix FST typo Changes in v4: None Changes in v3: - Move mtrr_add_request() call into this patch Changes in v2: None arch/x86/lib/fsp/fsp_dram.c | 5 + 1 fi

[U-Boot] [PATCH v5 033/101] x86: Tidy up error handling in mrccache_save()

2019-11-24 Thread Simon Glass
This function is a bit confusing at present due to the error handling. Update it to remove the goto, returning errors as they happen. While we are here, use hex for the data size since this is the norm in U-Boot. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes

[U-Boot] [PATCH v5 043/101] x86: fsp: Make graphics support common to FSP1/2

2019-11-24 Thread Simon Glass
Both versions of FSP can use the same graphics support, so move it into the common directory. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/x86/lib/fsp/Makefile | 3 +++ arch/x86/lib/{f

[U-Boot] [PATCH v5 063/101] x86: spi: Don't enable SPI_FLASH_BAR by default

2019-11-24 Thread Simon Glass
We don't normally need this on x86 unless the size of SPI flash devices is larger than 16MB. This can be enabled by particular SoCs as needed, since it adds to code size. Drop the default enabling of this option on x86. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Chan

[U-Boot] [PATCH v5 065/101] spi: ich: Move the protection/lockdown code into a function

2019-11-24 Thread Simon Glass
Reduce the size of the probe function but putting this code into its own function. Also remove the assumption that the PCH is always a parent of the SPI controller, as this is not the case APL platforms. Use driver model to find the PCH instead. Signed-off-by: Simon Glass Reviewed-by: Bin Meng

[U-Boot] [PATCH v5 064/101] spi: ich: Move init function just above probe()

2019-11-24 Thread Simon Glass
It is annoying to have some of the init code in a different part of the file. Move ich_init_controller() to just above probe() to keep things together. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/

[U-Boot] [PATCH v5 020/101] x86: sandbox: Add a PMC emulator and test

2019-11-24 Thread Simon Glass
Add a simple PMC for sandbox to permit tests to run. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: - Rename power-mgr uclass to acpi-pmc - Tidy up Makefile rules to reduce duplication Changes in v2: None arch/Kconfig | 2 + arch/s

[U-Boot] [PATCH v5 032/101] x86: Add a new global_data member for the cache record

2019-11-24 Thread Simon Glass
At present we reuse the mrc_output char * to also point to the cache record after it has been set up. This is confusing and doesn't save much data space. Add a new mrc_cache member instead. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: None Changes in

[U-Boot] [PATCH v5 091/101] x86: apl: Add LPC driver

2019-11-24 Thread Simon Glass
This driver the LPC and provides a few functions to set up LPC features. These should probably use ioctls() or perhaps, better, have specific uclass methods. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Add comments for exported functions - Tidy up header guards - Use 'Apo

[U-Boot] [PATCH v5 057/101] x86: Add an option to control the position of SPL

2019-11-24 Thread Simon Glass
For Apollo Lake SPL is run from CAR (cache-as-RAM) which is in a different location from where SPL must be placed in ROM. In other words, although SPL runs before SDRAM is set up, it is not execute-in-place (XIP). Add a Kconfig option for the ROM position. Signed-off-by: Simon Glass Reviewed-by:

[U-Boot] [PATCH v5 015/101] x86: timer: use a timer base of 0

2019-11-24 Thread Simon Glass
On x86 platforms the timer is reset to 0 when the SoC is reset. Having this as the timer base is useful since it provides an indication of how long it takes before U-Boot is running. When U-Boot sets the timer base to something else, time is lost and we no-longer have an accurate account of the ti

[U-Boot] [PATCH v5 097/101] x86: apl: Add P2SB driver

2019-11-24 Thread Simon Glass
Adds a driver for the Apollo Lake Primary-to-sideband bus. This supports various child devices. It supposed both device tree and of-platdata. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Detect zero mmio address - Use BIT() macro bit more - apollolake -> Apollo Lake Chang

[U-Boot] [PATCH v5 060/101] x86: Separate out U-Boot and device tree in ROM image

2019-11-24 Thread Simon Glass
At present binman does not support updating a device tree that is part of U-Boot (i.e u-boot.bin). Separate the entries into two so that we can get updated entry information. This makes binman_entry_find() work correctly. Do the same for SPL tool. In both cases, group the two parts into a section

[U-Boot] [PATCH v5 061/101] x86: Make MSR_PKG_POWER_SKU common

2019-11-24 Thread Simon Glass
This is used on several boards so add it to the common file. Also add a useful power-limit value while we are here. Reviewed-by: Bin Meng Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/x86/include/asm/arch-broadwell/cpu.h

[U-Boot] [PATCH v5 094/101] x86: apl: Add SPL loaders

2019-11-24 Thread Simon Glass
Add loaders for SPL and TPL so that the next stage can be loaded from memory-mapped SPI or, failing that, the Fast SPI driver. Signed-off-by: Simon Glass --- Changes in v5: - Add L2 cache flush functoin - Drop SAFETY_MARGIN Changes in v4: None Changes in v3: - Add a driver for APL SPI for TPL

[U-Boot] [PATCH v5 024/101] sandbox: Add PCI driver and test for p2sb

2019-11-24 Thread Simon Glass
Add a sandbox driver and PCI-device emulator for p2sb. Also add a test which uses a simple 'adder' driver to test the p2sb functionality. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Drop change to message about a missing uclass - Drop empty operations struct since p2sb do

[U-Boot] [PATCH v5 078/101] x86: Enable pinctrl in SPL and TPL

2019-11-24 Thread Simon Glass
If these phases are used we typically want to enable pinctrl in then, so that pad setup and GPIO access are possible. Signed-off-by: Simon Glass --- Changes in v5: - Correct build error in chromebook_samus_tpl Changes in v4: None Changes in v3: None Changes in v2: None arch/Kconfig

[U-Boot] [PATCH v5 095/101] x86: apl: Add a CPU driver

2019-11-24 Thread Simon Glass
Add a bare-bones CPU driver so that CPUs can be probed. Signed-off-by: Simon Glass --- Changes in v5: - Add L2 cache flush function - Drop SAFETY_MARGIN Changes in v4: - Change apollolake to apl - Tidy up header guards Changes in v3: - Add two more defines for the CPU driver - Expand comments

[U-Boot] [PATCH v5 055/101] x86: Update .dtsi file for FSP2

2019-11-24 Thread Simon Glass
Include the IFWI section and the FSP-M binary. The FSP-T binary is not currently used, as CAR is set up manually. Also drop the FSP binary as this relates only to FSP1. Reviewed-by: Bin Meng Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: - Add FSP-S and V

[U-Boot] [PATCH v5 027/101] x86: Define the SPL image start

2019-11-24 Thread Simon Glass
Define this symbol so that we can use binman symbols correctly. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/x86/cpu/u-boot-spl.lds | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH v5 084/101] x86: apl: Add PMC driver

2019-11-24 Thread Simon Glass
Add a driver for the Apollo Lake SoC. It supports the basic operations and can use device tree or of-platdata. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Fix Makefile copyright message - Fix incorrect mask check in pmc_gpe_init() - Switch over to use pinctrl for pad init

[U-Boot] [PATCH v5 053/101] x86: Disable microcode section for FSP2

2019-11-24 Thread Simon Glass
At present we don't support loading microcode with FSP2. The correct way to do this is by adding it to the FIT. For now, disable including microcode in the image. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v5: None Changes in v4: None Changes in v3: - Drop unnecessary #else

[U-Boot] [PATCH v5 056/101] x86: Add an option to control the position of U-Boot

2019-11-24 Thread Simon Glass
The existing work-around for positioning U-Boot in the ROM when it actually runs from RAM still exists and there is not obvious way to change this. Add a proper Kconfig option to handle this case. This also adds a new bool property to indicate whether CONFIG_SYS_TEXT_BASE exists. Signed-off-by: S

[U-Boot] [PATCH v5 025/101] x86: Move UCLASS_IRQ into a separate file

2019-11-24 Thread Simon Glass
Update this uclass to support the needs of the Apollo Lake ITSS. It supports four operations. Move the uclass into a separate directory so that sandbox can use it too. Add a new Kconfig to control it and enable this on x86. Signed-off-by: Simon Glass --- Changes in v5: None Changes in v4: - Dro

  1   2   >