Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Anup Patel
On Tue, Nov 27, 2018 at 12:30 PM Rick Chen wrote: > > Anup Patel 於 2018年11月27日 週二 下午2:40寫道: > > > > On Tue, Nov 27, 2018 at 12:00 PM Rick Chen wrote: > > > > > > Anup Patel 於 2018年11月27日 週二 下午2:14寫道: > > > > > > > > > > > > > > > > On Tue, 27 Nov, 2018, 11:38 AM Rick Chen > > >> > > > >> Anup

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-11-26 Thread Sumit Garg
Hi Akashi, On Tue, 27 Nov 2018 at 12:14, AKASHI Takahiro wrote: > > Sumit, > > # I have a similar patch in my local branch :) > IIRC, we did sync on this work. > On Mon, Nov 26, 2018 at 04:50:17PM +0530, Sumit Garg wrote: > > Currently on qemu-arm platforms environment is kept in RAM. Instead

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-26 Thread Simon Goldschmidt
On Tue, Nov 27, 2018 at 1:11 AM Marek Vasut wrote: > > Convert all Renesas R-Car boards to bootm_size of 256 MiB and drop both > fdt_high and initrd_high. This change implies that the FDT and initrd > will always be copied into the first 256 MiB of RAM instead of being > used in place, which can

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Rick Chen
Anup Patel 於 2018年11月27日 週二 下午2:40寫道: > > On Tue, Nov 27, 2018 at 12:00 PM Rick Chen wrote: > > > > Anup Patel 於 2018年11月27日 週二 下午2:14寫道: > > > > > > > > > > > > On Tue, 27 Nov, 2018, 11:38 AM Rick Chen > >> > > >> Anup Patel 於 2018年11月27日 週二 下午1:47寫道: > > >> > > > >> > On Tue, Nov 27, 2018

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Anup Patel
On Tue, Nov 27, 2018 at 12:14 PM Rick Chen wrote: > > > > > > > When we run U-Boot in S-mode the BBL runs from 0x8000 so this > > > > > > two lines corrupts BBL instructions. > > Hi Anup > > You said > Your patchset based upon git://git.denx.de/u-boot-riscv.git > > Why you announce this

Re: [U-Boot] [PATCH v5 1/4] riscv: Add kconfig option to run U-Boot in S-mode

2018-11-26 Thread Anup Patel
On Tue, Nov 27, 2018 at 12:09 PM Rick Chen wrote: > > > > Subject: [PATCH v5 1/4] riscv: Add kconfig option to run U-Boot in S-mode > > > > > > This patch adds kconfig option RISCV_SMODE to run U-Boot in S-mode. When > > > this > > > opition is enabled we use s CSRs instead of m CSRs. > > > > >

[U-Boot] [PATCH 4/5] arc: emsdp: Refactor register and bit accesses

2018-11-26 Thread Alexey Brodkin
Instead of "base + offset" define all registers right away and access them later via direct defines. Generate bit masks with "BIT" macro. Signed-off-by: Alexey Brodkin --- board/synopsys/emsdp/emsdp.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[U-Boot] [PATCH 5/5] arc: devboards: Implement checkboard()

2018-11-26 Thread Alexey Brodkin
This allows us to print nice board name on boot. Signed-off-by: Alexey Brodkin --- board/synopsys/axs10x/axs10x.c | 8 board/synopsys/emsdp/emsdp.c | 10 ++ board/synopsys/hsdk/hsdk.c | 6 ++ 3 files changed, 24 insertions(+) diff --git

[U-Boot] [PATCH 2/5] arc: Get rid of board-specific print_cpuinfo()

2018-11-26 Thread Alexey Brodkin
Since we now do advanced CPU identification in generic ARC code there's no need to have per-board hardcoded data. Signed-off-by: Alexey Brodkin --- board/synopsys/hsdk/hsdk.c | 8 board/synopsys/iot_devkit/iot_devkit.c | 10 -- 2 files changed, 18 deletions(-)

[U-Boot] [PATCH 3/5] arc: emsdp: Read real CPU clock value from hardware

2018-11-26 Thread Alexey Brodkin
We do real CPU clock measurement with help of built-in counters. Thus we may accommodate different real clock values that appear in different FPA images instead of relying on something hard-coded in the .dtb. And while at it make make SDIO base address define look similar to others with casting

[U-Boot] [PATCH 1/5] ARC: Improve identification of ARC cores

2018-11-26 Thread Alexey Brodkin
1. Try to guess a ARC core template that was used i.e. not just name a core family but something more menaingful like "ARC HS38", "ARC EM11D" etc. We do it checking availability of the key differentiation features like: - Caches (we actually only check for L1 I$ fpr simplicity)

[U-Boot] [PATCH 0/5] Improve identification of ARC cores

2018-11-26 Thread Alexey Brodkin
Print more complex information about ARC core we're running on. This includes smarts for ARC core template detection, CPU clock frequency, human-readable board·description etc. Alexey Brodkin (5): ARC: Improve identification of ARC cores arc: Get rid of board-specific print_cpuinfo() arc:

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-11-26 Thread AKASHI Takahiro
Sumit, # I have a similar patch in my local branch :) On Mon, Nov 26, 2018 at 04:50:17PM +0530, Sumit Garg wrote: > Currently on qemu-arm platforms environment is kept in RAM. Instead > use pflash device 1 to provide persistent environment support across > device reset. > > Also (optionally)

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Rick Chen
> > > > > When we run U-Boot in S-mode the BBL runs from 0x8000 so this > > > > > two lines corrupts BBL instructions. Hi Anup You said Your patchset based upon git://git.denx.de/u-boot-riscv.git Why you announce this problem in [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Anup Patel
On Tue, Nov 27, 2018 at 12:00 PM Rick Chen wrote: > > Anup Patel 於 2018年11月27日 週二 下午2:14寫道: > > > > > > > > On Tue, 27 Nov, 2018, 11:38 AM Rick Chen >> > >> Anup Patel 於 2018年11月27日 週二 下午1:47寫道: > >> > > >> > On Tue, Nov 27, 2018 at 11:14 AM Anup Patel wrote: > >> > > > >> > > On Tue, Nov 27,

