[U-Boot] [PATCH 4/4] tools: imx8image: flatten container header only when creating container

2018-10-31 Thread Peng Fan
If there is no CONTAINER entry, there is no need to flatten container header. Signed-off-by: Peng Fan --- tools/imx8image.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index f3d1658f11..6ed5781979 100644 --- a

[U-Boot] [PATCH 3/4] tools: imx8image: fix coverity CID 184233

2018-10-31 Thread Peng Fan
Fix: CID 184233:(NEGATIVE_RETURNS) Using variable "container" as an index to array "imx_header.fhdr". Signed-off-by: Peng Fan --- tools/imx8image.c | 8 1 file changed, 8 insertions(+) diff --git a/tools/imx8image.c b/tools/imx8image.c index 06b72ea989..f3d1658f11 100644 --- a/tool

[U-Boot] [PATCH 2/4] tools: imx8image: fix coverity CID 184234

2018-10-31 Thread Peng Fan
Fix: CID 184234:(TAINTED_SCALAR) Using tainted variable "header.num_images - 1" as an index into an array "header.img". Signed-off-by: Peng Fan --- tools/imx8image.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index eb039b583d

[U-Boot] [PATCH 1/4] tools: imx8image: check lseek return value

2018-10-31 Thread Peng Fan
Check lseek return value. Fix Coverity CID: 184236 184235 184232 Signed-off-by: Peng Fan --- tools/imx8image.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index e6b0a146b6..eb039b583d 100644 --- a/tools/imx8imag

Re: [U-Boot] [PATCH 1/6] lib: add u16_strcpy/strdup functions

2018-10-31 Thread Heinrich Schuchardt
On 11/01/2018 05:45 AM, AKASHI Takahiro wrote: > From: "Akashi Takahiro" > > Add u16_strcpy() and u16_strdup(). The latter function will be > used later in implementing efi HII database protocol. > > Signed-off-by: Akashi Takahiro > --- > include/charset.h | 18 ++ > lib/charse

Re: [U-Boot] [PATCH v3 10/26] fs: fat: support write with non-zero offset

