[U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Michal Simek
AArch32 Linux should start in EL1 instead of EL2. Signed-off-by: Michal Simek --- arch/arm/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 5c62d9c14406..e83d13de6749 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/ar

Re: [U-Boot] [PATCH 1/1] arm64: zynqmp: remove unnecessary logical constraint

2017-10-13 Thread Michal Simek
On 13.10.2017 01:14, Heinrich Schuchardt wrote: > In > > if (a || b) > else if (!a) > > the constraint (!a) is always true if else is reached and > can be removed. > > Signed-off-by: Heinrich Schuchardt > --- > arch/arm/cpu/armv8/zynqmp/cpu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 dele

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Alexander Graf
On 13.10.17 09:08, Michal Simek wrote: > AArch32 Linux should start in EL1 instead of EL2. Why? There is KVM on AArch32 as well. Alex > > Signed-off-by: Michal Simek > --- > > arch/arm/lib/bootm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/lib/bootm

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Michal Simek
On 13.10.2017 09:19, Alexander Graf wrote: > > > On 13.10.17 09:08, Michal Simek wrote: >> AArch32 Linux should start in EL1 instead of EL2. > > Why? There is KVM on AArch32 as well. Is AArch32 without KVM able to start from EL2? At least based on my tests this is not working. M __

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Alexander Graf
On 13.10.17 09:26, Michal Simek wrote: > On 13.10.2017 09:19, Alexander Graf wrote: >> >> >> On 13.10.17 09:08, Michal Simek wrote: >>> AArch32 Linux should start in EL1 instead of EL2. >> >> Why? There is KVM on AArch32 as well. > > Is AArch32 without KVM able to start from EL2? > At least base

[U-Boot] [PATCH v3 00/20] Add FPGA, SDRAM, SPL loadfs U-boot & booting to console

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee This patchset adding FPGA and SDRAM drivers, enable fpga loadfs to program FPGA , SPL loading U-boot and booting to U-boot console. This version mainly resolved comments from Marek in [v2]. This series is working on top of u-boot-socfpga.git - http://git.denx.de/u-boot-socfp

[U-Boot] [PATCH v3 01/20] ARM: socfpga: Description on FPGA RBF properties at Arria 10 FPGA manager

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee This patch adds description on properties about location of FPGA RBFs are stored, type and functionality of RBF used to configure FPGA. Signed-off-by: Tien Fong Chee --- doc/device-tree-bindings/fpga/altera-socfpga-a10-fpga-mgr.txt | 11 +++ 1 file changed, 11 inse

[U-Boot] [PATCH v3 05/20] fs: Enable generic filesystems interface support in SPL.

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Enable generic filesystem interface drivers(fs.c and fat/) build for SPL. This would allow generic filesystem being used in SPL. Signed-off-by: Tien Fong Chee Reviewed-by: Simon Glass --- common/spl/Kconfig | 8 doc/README.SPL | 1 + fs/Makefile| 1 +

[U-Boot] [PATCH v3 07/20] arm: socfpga: Fix with the correct polling status bit

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Commit 2baa997240d ("arm: socfpga: Add FPGA driver support for Arria 10") Polling the wrong status bit. Fix with correct polling status bit. Fixes: 2baa997240d ("arm: socfpga: Add FPGA driver support for Arria 10") Signed-off-by: Tien Fong Chee --- drivers/fpga/socfpga_ar

[U-Boot] [PATCH v3 02/20] dts: Add FPGA bitstream properties to Arria 10 DTS

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee These FPGA bitstream properties would help bootloader to understand how to configure FPGA and where to look the FPGA RBF files during booting. Signed-off-by: Tien Fong Chee --- arch/arm/dts/socfpga_arria10.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/

[U-Boot] [PATCH v3 03/20] arm: socfpga: Add Arria 10 SoCFPGA programming interface

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Add code necessary into the FPGA driver framework in U-Boot so it can be used via the 'fpga' command for programing Arria 10 SoCFPGA. Signed-off-by: Tien Fong Chee --- cmd/fpga.c| 2 +- drivers/fpga/altera.c | 40 drive

[U-Boot] [PATCH v3 08/20] arm: socfpga: Add drivers for programing FPGA from flash

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee These drivers handle FPGA program operation from flash loading RBF to memory and then to program FPGA. Signed-off-by: Tien Fong Chee --- .../include/mach/fpga_manager_arria10.h| 28 ++ drivers/fpga/socfpga_arria10.c | 435 ++

[U-Boot] [PATCH v3 15/20] arm: socfpga: Enhance Intel SoCFPGA program header to support Arria 10

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Enhance preloader header with both additional program length and program entry offset attributes, which offset is relative to the start of program header. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/boot0.h | 7 +++ 1 file changed, 7 insertions

[U-Boot] [PATCH v3 09/20] arm: socfpga: Rename the gen5 sdram driver to more specific name

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Current sdram driver is only applied to gen5 device, hence it is better to rename sdram driver to more specific name which is related to gen5 device. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/sdram.h | 432 + .../inclu

[U-Boot] [PATCH v3 06/20] common: Generic firmware loader for file system

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Generic firmware loader framework contains some common functionality which is reusable by any specific file system firmware loader. Signed-off-by: Tien Fong Chee --- common/Makefile | 2 + common/load_fs.c | 163 ++

[U-Boot] [PATCH v3 14/20] arm: socfpga: Improve comments for Intel SoCFPGA program header

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Adding some details about size in bytes to each section. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/boot0.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-socfpga/include/mach/boot0.h b/arch/arm/mach-socfpga

[U-Boot] [PATCH v3 04/20] dts: Enable fpga-mgr node build for Arria 10 SPL

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee fpga-mgr node is required in SPL, because SPL needs information from the node to configure FPGA in Arria 10. Signed-off-by: Tien Fong Chee --- arch/arm/dts/socfpga_arria10.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/socfpga_arria10.dtsi b/arch/ar

[U-Boot] [PATCH v3 10/20] arm: socfpga: Add DRAM bank size initialization function

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Add function for both multiple DRAM bank and single DRAM bank size initialization. This common functionality could be used by every single SOCFPGA board. Signed-off-by: Tien Fong Chee Tested-by: Ley Foon Tan --- arch/arm/mach-socfpga/board.c| 7 +++ include/config

[U-Boot] [PATCH v3 18/20] arm: socfpga: Enable function visible to other file

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Enable function visible to other file, so it can be used by other functions from other file. Signed-off-by: Tien Fong Chee --- common/spl/spl_mmc.c | 2 +- include/spl.h| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_mmc.c b/com

[U-Boot] [PATCH v3 12/20] configs: Add DDR Kconfig support for Arria 10

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee This patch enables DDR Kconfig support for Arria 10. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/Kconfig | 1 + drivers/ddr/altera/Kconfig| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-soc

[U-Boot] [PATCH v3 19/20] arm: socfpga: Enable DDR working

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee SPL configures DDR by programming peripheral raw binary file and calibrating DDR. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/spl.c | 56 + 1 file changed, 56 insertions(+) diff --git a/arch/arm/mach-socfpga/spl.c b/

[U-Boot] [PATCH v3 11/20] arm: socfpga: Add DDR driver for Arria 10

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Add DDR driver suppport for Arria 10. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/sdram.h | 2 + arch/arm/mach-socfpga/include/mach/sdram_arria10.h | 2 + drivers/ddr/altera/Makefile| 1 + drivers/ddr/altera/sd

[U-Boot] [PATCH v3 13/20] arm: socfpga: Enable SPL memory allocation

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Enable memory allocation in SPL for preparation to enable FAT in SPL. Memory allocation is needed by FAT to work properly. Signed-off-by: Tien Fong Chee --- include/configs/socfpga_common.h | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH v3 20/20] arm: socfpga: Enable SPL booting U-boot

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Enable SPL successfully boot to U-boot. Signed-off-by: Tien Fong Chee --- configs/socfpga_arria10_defconfig | 57 +-- 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/configs/socfpga_arria10_defconfig b/configs/socfpga_arr