Re: [U-Boot] [PATCH v5 1/4] riscv: Add kconfig option to run U-Boot in S-mode

2018-11-26 Thread Rick Chen
> > Subject: [PATCH v5 1/4] riscv: Add kconfig option to run U-Boot in S-mode > > > > This patch adds kconfig option RISCV_SMODE to run U-Boot in S-mode. When > > this > > opition is enabled we use s CSRs instead of m CSRs. > > > > It is important to note that there is no equivalent S-mode CSR

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Rick Chen
Anup Patel 於 2018年11月27日 週二 下午2:14寫道: > > > > On Tue, 27 Nov, 2018, 11:38 AM Rick Chen > >> Anup Patel 於 2018年11月27日 週二 下午1:47寫道: >> > >> > On Tue, Nov 27, 2018 at 11:14 AM Anup Patel wrote: >> > > >> > > On Tue, Nov 27, 2018 at 10:50 AM Rick Chen wrote: >> > > > >> > > > Anup Patel 於

[U-Boot] [PATCH] arc: emsdp: Bump RAM size to 16 Mb

2018-11-26 Thread Alexey Brodkin
On v2 boards that will hit real stock we'll have 16 Mb of RAM. Note on v1 boards (if anybody ever get one out of trash bin) this leads to U-Boot execution freeze in the middle ofthe relocation so don't be surprised. Signed-off-by: Alexey Brodkin --- include/configs/emsdp.h | 2 +- 1 file

[U-Boot] [PATCH 2/2] net: phy: Add gmiitorgmii converter support

2018-11-26 Thread Siva Durga Prasad Paladugu
This patch adds support for gmiitorgmii converter. This converter sits between the MAC and the external phy MAC <==> GMII2RGMII <==> RGMII_PHY. The ethernet driver probes this bridge and this bridge driver probes real phy driver and invokes the real phy functionalities as requested. This bridge

[U-Boot] [PATCH 1/2] net: phy: Move fixed link code to separate routine

2018-11-26 Thread Siva Durga Prasad Paladugu
This patch moves fixed-link functionality code to a separate routine inorder to make it more modular and cleaner. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/net/phy/phy.c | 34 +++--- 1 file changed, 27 insertions(+), 7

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Anup Patel
On Tue, 27 Nov, 2018, 11:38 AM Rick Chen Anup Patel 於 2018年11月27日 週二 下午1:47寫道: > > > > On Tue, Nov 27, 2018 at 11:14 AM Anup Patel wrote: > > > > > > On Tue, Nov 27, 2018 at 10:50 AM Rick Chen > wrote: > > > > > > > > Anup Patel 於 2018年11月27日 週二 上午11:28寫道: > > > > > > > > > > On Tue, Nov 27,

Re: [U-Boot] [PATCH 1/2] net: move ether_crc to tsec driver

2018-11-26 Thread Simon Goldschmidt
On Tue, Nov 27, 2018 at 4:19 AM Chris Packham wrote: > > On Mon, Nov 26, 2018 at 9:12 PM Simon Goldschmidt > wrote: > > > > On Mon, Nov 26, 2018 at 9:00 AM Chris Packham > > wrote: > > > > > > ether_crc was added to the core net code in commit 53a5c424bf86 > > > ("multicast tftp: RFC2090") so

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Rick Chen
Anup Patel 於 2018年11月27日 週二 下午1:47寫道: > > On Tue, Nov 27, 2018 at 11:14 AM Anup Patel wrote: > > > > On Tue, Nov 27, 2018 at 10:50 AM Rick Chen wrote: > > > > > > Anup Patel 於 2018年11月27日 週二 上午11:28寫道: > > > > > > > > On Tue, Nov 27, 2018 at 8:50 AM Rick Chen wrote: > > > > > > > > > > > > >

Re: [U-Boot] [PATCH v2 25/32] spi: Zap sh_spi driver-related code

2018-11-26 Thread Jagan Teki
On Sun, Nov 25, 2018 at 11:36 PM Marek Vasut wrote: > > On 11/25/2018 06:28 PM, Jagan Teki wrote: > > (trimming the insane and utterly useless To: list) > > > Dropped > > - sh_spi driver > > - CONFIG_SH_SPI,SH_SPI_BASE > > > > Dropped becuase > > - no active updates > > - no dm conversion > > -

Re: [U-Boot] [PATCH 2/2] net: remove CONFIG_MCAST_TFTP

2018-11-26 Thread Simon Goldschmidt
On Tue, Nov 27, 2018 at 4:15 AM Chris Packham wrote: > > On Mon, Nov 26, 2018 at 9:15 PM Simon Goldschmidt > wrote: > > > > On Mon, Nov 26, 2018 at 9:00 AM Chris Packham > > wrote: > > > > > > No mainline board enables CONFIG_MCAST_TFTP and there have been > > > compilation issues with the

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Anup Patel
On Tue, Nov 27, 2018 at 11:14 AM Anup Patel wrote: > > On Tue, Nov 27, 2018 at 10:50 AM Rick Chen wrote: > > > > Anup Patel 於 2018年11月27日 週二 上午11:28寫道: > > > > > > On Tue, Nov 27, 2018 at 8:50 AM Rick Chen wrote: > > > > > > > > > > > > Currently, the RISC-V U-Boot is saving a2 register at > >

