[U-Boot] [PATCH v1 7/8] armv8: ls1046a: add eSDHC node

2018-07-17 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1046a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1046a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arch/arm/dts/fsl-ls1046a.dtsi index 4acbaf7..7687d12 100644 ---

[U-Boot] [PATCH v1 8/8] armv7: ls1021a: enable esdhc

2018-07-17 Thread Yinbo Zhu
This patch is to enable eSDHC for ls1021a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/ls1021a.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi index 5b3fc6a..59c97d5 100644 --- a/arch/arm/dts/ls1021a.dtsi +++

[U-Boot] [PATCH v1 6/8] armv8: ls1043a: add eSDHC node

2018-07-17 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1043a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1043a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi index ff40122..a804f51 100644 ---

[U-Boot] [PATCH v1 5/8] armv8: ls1088a: add eSDHC node

2018-07-17 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1088a.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index 077caf3..72d755a 100644 ---

[U-Boot] [PATCH v3 3/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-07-17 Thread Yinbo Zhu
This enables the folowing to Kconfig: CONFIG_BLK CONFIG_DM_MMC Signed-off-by: Yinbo Zhu --- Change in v3: Changed this patch's order configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++ configs/ls1021atwr_nor_defconfig |2 ++

[U-Boot] [PATCH v1 4/8] armv8: ls2088a: add eSDHC node

2018-07-17 Thread Yinbo Zhu
This patch is to add eSDHC node for ls2088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls2080a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index b0f8517..2d537ae 100644 ---

[U-Boot] [PATCH v2 2/8] armv8/ls1088a/ls2088a: esdhc: Add esdhc clock support

2018-07-17 Thread Yinbo Zhu
This patch adds esdhc clock support for ls1088a and ls2088a. Signed-off-by: Yinbo Zhu --- Change in v2: Changed this patch's order .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH v2 1/8] armv8: ls1088a: fix sd boot config compile issue

2018-07-17 Thread Yinbo Zhu
This patch is to fix sd boot config compile issue for ls1088a. Signed-off-by: Yinbo Zhu --- Change in v2: Changed this patch's order include/mmc.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/mmc.h b/include/mmc.h index 534c317..66e69b7

[U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-17 Thread Peng Fan
From: Ye Li Add CONFIG_ARCH_IMX8 to use the 64bits support in usdhc driver. Signed-off-by: Ye Li Signed-off-by: Peng Fan Cc: Jaehoon Chung --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c

[U-Boot] [PATCH V2 23/32] pinctrl: Add pinctrl driver for i.MX8

2018-07-17 Thread Peng Fan
Add pinctrl driver for i.MX8. The pads configuration is controlled by SCU, so need to ask SCU to configure pads through scfw API. Add pinctrl-scu to invoke sc_pad_set to configue pads. Add a new flag IMX8_USE_SCU to differentiate i.MX8 from other platforms which could directly configure pads from

[U-Boot] [PATCH V2 26/32] serial_lpuart: Update lpuart driver to support i.MX8

2018-07-17 Thread Peng Fan
Add i.MX8 compatible string and cpu type support to lpuart driver, to use little endian 32 bits configurations. Also, accroding to RM, the Receive FIFO Enable (RXFE) field in LPUART FIFO register is bit 3, so the definition should change to 0x08 not 0x40 for i.MX8, otherwise the Receive FIFO is

[U-Boot] [PATCH V2 19/32] imx8: add arch_cpu_init arch_cpu_init_dm

2018-07-17 Thread Peng Fan
Add arch_cpu_init(_dm) mainly to open the channel between ACore and SCU. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/sys_proto.h | 9 ++ arch/arm/mach-imx/imx8/cpu.c | 51 ++ 2 files changed, 60 insertions(+) diff

[U-Boot] [PATCH V2 31/32] arm: dts: introduce dtsi for i.MX8QXP

2018-07-17 Thread Peng Fan
Introduce dtsi for i.MX8QXP, since there is other variants i.MX8DX(P), so add them there, because i.MX8QXP includes the dtsi of them. Signed-off-by: Peng Fan --- arch/arm/dts/fsl-imx8-ca35.dtsi | 66 ++ arch/arm/dts/fsl-imx8dx.dtsi| 444

[U-Boot] [PATCH V2 28/32] serial: lpuart: support uclass clk api

2018-07-17 Thread Peng Fan
Modify most APIs to use udevice as the first param, then it will be easy to get the clk reference by using udevice pointer. Use uclass api to get lpuart clk when CONFIG_CLK enabled. Signed-off-by: Peng Fan --- drivers/serial/serial_lpuart.c | 78 -- 1

[U-Boot] [PATCH V2 17/32] imx8: implement mmc_get_env_dev

2018-07-17 Thread Peng Fan
Implement mmc_get_env_dev for i.MX8. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/mach-imx/imx8/cpu.c | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index 90b6ea4211..0cacaa895c 100644

[U-Boot] [PATCH V2 16/32] imx8: add boot device detection

2018-07-17 Thread Peng Fan
Add get_boot_device to detect boot device. Add print_bootinfo to print the boot device info. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/sys_proto.h | 10 arch/arm/mach-imx/imx8/cpu.c | 85 ++ 2 files changed, 95

[U-Boot] [PATCH V2 27/32] serial: lpuart: Enable RX and TX FIFO

2018-07-17 Thread Peng Fan
From: Ye Li Enable the RX and TX FIFO in LPUART driver to avoid the input lost during u-boot boot up. Signed-off-by: Ye Li Acked-by: Peng Fan --- drivers/serial/serial_lpuart.c | 33 ++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH V2 09/32] arm: global_data: add scu_dev for i.MX8

2018-07-17 Thread Peng Fan
Add scu_dev for i.MX8, this will be used as a handle to communite with SCU from A35. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/global_data.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h

[U-Boot] [PATCH V2 24/32] power: Add power domain driver for i.MX8

2018-07-17 Thread Peng Fan
Add the power domain DM driver for i.MX8, that it depends on the DTB power domain trees to generate the power domain provider devices. Users needs add power domain trees with property "compatible = "nxp,imx8-pd";" When power on one PD device, the driver will power on its ancestor PD devices in

[U-Boot] [PATCH V2 14/32] armv8: add cpu core helper functions

2018-07-17 Thread Peng Fan
Add helper functions to identify different armv8 variants. Signed-off-by: Peng Fan --- arch/arm/include/asm/armv8/cpu.h | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 arch/arm/include/asm/armv8/cpu.h diff --git a/arch/arm/include/asm/armv8/cpu.h

[U-Boot] [PATCH V2 21/32] imx8: add dummy clock

2018-07-17 Thread Peng Fan
This driver is mostly used to avoid build error. We use uclass clk driver to clk related operations. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/clock.h | 27 +++ arch/arm/mach-imx/imx8/clock.c | 21 + 2 files changed, 48

[U-Boot] [PATCH V2 30/32] mmc: fsl_esdhc: add uclass clk support

2018-07-17 Thread Peng Fan
When CONIFG_CLK is enabled, use uclass clk api to handle the clock. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Stefano Babic --- drivers/mmc/fsl_esdhc.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c

[U-Boot] [PATCH V2 32/32] imx: add i.MX8QXP MEK board support

2018-07-17 Thread Peng Fan
Add i.MX8QXP MEK board support Enabled pinctrl/clk/power domain/mmc/i2c driver. Signed-off-by: Peng Fan --- arch/arm/dts/Makefile | 2 + arch/arm/dts/fsl-imx8qxp-mek.dts | 136 ++ arch/arm/mach-imx/imx8/Kconfig| 13 +++

[U-Boot] [PATCH V2 20/32] imx8: add iomux configuration api

2018-07-17 Thread Peng Fan
Add iomux configuration api. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/iomux.h | 40 +++ arch/arm/mach-imx/imx8/Makefile| 2 +- arch/arm/mach-imx/imx8/iomux.c | 43 ++ 3 files changed, 84

[U-Boot] [PATCH V2 22/32] gpio: mxc_gpio: add support for i.MX8

2018-07-17 Thread Peng Fan
Add i.MX8 support, there are 8 GPIO banks. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/gpio.h | 21 + drivers/gpio/mxc_gpio.c | 30 +- 2 files changed, 42 insertions(+), 9 deletions(-) create mode

[U-Boot] [PATCH V2 25/32] clk: imx: add clk driver for i.MX8QXP

2018-07-17 Thread Peng Fan
Add clk driver for i.MX8QXP, support clk enable/disable/get_rate/set_rate operations. Signed-off-by: Peng Fan Cc: Stefano Babic --- drivers/clk/Kconfig| 1 + drivers/clk/Makefile | 1 + drivers/clk/imx/Kconfig| 6 ++ drivers/clk/imx/Makefile | 5 ++

[U-Boot] [PATCH V2 18/32] imx8: add mmu and dram related functiions

2018-07-17 Thread Peng Fan
Add mmu memmap, some memory regions are reserved by M4, Arm Trusted Firmware, so need to get memreg using SCFW API and setup the memmap. Add dram_init, dram_init_banksize, get_effective_memsize functions, according to the memreg. Signed-off-by: Peng Fan Cc: Stefano Babic ---

[U-Boot] [PATCH V2 07/32] misc: add i.MX8 misc driver

2018-07-17 Thread Peng Fan
Add i.MX8 MISC driver to handle the communication between A35 Core and SCU. Signed-off-by: Peng Fan --- drivers/misc/Makefile | 1 + drivers/misc/imx8/Makefile | 3 + drivers/misc/imx8/scu.c| 247 + 3 files changed, 251 insertions(+)

[U-Boot] [PATCH V2 13/32] imx: add i.MX8 cpu type

2018-07-17 Thread Peng Fan
Add i.MX8 cpu type and is_imx8/is_imx8qxp help macros. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-imx/cpu.h | 5 + arch/arm/include/asm/mach-imx/sys_proto.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/include/asm/arch-imx/cpu.h

[U-Boot] [PATCH V2 10/32] imx: boot_mode: Add FLEXSPI boot entry

2018-07-17 Thread Peng Fan
i.MX8 support FLEXSPI boot support. So add FLEXSPI boot entry. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h b/arch/arm/include/asm/mach-imx/boot_mode.h index

[U-Boot] [PATCH V2 12/32] imx8: pins: include i.MX8QXP pin header when CONFIG_IMX8QXP defined

2018-07-17 Thread Peng Fan
Include i.MX8QXP pin header when CONFIG_IMX8QXP defined, if no SoC macro defined, report error. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/imx8-pins.h | 15 +++ 1 file changed, 15 insertions(+) create mode 100644

[U-Boot] [PATCH V2 15/32] imx8: add basic cpu support

2018-07-17 Thread Peng Fan
Add basic cpu support, including cpu revision, cpu type, cpu core detection. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/mach-imx/imx8/Makefile | 7 arch/arm/mach-imx/imx8/cpu.c| 93 + 2 files changed, 100 insertions(+) create mode

[U-Boot] [PATCH V2 08/32] misc: imx8: add scfw api impementation

2018-07-17 Thread Peng Fan
Add clk/misc/pad/pm/rm scfw api implementaion for different drivers to invoke. The low level code is using misc_call to invoke imx8_scu driver. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/sci/sci.h | 31 +- drivers/misc/imx8/Makefile | 2

[U-Boot] [PATCH V2 11/32] imx8: add imx-regs header file

2018-07-17 Thread Peng Fan
Add imx-regs header file to include the register base definition Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-imx8/imx-regs.h | 46 +++ 1 file changed, 46 insertions(+) create mode 100644 arch/arm/include/asm/arch-imx8/imx-regs.h diff

[U-Boot] [PATCH V2 06/32] arm: build mach-imx for i.MX8

2018-07-17 Thread Peng Fan
Build mach-imx for i.MX8 Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index cac58bdc4d..40c8f6fe13 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -104,7

[U-Boot] [PATCH V2 05/32] imx: add Kconfig entry for i.MX8QXP

2018-07-17 Thread Peng Fan
Add Kconfig entry for i.MX8QXP Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/Kconfig | 8 arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/imx8/Kconfig | 9 + 3 files changed, 18 insertions(+) create mode 100644 arch/arm/mach-imx/imx8/Kconfig

[U-Boot] [PATCH V2 04/32] imx8: add scfw macro definition

2018-07-17 Thread Peng Fan
Add SCFW macro definition. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sci/rpc.h | 159 arch/arm/include/asm/arch-imx8/sci/sci.h | 57 ++ arch/arm/include/asm/arch-imx8/sci/svc/misc/api.h | 30 +++

[U-Boot] [PATCH V2 03/32] dt-bindings: soc: add i.MX8QXP pm and rsrc definition

2018-07-17 Thread Peng Fan
Add i.MX8QXP power and resource definition Signed-off-by: Peng Fan Cc: Stefano Babic --- include/dt-bindings/soc/imx8_pd.h | 188 + include/dt-bindings/soc/imx_rsrc.h | 557 + 2 files changed, 745 insertions(+) create mode 100644

[U-Boot] [PATCH V2 02/32] dt-bindings: clock: dt-bindings: pinctrl: add i.MX8QXP clocks definition

2018-07-17 Thread Peng Fan
Add i.MX8QXP clocks definition Signed-off-by: Peng Fan --- include/dt-bindings/clock/imx8qxp-clock.h | 583 ++ 1 file changed, 583 insertions(+) create mode 100644 include/dt-bindings/clock/imx8qxp-clock.h diff --git a/include/dt-bindings/clock/imx8qxp-clock.h

[U-Boot] [PATCH V2 01/32] dt-bindings: pinctrl: add i.MX8QXP pads definition

2018-07-17 Thread Peng Fan
Add i.MX8QXP pads definition Signed-off-by: Peng Fan Cc: Stefano Babic --- include/dt-bindings/pinctrl/pads-imx8qxp.h | 757 + 1 file changed, 757 insertions(+) create mode 100644 include/dt-bindings/pinctrl/pads-imx8qxp.h diff --git

[U-Boot] [PATCH V2 00/32] i.MX: Add i.MX8QXP support

2018-07-17 Thread Peng Fan
This patchset is to upstream i.MX8QXP and mek board support, with some drivers update to support i.MX8QXP. The information about the processor could be found

Re: [U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI from mmc

2018-07-17 Thread Henry Beberman
> -Original Message- > From: Trent Piepho > Sent: Tuesday, July 17, 2018 10:24 AM > To: Henry Beberman ; u- > b...@lists.denx.de > Cc: tr...@konsulko.com; fabio.este...@nxp.com > Subject: Re: [U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI > from mmc > > On Mon, 2018-07-16

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

2018-07-17 Thread Tom Rini
On Tue, Jul 17, 2018 at 09:15:22PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 5e9a9645816edcc68c09729f257e0c863292bf26: > > mach-stm32: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET > (2018-07-13 14:47:29

Re: [U-Boot] [ANN] U-Boot v2018.07 released

2018-07-17 Thread Tom Rini
On Tue, Jul 17, 2018 at 05:54:56PM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20180717134154.GC3196@bill-the-cat> you wrote: > > > > > >> looks good. I expect there was consideration to keep these config files > > > >> out of the main repo. > > > > > > > > I can't remember clearly.

Re: [U-Boot] [PATCH v2 1/1] avb2.0: add get_size_of_partition()

2018-07-17 Thread Eugeniu Rosca
On Tue, Jul 17, 2018 at 02:44:17PM +0300, Igor Opaniuk wrote: > Implement get_size_of_partition() operation, > which is required by the latest upstream libavb [1]. FWIW, any living repository is a moving target, so there is nothing more volatile than the "latest" state of such repository. Kind

Re: [U-Boot] [PATCH v2 2/2] avb2.0: use block API in AVB ops

2018-07-17 Thread Eugeniu Rosca
On Tue, Jul 17, 2018 at 02:33:26PM +0300, Igor Opaniuk wrote: > Use blk_dread()/blk_dwrite() in mmc_read()/mmc_write() AVB operation > implementations. This fixes compilation issues when CONFIG_BLK is > enabled. > > Signed-off-by: Igor Opaniuk > --- > common/avb_verify.c | 9 + > 1 file

Re: [U-Boot] [RFC] Make U-Boot log great again

2018-07-17 Thread Sam Protsenko
On Tue, Jul 10, 2018 at 5:38 PM, Tom Rini wrote: > On Tue, Jul 10, 2018 at 11:01:14AM +0800, Bin Meng wrote: >> Hello, >> >> On Fri, Mar 23, 2018 at 1:44 PM, Bin Meng wrote: >> > Hi, >> > >> > On Sat, Feb 17, 2018 at 3:49 AM, Robert Nelson >> > wrote: >> >> On Fri, Feb 16, 2018 at 1:01 PM, Sam

[U-Boot] [RFC 2/2] env: Add prefix to error messages when loading env

2018-07-17 Thread Sam Protsenko
This is just a draft to discuss ideas related to "Make U-Boot log great again" thread. With this patch we will see something like: Loading Environment from FAT... --> MMC: no card present --> ** Bad device mmc 0 ** --> Failed (-5) Loading Environment from MMC...

[U-Boot] [RFC 1/2] env: Drop error messages when loading environment

2018-07-17 Thread Sam Protsenko
This is just a draft to discuss ideas related to "Make U-Boot log great again" thread. With this patch we will have something like this: Loading Environment from FAT... Failed (-5) Loading Environment from MMC... OK instead of this: Loading Environment from FAT... MMC: no card

Re: [U-Boot] [PATCH v2 1/2] avb2.0: add proper dependencies

2018-07-17 Thread Eugeniu Rosca
Hi Igor, On Tue, Jul 17, 2018 at 02:33:25PM +0300, Igor Opaniuk wrote: > 1. Since libavb library alone is highly portable, introduce dedicated > Kconfig symbol for AVB bootloader-dependent operations, so it's possible > to build libavb separately. AVB bootloader-dependent operations include: >

Re: [U-Boot] [PATCH v2 1/1] net: Store waiting packet in a different buffer when making ARP requests

2018-07-17 Thread Joe Hershberger
On Mon, Jul 9, 2018 at 11:48 AM, Joe Hershberger wrote: > On Wed, Jul 4, 2018 at 9:13 PM, Tran Tien Dat > wrote: >> U-Boot has 1 common buffer to send Ethernet frames, pointed to by >> net_tx_packet. When sending to an IP address without knowing the MAC >> address, U-Boot makes an ARP request

Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-17 Thread Andy Shevchenko
On Wed, Jul 18, 2018 at 12:30 AM, Adam Ford wrote: > On Tue, Jul 17, 2018 at 4:24 PM Andy Shevchenko > wrote: >> https://elixir.bootlin.com/linux/v4.18-rc5/source/drivers/tty/serial/8250/8250_omap.c > Can we omap2+ users patch the 8250_omap.c code in Linux to make use of > the reg-shift, then

Re: [U-Boot] [PATCH 06/11] mx7dsabresd: Add Windows boot support for iMX7 Sabre

2018-07-17 Thread Henry Beberman
> -Original Message- > From: Trent Piepho > Sent: Tuesday, July 17, 2018 10:03 AM > To: Henry Beberman ; u- > b...@lists.denx.de > Cc: fabio.este...@nxp.com; adrian.alo...@nxp.com > Subject: Re: [U-Boot] [PATCH 06/11] mx7dsabresd: Add Windows boot > support for iMX7 Sabre > > On Tue,

Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-17 Thread Adam Ford
On Tue, Jul 17, 2018 at 4:24 PM Andy Shevchenko wrote: > > On Tue, Jul 17, 2018 at 4:34 PM, Alexey Brodkin > wrote: > > >> Linux has a completely separate driver for omap3 (which is wrong too). > > This is not (fully) correct, > > >> But in a nutshell, it basically determines the shift value by

Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-17 Thread Andy Shevchenko
On Tue, Jul 17, 2018 at 4:34 PM, Alexey Brodkin wrote: >> Linux has a completely separate driver for omap3 (which is wrong too). This is not (fully) correct, >> But in a nutshell, it basically determines the shift value by the >> "compatible" string, so we should too. > > Here's the driver: >

[U-Boot] [PATCH] imx: iomux-v3: fix IOMUX_PADS for single-CPU variant

2018-07-17 Thread Eric Nelson
When compiling for a single CPU variant (e.g. MX6Q or MX6DL), the IOMUX constants are named MX6_PAD_blah, not MX6Q_PAD_blah. Fix the macros IOMUX_PADS and SETUP_IOMUX_PAD to reflect this. Signed-off-by: Eric Nelson --- arch/arm/include/asm/mach-imx/iomux-v3.h | 4 ++-- 1 file changed, 2

Re: [U-Boot] [PATCH 06/29] binman: Update the device-tree file on exit

2018-07-17 Thread Simon Glass
Hi, On 17 July 2018 at 13:25, Simon Glass wrote: > Binman can make additions to the device tree which are useful to U-Boot > when it runs (e.g. the position of each entry in the image). Write the > changes back so that they are easily accessible. > > Signed-off-by: Simon Glass > --- > >

[U-Boot] [PATCH 28/29] binman: Add a test to catch use of the old 'pos' property

2018-07-17 Thread Simon Glass
This property has been changed to 'offset'. To help downstream users who might still be using 'pos', add a check that this is not used by mistake. Signed-off-by: Simon Glass --- tools/binman/entry.py | 2 ++ tools/binman/ftest.py | 7 +++

[U-Boot] [PATCH] spl: remove dependency to "asm/utils.h"

2018-07-17 Thread Paulo Zaneti
Header file "asm/utils.h" is not required to compile "spl_ymodem.c". So, removing this dependency allows other architectures to use this booting device as "asm/utils.h" is only present in "arm" architecture. Signed-off-by: Paulo Zaneti --- common/spl/spl_ymodem.c | 1 - 1 file changed, 1

[U-Boot] [PATCH 21/29] binman: Add support for Chromium GBB

2018-07-17 Thread Simon Glass
This entry contains a Google Binary Block, used to store keys and bitmaps in a Chromium image. Signed-off-by: Simon Glass --- tools/binman/README.entries| 19 + tools/binman/etype/gbb.py | 96 ++ tools/binman/ftest.py | 56

[U-Boot] [PATCH 29/29] binman: Adjust _GetPropTree() parameters

2018-07-17 Thread Simon Glass
At present this function takes a filename, but it is better to use an Fdt object so that the caller can control this, perhaps obtainint the device tree from a bytearray. Update the method accordingly and also fix a confusing parameter name. Signed-off-by: Simon Glass --- tools/binman/ftest.py

[U-Boot] [PATCH 24/29] binman: Add an entry for a Chromium vblock

2018-07-17 Thread Simon Glass
This adds support for a Chromium verified boot block, used to sign a read-write section of the image. Signed-off-by: Simon Glass --- tools/binman/README.entries | 17 + tools/binman/bsection.py| 24 +++ tools/binman/entry.py |

[U-Boot] [PATCH 18/29] dtoc: Export the _FindNode() function

2018-07-17 Thread Simon Glass
This is useful for clients that want to find a node. Export it so it can be used by others. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 4 ++-- tools/dtoc/test_fdt.py | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py

[U-Boot] [PATCH 27/29] binman: Rename ReadContents() to ReadBlobContents()

2018-07-17 Thread Simon Glass
This function name is too generic for its purpose and is therefore confusing. It actually only applies to blobs, so rename it to indicate this. Signed-off-by: Simon Glass --- tools/binman/etype/blob.py | 4 ++-- tools/binman/etype/u_boot_dtb_with_ucode.py | 2 +-

[U-Boot] [PATCH 23/29] dtoc: Add a function to obtain a list of phandles

2018-07-17 Thread Simon Glass
Add a function which can decode a property containing a list of phandles. This is useful for finding nodes linked to a property. Also provide a way to look up a single phandle and get the Fdt object from a Node. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 19 +++

[U-Boot] [PATCH 25/29] binman: Add support for adding TPL binaries

2018-07-17 Thread Simon Glass
Add support for U-Boot's TPL and TPL device tree. Also fix a few comments in the other device-tree entries. Signed-off-by: Simon Glass --- tools/binman/README.entries | 38 +++- tools/binman/etype/u_boot_spl.py | 2 +- tools/binman/etype/u_boot_spl_dtb.py | 2

[U-Boot] [PATCH 22/29] patman: Show the current directory in GetInputFilename()

2018-07-17 Thread Simon Glass
When this fails it is useful to see the current directory, since U-Boot's build system will typically change into the output directory during the build. Add this information to the error. Signed-off-by: Simon Glass --- tools/patman/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2

[U-Boot] [PATCH 17/29] binman: Add an entry filled with a repeating byte

2018-07-17 Thread Simon Glass
It is sometimes useful to have an area of the image which is all zeroes, or all 0xff. This can often be achieved by padding the size of an an existing entry and setting the pad byte for an entry or image. But it is useful to have an explicit means of adding blocks of repeating data to the image.

[U-Boot] [PATCH 26/29] binman: Show the image position in the map

2018-07-17 Thread Simon Glass
At present the map only shows the offset and size for each region. The image position provides the actual position of each entry in the image, regardless of the section hierarchy. Add the image position to the map. Signed-off-by: Simon Glass --- tools/binman/bsection.py | 3 ++-

[U-Boot] [PATCH 19/29] patman: Allow test commands to fall back to real ones

2018-07-17 Thread Simon Glass
Tests use the 'test_result' feature to return a predetermined command result for particular commands. The avoids needing to have the real command available just to run a test. It works by calling the function provided by the test, to get the value. However sometimes the test does need to run the

[U-Boot] [PATCH 16/29] binman: Add support for a cros_ec image

2018-07-17 Thread Simon Glass
Add an entry type which can hold a Chrome OS EC. To make this work a new entry type is created, which supports getting a blob filename from the command line. Signed-off-by: Simon Glass --- tools/binman/README.entries| 29 ++

[U-Boot] [PATCH 20/29] patman: Add a few more helpers to the tools library

2018-07-17 Thread Simon Glass
Add functions to read and write a file, looking through a list of search paths to find it. Signed-off-by: Simon Glass --- tools/patman/tools.py | 76 ++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/tools/patman/tools.py

[U-Boot] [PATCH 14/29] binman: Create README.entries

2018-07-17 Thread Simon Glass
Create a new README containing documentation for the entry types supported by binman. This provides an easy reference in one place. It is automatically generated from the source-code documentation. Add a reference to this from the binman README. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 11/29] binman: Allow help to work without libfdt

2018-07-17 Thread Simon Glass
At present binman needs libfdt.py to be available before it will do anything, even print help. Import those modules later to avoid this, as it is bad practice to fail to even show help on startup. Signed-off-by: Simon Glass --- tools/binman/control.py | 7 +-- 1 file changed, 5

[U-Boot] [PATCH 12/29] binman: Expand documentation for entries

2018-07-17 Thread Simon Glass
At present only the more complex entries are documented. It is useful to have documentation for all entries in one place. As a first step, add and expand the documentation to cover all entries. Signed-off-by: Simon Glass --- tools/binman/etype/_testing.py | 26

[U-Boot] [PATCH 13/29] binman: Allow creation of entry documentation

2018-07-17 Thread Simon Glass
Binman supports quite a number of different entries now. The operation of these is not always obvious but at present the source code is the only reference for understanding how an entry works. Add a way to create documentation (from the source code) which can be put in a new 'README.entries'

[U-Boot] [PATCH 15/29] binman: Add support for flashrom FMAP

2018-07-17 Thread Simon Glass
Add an entry which can hold an FMAP region as used by flashrom, an open-source flashing tool used on Linux x86 machines. This provides a simplified non-hierarchical view of the entries in the image and has a signature at the start to allow flashrom to find it in the image. Signed-off-by: Simon

[U-Boot] [PATCH 07/29] binman: Add a new 'image-pos' property

2018-07-17 Thread Simon Glass
At present each entry has an offset within its parent section. This is useful for figuring out how entries relate to one another. However it is sometimes necessary to locate an entry within an image, regardless of which sections it is nested inside. Add a new 'image-pos' property to provide this

[U-Boot] [PATCH 10/29] binman: Support an entry that holds text

2018-07-17 Thread Simon Glass
It is useful to able to write an identifying string to the image within an entry. Add a 'text' entry type to handle this. The actual text is typically passed to binman on the command line. The text is not itself nul-terminated but this can be achieved if required by setting the size of the entry

[U-Boot] [PATCH 09/29] binman: Add support for passing arguments to entries

2018-07-17 Thread Simon Glass
Sometimes it is useful to pass binman the value of an entry property from the command line. For example some entries need access to files and it is not always convenient to put these filenames in the image definition (device tree). Add a -a option which can be used like this: -a= where

[U-Boot] [PATCH 08/29] dtoc: Add missing comments to fdt_util

2018-07-17 Thread Simon Glass
This module has a few missing comments. Add them. Signed-off-by: Simon Glass --- tools/dtoc/fdt_util.py | 34 ++ 1 file changed, 34 insertions(+) diff --git a/tools/dtoc/fdt_util.py b/tools/dtoc/fdt_util.py index 5b631419a9..05cb9c0775 100644 ---

[U-Boot] [PATCH 05/29] binman: Enhance the map and fdt-update output

2018-07-17 Thread Simon Glass
At present the .map file produced for each image does not include the overall image size. This is useful information. Update the code to generate it in the .map file as well as the updated FDT. Also fix a few comments while we are here. Signed-off-by: Simon Glass --- tools/binman/README

[U-Boot] [PATCH 06/29] binman: Update the device-tree file on exit

2018-07-17 Thread Simon Glass
Binman can make additions to the device tree which are useful to U-Boot when it runs (e.g. the position of each entry in the image). Write the changes back so that they are easily accessible. Signed-off-by: Simon Glass --- tools/binman/control.py | 4 1 file changed, 4 insertions(+) diff

[U-Boot] [PATCH 04/29] binman: Tidy up some comments in the tests

2018-07-17 Thread Simon Glass
A few lines are commented out and can be removed. Also fix return-value docs for _DoReadFile() and _DoReadFileDtb(). Signed-off-by: Simon Glass --- tools/binman/ftest.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py

[U-Boot] [PATCH 02/29] binman: Rename 'position' to 'offset'

2018-07-17 Thread Simon Glass
After some thought, I believe there is an unfortunate naming flaw in binman. Entries have a position and size, but now that we support hierarchical sections it is unclear whether a position should be an absolute position within the image, or a relative position within its parent section. At

[U-Boot] [PATCH 03/29] binman: Add comments to elf_test

2018-07-17 Thread Simon Glass
The purpose of some of the tests is not obvious from the function names. Add a few comments to help with understanding. Signed-off-by: Simon Glass --- tools/binman/elf_test.py | 33 + 1 file changed, 33 insertions(+) diff --git a/tools/binman/elf_test.py

[U-Boot] [PATCH 01/29] binman: Don't depend on dict order in ELF testOutsideFile()

2018-07-17 Thread Simon Glass
At present this test assumes that the symbols are returned in address order. However, objdump can list symbols in any order and dictionaries do not guarantee any particular order when iterating through item. Update elf.GetSymbols() to return an OrderedDict, sorted by address, to avoid any

[U-Boot] [PATCH 00/29] binman: Expand feature set and documentation

2018-07-17 Thread Simon Glass
This series adds various new features to binman to round out its capabilities. It also adds documentation of each entry type since there are quite a few now. Noteably this series changes the 'pos' property to be called 'offset'. The 'pos' name is a misnomer with hierarchical images since the

Re: [U-Boot] [linux-sunxi] [PATCH 1/8] usb: musb-new: Fix improper musb host pointer

2018-07-17 Thread Julian Calaby
Hi, Sorry, please ignore this, I didn't realise this patch was for u-boot. On Tue, Jul 17, 2018 at 10:45 PM Julian Calaby wrote: > > Hi Jagan, > > On Tue, Jul 10, 2018 at 5:17 AM Jagan Teki wrote: > > > > When MUSB is operating in peripheral mode, probe registering > > musb core using

[U-Boot] [PATCH v6 0/5] Add support for reading memory configuration from DT at run-time

2018-07-17 Thread Michal Simek
Hi, this is series which was send by Siva. I have just put there missing Tom's tag which we got and adding more people to TO. Thanks, Michal Changes in v6: - Fix socfpga misc, bcmstb, ebisu which were recently added Changes in v5: - Add Tom's tag -

[U-Boot] [PATCH] hashtable: Fix length calculation in hexport_r

2018-07-17 Thread Zubair Lutfullah Kakakhel
The length returned by hexport_r has a few redundant characters. This appears as NULL characters at the end so seems harmless. Remove the surplus counts in two places totlen += strlen(ep->key) + 2; I'm guessing the +2 here is for = and sep char. But there is another totlen += 2; line that does

Re: [U-Boot] [linux-sunxi] [PATCH 1/8] usb: musb-new: Fix improper musb host pointer

2018-07-17 Thread Julian Calaby
Hi Jagan, On Tue, Jul 10, 2018 at 5:17 AM Jagan Teki wrote: > > When MUSB is operating in peripheral mode, probe registering > musb core using musb_register which intern return int value > for validation. so there is no scope to preserve struct musb > pointer but the same can be used in .remove

[U-Boot] Question: Frescale imx board repositories

2018-07-17 Thread Fernando AE
Hello all, I'd like to know what's the difference between the Frescale imx board repositories from: 1) https://source.codeaurora.org/external/imx/uboot-imx 2) https://github.com/Freescale/u-boot-fslc It seems that #2 is rebased more often and is referenced by yocto. I was wordering if the

Re: [U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI from mmc

2018-07-17 Thread Trent Piepho
On Mon, 2018-07-16 at 23:56 +, Henry Beberman wrote: > > > > > > > > I need to revise the commit message for this patch. The script is not > > > fixed > > > > to the first partition of the selected MMC, it scans the disk for partitions > > marked bootable, then checks each one of those

Re: [U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI from mmc

2018-07-17 Thread Henry Beberman
Hi Fabio, > -Original Message- > From: Fabio Estevam > Sent: Tuesday, July 17, 2018 10:09 AM > To: Trent Piepho > Cc: Henry Beberman ; u- > b...@lists.denx.de; fabio.este...@nxp.com; tr...@konsulko.com > Subject: Re: [U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI > from

Re: [U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI from mmc

2018-07-17 Thread Fabio Estevam
Hi Henry, On Mon, Jul 16, 2018 at 2:16 PM, Trent Piepho wrote: > On Sat, 2018-07-14 at 00:11 +, Henry Beberman wrote: >> From: Henry Beberman >> >> This patch enables i.MX platforms to easily add a boot script to their >> U-Boot Proper environment to automatically load and execute an EFI >>

Re: [U-Boot] [PATCH 06/11] mx7dsabresd: Add Windows boot support for iMX7 Sabre

2018-07-17 Thread Trent Piepho
On Tue, 2018-07-17 at 01:41 +, Henry Beberman wrote: > > -Original Message- > > From: Trent Piepho > > Sent: Monday, July 16, 2018 11:22 AM > > To: Henry Beberman ; u- > > b...@lists.denx.de > > Cc: fabio.este...@nxp.com; adrian.alo...@nxp.com > > Subject: Re: [U-Boot] [PATCH 06/11]

Re: [U-Boot] [RFC 17/35] clk: sunxi: Add initial CLK driver for H3_H5

2018-07-17 Thread Jagan Teki
On Tue, Jul 17, 2018 at 6:06 PM, Maxime Ripard wrote: > On Mon, Jul 16, 2018 at 05:55:25PM +0100, Andre Przywara wrote: >> Hi, >> >> On 16/07/18 13:59, Maxime Ripard wrote: >> > On Mon, Jul 16, 2018 at 04:58:32PM +0530, Jagan Teki wrote: >> >> Add initial clock driver Allwinner for H3_H5. >> >>

Re: [U-Boot] [ANN] U-Boot v2018.07 released

2018-07-17 Thread Wolfgang Denk
Dear Tom, In message <20180717134154.GC3196@bill-the-cat> you wrote: > > > >> looks good. I expect there was consideration to keep these config files > > >> out of the main repo. > > > > > > I can't remember clearly. I think there was. > > > > > > I have no real preferences. > > > > Tom: What

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

2018-07-17 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit 5e9a9645816edcc68c09729f257e0c863292bf26: mach-stm32: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET (2018-07-13 14:47:29 -0400) are available in the Git repository at:

  1   2   >