2018-10-31 Thread AKASHI Takahiro
On Wed, Oct 31, 2018 at 09:54:14PM +0100, Heinrich Schuchardt wrote: > On 10/31/2018 01:22 PM, Alexander Graf wrote: > > On 10/31/2018 11:00 AM, Clément Péron wrote: > >> Hi, > >> > >> Trying to rebuild my SoCFPGA Cyclone V board and got this error : > >> > >> fs/built-in.o: In function `set_conten

[U-Boot] [PATCH 6/6] efi_selftest: add HII database protocols test

2018-10-31 Thread AKASHI Takahiro
This efi_selftest tests HII database protocol and HII string protocol. Signed-off-by: AKASHI Takahiro --- lib/efi_selftest/Makefile| 1 + lib/efi_selftest/efi_selftest_hii.c | 882 +++ lib/efi_selftest/efi_selftest_hii_data.c | 450 3 files

[U-Boot] [PATCH 5/6] efi: hii: add HII config routing/access protocols

2018-10-31 Thread AKASHI Takahiro
This patch is a place holder for HII configuration routing protocol and HII configuration access protocol. Signed-off-by: AKASHI Takahiro --- include/efi_api.h | 157 include/efi_loader.h| 4 + lib/efi_loader/Makefile | 2 +-

[U-Boot] [PATCH 3/6] efi: hii: add guid package support

2018-10-31 Thread AKASHI Takahiro
Allow for handling GUID package in HII database protocol. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 9 lib/efi_loader/efi_hii.c | 48 +++- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/include/efi_api.h b/include

[U-Boot] [PATCH 4/6] efi: hii: add keyboard layout package support

2018-10-31 Thread AKASHI Takahiro
Allow for handling keyboard layout package in HII database protocol. A package can be added or deleted in HII database protocol, but we don't set 'current' keyboard layout as there is no driver that requests a keyboard layout. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 11 ++

[U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

2018-10-31 Thread AKASHI Takahiro
From: Leif Lindholm This patch provides enough implementation of the following protocols to run EDKII's Shell.efi and UEFI SCT: * EfiHiiDatabaseProtocol * EfiHiiStringProtocol Not implemented are: * ExportPackageLists() * RegisterPackageNotify()/UnregisterPackageNotify() * SetKeyboard

[U-Boot] [PATCH 1/6] lib: add u16_strcpy/strdup functions

2018-10-31 Thread AKASHI Takahiro
From: "Akashi Takahiro" Add u16_strcpy() and u16_strdup(). The latter function will be used later in implementing efi HII database protocol. Signed-off-by: Akashi Takahiro --- include/charset.h | 18 ++ lib/charset.c | 29 + 2 files changed, 47 i

[U-Boot] [PATCH 0/6] efi_loader: add HII database protocol

2018-10-31 Thread AKASHI Takahiro
HII database protocol is the last missing (major?) piece of code so that we can run unmodified EDKII's shell and UEFI SCT on EFI-enabled u-boot. The original code was initially written by Leif and Rob a year ago[1], and now I'm reworking it. The implementation has not been much enhanced from the o

Re: [U-Boot] [PATCH v2 16/29] riscv: invalidate the instruction cache before jumping to Linux

2018-10-31 Thread Rick Chen
於 2018年11月1日 週四 下午12:13寫道: > > > RISC-V does not guarantee that stores to instruction memory are visible to > > instruction fetches (i.e. incoherent instruction caches). Invalidate the > > instruction > > cache to ensure the kernel function pointer points to the correct memory > > location. > > >

[U-Boot] [PATCH v2] riscv: cache: Implement i/dcache [status, enable, disable]

2018-10-31 Thread Andes
From: Rick Chen AndeStar RISC-V(V5) provide mcache_ctl register which can configure I/D cache as enabled or disabled. This CSR will be encapsulated by CONFIG_RISCV_NDS. If you want to configure cache on AndeStar V5 AE350 platform. YOu can enable [*] AndeStar V5 ISA support by make menuconfig. T

[U-Boot] [PATCH] MIPS: make size of relocation table fixed but configurable

2018-10-31 Thread Daniel Schwierzeck
Currently the size of the relocation table will be shrunk to the actual size needed. Although this gives a maximal space saving, it messes up the _end symbol. This breaks features like appended DTBs because the _end symbol doesn't point to the real end of the U-Boot binary. Remove the size shrinki

Re: [U-Boot] [PATCH v3 5/7] driver: net: ti: introduce common mdio support library

2018-10-31 Thread Joe Hershberger
On Wed, Oct 31, 2018 at 4:22 PM Grygorii Strashko wrote: > > All existing TI SoCs network HW have similar MDIO implementation, so > introduce common mdio support library which can be reused by TI networking > drivers. > > Reviewed-by: Tom Rini > Signed-off-by: Grygorii Strashko Acked-by: Joe He

[U-Boot] [PATCH v3 0/7] driver: net: ti: clean up and code optimization

2018-10-31 Thread Grygorii Strashko
This series contains set of code clean up and optimizations for TI networking drivers. Patch 1 - Adds drivers/net/ti/ folder and moves all TI's networking code in this folder. Patches 2,3 - keystone2 clean up Patch 5 - introduces common TI MDIO support library as existing TI SoCs network HW IPs

[U-Boot] [PATCH v3 2/7] configs: net: convert DRIVER_TI_KEYSTONE_NET kconfig

2018-10-31 Thread Grygorii Strashko
Convert DRIVER_TI_KEYSTONE_NET to Kconfig. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- configs/k2e_evm_defconfig| 1 + configs/k2e_hs_evm_defconfig | 1 + configs/k2g_evm_defconfig| 1 + configs/k2g_hs_evm_defconfig

[U-Boot] [PATCH v3 4/7] driver: net: ti: cpsw: update to use SPDX identifier

2018-10-31 Thread Grygorii Strashko
Update to use SPDX license identifier. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index 8e2a48c..fe43d

[U-Boot] [PATCH v3 1/7] driver: net: consolidate ti's code in separate folder

2018-10-31 Thread Grygorii Strashko
Add drivers/net/ti/ folder and move all TI's code in this folder for better maintenance. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- arch/arm/mach-davinci/dp83848.c | 2 +- arch/arm/mach-davinci/et1011c.c | 2 +- arch/arm/mach-davinci/ksz8873.

[U-Boot] [PATCH v3 7/7] driver: net: ti: keystone_net: switch to use common mdio lib

2018-10-31 Thread Grygorii Strashko
Update TI Keystone 2 driver to re-use common mdio lib. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- arch/arm/include/asm/ti-common/keystone_net.h | 13 --- drivers/net/ti/Makefile | 2 +- drivers/net/ti/keystone_net.c

[U-Boot] [PATCH v3 6/7] driver: net: ti: cpsw: switch to use common mdio lib

2018-10-31 Thread Grygorii Strashko
Update TI CPSW driver to re-use common mdio lib Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 134 +++--- 1 file changed, 6 insertions(+), 128 deletions(-) diff --git a/drivers/net/ti/cp

[U-Boot] [PATCH v3 3/7] drivers: net: keystone_net: drop non dm code

2018-10-31 Thread Grygorii Strashko
Networking support for all TI K2 boards converted to use DM model and CONFIG_DM_ETH enabled in all corresponding defconfig files, hence drop unused non DM K2 networking code. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- arch/arm/include/asm/ti-common/key

[U-Boot] [PATCH v3 5/7] driver: net: ti: introduce common mdio support library

2018-10-31 Thread Grygorii Strashko
All existing TI SoCs network HW have similar MDIO implementation, so introduce common mdio support library which can be reused by TI networking drivers. Reviewed-by: Tom Rini Signed-off-by: Grygorii Strashko --- drivers/net/ti/Makefile| 2 +- drivers/net/ti/cpsw_mdio.c | 203 +

Re: [U-Boot] [PATCH v3 10/26] fs: fat: support write with non-zero offset

2018-10-31 Thread Heinrich Schuchardt
On 10/31/2018 01:22 PM, Alexander Graf wrote: > On 10/31/2018 11:00 AM, Clément Péron wrote: >> Hi, >> >> Trying to rebuild my SoCFPGA Cyclone V board and got this error : >> >> fs/built-in.o: In function `set_contents': >> /home/cperon/u-boot/fs/fat/fat_write.c:831: undefined reference to >> `__ae