Re: [U-Boot] [PATCH v3 0/8] Fix CVE-2018-18440 and CVE-2018-18439

2018-11-26 Thread Simon Goldschmidt
On Tue, Nov 27, 2018 at 2:02 AM Simon Glass wrote: > > Hi Simon, > > On Sat, 17 Nov 2018 at 05:25, Simon Goldschmidt > wrote: > > > > This series fixes CVE-2018-18440 ("insufficient boundary checks in > > filesystem image load") by adding restrictions to the 'load' > > command and fixes

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Anup Patel
On Tue, Nov 27, 2018 at 10:50 AM Rick Chen wrote: > > Anup Patel 於 2018年11月27日 週二 上午11:28寫道: > > > > On Tue, Nov 27, 2018 at 8:50 AM Rick Chen wrote: > > > > > > > > > > Currently, the RISC-V U-Boot is saving a2 register at > > > > > > > CONFIG_SYS_DRAM_BASE in start.S which does not make sense

Re: [U-Boot] [PATCH v2 2/8] fdt: parse "reserved-memory" for memory reservation

2018-11-26 Thread Simon Goldschmidt
On Tue, Nov 27, 2018 at 2:02 AM Simon Glass wrote: > > Hi Simon, > > On Sat, 17 Nov 2018 at 02:18, Simon Goldschmidt > wrote: > > > > boot_fdt_add_mem_rsv_regions() adds reserved memory sections to an lmb > > struct. Currently, it only parses regions described by /memreserve/ > > entries. > > >

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Rick Chen
Anup Patel 於 2018年11月27日 週二 上午11:28寫道: > > On Tue, Nov 27, 2018 at 8:50 AM Rick Chen wrote: > > > > > > > > Currently, the RISC-V U-Boot is saving a2 register at > > > > > > CONFIG_SYS_DRAM_BASE in start.S which does not make sense because > > > > > > there is no information passed by previous

Re: [U-Boot] Uboot send pull request

2018-11-26 Thread Rick Chen
> > > Hi Tom, > > > > > > Please pull the following patch from u-boot-riscv into your tree. > > > Thanks! > > > > In the future can you please include a short summary here if you aren't > > using a > > signed tag? Thanks! Hi Tom Sorry about that ! I will use a signed tag or include a short