[U-Boot] [PATCH v3 17/20] arm: socfpga: Adding SoCFPGA info for both SPL and U-boot

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee SoC FPGA info is required in both SPL and U-boot. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/board.c| 3 +++ arch/arm/mach-socfpga/misc_arria10.c | 5 - arch/arm/mach-socfpga/spl.c | 6 ++ 3 files changed, 9 insertions(+), 5 deletions(

[U-Boot] [PATCH v3 16/20] arm: socfpga: Adding clock frequency info for U-boot

2017-10-13 Thread tien . fong . chee
From: Tien Fong Chee Clock frequency info is required in U-boot. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/board.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c index 965f9dc..9a96f52 100644 --- a/arch/ar

Re: [U-Boot] fsl_esdhc driver is broken with DM

2017-10-13 Thread Lukasz Majewski
On Wed, 11 Oct 2017 14:41:38 -0400 Tom Rini wrote: > On Wed, Oct 11, 2017 at 01:09:04PM -0300, Fabio Estevam wrote: > > On Wed, Oct 11, 2017 at 1:06 PM, Jagan Teki > > wrote: > > > > > I've observed here, u-boot is unable to relocate. So when I build > > > U-Boot with removing u-boot,dm-spl fro

Re: [U-Boot] [PATCH 05/11] efi_loader: move efi_search_obj up in code

2017-10-13 Thread Alexander Graf
On 13.10.17 02:15, Heinrich Schuchardt wrote: > On 10/09/2017 06:49 AM, Simon Glass wrote: >> On 7 October 2017 at 22:57, Heinrich Schuchardt wrote: >>> To avoid a forward declaration move efi_search_obj before >>> all protocol services functions. >>> >>> Signed-off-by: Heinrich Schuchardt >>>

[U-Boot] [PATCH 1/3] x86: fsp: Consolidate Azalia header file

2017-10-13 Thread Bin Meng
So far there are two copies of Azalia struct defines with one in baytrail and the other one in braswell. This consolidates these two into one, put it in the common place, and remove the prefix pch_ to these structs to make their names more generic. This also corrects reset_wait_timer from us to ms

[U-Boot] [PATCH 3/3] x86: baytrail: fsp: Move Azalia update codes to board

2017-10-13 Thread Bin Meng
Azalia configuration may be different across boards, hence it's not appropriate to do that in the SoC level. Instead, let's make the SoC update_fsp_azalia_configs() routine as a weak version, and do the actual work in the board codes. So far it seems only som-db5800-som-6867 board enables the Azal

[U-Boot] [PATCH 2/3] x86: baytrail: fsp: Use a function to update the Azalia config pointer

2017-10-13 Thread Bin Meng
At present we directly pass the Azalia config pointer to the FSP UPD. This updates to use a function to do the stuff, like Braswell does. Signed-off-by: Bin Meng --- arch/x86/cpu/baytrail/fsp_configs.c | 15 +-- arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h | 2 +-

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Marc Zyngier
On 13/10/17 08:26, Michal Simek wrote: > On 13.10.2017 09:19, Alexander Graf wrote: >> >> >> On 13.10.17 09:08, Michal Simek wrote: >>> AArch32 Linux should start in EL1 instead of EL2. >> >> Why? There is KVM on AArch32 as well. > > Is AArch32 without KVM able to start from EL2? > At least based

[U-Boot] [PULL] efi patch queue 2017-10-13

2017-10-13 Thread Alexander Graf
Hi Tom, This is my current patch queue for efi. Please pull. Alex The following changes since commit 39dd65a059e503883dbf16d4c00ac083d15837da: sandbox: Enable btrfs support (2017-10-03 08:44:55 -0400) are available in the git repository at: git://github.com/agraf/u-boot.git tags/signed-

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Michal Simek
On 13.10.2017 10:33, Marc Zyngier wrote: > On 13/10/17 08:26, Michal Simek wrote: >> On 13.10.2017 09:19, Alexander Graf wrote: >>> >>> >>> On 13.10.17 09:08, Michal Simek wrote: AArch32 Linux should start in EL1 instead of EL2. >>> >>> Why? There is KVM on AArch32 as well. >> >> Is AArch32 wi

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Marc Zyngier
On 13/10/17 09:37, Michal Simek wrote: > On 13.10.2017 10:33, Marc Zyngier wrote: >> On 13/10/17 08:26, Michal Simek wrote: >>> On 13.10.2017 09:19, Alexander Graf wrote: On 13.10.17 09:08, Michal Simek wrote: > AArch32 Linux should start in EL1 instead of EL2. Why? The

[U-Boot] [PATCH 1/3] kbuild: Get rid of KBUILD_STR

2017-10-13 Thread Masahiro Yamada
From: Michal Marek The compiler can accept -DKBUILD_MODNAME="foo", it's just a matter of quoting. That way, we reduce the gcc command line a bit. Signed-off-by: Michal Marek Signed-off-by: Masahiro Yamada [ Linux commit: b42841b7bb6286da56b4fa79835c27166b7e228b ] --- scripts/Makefile.lib |

[U-Boot] [PATCH 3/3] kbuild: redefine __FILE__ as relative path from $(srctree) if possible

2017-10-13 Thread Masahiro Yamada
Since Kbuild runs in the objtree, __FILE__ can be a very long path depending of $(srctree). If objtree is a child of srctree, the situation is a bit better. ($(srctree) is "..") For other cases of out-of-tree build, filenames in WARN_ON() etc. are still an absolute path. It also means the U-Boot

[U-Boot] [PATCH 2/3] kbuild: add stringify helper to quote a string passed to C files

2017-10-13 Thread Masahiro Yamada
I want to reuse $(squote)$(quote)...$(quote)$(squote) in the next commit. Move it to a helper. Signed-off-by: Masahiro Yamada --- scripts/Kbuild.include | 4 scripts/Makefile.lib | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuil

[U-Boot] [PATCH 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Masahiro Yamada
We discussed the __FILE__ problem when U-Boot is built out of tree. https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html The deeper your build directory is located, the larger your U-Boot image becomes. If your platform has memory footprint limit, this is a problem. Recently, I submi

[U-Boot] [PATCH v2 3/3] kbuild: redefine __FILE__ as relative path from $(srctree) if possible

2017-10-13 Thread Masahiro Yamada
Since Kbuild runs in the objtree, __FILE__ can be a very long path depending of $(srctree). If objtree is a child of srctree, the situation is a bit better. ($(srctree) is "..") For other cases of out-of-tree build, filenames in WARN_ON() etc. are still an absolute path. It also means the U-Boot

[U-Boot] [PATCH v2 2/3] kbuild: add stringify helper to quote a string passed to C files

2017-10-13 Thread Masahiro Yamada
I want to reuse $(squote)$(quote)...$(quote)$(squote) in the next commit. Move it to a helper. Signed-off-by: Masahiro Yamada --- Changes in v2: None scripts/Kbuild.include | 4 scripts/Makefile.lib | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Kbuild.in

[U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Masahiro Yamada
We discussed the __FILE__ problem when U-Boot is built out of tree. https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html The deeper your build directory is located, the larger your U-Boot image becomes. If your platform has memory footprint limit, this is a problem. Recently, I submi

[U-Boot] [PATCH v2 1/3] kbuild: Get rid of KBUILD_STR

2017-10-13 Thread Masahiro Yamada
From: Michal Marek The compiler can accept -DKBUILD_MODNAME="foo", it's just a matter of quoting. That way, we reduce the gcc command line a bit. Signed-off-by: Michal Marek Signed-off-by: Masahiro Yamada [ Linux commit: b42841b7bb6286da56b4fa79835c27166b7e228b ] --- Changes in v2: None sc

[U-Boot] [PATCH 15/20] i2c: uniphier-f: use clk for enable and get_rate

2017-10-13 Thread Masahiro Yamada
Get clock rate from the clock driver instead of hard-coding it. Signed-off-by: Masahiro Yamada --- drivers/i2c/i2c-uniphier-f.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-uniphier-f.c b/drivers/i2c/i2c-uniphier-f.c index eb6c9f3..6f4

[U-Boot] [PATCH 14/20] i2c: uniphier: use clk for enable and get_rate

2017-10-13 Thread Masahiro Yamada
Get clock rate from the clock driver instead of hard-coding it. Signed-off-by: Masahiro Yamada --- drivers/i2c/i2c-uniphier.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-uniphier.c b/drivers/i2c/i2c-uniphier.c index 0f2734e..9100129 1

[U-Boot] [PATCH 04/20] pinctrl: uniphier: set PUPD_SIMPLE cap flag for PXs3

2017-10-13 Thread Masahiro Yamada
Like other recenct UniPhier SoCs, the pupdctrl number of PXs3 matches to the pin number. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c b/

[U-Boot] [PATCH 20/20] ARM: uniphier: change the default of SoC select to UNIPHIER_V7_MULTI

2017-10-13 Thread Masahiro Yamada
ARCH_UNIPHIER_V8_MULTI depends on !SPL, so the default may be hidden. Use a clearer default. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-uniphier/Kconfig b/arch/arm/mach-uniphier/Kconfig inde

[U-Boot] [PATCH 11/20] clk: uniphier: add PXs3 clock data

2017-10-13 Thread Masahiro Yamada
Add basic clock data for Socionext's new SoC PXs3. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-core.c | 8 drivers/clk/uniphier/clk-uniphier-sys.c | 14 ++ drivers/clk/uniphier/clk-uniphier.h | 1 + 3 files changed, 23 insertions(+) diff --

[U-Boot] [PATCH 19/20] ARM: dts: uniphier: sync DT with Linux 4.14-rc4

2017-10-13 Thread Masahiro Yamada
Sync with Linux 4.14-rc4. (Include some DT updates queued up for Linux 4.15.) Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi| 15 -- arch/arm/dts/uniphier-ld20.dtsi| 97 -- arch/arm/dts/uniphier-ld4-ref.dts | 4 ++ arch/arm/

[U-Boot] [PATCH 01/20] ARM: uniphier: switch to CONFIG_ENV_IS_NOWHERE

2017-10-13 Thread Masahiro Yamada
The non-volatile storage varies board by board. The default should be NOWHERE. Please choose a proper device via Kconfig. Signed-off-by: Masahiro Yamada --- env/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/env/Kconfig b/env/Kconfig index 024d4d7..20516a5 100644 --- a/env/Kconfig

[U-Boot] [PATCH 13/20] reset: uniphier: fix the first argument passed to dev_err()

2017-10-13 Thread Masahiro Yamada
priv->dev does not exist. Pass the correct pointer to udevice. Signed-off-by: Masahiro Yamada --- drivers/reset/reset-uniphier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index c74d16f..a40cea5 100644 -

[U-Boot] [PATCH 08/20] i2c: uniphier: replace debug() with dev_dbg()

2017-10-13 Thread Masahiro Yamada
Use dev_dbg() functions. It will be helpful to prefix log messages with the corresponding device name when the core framework is ready. While I am here, I renamed "dev", which was actually private data, into "priv" because dev->dev looks confusing. Signed-off-by: Masahiro Yamada --- drivers/i

[U-Boot] [PATCH 06/20] ARM: uniphier: use pr_() instead of printf() where appropriate

2017-10-13 Thread Masahiro Yamada
Replace printf() with pr_() to specify proper loglevel. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/psci.c | 4 +++- arch/arm/mach-uniphier/board_late_init.c | 4 +++- arch/arm/mach-uniphier/boot-device/boot-device.c | 1 + arch/arm/mach-uniphier/cpu-

[U-Boot] [PATCH 00/20] ARM: uniphier: various refactoring for v2017.11-rc2

2017-10-13 Thread Masahiro Yamada
- Reactor of GPIO, clk, reset drivers. - Clean up SOC code - Sync DT - Use more clock drivers - Split U-Boot specific DT property Masahiro Yamada (20): ARM: uniphier: switch to CONFIG_ENV_IS_NOWHERE gpio: uniphier: rework single device node model ARM: dts: uniphier: update GPIO nodes

[U-Boot] [PATCH 03/20] ARM: dts: uniphier: update GPIO nodes

2017-10-13 Thread Masahiro Yamada
Switch to the single node design. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi | 23 + arch/arm/dts/uniphier-ld4.dtsi | 115 ++ arch/arm/dts/uniphier-pro4.dtsi | 206 ++-- arch/arm/dts/uniphier-pro5.dtsi | 206 +

[U-Boot] [PATCH 10/20] clk: uniphier: rework for better clock tree structure

2017-10-13 Thread Masahiro Yamada
U-Boot does not support fancy clock tree structures like the Linux common clock framework. Implement a simple clock tree model at the driver level. With this, the clock data will be simplified. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-core.c | 267 +

[U-Boot] [PATCH 02/20] gpio: uniphier: rework single device node model

2017-10-13 Thread Masahiro Yamada
First, I implemented this driver as per-bank model, but it was a design mistake. - There are 31 banks in the maximum case. It is painful to add so many nodes to DT. - The IRQ control registers are shared between banks. Per-bank design is a problem for Linux. The counterpart for Lin

[U-Boot] [PATCH 07/20] usb: dwc3-uniphier: replace with

2017-10-13 Thread Masahiro Yamada
Including pulls in a lot of bloat. What this driver needs is BIT(), so replace it with Signed-off-by: Masahiro Yamada --- drivers/usb/dwc3/dwc3-uniphier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-uniphier.c b/drivers/usb/dwc3/dwc3-uniphier.c i

[U-Boot] [PATCH 16/20] ARM: uniphier: split u-boot, dm-pre-reloc out to uniphier-v7-u-boot.dtsi

2017-10-13 Thread Masahiro Yamada
UniPhier 32-bit SoCs use CONFIG_SPL_OF_CONTROL. So, many nodes must be marked as dm-pre-reloc to prevent fdtgrep from stripping them off. Sprinkling U-Boot specific properties all over the place is painful because DT files are synced with Linux from time to time. Split u-boot,dm-pre-reloc out to

[U-Boot] [PATCH 12/20] clk: uniphier: add peripheral clock data

2017-10-13 Thread Masahiro Yamada
Add peripheral clock data for all SoCs. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/Makefile| 2 + drivers/clk/uniphier/clk-uniphier-core.c | 33 + drivers/clk/uniphier/clk-uniphier-peri.c | 113 +++ drivers/clk/uniphier/clk-uniphie

[U-Boot] [PATCH] simple-bus: remove DECLARE_GLOBAL_DATA_PTR and

2017-10-13 Thread Masahiro Yamada
Both are unneeded in this file. Signed-off-by: Masahiro Yamada --- drivers/core/simple-bus.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index 14803e3..cc48c8b 100644 --- a/drivers/core/simple-bus.c +++ b/drivers/core/simple-bus.c

[U-Boot] [PATCH 18/20] serial: uniphier: use clk for enable and get_rate

2017-10-13 Thread Masahiro Yamada
Get clock rate from the clock driver to drop U-Boot specific property "clock-frequency". Signed-off-by: Masahiro Yamada --- drivers/serial/serial_uniphier.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/se

[U-Boot] [PATCH 05/20] pinctrl: uniphier: simplify input enable and delete pin arrays

2017-10-13 Thread Masahiro Yamada
The pin data are implemented for old SoCs to specify the bit shift of the IECTRL register. They are not wortwhile given the required memory footprint. Delete all the pin data and enable all bits of the IECTRL register. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphi

[U-Boot] [PATCH 17/20] ARM: dts: uniphier: prepare to use clock for serial

2017-10-13 Thread Masahiro Yamada
The serial driver is probed by SPL and/or board_init_f. To get the clock from the serial driver, the clock node must be marked as u-boot,dm-pre-reloc. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-v7-u-boot.dtsi | 8 arch/arm/dts/uniphier-v8-u-boot.dtsi | 13 +

[U-Boot] [PATCH] i2c: remove DECLARE_GLOBAL_DATA_PTR from i2c-uclass

2017-10-13 Thread Masahiro Yamada
No global pointer is used in this file. Signed-off-by: Masahiro Yamada --- drivers/i2c/i2c-uclass.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 1397f34..920811a 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.

[U-Boot] [PATCH 09/20] i2c: uniphier-f: replace debug() with dev_dbg()

2017-10-13 Thread Masahiro Yamada
Use dev_dbg() functions. It will be helpful to prefix log messages with the corresponding device name when the core framework is ready. While I am here, I renamed "dev", which was actually private data, into "priv" because dev->dev looks confusing. Signed-off-by: Masahiro Yamada --- drivers/i

Re: [U-Boot] [PATCH 07/20] usb: dwc3-uniphier: replace with

2017-10-13 Thread Marek Vasut
On 10/13/2017 12:21 PM, Masahiro Yamada wrote: > Including pulls in a lot of bloat. What this driver needs > is BIT(), so replace it with > > Signed-off-by: Masahiro Yamada Doesn't common.h also pull in the config macros ? Maybe they are not needed here though ... > --- > > drivers/usb/dwc

Re: [U-Boot] [PATCH v2 0/2] Support for TI bandgap temperature sensor

2017-10-13 Thread Faiz Abbas
Hi, On Monday 09 October 2017 05:47 PM, Faiz Abbas wrote: > Adding support for TI bandgap temperature sensor. > Also add dt support for bandgap sensor in spl. > > Faiz Abbas (2): > thermal: ti-bandgap: Add support for temperature sensor > ARM: dts: OMAP5+: Add support for bandgap sensor in SP

Re: [U-Boot] [PATCH 07/20] usb: dwc3-uniphier: replace with

2017-10-13 Thread Masahiro Yamada
Hi Marek, 2017-10-13 19:40 GMT+09:00 Marek Vasut : > On 10/13/2017 12:21 PM, Masahiro Yamada wrote: >> Including pulls in a lot of bloat. What this driver needs >> is BIT(), so replace it with >> >> Signed-off-by: Masahiro Yamada > > Doesn't common.h also pull in the config macros ? Maybe the

Re: [U-Boot] [PATCH 2/2] x86: Turn off running VGA ROM during S3 resume

2017-10-13 Thread Stefan Roese
On 12.10.2017 14:07, Bin Meng wrote: This is only needed when graphics console is used. For kernel with native graphics driver, this can be turned off to speed up. Change this option's default to n in the Kconfig. Signed-off-by: Bin Meng --- arch/x86/Kconfig | 1 - 1 file changed, 1 deleti

Re: [U-Boot] [PATCH 1/2] x86: baytrail: Fix unstable ACPI S3 resume

2017-10-13 Thread Stefan Roese
On 12.10.2017 14:07, Bin Meng wrote: It was observed that when booting a Ubuntu 16.04 kernel, doing ACPI S3 suspend/resume sometimes causes the Ubuntu kernel hang forever. The issue is however not reproduced with a kernel built from i386/ x86_64 defconfig configuration. The unstability is actual

Re: [U-Boot] [PATCH 07/20] usb: dwc3-uniphier: replace with

2017-10-13 Thread Marek Vasut
On 10/13/2017 01:01 PM, Masahiro Yamada wrote: > Hi Marek, > > > 2017-10-13 19:40 GMT+09:00 Marek Vasut : >> On 10/13/2017 12:21 PM, Masahiro Yamada wrote: >>> Including pulls in a lot of bloat. What this driver needs >>> is BIT(), so replace it with >>> >>> Signed-off-by: Masahiro Yamada >>

Re: [U-Boot] [PATCH 2/3] x86: baytrail: fsp: Use a function to update the Azalia config pointer

2017-10-13 Thread Stefan Roese
On 13.10.2017 10:30, Bin Meng wrote: At present we directly pass the Azalia config pointer to the FSP UPD. This updates to use a function to do the stuff, like Braswell does. Signed-off-by: Bin Meng --- arch/x86/cpu/baytrail/fsp_configs.c | 15 +-- arch/x86/include/

Re: [U-Boot] [PATCH 1/3] x86: fsp: Consolidate Azalia header file

2017-10-13 Thread Stefan Roese
On 13.10.2017 10:30, Bin Meng wrote: So far there are two copies of Azalia struct defines with one in baytrail and the other one in braswell. This consolidates these two into one, put it in the common place, and remove the prefix pch_ to these structs to make their names more generic. This also

Re: [U-Boot] [PATCH 3/3] x86: baytrail: fsp: Move Azalia update codes to board

2017-10-13 Thread Stefan Roese
On 13.10.2017 10:30, Bin Meng wrote: Azalia configuration may be different across boards, hence it's not appropriate to do that in the SoC level. Instead, let's make the SoC update_fsp_azalia_configs() routine as a weak version, and do the actual work in the board codes. So far it seems only som

[U-Boot] [PATCH] drivers: core: Add translation in live tree case

2017-10-13 Thread Mario Six
The function dev_read_addr calls ofnode_get_addr_index in the live tree case, which does not apply bus translations to the address read from the device tree. This results in illegal addresses on boards that rely on bus translations being applied. Fix this situation by applying bus translations in

[U-Boot] [PATCH] [RFC] imx: dek_blob: Fix lock-up on dek_blob command

2017-10-13 Thread Henri Roosen
The function blob_encap_dek accesses a CAAM register CONFIG_SYS_FSL_JR0_ADDR + 0x102c, before the CAAM clock has been enabled, which causes the system to lock-up at the dek_blob command. This patch enables and disables the CAAM clock, because this is also done in arch/arm/imx-common/hab.c:authent

Re: [U-Boot] [PATCH 2/6] mmc: uniphier-sd: Use mmc_of_parse()

2017-10-13 Thread Masahiro Yamada
Hi Marek, 2017-10-06 21:07 GMT+09:00 Marek Vasut : > Drop the ad-hoc DT caps parsing in favor of common framework function. > > Signed-off-by: Marek Vasut > Cc: Jaehoon Chung > Cc: Masahiro Yamada "git grep" could not find mmc_of_parse. Are you waiting for this one? http://patchwork.ozlabs

Re: [U-Boot] [PATCH 2/6] mmc: uniphier-sd: Use mmc_of_parse()

2017-10-13 Thread Marek Vasut
On 10/13/2017 01:36 PM, Masahiro Yamada wrote: > Hi Marek, > > 2017-10-06 21:07 GMT+09:00 Marek Vasut : >> Drop the ad-hoc DT caps parsing in favor of common framework function. >> >> Signed-off-by: Marek Vasut >> Cc: Jaehoon Chung >> Cc: Masahiro Yamada > > > "git grep" could not find mmc_of

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 06:51:42PM +0900, Masahiro Yamada wrote: > We discussed the __FILE__ problem when U-Boot is built out of tree. > https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html > > The deeper your build directory is located, the larger > your U-Boot image becomes. > If yo

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Masahiro Yamada
2017-10-13 21:11 GMT+09:00 Tom Rini : > On Fri, Oct 13, 2017 at 06:51:42PM +0900, Masahiro Yamada wrote: > >> We discussed the __FILE__ problem when U-Boot is built out of tree. >> https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html >> >> The deeper your build directory is located, the

[U-Boot] U-Boot download link broken

2017-10-13 Thread Guillaume Gardet
Hi, On this page: http://www.denx.de/wiki/U-Boot/SourceCode there is a link to Amazon Cloud Drive to download U-Boot, but this link is not working anymore. Another problem: on the FTP, there is no tarball for v2017.11-rc1. Guillaume ___ U-Boot ma

[U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Eugeniy Paltsev
The HSDK can manage some pins via CREG registers block. Signed-off-by: Eugeniy Paltsev --- MAINTAINERS | 6 +++ drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile | 1 + drivers/gpio/hsdk-creg-gpio.c | 109 ++ 4 fi

[U-Boot] [PATCH v2] mx6slevk: Fix MMC breakage for the SPL target

2017-10-13 Thread Fabio Estevam
From: Fabio Estevam Commit 001cdbbb32ef1f6 ("imx: mx6slevk: enable more DM drivers") breaks MMC support in U-Boot proper on the mx6slevk_spl_defconfig target: U-Boot SPL 2017.09-00396-g6ca43a5 (Oct 01 2017 - 16:20:18) Trying to boot from MMC1 U-Boot 2017.09-00396-g6ca43a5 (Oct 01 2017 - 16:20:1

Re: [U-Boot] fsl_esdhc driver is broken with DM

2017-10-13 Thread Fabio Estevam
Hi Lukasz, On Fri, Oct 13, 2017 at 5:16 AM, Lukasz Majewski wrote: > There is some ongoing work to provide such facility. for imx6 > boards. I will keep you informed. That's good news! Please keep me in the loop as well. Thanks ___ U-Boot mailing

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > The HSDK can manage some pins via CREG registers block. > > Signed-off-by: Eugeniy Paltsev > --- >  MAINTAINERS   |   6 +++ >  drivers/gpio/Kconfig  |   7 +++ >  drivers/gpio/Makefile |   1 + >  d

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 01:33:22PM +, Alexey Brodkin wrote: > Hi Tom, > > On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > > The HSDK can manage some pins via CREG registers block. > > > > Signed-off-by: Eugeniy Paltsev > > --- > >  MAINTAINERS   |   6 +++ > >  dri

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 09:21:19PM +0900, Masahiro Yamada wrote: > 2017-10-13 21:11 GMT+09:00 Tom Rini : > > On Fri, Oct 13, 2017 at 06:51:42PM +0900, Masahiro Yamada wrote: > > > >> We discussed the __FILE__ problem when U-Boot is built out of tree. > >> https://www.mail-archive.com/u-boot@lists.d

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-10-13 at 09:46 -0400, Tom Rini wrote: > On Fri, Oct 13, 2017 at 01:33:22PM +, Alexey Brodkin wrote: > > > > Hi Tom, > > > > On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > > > > > > The HSDK can manage some pins via CREG registers block. > > > > > > Signed-

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 01:55:28PM +, Alexey Brodkin wrote: > Hi Tom, > > On Fri, 2017-10-13 at 09:46 -0400, Tom Rini wrote: > > On Fri, Oct 13, 2017 at 01:33:22PM +, Alexey Brodkin wrote: > > > > > > Hi Tom, > > > > > > On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > > > >

Re: [U-Boot] [PATCH 07/11] efi_loader: fix events

2017-10-13 Thread Rob Clark
On Fri, Oct 13, 2017 at 1:24 AM, Heinrich Schuchardt wrote: > > > On 10/10/2017 02:23 PM, Rob Clark wrote: >> >> An event can be created with type==0, Shell.efi does this for an event >> that is set when Ctrl-C is typed. So our current approach of having a >> fixed set of timer slots, and determi

Re: [U-Boot] [PATCH] power: extend prefix match to regulator-name property

2017-10-13 Thread Felix Brack
Hello Simon, On 12.10.2017 04:07, Simon Glass wrote: > Hi Felix, > > On 9 October 2017 at 03:04, Felix Brack wrote: >> >> This patch extends pmic_bind_children prefix matching. In addition to >> the node name the property regulator-name is used while trying to match >> prefixes. This allows assi

[U-Boot] [PATCH v2] DW SPI: Get clock value from Device Tree

2017-10-13 Thread Eugeniy Paltsev
Add option to set spi controller clock frequency via device tree using standard clock bindings. Old way of setting spi controller clock frequency (via implementation of 'cm_get_spi_controller_clk_hz' function in platform specific code) remains supported for backward compatibility. Signed-off-by: E

[U-Boot] [PATCH 1/4] ARM: uniphier: enable DWC3 xHCI driver

2017-10-13 Thread Masahiro Yamada
Enable CONFIGs for the DWC3 core and the UniPhier specific glue layer. Signed-off-by: Masahiro Yamada --- configs/uniphier_v7_defconfig | 2 ++ configs/uniphier_v8_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/uniphier_v7_defconfig b/configs/uniphier_v7_defconfig inde

[U-Boot] [PATCH 4/4] clk: uniphier: add NAND controller clock

2017-10-13 Thread Masahiro Yamada
This allows the NAND driver to enable clock and get its clock rate. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-sys.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c ind

[U-Boot] [PATCH 2/4] ARM: uniphier: adjust ifdefs for new UniPhier DWC3 CONFIG

2017-10-13 Thread Masahiro Yamada
Now USB 3.0 feature is enabled/disabled by CONFIG_USB_DWC3_UNIPHIER. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/clk-pro4.c | 6 +++--- arch/arm/mach-uniphier/clk/clk-pro5.c | 6 +++--- arch/arm/mach-uniphier/clk/clk-pxs2.c | 6 +++--- 3 files changed, 9 insertions(+), 9 delet

[U-Boot] [PATCH 3/4] mtd: nand: denali_dt: add clock support

2017-10-13 Thread Masahiro Yamada
Enable clock in the probe hook. The clock rate will be necessary when setup_data_interface hook is supported. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.h| 1 + drivers/mtd/nand/denali_dt.c | 12 2 files changed, 13 insertions(+) diff --git a/drivers/mtd/nand

[U-Boot] [PATCH 1/1] scripts/get_maintainer.pl: update to current version

2017-10-13 Thread Heinrich Schuchardt
Update the script to version 0.26 (as of Linux v4.14-rc1) Keep our "penguin_chief". Keep our top_of_kernel_tree. The negative forms of the command line parameters are described when using --help. New options are --git-blame-signatures => when used with --git-blame, al

[U-Boot] [PATCH v2 2/9] efi_loader: implement SetWatchdogTimer

2017-10-13 Thread Heinrich Schuchardt
The watchdog is initialized with a 5 minute timeout period. It can be reset by SetWatchdogTimer. It is stopped by ExitBoottimeServices. Signed-off-by: Heinrich Schuchardt --- v2 code comments updated --- cmd/bootefi.c | 1 + include/efi_loader.h | 4 ++ lib/efi

[U-Boot] [PATCH v2 1/9] efi_loader: move efi_search_obj up in code

2017-10-13 Thread Heinrich Schuchardt
To avoid a forward declaration move efi_search_obj before all protocol services functions. Signed-off-by: Heinrich Schuchardt --- v2 no change --- lib/efi_loader/efi_boottime.c | 41 + 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a

  1   2   >