[U-Boot] [PATCH 1/1] fs: fat: validate sector and cluster size

2018-10-31 Thread Heinrich Schuchardt
In the rest of the FAT driver we want to be able to rely on the fact that the cluster size is a power of two. So let's check that both the sector size and the number of sectors per cluster are valid. Signed-off-by: Heinrich Schuchardt --- fs/fat/fat.c | 35 ++- 1

[U-Boot] [PULL] u-boot-socfpga/master

2018-10-31 Thread Marek Vasut
The following changes since commit 454cf76184c65426b68033a23da086e73663f2fc: Prepare v2018.11-rc3 (2018-10-29 16:04:26 -0400) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to f48db4ede07b52290477e188de714e327e4954de: arm:

[U-Boot] [PATCH] ARM: dts: rmobile: Enable SDR modes on E3 Ebisu

2018-10-31 Thread Marek Vasut
Add regulators and pinmuxes for SDHI0 and SDHI1 SD and microSD slots on E3 Ebisu and mark them as capable of up to SDR104 mode of operation. With the SDHI fixes in place, it is now possible to use SDR104. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/dts/r8a77990-ebisu.dts | 101

Re: [U-Boot] [PATCH v2 1/3] net: phy: mscc: add support for VSC8584 PHY

2018-10-31 Thread Joe Hershberger
On Wed, Oct 31, 2018 at 5:23 AM Quentin Schulz wrote: > > The VSC8584 PHY is a 4-port PHY that is 10/100/1000BASE-T, 100BASE-FX, > 1000BASE-X and triple-speed copper SFP capable, can communicate with the > MAC via SGMII, QSGMII or 1000BASE-X, supports downshifting and can set > the blinking patter

[U-Boot] [PATCH] pinctrl: renesas: Add POCCTRL handling to r8a77990

2018-10-31 Thread Marek Vasut
Add definition of the POCCTRL register and bits therein to R8A77990 E3 pincontrol driver. This allows the pincontrol driver to configure SDHI pin voltage according to power-source DT property. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/pinctrl/renesas/pfc-r8a77990.c | 34 +

Re: [U-Boot] [PATCH v2 3/3] net: phy: mscc: add support for VSC8574 PHY

2018-10-31 Thread Joe Hershberger
On Wed, Oct 31, 2018 at 5:22 AM Quentin Schulz wrote: > > The VSC8574 PHY is a 4-port PHY that is 10/100/1000BASE-T, 100BASE-FX, > 1000BASE-X and triple-speed copper SFP capable, can communicate with > the MAC via SGMII, QSGMII or 1000BASE-X, supports WOL, downshifting and > can set the blinking p

Re: [U-Boot] [PATCH v2 5/7] driver: net: ti: introduce common mdio support library

2018-10-31 Thread Joe Hershberger
On Wed, Oct 31, 2018 at 2:10 PM Grygorii Strashko wrote: > > All existing TI SoCs network HW have similar MDIO implementation, so > introduce common mdio support library which can be reused by TI networking > drivers. > > Reviewed-by: Tom Rini > Signed-off-by: Grygorii Strashko > --- > drivers/

[U-Boot] [PATCH v2 3/7] drivers: net: keystone_net: drop non dm code

2018-10-31 Thread Grygorii Strashko
Networking support for all TI K2 boards converted to use DM model and CONFIG_DM_ETH enabled in all corresponding defconfig files, hence drop unused non DM K2 networking code. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- arch/arm/include/asm/ti-common/key

[U-Boot] [PATCH v2 5/7] driver: net: ti: introduce common mdio support library

2018-10-31 Thread Grygorii Strashko
All existing TI SoCs network HW have similar MDIO implementation, so introduce common mdio support library which can be reused by TI networking drivers. Reviewed-by: Tom Rini Signed-off-by: Grygorii Strashko --- drivers/net/ti/Makefile| 2 +- drivers/net/ti/cpsw_mdio.c | 201 +

[U-Boot] [PATCH v2 2/7] configs: net: convert DRIVER_TI_KEYSTONE_NET kconfig

2018-10-31 Thread Grygorii Strashko
Convert DRIVER_TI_KEYSTONE_NET to Kconfig. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- configs/k2e_evm_defconfig| 1 + configs/k2e_hs_evm_defconfig | 1 + configs/k2g_evm_defconfig| 1 + configs/k2g_hs_evm_defconfig

[U-Boot] [PATCH v2 0/7] driver: net: ti: clean up and code optimization

2018-10-31 Thread Grygorii Strashko
This series contains set of code clean up and optimizations for TI networking drivers. Patch 1 - Adds drivers/net/ti/ folder and moves all TI's networking code in this folder. Patches 2,3 - keystone2 clean up Patch 5 - introduces common TI MDIO support library as existing TI SoCs network HW IPs

[U-Boot] [PATCH v2 7/7] driver: net: ti: keystone_net: switch to use common mdio lib