Re: [U-Boot] [U-Boot, v5, 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-26 Thread Ryder Lee
Hi Tom, On Mon, 2018-11-26 at 22:12 -0500, Tom Rini wrote: > On Thu, Nov 15, 2018 at 10:07:49AM +0800, Ryder Lee wrote: > > > This patch adds support for MTK boot image generation. > > > > Signed-off-by: Weijie Gao > > Signed-off-by: Ryder Lee > > Reviewed-by: Simon Glass > [snip] > > diff

[U-Boot] [PATCH] Makefile: fix build error on mt7629_rfb using buildman

2018-11-26 Thread Weijie Gao
This patch fixes the build error for mt7629 boards when using buildman. Signed-off-by: Weijie Gao --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index a5d0c1b..8962b53 100644 --- a/Makefile +++ b/Makefile @@ -1368,6 +1368,8 @@ u-boot.elf: u-boot.bin #

Re: [U-Boot] pxe: Try even board specific boot

2018-11-26 Thread Tom Rini
On Wed, Oct 17, 2018 at 04:24:23PM +0200, michal.hruse...@nic.cz wrote: > From: Michal Hrusecky > > Add path containing board name (if available) to the list of paths tried via > PXE by default. Some SoC families are quite diverse and sometimes it makes > sense to have special image just for a

Re: [U-Boot] [PATCH V3 1/6] mmc: tmio: Switch to clock framework

2018-11-26 Thread Masahiro Yamada
On Tue, Nov 27, 2018 at 6:35 AM Marek Vasut wrote: > > On 11/14/2018 12:40 AM, Marek Vasut wrote: > > Switch the driver to using clk_get_rate()/clk_set_rate() instead of > > caching the mclk frequency in it's private data. This is required on > > the SDHI variant of the controller, where the

Re: [U-Boot] [PATCH V3 3/6] mmc: tmio: Keep generating clock when clock are enabled

2018-11-26 Thread Masahiro Yamada
On Wed, Nov 14, 2018 at 8:44 AM Marek Vasut wrote: > > The TMIO core has a feature where it can automatically disable clock output > when the bus is not in use. While this is useful, it also interferes with > switching the bus to 1.8V and other background tasks of the SD/MMC cards, > which

Re: [U-Boot] [RFC for-v2019.01 3/4] dm: MIGRATION: Add migration plan for CONFIG_SATA

2018-11-26 Thread Chris Packham
On Tue, Nov 27, 2018 at 1:25 AM Tom Rini wrote: > > On Mon, Nov 26, 2018 at 07:32:38PM +1300, Chris Packham wrote: > > Hi Tom, > > > > On Mon, Nov 26, 2018 at 7:20 AM Tom Rini wrote: > > > > > > As the core of the subsystem has been converted along with some of the > > > drivers, formalize a

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Anup Patel
On Tue, Nov 27, 2018 at 8:50 AM Rick Chen wrote: > > > > > > Currently, the RISC-V U-Boot is saving a2 register at > > > > > CONFIG_SYS_DRAM_BASE in start.S which does not make sense because > > > > > there is no information passed by previous booting stage in a2 > > > > > register. > > > > > > >

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Rick Chen
> > > > Currently, the RISC-V U-Boot is saving a2 register at > > > > CONFIG_SYS_DRAM_BASE in start.S which does not make sense because > > > > there is no information passed by previous booting stage in a2 > > > > register. > > > > > > > > This patch removes redundant a2 store on DRAM base. > > >

Re: [U-Boot] [PATCH 1/2] net: move ether_crc to tsec driver

2018-11-26 Thread Chris Packham
On Mon, Nov 26, 2018 at 9:12 PM Simon Goldschmidt wrote: > > On Mon, Nov 26, 2018 at 9:00 AM Chris Packham wrote: > > > > ether_crc was added to the core net code in commit 53a5c424bf86 > > ("multicast tftp: RFC2090") so that other drivers could use it. However > > the only current user of it is

Re: [U-Boot] [PATCH 2/2] net: remove CONFIG_MCAST_TFTP

2018-11-26 Thread Chris Packham
On Mon, Nov 26, 2018 at 9:15 PM Simon Goldschmidt wrote: > > On Mon, Nov 26, 2018 at 9:00 AM Chris Packham wrote: > > > > No mainline board enables CONFIG_MCAST_TFTP and there have been > > compilation issues with the code for some time. Additionally, it has a > > potential buffer underrun issue

Re: [U-Boot] [U-Boot, v4, 4/4] pinctrl: stm32: make pinctrl use hwspinlock

2018-11-26 Thread Tom Rini
On Fri, Nov 16, 2018 at 03:00:39PM +0100, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > Protect configuration registers with a hardware spinlock. > > If a hwspinlock is defined in the device-tree node used it > to be sure that none of the others processors on the SoC could > change

Re: [U-Boot] [U-Boot, v5, 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-26 Thread Tom Rini
On Thu, Nov 15, 2018 at 10:07:49AM +0800, Ryder Lee wrote: > This patch adds support for MTK boot image generation. > > Signed-off-by: Weijie Gao > Signed-off-by: Ryder Lee > Reviewed-by: Simon Glass [snip] > diff --git a/Makefile b/Makefile > index 552687d..a5d0c1b 100644 > --- a/Makefile >

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

2018-11-26 Thread Tom Rini
On Mon, Nov 26, 2018 at 11:57:55PM +0530, Jagan Teki wrote: > 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) In the future can you

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

2018-11-26 Thread Tom Rini
On Mon, Nov 26, 2018 at 09:43:21PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > The following changes since commit 1d6edcbfed2af33c748f2beb399810a0441888da: > > Merge tag 'pull-14nov18' of git://git.denx.de/u-boot-dm (2018-11-16 > 08:37:50 -0500) > > are available in the Git repository

Re: [U-Boot] Uboot send pull request

2018-11-26 Thread Tom Rini
On Mon, Nov 26, 2018 at 02:18:29PM +0800, ub...@andestech.com wrote: > Hi Tom, > > Please pull the following patch from u-boot-riscv into your tree. > Thanks! In the future can you please include a short summary here if you aren't using a signed tag? Thanks! > > The following changes

[U-Boot] [PATCH] efi_loader: bootmgr: support BootNext and BootCurrent variable behavior

2018-11-26 Thread AKASHI Takahiro
See UEFI v2.7, section 3.1.2 for details of the specification. With my efishell command[1], you can try as the following: => efi boot add 1 SHELL ... => efi boot add 2 HELLO ... => efi boot order 1 2 => efi bootmgr (starting SHELL ...) => efi setvar BootNext =H0200 => efi bootmgr

Re: [U-Boot] [PATCH v2 3/5] rv1108: Enable eMMC support

2018-11-26 Thread Philipp Tomsich
> On 27.11.2018, at 02:56, Andy Yan wrote: > > Hi: > > On 2018/11/27 上午12:18, Otavio Salvador wrote: >> On Tue, Nov 20, 2018 at 4:56 PM Otavio Salvador >> wrote: >>> This adds the pinctrl handles to enable the use of eMMC on custom >>> boards (as minievk) and makes it easier for later

Re: [U-Boot] [PATCH v2 3/5] rv1108: Enable eMMC support

2018-11-26 Thread Andy Yan
Hi: On 2018/11/27 上午12:18, Otavio Salvador wrote: On Tue, Nov 20, 2018 at 4:56 PM Otavio Salvador wrote: This adds the pinctrl handles to enable the use of eMMC on custom boards (as minievk) and makes it easier for later addition. Signed-off-by: Otavio Salvador Andy, did you review it? Is

Re: [U-Boot] [PATCH v2 5/5] rv1108: Add support for default distro_bootcmd

2018-11-26 Thread Andy Yan
Hi: On 2018/11/21 上午2:55, Otavio Salvador wrote: This allow easier integration of RV1108 based boards on generic distributions and build systems. Signed-off-by: Otavio Salvador --- Changes in v2: None include/configs/rv1108_common.h | 15 +++ 1 file changed, 15 insertions(+)

Re: [U-Boot] [PATCH v2 4/5] rv1108: Make USB OTG functional

2018-11-26 Thread Andy Yan
Hi: On 2018/11/21 上午2:55, Otavio Salvador wrote: Like it is done for other Rockchip SoCs, introduce a board_usb_init() function so that USB OTG can be functional on rv1108 too. Signed-off-by: Otavio Salvador --- Changes in v2: None arch/arm/dts/rv1108.dtsi | 45

Re: [U-Boot] [PATCH v2 3/5] rv1108: Enable eMMC support

2018-11-26 Thread Andy Yan
Hi:  The subject should be something like: "Arm: dts: rockchip: add emmc pinctrl for rv1108" On 2018/11/21 上午2:55, Otavio Salvador wrote: This adds the pinctrl handles to enable the use of eMMC on custom boards (as minievk) and makes it easier for later addition. Signed-off-by: Otavio

Re: [U-Boot] [PATCH v2 2/5] rv1108: Enable BOUNCE_BUFFER

2018-11-26 Thread Andy Yan
Hi On 2018/11/21 上午2:55, Otavio Salvador wrote: In order to be able to build the Rockchip eMMC driver on rv1108, the BOUNCE_BUFFER option needs to be selected. Select it like it is done on the other Rockchip SoC common files. Signed-off-by: Otavio Salvador --- Changes in v2: - new patch

Re: [U-Boot] [PATCH v2 1/5] clk_rv1108: Sync with vendor tree

2018-11-26 Thread Andy Yan
Hi On 2018/11/21 上午2:55, Otavio Salvador wrote: Make adjustments to the rv1108 clock driver in order to align it with the internal Rockchip version. Signed-off-by: Otavio Salvador --- Changes in v2: None .../include/asm/arch-rockchip/cru_rv1108.h| 143 +-

Re: [U-Boot] [PATCH 1/2] x86: Wrap calls to 8259 with CONFIG_I8259_PIC

2018-11-26 Thread Bin Meng
Hi Simon, On Tue, Nov 27, 2018 at 9:02 AM Simon Glass wrote: > > Hi Bin, > > On Mon, 19 Nov 2018 at 03:44, Bin Meng wrote: > > > > mask_irq(), unmask_irq() and specific_eoi() are provided by the > > i8259 PIC driver and should be wrapped with CONFIG_I8259_PIC. > > > > Signed-off-by: Bin Meng >

Re: [U-Boot] [PATCH v2] Kconfig: Migrate CONFIG_RTC_M41T62 define to Kconfig

2018-11-26 Thread Simon Glass
On Thu, 22 Nov 2018 at 06:54, Lukasz Majewski wrote: > > This patch moves the RTC M41T62 config define to Kconfig. > > Signed-off-by: Lukasz Majewski > Reviewed-by: Stefan Roese > --- > configs/bk4r1_defconfig | 1 + > configs/m53menlo_defconfig | 1 + > configs/pcm052_defconfig | 1

Re: [U-Boot] [PATCH] spl: implement CRC check on U-Boot uImage

2018-11-26 Thread Simon Glass
On Sat, 24 Nov 2018 at 05:46, Simon Goldschmidt wrote: > > SPL currently does not check uImage CRCs when loading U-Boot. > > This patch adds checking the uImage CRC when SPL loads U-Boot. It does > this by reusing the existing config option SPL_CRC32_SUPPORT to allow > leaving out the CRC check

Re: [U-Boot] [PATCH v1 02/16] dm: usb: create a new UCLASS ID for USB gadget devices

2018-11-26 Thread Simon Glass
On Wed, 21 Nov 2018 at 03:51, Jean-Jacques Hiblot wrote: > > UCLASS_USB_DEV_GENERIC was meant for USB devices connected to host > controllers, not gadget devices. > Adding a new UCLASS for gadget devices alone. > > Also move the generic DM code for USB gadgets in a separate file for > clarity. >

Re: [U-Boot] [PATCH 2/3] buildman/toolchain.py: fix toolchain directory

2018-11-26 Thread Simon Glass
On Wed, 21 Nov 2018 at 01:32, Trevor Woerner wrote: > > The hexagon toolchain (4.6.1) from kernel.org, for example, was packaged in > a way that is different from most toolchains. The first entry when unpacking > most toolchain tarballs is: > > gcc--nolib/- > > e.g.: > >

Re: [U-Boot] [PATCH v2 3/4] arm: baltos: move CONFIG_SYS_NAND_U_BOOT_OFFS to defconfig

2018-11-26 Thread Simon Glass
On Thu, 22 Nov 2018 at 01:19, wrote: > > From: Yegor Yefremov > > Also get rid of CONFIG_SYS_NAND_SPL_KERNEL_OFFS as SPL_OS_BOOT > feature won't be used. > > Signed-off-by: Yegor Yefremov > --- > configs/am335x_baltos_defconfig | 2 ++ > include/configs/baltos.h| 9 + > 2 files

Re: [U-Boot] [PATCH 1/3] buildman/toolchain.py: update versions

2018-11-26 Thread Simon Glass
On Wed, 21 Nov 2018 at 01:32, Trevor Woerner wrote: > > On kernel.org, a newer 8.1.0 version of the toolchains is available. Also, > update the kernel.org version list to include some of the older versions so > more architectures can be supported. > > Signed-off-by: Trevor Woerner > --- >

Re: [U-Boot] [PATCH v2 2/4] arm: baltos: remove unused header

2018-11-26 Thread Simon Glass
On Thu, 22 Nov 2018 at 01:19, wrote: > > From: Yegor Yefremov > > OnRISC Baltos series uses SoM with tps65910 PMIC, so remove > "power/tps65217.h" header inclusion. > > Signed-off-by: Yegor Yefremov > --- > board/vscom/baltos/board.c | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon

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

2018-11-26 Thread Simon Glass
Hi Andy, On Tue, 20 Nov 2018 at 14:52, Andy Shevchenko wrote: > > In some cases it would be good to know the settings, such as parity, > of current serial console. One example might be an ACPI SPCR table > to generate using these parameters. > > Signed-off-by: Andy Shevchenko > --- >

Re: [U-Boot] [PATCH v2 1/4] arm: baltos: move the board to CONFIG_BLK

2018-11-26 Thread Simon Glass
On Thu, 22 Nov 2018 at 01:19, wrote: > > From: Yegor Yefremov > > Use DM for both MMC and USB subsystems and use dedicated DTS > for U-Boot configuration. > > Disable SPL support for GPIO and remove EVMSK leftover for > DDR power control via GPIO. > > Signed-off-by: Yegor Yefremov > --- >

Re: [U-Boot] [PATCH v3 0/9] efi_loader: fix memory handling

2018-11-26 Thread Simon Glass
Hi Heinrich, On Sun, 18 Nov 2018 at 09:59, Heinrich Schuchardt wrote: > > The Sandbox uses an address space that is neither the physical nor the > virtual address space of the operating system. > > In the EFI subsystem we should only use addresses that can be used by an > EFI application. With

Re: [U-Boot] [PATCH v5 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-11-26 Thread Simon Glass
Hi Weijie, On Mon, 19 Nov 2018 at 23:36, Weijie Gao wrote: > > Hi Simon, > > On Mon, 2018-11-19 at 10:14 -0700, Simon Glass wrote: > > Hi Weijie, > > > > On Mon, 19 Nov 2018 at 00:16, Weijie Gao wrote: > > > > > > On Fri, 2018-11-16 at 11:26 -0700, Simon Glass wrote: > > > > Hi Weijie, > > > >

Re: [U-Boot] [PATCH u-boot v3 1/3] regmap: add regmap_read_poll_timeout() helper

2018-11-26 Thread Simon Glass
Hi Neil, On Thu, 22 Nov 2018 at 03:01, Neil Armstrong wrote: > > Add the regmap_read_poll_timeout() macro based on the Linux implementation > to simplify register polling with configurable timeout and sleep. > > Acked-by: Jagan Teki > Signed-off-by: Neil Armstrong > --- > include/regmap.h |

Re: [U-Boot] [PATCH 2/2] x86: kconfig: Allow board defconfig file to disable 8259 and APIC

2018-11-26 Thread Simon Glass
On Mon, 19 Nov 2018 at 03:44, Bin Meng wrote: > > At present the Kconfig options (CONFIG_I8259_PIC and CONFIG_APIC) > do not include a prompt message, which makes it impossible to > be disabled from a board defconfig file. > > Signed-off-by: Bin Meng > --- > > arch/x86/Kconfig | 4 ++-- > 1

Re: [U-Boot] [PATCH v2 4/4] arm: baltos: migrate Ethernet PHYs configuration to Kconfig

2018-11-26 Thread Simon Glass
On Thu, 22 Nov 2018 at 01:19, wrote: > > From: Yegor Yefremov > > Remove CONFIG_PHY_ATHEROS and CONFIG_PHY_SMSC from defconfig > and select them in Kconfig. > > Signed-off-by: Yegor Yefremov > --- > configs/am335x_baltos_defconfig | 2 ++ > include/configs/baltos.h| 4 > 2 files

Re: [U-Boot] [PATCH 1/2] x86: Wrap calls to 8259 with CONFIG_I8259_PIC

2018-11-26 Thread Simon Glass
Hi Bin, On Mon, 19 Nov 2018 at 03:44, Bin Meng wrote: > > mask_irq(), unmask_irq() and specific_eoi() are provided by the > i8259 PIC driver and should be wrapped with CONFIG_I8259_PIC. > > Signed-off-by: Bin Meng > --- > > arch/x86/lib/interrupts.c | 9 - > 1 file changed, 8

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

2018-11-26 Thread Simon Glass
On Wed, 21 Nov 2018 at 01:32, Trevor Woerner wrote: > > Unfortunately, for some releases the kernel.org toolchain tarball names adhere > to the following pattern: > > -gcc--nolib--.tar.xz > > e.g.: > x86_64-gcc-8.1.0-nolibc-aarch64-linux.tar.xz > > while others use the following

Re: [U-Boot] [PATCH v3 0/8] Fix CVE-2018-18440 and CVE-2018-18439

2018-11-26 Thread Simon Glass
Hi Simon, On Sat, 17 Nov 2018 at 05:25, Simon Goldschmidt wrote: > > This series fixes CVE-2018-18440 ("insufficient boundary checks in > filesystem image load") by adding restrictions to the 'load' > command and fixes CVE-2018-18439 ("insufficient boundary checks in > network image boot") by

Re: [U-Boot] [PATCH v2 5/8] bootm: use new common function lmb_init_and_reserve

2018-11-26 Thread Simon Glass
On Sat, 17 Nov 2018 at 02:18, Simon Goldschmidt wrote: > > This reduces duplicate code only. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: None > > common/bootm.c | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) > Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v2 2/8] fdt: parse "reserved-memory" for memory reservation

2018-11-26 Thread Simon Glass
Hi Simon, On Sat, 17 Nov 2018 at 02:18, Simon Goldschmidt wrote: > > boot_fdt_add_mem_rsv_regions() adds reserved memory sections to an lmb > struct. Currently, it only parses regions described by /memreserve/ > entries. > > Extend this to the more commonly used scheme of the "reserved-memory" >

Re: [U-Boot] [PATCH 01/93] Add a simple script to remove boards

2018-11-26 Thread Simon Glass
Hi Adam, On Mon, 19 Nov 2018 at 11:19, Adam Ford wrote: > > On Mon, Nov 19, 2018 at 9:54 AM Simon Glass wrote: > > > > This script attempts to create a git commit which removes a single board. > > It is quite fallible and everything it does needs checking. But it can > > help speed up the

Re: [U-Boot] [PATCH 51/93] arm: Remove omap3_logic_somlv board

2018-11-26 Thread Simon Glass
Hi Adam, On Mon, 19 Nov 2018 at 11:08, Adam Ford wrote: > > On Mon, Nov 19, 2018 at 9:55 AM Simon Glass wrote: > > > > This board has not been converted to CONFIG_DM_BLK by the deadline. > > Remove it. > > NAK! This board does support BLK. I think your algorithm is looking > for CONFIG_DM_BLK