2018-10-31 Thread Grygorii Strashko
Update TI Keystone 2 driver to re-use common mdio lib. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- arch/arm/include/asm/ti-common/keystone_net.h | 13 --- drivers/net/ti/Makefile | 2 +- drivers/net/ti/keystone_net.c

[U-Boot] [PATCH v2 1/7] driver: net: consolidate ti's code in separate folder

2018-10-31 Thread Grygorii Strashko
Add drivers/net/ti/ folder and move all TI's code in this folder for better maintenance. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- arch/arm/mach-davinci/dp83848.c | 2 +- arch/arm/mach-davinci/et1011c.c | 2 +- arch/arm/mach-davinci/ksz8873.

[U-Boot] [PATCH v2 6/7] driver: net: ti: cpsw: switch to use common mdio lib

2018-10-31 Thread Grygorii Strashko
Update TI CPSW driver to re-use common mdio lib Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 134 +++--- 1 file changed, 6 insertions(+), 128 deletions(-) diff --git a/drivers/net/ti/cp

[U-Boot] [PATCH v2 4/7] driver: net: ti: cpsw: update to use SPDX identifier

2018-10-31 Thread Grygorii Strashko
Update to use SPDX license identifier. Reviewed-by: Tom Rini Acked-by: Joe Hershberger Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index 8e2a48c..fe43d