Re: [U-Boot] [PATCH 48/93] arm: Remove imx6q_logic board

2018-11-26 Thread Simon Glass
Hi Adam, On Mon, 19 Nov 2018 at 11:10, Adam Ford wrote: > > On Mon, Nov 19, 2018 at 9:55 AM Simon Glass wrote: > > > > This board has not been converted to CONFIG_DM_BLK by the deadline. > > Remove it. > > > > NAK. I disagree with your assessment. > > make imx6q_logic_defconfig > cat .config |

Re: [U-Boot] [PATCH 40/93] arm: Remove colibri_pxa270 board

2018-11-26 Thread Simon Glass
On Mon, 26 Nov 2018 at 00:57, Marcel Ziswiler wrote: > > On Mon, 2018-11-19 at 08:53 -0700, Simon Glass wrote: > > This board has not been converted to CONFIG_DM_BLK by the deadline. > > Remove it. > > NAK. I started working on PXA MMC driver which so far is not DM > enabled. Hopefully, I have

[U-Boot] [PATCH v3 1/1] efi_loader: rework fdt handling in distro boot script

2018-11-26 Thread AKASHI Takahiro
The current scenario for default UEFI booting, scan_dev_for_efi, has several issues: * load dtb dynamically even if its loacation (device) is not the same as BOOTEFI_NAME binary's, (reported by Alex) * invoke 'bootmgr' only if BOOTEFI_NAME binary does exit even though 'bootmgr' can and should

[U-Boot] [PATCH v3 0/1] efi_loader: improve boot sequence in distro_bootcmd

2018-11-26 Thread AKASHI Takahiro
Actually, this patch is a RESEND of my v2[1], without patch #2 and #3 as I don't want to dive into details of dtb discussions[2]. I think that the patch #1 alone is useful. If fdt_addr_r is not defined, "load ... ${fdt_addr_r} ${prefix}${efi_fdtfile}" will fail quietly. So it should be OK.

[U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-26 Thread Marek Vasut
Convert all Renesas R-Car boards to bootm_size of 256 MiB and drop both fdt_high and initrd_high. This change implies that the FDT and initrd will always be copied into the first 256 MiB of RAM instead of being used in place, which can cause various kinds of inobvious problems. The simpler

Re: [U-Boot] [PATCH 1/1] cmd: add exception command

2018-11-26 Thread Simon Glass
Hi Heinrich, On Sat, 17 Nov 2018 at 07:29, Heinrich Schuchardt wrote: > > The 'exception' command allows to test exception handling. > > This implementation supports ARM, x86, RISC-V and the following exceptions: > * 'breakpoint' - prefetch abort exception (ARM 32bit only) > * 'unaligned' -

Re: [U-Boot] [U-Boot, v3, 21/21] spl: Add support for passing handoff info to U-Boot proper

2018-11-26 Thread Simon Glass
Hi Tom, On Mon, 26 Nov 2018 at 11:44, Tom Rini wrote: > > On Thu, Nov 15, 2018 at 06:44:09PM -0700, Simon Glass wrote: > > > There is some basic informaton that SPL normally wants to pass through to > > U-Boot, such as the SDRAM size and bank information. > > > > Mkae use of the new bloblist

Re: [U-Boot] [PATCH] exynos: imply SYS_THUMB_BUILD

2018-11-26 Thread Lukasz Majewski
Hi Guillaume, > This patch allows smaller binaries. > This is needed for and has been tested on Arndale board, as > u-boot.bin is now bigger than the 512K load limit, with GCC8, without > thumb mode. > Acked-by: Lukasz Majewski > Signed-off-by: Guillaume GARDET > > Cc: Albert Aribaud > Cc:

Re: [U-Boot] [PATCH v8 00/31] dma: add channels support

2018-11-26 Thread Tom Rini
On Mon, Nov 26, 2018 at 07:00:08PM +0100, Álvaro Fernández Rojas wrote: > In order to add bcm6348-enet support, dma-uclass must be extended to support > dma channels and reworked to operate like the other dm uclass (clk, reset...). > > === > > A DMA is a feature of computer systems that allows

Re: [U-Boot] [PATCH v2 28/32] spi: omap3: Drop non-dm code

2018-11-26 Thread Adam Ford
On Sun, Nov 25, 2018 at 11:39 AM Jagan Teki wrote: > > Drop the non-dm code, those board which uses non-dm need > to define DM_SPI. u-boot build trigger the warning for > the same. > > Signed-off-by: Jagan Teki I don't have a good way to read/write SPI, but my omap3_logic board shows the SPI

Re: [U-Boot] [PATCH 01/93] Add a simple script to remove boards

2018-11-26 Thread Simon Glass
On Mon, 19 Nov 2018 at 11:19, Adam Ford wrote: > > On Mon, Nov 19, 2018 at 9:54 AM Simon Glass wrote: > > > > This script attempts to create a git commit which removes a single board. > > It is quite fallible and everything it does needs checking. But it can > > help speed up the process. > > >

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (24.11.2018)

2018-11-26 Thread Marek Vasut
On 11/26/2018 11:15 PM, Lukasz Majewski wrote: > Hi Jean-Jacques , > >> On 11/26/2018 09:21 PM, Marek Vasut wrote: >>> On 11/26/2018 07:45 PM, Tom Rini wrote: On Sun, Nov 25, 2018 at 07:04:49PM +0100, Marek Vasut wrote: > On 11/24/2018 11:11 PM, Lukasz Majewski wrote: >> Dear

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (24.11.2018)

2018-11-26 Thread Lukasz Majewski
Hi Jean-Jacques , > On 11/26/2018 09:21 PM, Marek Vasut wrote: > > On 11/26/2018 07:45 PM, Tom Rini wrote: > >> On Sun, Nov 25, 2018 at 07:04:49PM +0100, Marek Vasut wrote: > >>> On 11/24/2018 11:11 PM, Lukasz Majewski wrote: > Dear Marek, > > The following changes since

Re: [U-Boot] [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S

2018-11-26 Thread Auer, Lukas
On Mon, 2018-11-26 at 23:10 +0800, Bin Meng wrote: > On Mon, Nov 26, 2018 at 6:43 PM Anup Patel > wrote: > > > > Currently, the RISC-V U-Boot is saving a2 register at > > CONFIG_SYS_DRAM_BASE in start.S which does not make sense > > because there is no information passed by previous booting > >

Re: [U-Boot] [PATCH] mmc: tmio: Reorder TMIO clock handling

2018-11-26 Thread Marek Vasut
On 11/15/2018 10:23 PM, Marek Vasut wrote: > Reorder the tmio_sd_set_clk_rate() function such that it handles all > of the clock requiests correctly. Specifically, before this patch, > clock request with (mmc->clock == 0 && mmc->clk_disable) could leave > the clock enabled, as the function would

Re: [U-Boot] [PATCH V3 1/6] mmc: tmio: Switch to clock framework

2018-11-26 Thread Marek Vasut
On 11/14/2018 12:40 AM, Marek Vasut wrote: > Switch the driver to using clk_get_rate()/clk_set_rate() instead of > caching the mclk frequency in it's private data. This is required on > the SDHI variant of the controller, where the upstream mclk need to > be adjusted when using UHS modes. > >

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

2018-11-26 Thread Anatolij Gustschin
Hi Tom, The following changes since commit 1d6edcbfed2af33c748f2beb399810a0441888da: Merge tag 'pull-14nov18' of git://git.denx.de/u-boot-dm (2018-11-16 08:37:50 -0500) are available in the Git repository at: git://git.denx.de/u-boot-video.git master for you to fetch changes up to

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (24.11.2018)

2018-11-26 Thread Marek Vasut
On 11/26/2018 09:21 PM, Marek Vasut wrote: > On 11/26/2018 07:45 PM, Tom Rini wrote: >> On Sun, Nov 25, 2018 at 07:04:49PM +0100, Marek Vasut wrote: >>> On 11/24/2018 11:11 PM, Lukasz Majewski wrote: Dear Marek, The following changes since commit

Re: [U-Boot] [PATCH v2 2/3] Only attempt to build USB driver model in SPL when required

2018-11-26 Thread Marek Vasut
On 11/26/2018 05:16 PM, Martyn Welch wrote: > On Mon, 2018-11-26 at 11:22 +0100, Marek Vasut wrote: >> On 11/26/2018 11:20 AM, Martyn Welch wrote: >>> On Sat, 2018-11-24 at 19:25 +0100, Marek Vasut wrote: On 11/23/2018 05:47 PM, Martyn Welch wrote: > Current define usage causes tooling to

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (24.11.2018)

2018-11-26 Thread Marek Vasut
On 11/26/2018 07:45 PM, Tom Rini wrote: > On Sun, Nov 25, 2018 at 07:04:49PM +0100, Marek Vasut wrote: >> On 11/24/2018 11:11 PM, Lukasz Majewski wrote: >>> Dear Marek, >>> >>> The following changes since commit >>> 5830791d91d1200854ef78fcb32f808c8080f0f0: >>> >>> Merge tag 'pull-tg18' of

[U-Boot] [PATCH] clk: Allow clock defaults to be set during re-reloc state for SPL only

2018-11-26 Thread Philipp Tomsich
In commit e5e06b65ad65 ("clk: Allow clock defaults to be set also during re-reloc state") the earlier guard against setting clock defaults in pre-reloc state was removed. While it is easy to filter 'assigned-clocks' properties for SPL using CONFIG_OF_SPL_REMOVE_PROPS, no such mechanism exists for

Re: [U-Boot] [PATCH v3 00/19] DM_I2C_COMPAT removal for all ti platforms

2018-11-26 Thread Adam Ford
On Sat, Oct 27, 2018 at 4:46 PM Adam Ford wrote: > > On Mon, Oct 22, 2018 at 9:13 AM Jean-Jacques Hiblot wrote: > > > > This series remove the usage of the DM_I2C_COMPAT option for all the ti > > platforms. It also takes this opportunity to not disable DM_I2C in the SPL. > > > > There are a

Re: [U-Boot] [PATCH v2 01/32] spi: davinci: Full dm conversion

2018-11-26 Thread Adam Ford
On Mon, Nov 26, 2018 at 12:20 PM Jagan Teki wrote: > > On Mon, Nov 26, 2018 at 7:03 PM Adam Ford wrote: > > > > On Sun, Nov 25, 2018 at 11:29 AM Jagan Teki > > wrote: > > > > > > davinci_spi now support dt along with platform data, > > > respective boards need to switch into dm for the same. >

Re: [U-Boot] [U-Boot, v3, 14/21] sandbox: Drop the deprecated 'sb' command

2018-11-26 Thread Tom Rini
On Thu, Nov 15, 2018 at 06:44:02PM -0700, Simon Glass wrote: > The old 'sb' command was deprecated in 2015 and replaced with 'host'. > Remove the remaining users and the command, so that the name is available > for other purposes. > > Signed-off-by: Simon Glass Applied to u-boot/master,

  1   2   3   >