[U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu

2018-10-31 Thread Michael Trimarchi
When we initialize the memory we need to autodetect rank and size but this can happen only if we send the proper reset to both memory module including cke signal. For this reason we need initialize the physical on both channel because we need to presume that both are connected. This way let the CLK

[U-Boot] [PATCH v2 1/1] dm: video: correctly set the cursor position

2018-10-31 Thread Heinrich Schuchardt
The terminal escape sequence ESC [ ; H is used to set the cursor position. According to the ECMA 48 standard the upper left corner in the escape sequences is [1, 1]. The video uclass uses [0, 0] as upper left corner. Signed-off-by: Heinrich Schuchardt --- v2 remove trailing whitespace -

Re: [U-Boot] [PATCH 5/7] driver: net: ti: introduce common mdio support library

2018-10-31 Thread Grygorii Strashko
On 10/29/18 2:40 PM, Joe Hershberger wrote: On Mon, Oct 29, 2018 at 8:04 AM Hannes Schmelzer wrote: On 10/26/18 5:38 AM, Grygorii Strashko wrote: All existing TI SoCs network HW have similar MDIO implementation, so introduce common mdio support library which can be reused by TI networking

[U-Boot] [PATCH 08/13] mmc: tmio: Silence transfer errors when tuning

2018-10-31 Thread Marek Vasut
In case the controller performs card tuning, that is, sends MMC command 19 or 21, silence possible CRC error warning prints. The warnings are bound to happen, since the tuning will fail for some settings while searching for the optimal configuration of the bus and that is perfectly OK. This patch

[U-Boot] [PATCH 13/13] mmc: tmio: sdhi: Merge DTCNTL access into single register write

2018-10-31 Thread Marek Vasut
It is perfectly fine to write th DTCNTL TAP count and enable the SCC sampling clock operation in the same write. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c

[U-Boot] [PATCH 11/13] mmc: tmio: sdhi: Implement waiting for DAT0 line state

2018-10-31 Thread Marek Vasut
When the bus switches to 1.8V mode of operation, it is necessary to verify that the card correctly initiated and completed the voltage switch. This is done by reading out the state of DATA0 line. This patch implement support for reading out the state of the DATA0 line, so the MMC core code can cor

[U-Boot] [PATCH 12/13] mmc: tmio: sdhi: Switch CPG settings in UHS modes

2018-10-31 Thread Marek Vasut
Switch CPG settings when transitioning between HS200/HS400/SDR104 and regular modes. This is required for the SCC block to operate correctly. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 28 +++- 1 file changed, 27 insertions(+), 1 dele

[U-Boot] [PATCH 06/13] mmc: tmio: Preinitialize regulator to 3.3V

2018-10-31 Thread Marek Vasut
Preinitialize the SD card signals regulator to 3.3V, which is the default post-reset setting, to be sure the regulator is set to a valid value. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/tmio-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/tmio-com

[U-Boot] [PATCH 09/13] mmc: tmio: sdhi: Touch SCC only when UHS capable

2018-10-31 Thread Marek Vasut
Add check to avoid touching the SCC tuning registers in case the IP doesn't support them or if the support isn't in place yet. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/renes

[U-Boot] [PATCH 10/13] mmc: tmio: sdhi: Clear HS400 settings when reseting SCC

2018-10-31 Thread Marek Vasut
Make sure to clear HS400 configuration when reseting the SCC block. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index 6b5871a0ae..2949c517cb 10064

[U-Boot] [PATCH 07/13] mmc: tmio: Improve error handling

2018-10-31 Thread Marek Vasut
Properly handle return values and abort operations when they are non-zero. This is a minor improvement, which fixes two remaining unchecked return values. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/tmio-common.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) d

[U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-10-31 Thread Marek Vasut
The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400 modes all use 1.8V signaling, while all the legacy modes use 3.3V signaling. While there are extra modes which use 1.2V signaling, the existing hardware does not support those. Simplify the pinmux such that 3.3V signaling implies l

[U-Boot] [PATCH 03/13] mmc: tmio: Do not set divider to 1 in DDR mode

2018-10-31 Thread Marek Vasut
The TMIO core has a quirk where divider == 1 must not be set in DDR modes. Handle this by setting divider to 2, as suggested in the documentation. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/tmio-common.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/tmi

[U-Boot] [PATCH 02/13] mmc: tmio: Switch to clock framework

2018-10-31 Thread Marek Vasut
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. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drive

[U-Boot] [PATCH 04/13] mmc: tmio: Configure clock before any other IOS

2018-10-31 Thread Marek Vasut
Configure the clock settings before reconfiguring any other IO settings. This is required when the clock must be stopped before changing eg. the pin configuration or any of the other properties of the bus. Running the clock configuration first allows the MMC core to do just that. Signed-off-by: Ma

[U-Boot] [PATCH 05/13] mmc: tmio: Keep generating clock when clock are enabled

2018-10-31 Thread Marek Vasut
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 require clock to be enabled. This patch respects the mmc->clk_disabl

[U-Boot] [PATCH] ARM: dts: rmobile: Add eMMC DS pinmux

2018-10-31 Thread Marek Vasut
Add pinmux entry for the eMMC DS line, as it is connected on these boards. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/dts/salvator-common.dtsi | 4 ++-- arch/arm/dts/ulcb.dtsi| 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/sal

[U-Boot] [PATCH] ARM: dts: rmobile: Enable SDR104 on Salvator-X and ULCB

2018-10-31 Thread Marek Vasut
Enable SDR104 modes on M3W and H3 boards. With the SDHI fixes in place, it is now possible to use SDR104. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/dts/salvator-common.dtsi | 10 ++ arch/arm/dts/ulcb.dtsi| 5 + 2 files changed, 15 insertions(+) diff

[U-Boot] [PATCH] ARM: rmobile: Generate fitting mem_map on Gen3

2018-10-31 Thread Marek Vasut
Patch "ARM: rmobile: Mark 4-64GiB as DRAM on Gen3" marked the entire 64bit DRAM space as cachable. On CortexA57, this might result in odd side effects, where the CPU tries to prefetch from those areas and if there is no DRAM backing them, CPU bus hang can happen. This patch fixes it by generating

[U-Boot] [PATCH v1] x86: acpi: Remove redundant Offset (0x00)

2018-10-31 Thread Andy Shevchenko
New ACPI assembler issues a warning: board/intel/edison/dsdt.asl.tmp 13: Offset (0x00), Remark 2158 - ^ Unnecessary/redundant use of Offset operator Indeed, in the OperationRegion the offset is 0x00 by default. Thus, drop unneeded Offset() use as

[U-Boot] [PATCH] clk: renesas: Allow reconfiguring SDHI clock on Gen3

2018-10-31 Thread Marek Vasut
The SDHI clock must be configured differently for HS200/HS400/SDR104 modes. Add support for reconfiguring the SDHI clock settings into the clock driver. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/clk-rcar-gen3.c | 10 +++--- 1 file changed, 3 insertions(+), 7 d

[U-Boot] [PATCH] pinctrl: renesas: Fix DRV register offset

2018-10-31 Thread Marek Vasut
Use fixed 4bit size for generating the DRV register element mask, not the size of the value, which can be smaller. Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc: Nobuhiro Iwamatsu --- drivers/pinctrl/renesas/pfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[U-Boot] [PATCH v2] syscon: update syscon_node_to_regmap to use the DM functions

2018-10-31 Thread Patrick Delaunay
+ Update the function syscon_node_to_regmap() to force bound on syscon uclass and directly use the list of device from DM. + Remove the static list syscon_list. This patch avoid issue (crash) when syscon_node_to_regmap() is called before and after reallocation (list content is invalid). Signed

[U-Boot] [PATCH] iot_dk: Add README

2018-10-31 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin --- board/synopsys/iot_devkit/README | 145 +++ 1 file changed, 145 insertions(+) create mode 100644 board/synopsys/iot_devkit/README diff --git a/board/synopsys/iot_devkit/README b/board/synopsys/iot_devkit/README new file mode 100644 i

Re: [U-Boot] [PATCH v2 07/29] riscv: add Kconfig entries for the code model

2018-10-31 Thread Auer, Lukas
Hi Bin, On Wed, 2018-10-31 at 10:13 +0800, Bin Meng wrote: > Hi Lukas, > > On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer > wrote: > > > > RISC-V has two code models, medium low (medlow) and medium any > > (medany). > > Medlow limits addressable memory to a single 2 GiB range between > > the > > ab

Re: [U-Boot] [PATCH 2/2] arm64: mvebu: a8k: autodetect RAM size

2018-10-31 Thread Baruch Siach
Hi Stefan, On Wed, Oct 31, 2018 at 02:29:50PM +0100, Stefan Roese wrote: > On 28.10.18 13:30, Baruch Siach wrote: > > Some Armada 8K boards like Macchiatobin and Clearfog GT-8K use RAM from > > external DIMM. Hard coding the RAM size in the device-tree is not > > convenient. Fortunately, the ATF t

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

2018-10-31 Thread Tom Rini
On Tue, Oct 30, 2018 at 07:21:09PM +, York Sun wrote: > Tom, > > The following changes since commit 454cf76184c65426b68033a23da086e73663f2fc: > > Prepare v2018.11-rc3 (2018-10-29 16:04:26 -0400) > > are available in the Git repository at: > > git://git.denx.de/u-boot-mpc85xx.git tags/m

Re: [U-Boot] [PATCH 2/2] arm64: mvebu: a8k: autodetect RAM size

2018-10-31 Thread Stefan Roese
On 28.10.18 13:30, Baruch Siach wrote: Some Armada 8K boards like Macchiatobin and Clearfog GT-8K use RAM from external DIMM. Hard coding the RAM size in the device-tree is not convenient. Fortunately, the ATF that initializes the RAM knows the size of RAM, and U-Boot can query the ATF using a SM

Re: [U-Boot] [PATCH] cmd: ubi: Make ubi_detach() static

2018-10-31 Thread Boris Brezillon
On Wed, 31 Oct 2018 12:37:20 +0100 Stefan Roese wrote: > Its only called from this file, so make it static. While at it, remove > some occurances of multiple blank lines as well. > > Signed-off-by: Stefan Roese > Cc: Boris Brezillon Reviewed-by: Boris Brezillon > Cc: Miquel Raynal > Cc: Ja

Re: [U-Boot] [PATCH] cmd: ubi: Make ubi_detach() static

2018-10-31 Thread Miquel Raynal
Stefan Roese wrote on Wed, 31 Oct 2018 12:37:20 +0100: > Its only called from this file, so make it static. While at it, remove > some occurances of multiple blank lines as well. > > Signed-off-by: Stefan Roese > Cc: Boris Brezillon > Cc: Miquel Raynal > Cc: Jagan Teki > --- > cmd/ubi.c |

[U-Boot] [PATCH] cmd: ubi: Make ubi_detach() static

2018-10-31 Thread Stefan Roese
Its only called from this file, so make it static. While at it, remove some occurances of multiple blank lines as well. Signed-off-by: Stefan Roese Cc: Boris Brezillon Cc: Miquel Raynal Cc: Jagan Teki --- cmd/ubi.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/ub

[U-Boot] MTD combine/merge flash bank like linux : MPC83xx / u-boot v2016.03

2018-10-31 Thread asebt69
Dear, I've got a flash split into 2 bank of 32 Mb. From linux view there is only one flash with a size of 64 Mb (define in the DTS). My goal, do the same thing with u-boot to read a ubi file with a size > 32 Mb which contains my uImage, but mtdparts still to see 2 flash device and i can"t open the

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

2018-10-31 Thread Jack Mitchell
On 31/05/2018 08:57, Patrice Chotard wrote: > From: Patrick Delaunay > > Don't disable regulator which are tagged as "regulator-always-on" in DT. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice Chotard > --- > > drivers/power/regulator/regulator-uclass.c | 5 + > 1 file chan

[U-Boot] [PATCH v2 00/29] General fixes / cleanup for RISC-V and improvements to qemu-riscv

2018-10-31 Thread Lukas Auer
This patch series includes general fixes and cleanup for RISC-V. It also adds support for booting Linux on qemu-riscv. At the moment, only single-core systems are supported. Support for multi-core systems will be added with a future patch series. To boot Linux on qemu-riscv, Linux must be compile

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

2018-10-31 Thread Jack Mitchell
On 31/05/2018 08:57, Patrice Chotard wrote: > From: Patrick Delaunay > > Don't disable regulator which are tagged as "regulator-always-on" in DT. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice Chotard > --- > > drivers/power/regulator/regulator-uclass.c | 5 + > 1 file chan

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

2018-10-31 Thread Jack Mitchell
On 31/05/2018 08:57, Patrice Chotard wrote: > From: Patrick Delaunay > > Don't disable regulator which are tagged as "regulator-always-on" in DT. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice Chotard > --- > > drivers/power/regulator/regulator-uclass.c | 5 + > 1 file chan

Re: [U-Boot] [PATCH] syscon: update syscon_node_to_regmap to use the DM functions

2018-10-31 Thread Patrick DELAUNAY
Hi Simon, > From: s...@google.com On Behalf Of Simon Glass > Sent: mercredi 31 octobre 2018 01:11 > > HI Patrick, > > On 30 October 2018 at 07:44, Patrick Delaunay > wrote: > > > > + Update the function syscon_node_to_regmap() to force bound on > > syscon uclass and directly use the list of

Re: [U-Boot] [PATCH 0/3] mtd: Fix partition handling code

2018-10-31 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Wed, 31 Oct 2018 11:07:33 +0100: > Hello, > > Stefan recently reported a bug when using ubi part on a spi-nand > device and proposed this fix[1]. While his solution while working > I proposed a different approach to kill the CMD_UBI dependency on > CMD_MTDPART

[U-Boot] [PATCH v2 1/3] net: phy: mscc: add support for VSC8584 PHY

2018-10-31 Thread Quentin Schulz
The VSC8584 PHY is a 4-port PHY that is 10/100/1000BASE-T, 100BASE-FX, 1000BASE-X and triple-speed copper SFP capable, can communicate with the MAC via SGMII, QSGMII or 1000BASE-X, supports downshifting and can set the blinking pattern of each of its 4 LEDs, supports hardware offloading of MACsec a

[U-Boot] [PATCH v2 2/3] net: phy: mscc: factorize part of config function for VSC8584

2018-10-31 Thread Quentin Schulz
Part of the config is common between the VSC8584 and the VSC8574, so to prepare for the upcoming support of VSC8574, use the phy_device.priv pointer that will keep the function that holds code that is PHY-specific and that should be called during config function. Signed-off-by: Quentin Schulz Ack

[U-Boot] [PATCH v2 3/3] net: phy: mscc: add support for VSC8574 PHY

2018-10-31 Thread Quentin Schulz
The VSC8574 PHY is a 4-port PHY that is 10/100/1000BASE-T, 100BASE-FX, 1000BASE-X and triple-speed copper SFP capable, can communicate with the MAC via SGMII, QSGMII or 1000BASE-X, supports WOL, downshifting and can set the blinking pattern of each of its 4 LEDs, supports SyncE as well as HP Auto-M

[U-Boot] [PATCH v2 0/3] add support for VSC8584 and VSC8574 Microsemi PHYs

2018-10-31 Thread Quentin Schulz
The VSC8584 and VSC8574 PHYs are 4-port PHYs that are 10/100/1000BASE-T, 100BASE-FX, 1000BASE-X and triple-speed copper SFP capable, can communicate with the MAC via SGMII, QSGMII or 1000BASE-X, supports WOL, downshifting and can set the blinking pattern of each of its 4 LEDs, supports SyncE as wel

[U-Boot] [PATCH 3/3] mtd: Drop duplicate MTD_PARTITIONS Kconfig option

2018-10-31 Thread Boris Brezillon
Commit 9c5b00973bce ("Convert CONFIG_MTD_PARTITIONS et al to Kconfig") introduced a publicly visible Kconfig entry for the CONFIG_MTD_PARTITIONS option, while the rework on MTD partitioning was in progress, and we somehow did not notice that the same Kconfig entry was added by commit 4048a5c519a8 (

[U-Boot] [PATCH 1/3] mtd: Use default mtdparts/mtids when not defined in the environment

2018-10-31 Thread Boris Brezillon
U-boot provides a mean to define default values for mtdids and mtdparts when they're not defined in the environment. Patch mtd_probe_devices() to use those default values when env_get("mtdparts") or env_get("mtdids") return NULL. This implementation is based on the logic found in cmd/mtdparts.c.

[U-Boot] [PATCH 2/3] cmd: ubi: Remove useless call to mtdparts_init()

2018-10-31 Thread Boris Brezillon
Commit c58fb2cdb3e4 ("cmd: ubi: clean the partition handling") introduced a call to mtd_probe_devices() in the ubi_attach() path and this function takes care of parsing mtdparts/mtdids and creating/registering the associated mtd partitions. The mtdparts_init() call in the ubi_detach() path is not

[U-Boot] [PATCH 0/3] mtd: Fix partition handling code

2018-10-31 Thread Boris Brezillon
Hello, Stefan recently reported a bug when using ubi part on a spi-nand device and proposed this fix[1]. While his solution while working I proposed a different approach to kill the CMD_UBI dependency on CMD_MTDPARTS. This is what patches 1 and 2 are doing. Patch 3 is just removing the duplicate

Re: [U-Boot] [PATCH v1 2/3] spi: cadence_qspi: use "cdns, qspi-nor" as compatible

2018-10-31 Thread Marek Vasut
On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: > On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut wrote: >> >> On 10/29/2018 08:25 PM, Simon Goldschmidt wrote: >>> Linux uses "cdns,qspi-nor" as compatible string for the cadence >>> qspi driver. To support Linux device trees, add this compatible >>>

Re: [U-Boot] [PATCH] arm: socfpga: check total size of SPL

2018-10-31 Thread Marek Vasut
On 10/31/2018 06:44 AM, Simon Goldschmidt wrote: > On Tue, Oct 30, 2018 at 11:02 PM Marek Vasut wrote: >> >> On 10/30/2018 10:30 PM, Simon Goldschmidt wrote: >>> On 30.10.2018 22:26, Marek Vasut wrote: On 10/30/2018 10:23 PM, Simon Goldschmidt wrote: > Correctly define CONFIG_SPL_MAX_FOOT

Re: [U-Boot] [PATCH 0/3] Read SFDP parameters and access flash above 16MB

2018-10-31 Thread Simon Goldschmidt
On Wed, Oct 31, 2018 at 10:38 AM Rajat Srivastava wrote: > > > > > -Original Message- > > From: Simon Goldschmidt > > Sent: Wednesday, October 31, 2018 1:09 PM > > To: Rajat Srivastava ; U-Boot Mailing List > b...@lists.denx.de> > > Cc: Jagan Teki > > Subject: Re: [U-Boot] [PATCH 0/3] R

Re: [U-Boot] [PATCH 0/3] Read SFDP parameters and access flash above 16MB

2018-10-31 Thread Rajat Srivastava
> -Original Message- > From: Simon Goldschmidt > Sent: Wednesday, October 31, 2018 1:09 PM > To: Rajat Srivastava ; U-Boot Mailing List b...@lists.denx.de> > Cc: Jagan Teki > Subject: Re: [U-Boot] [PATCH 0/3] Read SFDP parameters and access flash > above 16MB > > On Tue, Oct 30, 2018

Re: [U-Boot] [PATCH 1/3] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-10-31 Thread Rajat Srivastava
> -Original Message- > From: Simon Goldschmidt > Sent: Wednesday, October 31, 2018 2:51 PM > To: Rajat Srivastava > Cc: vigne...@ti.com; U-Boot Mailing List ; Jagan Teki > > Subject: Re: [U-Boot] [PATCH 1/3] mtd/spi: Add JEDEC SFDP support in SPI > framework > > On Wed, Oct 31, 2018 a

Re: [U-Boot] Question about booting Linux from efi_loader

2018-10-31 Thread Alexander Graf
On 10/31/2018 03:52 AM, Masahiro Yamada wrote: Hi Alex, Thank you for your help. On Tue, Oct 30, 2018 at 10:32 PM Alexander Graf wrote: Hi Masahiro, On 30.10.18 14:20, Masahiro Yamada wrote: Hi Alex, Could you teach me a little bit about efi_loader? I guess I am seriously missing somet

Re: [U-Boot] [PATCH 1/3] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-10-31 Thread Simon Goldschmidt
On Wed, Oct 31, 2018 at 10:01 AM Rajat Srivastava wrote: > > > > > -Original Message- > > From: Vignesh R > > Sent: Wednesday, October 31, 2018 1:47 PM > > To: Rajat Srivastava ; u-boot@lists.denx.de > > Cc: ja...@openedev.com > > Subject: Re: [U-Boot] [PATCH 1/3] mtd/spi: Add JEDEC SFDP

Re: [U-Boot] [PATCH 0/3] Read SFDP parameters and access flash above 16MB

2018-10-31 Thread Simon Goldschmidt
On Wed, Oct 31, 2018 at 9:41 AM Rajat Srivastava wrote: > > > > > -Original Message- > > From: Simon Goldschmidt > > Sent: Wednesday, October 31, 2018 2:06 AM > > To: Rajat Srivastava ; u-boot@lists.denx.de > > Cc: ja...@openedev.com > > Subject: Re: [U-Boot] [PATCH 0/3] Read SFDP paramet

Re: [U-Boot] [PATCH 1/3] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-10-31 Thread Rajat Srivastava
> -Original Message- > From: Vignesh R > Sent: Wednesday, October 31, 2018 1:47 PM > To: Rajat Srivastava ; u-boot@lists.denx.de > Cc: ja...@openedev.com > Subject: Re: [U-Boot] [PATCH 1/3] mtd/spi: Add JEDEC SFDP support in SPI > framework > > > > On 17/10/18 4:58 PM, Rajat Srivastav

Re: [U-Boot] [PATCH 0/3] Read SFDP parameters and access flash above 16MB

2018-10-31 Thread Rajat Srivastava
> -Original Message- > From: Simon Goldschmidt > Sent: Wednesday, October 31, 2018 2:06 AM > To: Rajat Srivastava ; u-boot@lists.denx.de > Cc: ja...@openedev.com > Subject: Re: [U-Boot] [PATCH 0/3] Read SFDP parameters and access flash > above 16MB > > On 17.10.2018 13:27, Rajat Srivast

Re: [U-Boot] [PATCH 1/3] net: phy: mscc: add support for VSC8584 PHY

2018-10-31 Thread Quentin Schulz
Hi Joe, On Mon, Oct 22, 2018 at 09:52:38PM +, Joe Hershberger wrote: > On Fri, Sep 14, 2018 at 7:50 AM Quentin Schulz > wrote: [...] > > +#define MEDIA_OP_MODE_MASK 0x0700 > > Please use GENMASK() or BIT() for masks. > [...] > > +/* Extended page GPIO register 00G */ > > +#def

Re: [U-Boot] [PATCH 1/3] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-10-31 Thread Vignesh R
On 17/10/18 4:58 PM, Rajat Srivastava wrote: > Add support for JESD216 rev B standard JEDEC Serial > Flash Discoverable Parameters (SFDP) tables to > dynamically initialize flash size, page size and > address width of the flash. More parameters can be > added as per requirement. > Already existin

Re: [U-Boot] [PATCH 0/3] Read SFDP parameters and access flash above 16MB

2018-10-31 Thread Simon Goldschmidt
On Tue, Oct 30, 2018 at 9:35 PM Simon Goldschmidt wrote: > > On 17.10.2018 13:27, Rajat Srivastava wrote: > > Add functionality to read and parse SFDP parameters to auto-detect > > flash size, page size and address width of flash. This enables > > flash access above 16MB using 4-byte addressing mo

  1   2   >