Re: [U-Boot] arm: imx: Rework i.MX specific commands to be excluded from SPL

2018-04-24 Thread Peng Fan
Sorry, please ignore. I was just testing my git. -Peng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] arm: imx: Rework i.MX specific commands to be excluded from SPL

2018-04-24 Thread Peng Fan
From: Tom Rini The "clocks" and "bootaux" commands are only usable in full U-Boot, not SPL, so do not link them inside of SPL. Rework a little of the bootaux related code to make use of __weak and declare parts of it static as it's local to the file. --- arch/arm/mach-imx/Makefile | 2 +

[U-Boot] [PATCH] armv8/fsl-lsch2: make the workaround for PIN MUX erratum A010539 robust

2018-04-24 Thread Zhiqiang Hou
From: Hou Zhiqiang Mask HRESET_B after cleared the the RCW_SRC, because in the workaround we override the RCW_SRC and if HRESET_B is issued after the override then SoC cannot find valid RCW as the RCW_SRC was overwritten and result in hang. So we need to mask HRESET_B in case user asserts it, and

Re: [U-Boot] [PATCH v2] zynqmp: Add generic target

2018-04-24 Thread Michal Simek
Hi Alex, On 24.4.2018 21:50, Alexander Graf wrote: > I would like to create a generic U-Boot build that adapts itself completely > based on the DT passed in. That way we can potentially support running > random board configurations with a single U-Boot binary built as part of > the distribution. >

Re: [U-Boot] [PATCH] arm64: zynqmp: Show model information instead of custom IDENT_STRING

2018-04-24 Thread Alexander Graf
On 25.04.18 07:56, Michal Simek wrote: > DISPLAY_BOARDINFO in OF case show model identification string from DT. > Enable this feature instead of custom IDENT_STRING which does the same > thing. > > Signed-off-by: Michal Simek Makes a lot of sense, especially with the generic target in mind :).

[U-Boot] [PATCH v3] zynqmp: Add generic target

2018-04-24 Thread Alexander Graf
I would like to create a generic U-Boot build that adapts itself completely based on the DT passed in. That way we can potentially support running random board configurations with a single U-Boot binary built as part of the distribution. Currently a few things are still missing to make it a full r

[U-Boot] [PATCH] arm64: zynqmp: Show model information instead of custom IDENT_STRING

2018-04-24 Thread Michal Simek
DISPLAY_BOARDINFO in OF case show model identification string from DT. Enable this feature instead of custom IDENT_STRING which does the same thing. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_zc1232_revA_defconfig | 2 -- configs/xilinx_zynqmp_zc1254_revA_defconfig | 2 --

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

2018-04-24 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit 40df6b3e1882c55dd34b9177a42e21a591d668ee: Merge git://git.denx.de/u-boot-socfpga (2018-04-17 17:45:28 -0400) are available in the Git repository at: git://git.denx.de/u-boot-spi.git master for you to fetch ch

Re: [U-Boot] [PATCH v3 2/5] net: sun8i-emac: support R40 GMAC

2018-04-24 Thread Jagan Teki
On Mon, Apr 23, 2018 at 8:27 PM, Lothar Felten wrote: > Add support for the GMAC found in the Allwinner R40/V40 SoC. > > The R40 GMAC interface is not controlled by the syscon register but > has a separate configuration register in the CCU. > The clock gate and reset bits are in a different regist

Re: [U-Boot] [PATCH v2 1/2] spi: zynqmp_qspi: Add support for ZynqMP qspi driver

2018-04-24 Thread Jagan Teki
On Wed, Feb 7, 2018 at 3:40 PM, Siva Durga Prasad Paladugu wrote: > Hi Jagan, > > >> -Original Message- >> From: Jagan Teki [mailto:ja...@amarulasolutions.com] >> Sent: Tuesday, January 23, 2018 10:41 PM >> To: Siva Durga Prasad Paladugu >> Cc: U-Boot-Denx ; Siva Durga Prasad Paladugu >>

Re: [U-Boot] [PATCH v10 3/3] Adding wget

2018-04-24 Thread Simon Glass
Hi Duncan, On 22 April 2018 at 21:22, Duncan Hare wrote: > > > >>From: Simon Glass >>To: Duncan Hare >>Sent: Sunday, April 22, 2018 1:10 PM >>Subject: Re: [PATCH v10 3/3] Adding wget >> >>Hi Duncan, > >>On 17 April 2018 at 15:58, Duncan Hare wrote: >>> From: Si

Re: [U-Boot] [PATCH 2/4] dm: ofnode: add ofnode_device_is_compatible() helper

2018-04-24 Thread Simon Glass
Hi Masahiro, On 22 April 2018 at 22:50, Masahiro Yamada wrote: > 2018-04-23 5:11 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 17 April 2018 at 20:38, Masahiro Yamada >> wrote: >>> device_is_compatible() takes udevice, but there is no such a helper >>> that takes ofnode. >>> >>> Signed-off-by

Re: [U-Boot] [PATCH 3/4] regmap: change regmap_init_mem() to take ofnode instead udevice

2018-04-24 Thread Simon Glass
Hi Masahiro, On 22 April 2018 at 22:56, Masahiro Yamada wrote: > Hi Simon, > > > 2018-04-23 5:10 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 17 April 2018 at 20:38, Masahiro Yamada >> wrote: >>> Currently, regmap_init_mem() takes udevice. This requires the node >>> has already been associat

Re: [U-Boot] [PATCH 4/4] syscon: add Linux-compatible syscon API

2018-04-24 Thread Simon Glass
On 22 April 2018 at 22:58, Masahiro Yamada wrote: > Hi Simon, > > > 2018-04-23 5:11 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 17 April 2018 at 20:38, Masahiro Yamada >> wrote: >>> The syscon implementation in U-Boot is different from that in Linux. >>> Thus, DT files imported from Linux do

Re: [U-Boot] [PATCH 1/1] cmd: CONFIG_CMD_LOG select CONFIG_LOG

2018-04-24 Thread Simon Glass
On 19 April 2018 at 14:02, Heinrich Schuchardt wrote: > CONFIG_CMD_LOG without CONFIG_LOG leads to a build error: > ‘gd_t {aka volatile struct global_data}’ has no member named > ‘default_log_level’ > > So CMD_LOG should select LOG. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/Kconfig | 1

Re: [U-Boot] [PATCH] test: regmap: test Linux-compatible syscon_node_to_regmap()

2018-04-24 Thread Simon Glass
On 22 April 2018 at 22:26, Masahiro Yamada wrote: > Like Linux, syscon_node_to_regmap() allows a node to work as a syscon > provider without binding it to a syscon driver. Test this. > > Requested-by: Simon Glass > Signed-off-by: Masahiro Yamada > --- > > arch/sandbox/dts/test.dts | 8 +++

Re: [U-Boot] [[RESEND] PATCH v3 1/2] mmc: sdhci: add SDHCI_QUIRK_BROKEN_HISPD_MODE

2018-04-24 Thread Simon Glass
On 20 April 2018 at 02:55, Hannes Schmelzer < hannes.schmel...@br-automation.com> wrote: > From: Hannes Schmelzer > > Some IP-core implementations of the SDHCI have different troubles on the > silicon where they are placed. > > On ZYNQ platform for example Xilinx doesn't accept the hold timing of

Re: [U-Boot] [PATCH] lib/rsa: Kconfig: Remove superfluous 'depends on RSA'

2018-04-24 Thread Simon Glass
On 21 April 2018 at 06:00, Eugeniu Rosca wrote: > RSA_SOFTWARE_EXP and RSA_FREESCALE_EXP are wrapped inside: > > if RSA > ... > endif > > So, remove the redundant "depends on RSA" from their depends expression. > In addition, move SPL_RSA into the same "if RSA ... endif" block, since > its

Re: [U-Boot] [PATCH 1/1] log: CONFIG_LOG should select CONFIG_DM

2018-04-24 Thread Simon Glass
On 19 April 2018 at 13:59, Heinrich Schuchardt wrote: > Compling with CONFIG_LOG and without CONFIG_DM results in > common/log.c:47: undefined reference to `uclass_get_name' > > Signed-off-by: Heinrich Schuchardt > --- > common/Kconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon

Re: [U-Boot] [PATCH] sunxi: improve throughput in the sunxi_mmc driver

2018-04-24 Thread Jagan Teki
On Wed, Apr 25, 2018 at 1:46 AM, Tom Rini wrote: > On Tue, Apr 24, 2018 at 09:57:58PM +0200, Maxime Ripard wrote: >> Hi Jagan, >> >> On Fri, Apr 06, 2018 at 11:36:59AM +0530, Jagan Teki wrote: >> > On Wed, Apr 4, 2018 at 12:36 PM, Maxime Ripard >> > wrote: >> > > On Wed, Apr 04, 2018 at 12:13:01P

[U-Boot] DWC3 USB driver regression

2018-04-24 Thread Masahiro Yamada
Hi. I found DWC3 usb driver on UniPhier SoC family not working. I did git-bisect, and the first bad commit is 7c839ea70c4991e8d4c322e074359ac5e155d59d is the first bad commit commit 7c839ea70c4991e8d4c322e074359ac5e155d59d Author: Neil Armstrong Date: Wed Apr 11 17:08:01 2018 +0200 us

Re: [U-Boot] NDS32 toolchain?

2018-04-24 Thread rick
> -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Tuesday, April 24, 2018 8:14 PM > To: Rick Jian-Zhi Chen(陳建志) > Cc: u-boot@lists.denx.de; Greentime Ying-Han Hu(胡英漢); > rickche...@gmail.com > Subject: Re: NDS32 toolchain? > > On Tue, Apr 24, 2018 at 03:10:02AM +00

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

2018-04-24 Thread Tom Rini
On Tue, Apr 24, 2018 at 09:10:13PM +0200, Anatolij Gustschin wrote: > Hi Tom, > > The following changes since commit 5bc0543df3079add8152afa041b887d081d71839: > > treewide: Convert CONFIG_HOSTNAME to a string option (2018-04-08 18:31:09 > -0400) > > are available in the git repository at: >

Re: [U-Boot] u-boot.dtb is not generated when enabling verified boot

2018-04-24 Thread Davis Roman
Hi Fabio, Additionally, I did check that my-blob.dtb does contain the public key after signing the fitimage by using 'fdtdump -s' Thank you, Davis On Tue, Apr 24, 2018 at 9:19 PM, Davis Roman wrote: > Hi Fabio, > > Thank you so much for responding. It's good to know that I'm not alone in > th

Re: [U-Boot] u-boot.dtb is not generated when enabling verified boot

2018-04-24 Thread Davis Roman
Hi Fabio, Thank you so much for responding. It's good to know that I'm not alone in the world. :) Unfortunately, I'm stuck with 2016.03 for the moment. So I'm still having issues with getting verified boot to work. After compiling and installing the new u-boot image on my board I noticed that it

Re: [U-Boot] u-boot.dtb is not generated when enabling verified boot

2018-04-24 Thread Fabio Estevam
Hi Davis, On Fri, Apr 20, 2018 at 9:00 PM, Davis Roman wrote: > Hello, > > I'm trying to get verified-boot working using u-boot 2016.03 on an imx6. It would be better to try something more recent, such as 2018.03 instead. > So far I've managed to figure out that I need the following additional

Re: [U-Boot] u-boot.dtb is not generated when enabling verified boot

2018-04-24 Thread Davis Roman
Okay I found my answer. I'll post here for any other poor soul that might need this. So I ended up using: $ make EXT_DTB= to get past my previous error. On Fri, Apr 20, 2018 at 8:21 PM, Davis Roman wrote: > Okay. I found my first mistake. I would help if I could spell properly! > > Turns ou

Re: [U-Boot] [PATCH 6/8] cpu: Add cpu_print_info function

2018-04-24 Thread Simon Glass
Hi Mario, On 19 April 2018 at 01:50, Mario Six wrote: > > Hi Simon, > > On Wed, Apr 18, 2018 at 5:45 PM, Simon Glass wrote: > > Hi Mario, > > > > On 18 April 2018 at 02:35, Mario Six wrote: > >> Hi Simon, > >> > >> On Thu, Apr 12, 2018 at 6:37 PM, Simon Glass wrote: > >>> Hi Mario, > >>> > >>>

Re: [U-Boot] [RFC PATCH v1 0/5] Add fastboot UDP support

2018-04-24 Thread Jocelyn Bohr
Thanks so much for porting this, Alex! On Tue, Apr 24, 2018 at 4:58 AM Alex Kiernan wrote: > On Tue, Apr 24, 2018 at 11:24 AM, Alex Deymo wrote: > > +Jocelyn. > > > > Thanks Alex for taking the time to port this!! > > It turned out to be a great opportunity to play with coccinelle on > somethin

[U-Boot] How to modify devicetree blob inside fit image via the u-boot shell using the fdt command

2018-04-24 Thread Davis Roman
Hello How can I make an on the fly modification to a particular devicetree (contained inside a fitimage blob ) via the u-boot shell using the fdt command? The fdt command allows for modifications in ram so I figure this should be possible. Thank you, Davis __

Re: [U-Boot] [PATCH] sunxi: improve throughput in the sunxi_mmc driver

2018-04-24 Thread Tom Rini
On Tue, Apr 24, 2018 at 09:57:58PM +0200, Maxime Ripard wrote: > Hi Jagan, > > On Fri, Apr 06, 2018 at 11:36:59AM +0530, Jagan Teki wrote: > > On Wed, Apr 4, 2018 at 12:36 PM, Maxime Ripard > > wrote: > > > On Wed, Apr 04, 2018 at 12:13:01PM +0530, Jagan Teki wrote: > > >> On Wed, Mar 21, 2018 at

Re: [U-Boot] [PATCH] sunxi: improve throughput in the sunxi_mmc driver

2018-04-24 Thread Maxime Ripard
Hi Jagan, On Fri, Apr 06, 2018 at 11:36:59AM +0530, Jagan Teki wrote: > On Wed, Apr 4, 2018 at 12:36 PM, Maxime Ripard > wrote: > > On Wed, Apr 04, 2018 at 12:13:01PM +0530, Jagan Teki wrote: > >> On Wed, Mar 21, 2018 at 4:48 PM, Maxime Ripard > >> wrote: > >> > From: Philipp Tomsich > >> > > >

[U-Boot] [PATCH v2] zynqmp: Add generic target

2018-04-24 Thread Alexander Graf
I would like to create a generic U-Boot build that adapts itself completely based on the DT passed in. That way we can potentially support running random board configurations with a single U-Boot binary built as part of the distribution. Currently a few things are still missing to make it a full r

[U-Boot] [PATCH] zynqmp: Add generic target

2018-04-24 Thread Alexander Graf
I would like to create a generic U-Boot build that adapts itself completely based on the DT passed in. That way we can potentially support running random board configurations with a single U-Boot binary built as part of the distribution. Currently a few things are still missing to make it a full r

Re: [U-Boot] [PATCH v3 4/5] sunxi: R40: add gigabit ethernet devicetree node

2018-04-24 Thread Maxime Ripard
Hi, On Mon, Apr 23, 2018 at 04:57:19PM +0200, Lothar Felten wrote: > Add a device tree node for the Allwinner R40/V40 GMAC gigabit > ethernet interface. > The R40 SoC does not use the syscon register for GMAC settings. > > Signed-off-by: Lothar Felten > --- > arch/arm/dts/sun8i-r40.dtsi | 21 ++

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

2018-04-24 Thread Anatolij Gustschin
Hi Tom, The following changes since commit 5bc0543df3079add8152afa041b887d081d71839: treewide: Convert CONFIG_HOSTNAME to a string option (2018-04-08 18:31:09 -0400) are available in the git repository at: git://git.denx.de/u-boot-video.git master for you to fetch changes up to 751641814c

Re: [U-Boot] [PATCH] video-uclass: Fix logical-not-parentheses warning

2018-04-24 Thread Anatolij Gustschin
On Sun, 22 Apr 2018 09:47:48 -0400 Tom Rini tr...@konsulko.com wrote: > With clang-4.0 and later we see: > warning: logical not is only applied to the left hand side of this bitwise > operator [-Wlogical-not-parentheses] > if ((!gd->flags & GD_FLG_RELOC)) > ^ ~ > > A

[U-Boot] [PATCH v4 04/18] warp7: hab: Set environment variable indicating HAB enable

2018-04-24 Thread Bryan O'Donoghue
This patch adds an environment variable called "hab_enabled" which gets set to a boolean status indicating whether HAB is enabled or not. Subsequent patches can use this environment variable to determine if its necessary to run a given binary through the hab_auth_img console command. Signed-off-b

[U-Boot] [PATCH v4 13/18] warp7: select uuid partition based on rootpart

2018-04-24 Thread Bryan O'Donoghue
Assigning the UUID discovery path to a tweakable environment variable means that later steps in the boot process - particularly a boot script can change the target root partition of a particular Linux boot. Retargeting the rootfs is an important feature when doing ping/pong upgrades allowing a boo

[U-Boot] [PATCH v4 17/18] warp7: defconfig: Enable CMD_SETEXPR

2018-04-24 Thread Bryan O'Donoghue
setexpr allows us to do arithmetic for env variables - something that is both useful and required when doing HAB authentication without hard-coding HAB load addresses. This patch enables CMD_SETEXPR for the WaRP7 defconfig. Signed-off-by: Bryan O'Donoghue Tested-by: Breno Lima Reviewed-by: Fabi

[U-Boot] [PATCH v4 14/18] warp7: Define the name of a signed boot-script file

2018-04-24 Thread Bryan O'Donoghue
We need to know the name of a signed boot-script, its better to have a separate variable for this then to simply append some fixed string to an existing image name. Signed-off-by: Bryan O'Donoghue Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- include/configs/warp7.h | 1 + 1 file change

[U-Boot] [PATCH v4 02/18] imximage: Specify default IVT offset in IMX image

2018-04-24 Thread Bryan O'Donoghue
This patch adds BOOTROM_IVT_HDR_OFFSET at 0xC00. The BootROM expects to find the IVT header at a particular offset in an i.MX image. Defining the expected offset of the IVT header in the first-stage BootROM image format is of use of later stage authentication routines where those routines continue

[U-Boot] [PATCH v4 00/18] warp7: Enable automated OPTEE/HAB boot flow

2018-04-24 Thread Bryan O'Donoghue
This tree here is pullable http://git.linaro.org/landing-teams/working/mbl/u-boot.git/log/?h=linaro-mbl%2bbod-nouart v4: - Add Tested-by and Reviewed-by from Fabio and Breno as indicated. Thanks very much guys for taking the time to do that :) - Adds patch tools/imximage: Fix fruity lack of 0

[U-Boot] [PATCH v4 18/18] warp7: Add support for automated secure boot.scr verification

2018-04-24 Thread Bryan O'Donoghue
This patch adds support for verifying a signed boot.scr. With this in place it's possible for run-time Linux to update boot.scr to set different variables such as switching between different boot partitions, pointing to different kernels etc and for u-boot to verify these changes via the HAB prior

[U-Boot] [PATCH v4 11/18] warp7: Make CONFIG_SYS_FDT_ADDR a define

2018-04-24 Thread Bryan O'Donoghue
In order to sign images with the IMX code-signing-tool (CST) we need to know the load address of a given image. The best way to derive this load address is to make it into a define - so that u-boot.cfg contains the address - which we can then parse when generating the IMX CST headers. Signed-off-b

[U-Boot] [PATCH v4 08/18] warp7: Specify CONFIG_OPTEE_LOAD_ADDR

2018-04-24 Thread Bryan O'Donoghue
In order to sign images with the IMX code-signing-tool (CST) we need to know the load address of a given image. The best way to derive this load address is to make it into a define - so that u-boot.cfg contains the address - which we can then parse when generating the IMX CST headers. This patch m

[U-Boot] [PATCH v4 01/18] tools/imximage: Fix fruity lack of 0x prefix in DCD Blocks

2018-04-24 Thread Bryan O'Donoghue
commit 8519c9c98ad6 ("tools/imximage: use 0x prefix in HAB Blocks line") adds an 0x prefix to each HAB Block number to make it easier for host tools to process the HAB Block output, however it neglects to apply the same prefix to the DCD Blocks directive. You need the DCD Blocks directive if you ar

[U-Boot] [PATCH v4 07/18] warp7: Print out the OPTEE DRAM region

2018-04-24 Thread Bryan O'Donoghue
Right now a region of 0x30 bytes is allocated at the end of DRAM for the purposes of loading an OPTEE firmware inside of it. This patch adds the printout of the relevant address ranges. Signed-off-by: Bryan O'Donoghue Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- board/warp7/warp7.c

[U-Boot] [PATCH v4 15/18] warp7: add warp7_auth_or_fail

2018-04-24 Thread Bryan O'Donoghue
Doing secure boot on the WaRP7 using a common image format and the same variable to represent the base address for each call means we can reduce down the command to a single environment command. This patch adds warp7_auth_or_fail as a wrapper around "hab_auth_img_or_fail ${hab_ivt_addr} ${filesize

[U-Boot] [PATCH v4 09/18] warp7: defconfig: Enable CONFIG_SECURE_BOOT

2018-04-24 Thread Bryan O'Donoghue
Various function associated with booting the WaRP7 in High Assurance Boot (HAB) mode are enabled by switching on CONFIG_SECURE_BOOT. This patch enables CONFIG_SECURE_BOOT for the WaRP7 defconfig. Signed-off-by: Bryan O'Donoghue Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- configs/warp

[U-Boot] [PATCH v4 16/18] warp7: hab: Set environment variable indicating IVT offset

2018-04-24 Thread Bryan O'Donoghue
This patch introduces the environment variable ivt_offset. When we define a load address for Linux or DTB or any file the IVT associated with that file is prepended. We extract the actual load addresses from u-boot.cfg and feed these values into the code-signing process - hence we want u-boot to ha

[U-Boot] [PATCH v4 10/18] warp7: defconfig: Enable CONFIG_BOOTM_TEE

2018-04-24 Thread Bryan O'Donoghue
This patch enables CONFIG_BOOTM_TEE. Once enabled its possible to chain-load Linux through OPTEE. Loading kernel to 0x8080 => run loadimage Load FDT to 0x8300 => run loadfdt Load OPTEE to 0x8400 => fatload mmc 0:5 0x8400 /lib/firmware/uTee.optee Then chain-load to the kernel via

[U-Boot] [PATCH v4 05/18] warp7: defconfig: Enable OPTEE for WaRP7

2018-04-24 Thread Bryan O'Donoghue
Requires setting CONFIG_OPTEE=y and setting an OPTEE TrustZone DRAM base in include/configs/warp7.h. Signed-off-by: Bryan O'Donoghue Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- configs/warp7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/warp7_defconfig b/config

[U-Boot] [PATCH v4 12/18] warp7: Add Kconfig WARP7_ROOT_PART

2018-04-24 Thread Bryan O'Donoghue
Adding CONFIG_WARP7_ROOT_PART allows a defconfig to specify which partition is use as the root partition on WaRP7, this is a desirable change in order to support a different partitioning schemes. The default is the current partition #2. Signed-off-by: Bryan O'Donoghue Tested-by: Breno Lima Revie

[U-Boot] [PATCH v4 03/18] warp7: hab: Add a CSF location definition

2018-04-24 Thread Bryan O'Donoghue
In order to correctly produce an image with a IVT/DCD header we need to define a CSF in imximage.cfg. We just use the mx7 default here. All we have to do with this option switched on is "make u-boot.imx" and we then will get - u-boot.imx - u-boot.imx.log The log file is really important because

[U-Boot] [PATCH v4 06/18] warp7: Allocate specific region of memory to OPTEE

2018-04-24 Thread Bryan O'Donoghue
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size. On WaRP7 we simply define the OPTEE region as from the maximum DRAM address minus CONFIG_OPTEE_TZDRAM_SIZE bytes. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Sig

[U-Boot] [PATCH v5 1/3] warp7: defconfig: Fix CAAM on boot with tip-of-tree

2018-04-24 Thread Bryan O'Donoghue
Booting the following image with tip-of-tree we get a CAAM DECO error (and subsequent crash due to a kernel bug in 4.1). http://freescale.github.io/#download -> BoardsWaRPboard community - WaRP - Wearable Reference PlatformFSL Community BSP 2.3fsl-image-multimediawayland Image: fsl-image-multimed

[U-Boot] [PATCH v5 3/3] warp7: configs: enable CONFIG_CMD_FS_GENERIC

2018-04-24 Thread Bryan O'Donoghue
From: Pierre-Jean TEXIER This enable generic file system commands (load, ls). Signed-off-by: Pierre-Jean TEXIER Acked-by: Bryan O'Donoghue Reviewed-by: Fabio Estevam Signed-off-by: Bryan O'Donoghue --- configs/warp7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/warp7

[U-Boot] [PATCH v5 2/3] warp7: secure_defconfig: Remove secure_defconfig

2018-04-24 Thread Bryan O'Donoghue
This patch removes warp7_secure_defconfig. A previous patch set CONFIG_ARMV7_BOOT_SEC_DEFAULT=y on the unsecure WaRP7 config. Fabio asked if I could confirm that the NXP and upstream kernels will boot on the WaRP7 with CONFIG_ARMV7_BOOT_SEC_DEFAULT=y. I can confirm that this is the case, so there's

[U-Boot] [PATCH v5 0/3] WaRP7 unify secure and non-secure defconfigs

2018-04-24 Thread Bryan O'Donoghue
This tree here is pullable http://git.linaro.org/landing-teams/working/mbl/u-boot.git/log/?h=linaro-mbl%2bbod-nouart v5: - Fixes broken merge conflict missed in last patch resend V4: - Adds Tested-by/Reviewed-by from Beno and Fabio as indicated for my patches - Resends Pierre-Jean's patch S

Re: [U-Boot] [PATCH v4 2/3] warp7: secure_defconfig: Remove secure_defconfig

2018-04-24 Thread Bryan O'Donoghue
On 24/04/18 18:37, Fabio Estevam wrote: Hi Bryan, On Tue, Apr 24, 2018 at 2:34 PM, Bryan O'Donoghue wrote: This patch removes warp7_secure_defconfig. A previous patch set CONFIG_ARMV7_BOOT_SEC_DEFAULT=y on the unsecure WaRP7 config. Fabio asked if I could confirm that the NXP and upstream ke

Re: [U-Boot] [PATCH v4 2/3] warp7: secure_defconfig: Remove secure_defconfig

2018-04-24 Thread Fabio Estevam
Hi Bryan, On Tue, Apr 24, 2018 at 2:34 PM, Bryan O'Donoghue wrote: > This patch removes warp7_secure_defconfig. A previous patch set > CONFIG_ARMV7_BOOT_SEC_DEFAULT=y on the unsecure WaRP7 config. Fabio asked > if I could confirm that the NXP and upstream kernels will boot on the WaRP7 > with CON

[U-Boot] [PATCH v4 2/3] warp7: secure_defconfig: Remove secure_defconfig

2018-04-24 Thread Bryan O'Donoghue
This patch removes warp7_secure_defconfig. A previous patch set CONFIG_ARMV7_BOOT_SEC_DEFAULT=y on the unsecure WaRP7 config. Fabio asked if I could confirm that the NXP and upstream kernels will boot on the WaRP7 with CONFIG_ARMV7_BOOT_SEC_DEFAULT=y. I can confirm that this is the case, so there's

[U-Boot] [PATCH v4 3/3] warp7: configs: enable CONFIG_CMD_FS_GENERIC

2018-04-24 Thread Bryan O'Donoghue
From: Pierre-Jean TEXIER This enable generic file system commands (load, ls). Signed-off-by: Pierre-Jean TEXIER Acked-by: Bryan O'Donoghue Reviewed-by: Fabio Estevam Signed-off-by: Bryan O'Donoghue --- configs/warp7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/warp7

[U-Boot] [PATCH v4 1/3] warp7: defconfig: Fix CAAM on boot with tip-of-tree

2018-04-24 Thread Bryan O'Donoghue
Booting the following image with tip-of-tree we get a CAAM DECO error (and subsequent crash due to a kernel bug in 4.1). http://freescale.github.io/#download -> BoardsWaRPboard community - WaRP - Wearable Reference PlatformFSL Community BSP 2.3fsl-image-multimediawayland Image: fsl-image-multimed

[U-Boot] [PATCH v4 0/3] WaRP7 unify secure and non-secure defconfigs

2018-04-24 Thread Bryan O'Donoghue
This tree here is pullable http://git.linaro.org/landing-teams/working/mbl/u-boot.git/log/?h=linaro-mbl%2bbod-nouart V4: - Adds Tested-by/Reviewed-by from Beno and Fabio as indicated for my patches - Resends Pierre-Jean's patch Since my parallel patchset relies on this patch I'm sending it a

Re: [U-Boot] [RFC PATCH 0/5] arm: Introduce v7R support

2018-04-24 Thread Michal Simek
On 24.4.2018 17:06, Lokesh Vutla wrote: > Hi Michal, > > On Tuesday 24 April 2018 08:06 PM, Michal Simek wrote: >> Hi Lokesh, >> >> On 24.4.2018 14:54, Lokesh Vutla wrote: >>> The Cortex-R* processors are a mid-range CPUs for use in deeply-embedded, >>> real-time systems. It implements the ARMv7-R

[U-Boot] [PATCH v2 07/20] phy: marvell: a3700: Access USB3 register indirectly on lane 2

2018-04-24 Thread Marek Behún
When USB3 is on comphy lane 2 on the Armada 37xx, the registers have to be accessed indirectly via SATA indirect access. This is the case of the Turris Mox board from CZ.NIC. Signed-off-by: Marek Behun --- drivers/phy/marvell/comphy_a3700.c | 102 - drivers/p

[U-Boot] [PATCH v2 19/20] watchdog: Add support for Armada 37xx CPU watchdog

2018-04-24 Thread Marek Behún
This adds support for the CPU watchdog found on Marvell Armada 37xx SoCs. There are 4 counters which can be set as CPU watchdog counters. This driver uses the second counter (ID 1, counting from 0) (Marvell's Linux also uses second counter by default). In the future it could be adapted to use othe

[U-Boot] [PATCH v2 18/20] net: mvneta: Fix fault when wrong device tree

2018-04-24 Thread Marek Behún
The driver does not check id phy_connect failed (for example on wrong property name in device tree). In such a case a fault occurs and the CPU is restarted. Signed-off-by: Marek Behun Reviewed-by: Stefan Roese --- drivers/net/mvneta.c | 4 1 file changed, 4 insertions(+) diff --git a/driv

[U-Boot] [PATCH v2 10/20] phy: marvell: mux: Support nontrivial node order in selector register

2018-04-24 Thread Marek Behún
Currently comphy_mux supports only trivial order of nodes in pin selector register, that is lane N on position N*bitcount. Add support for nontrivial order, with map stored in device tree property mux-lane-order. This is needed for Armada 37xx. As far as I know, there is no driver for Armada 37x

[U-Boot] [PATCH v2 12/20] phy: marvell: a3700: Use comphy_mux on Armada 37xx.

2018-04-24 Thread Marek Behún
Lane 0 supports SGMII1 and USB3. Lane 1 supports SGMII0 and PEX0. Lane 2 supports SATA0 and USB3. This is needed for Armada 37xx. This introduces new device tree bindings. AFAIK there is currently no driver for Armada 37xx comphy in Linux. When such a driver will be pushed into Linux, this will n

[U-Boot] [PATCH v2 13/20] phy: marvell: a3700: Save/restore selector reg in SGMII init

2018-04-24 Thread Marek Behún
In SGMII initialization PIN_PIPE_SEL has to be zero when resetting the PHY. Since comphy_mux already set the selector register to correct values, we have to store it's value before setting it to 0 and restore it after SGMII init. Signed-off-by: Marek Behun Reviewed-by: Stefan Roese --- drivers/

[U-Boot] [PATCH v2 20/20] arm64: mvebu: Add basic support for the Turris Mox board

2018-04-24 Thread Marek Behún
This adds basic support for the Turris Mox board from CZ.NIC, which is currently being crowdfunded on Indiegogo. Turris Mox is as modular router based on the Armada 3720 SOC (same as EspressoBin). The basic module can be extended by different modules. The device tree binary for the kernel can be

[U-Boot] [PATCH v2 15/20] spi: mvebu_a3700_spi: Use Armada 37xx clk driver for SPI clock frequency

2018-04-24 Thread Marek Behún
Since now we have driver for clocks on Armada 37xx, use it to determine SQF clock frequency for the SPI driver. Also change the default config files for Armada 37xx devices so that the clock driver is enabled by default, otherwise the SPI driver cannot be enabled. Signed-off-by: Marek Behun ---

[U-Boot] [PATCH v2 16/20] clk: armada-37xx: Support soc_clk_dump

2018-04-24 Thread Marek Behún
Add support for the clk dump command on Armada 37xx. Signed-off-by: Marek Behun Reviewed-by: Stefan Roese --- drivers/clk/mvebu/armada-37xx-periph.c | 36 +- drivers/clk/mvebu/armada-37xx-tbg.c| 2 ++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --

[U-Boot] [PATCH v2 09/20] phy: marvell: a3700: revise the USB3 comphy setting during power on

2018-04-24 Thread Marek Behún
From: zachary This commit is based on commit d9899826 by zachary from u-boot-marvell, see github.com/MarvellEmbeddedProcessors/u-boot-marvell/commit/d9899826 - According to design specification, the transmitter should be set to high impedence mode during electrical idle. Thus transmitter sh

[U-Boot] [PATCH v2 06/20] phy: marvell: a3700: Use reg_set_indirect istead of 2 reg_sets

2018-04-24 Thread Marek Behún
Create a special function for indirect register setting, reg_set_indirect, and use it instead of the two calls to reg_set. Signed-off-by: Marek Behun Reviewed-by: Stefan Roese --- drivers/phy/marvell/comphy_a3700.c | 32 1 file changed, 20 insertions(+), 12 dele

[U-Boot] [PATCH v2 17/20] phy: marvell: core: Cosmetic fixes

2018-04-24 Thread Marek Behún
Move the reg_set* functions into comphy.h as static inline functions. Change return type of get_*_string to const char *. Signed-off-by: Marek Behun Reviewed-by: Stefan Roese --- drivers/phy/marvell/comphy.h | 41 ++--- drivers/phy/marvell/comphy_core.c | 64 +--

[U-Boot] [PATCH v2 14/20] driver: clk: Add support for clocks on Armada 37xx

2018-04-24 Thread Marek Behún
The drivers are based on Linux driver by Gregory Clement. The TBG clocks support only the .get_rate method. - since setting rate is not supported, the driver computes the rates when probing and so subsequent calls to the .get_rate method do not read the corresponding registers again The

[U-Boot] [PATCH v2 02/20] phy: marvell: a3700: Use reg_set16 instead of phy_write16

2018-04-24 Thread Marek Behún
The macro phy_write16 is not used by the rest of the code, phy_read16 is not used at all. We also change the macro SGMIIPHY_ADDR to a static inline function. Signed-off-by: Marek Behun --- drivers/phy/marvell/comphy_a3700.c | 25 ++--- drivers/phy/marvell/comphy_a3700.h | 15

[U-Boot] [PATCH v2 08/20] phy: marvell: a3700: Set USB3 RX wait depending on ref clock

2018-04-24 Thread Marek Behún
According to specification, CFG_PM_RXDLOZ_WAIT should be set to 0x7 when reference clock is at 25 MHz. The specification (at least the version I have) does not mentoin the setting for 40 MHz reference clock, but Marvell's U-Boot sets 0xC in that case. Signed-off-by: Marek Behun Reviewed-by: Stefa

[U-Boot] [PATCH v2 03/20] phy: marvell: a3700: Don't create functional macro for each register

2018-04-24 Thread Marek Behún
Currently there is for each register special functional macro, ie: LANE_CFG1_ADDR(u) GLOB_CLK_SRC_LO_ADDR(u) ... where can be either PCIE or USB3. Change this to one function PHY_ADDR(unit, addr). The code becomes: phy_addr(PCIE, LANE_CFG1) phy_addr(PCIE, GLOB_CLK_SRC_LO) ... Signed-o

[U-Boot] [PATCH v2 04/20] phy: marvell: a3700: Use same timeout for all register polling

2018-04-24 Thread Marek Behún
The timeout is set to PLL_LOCK_TIMEOUT in every call to comphy_poll_reg. Remove this parameter from the function. Signed-off-by: Marek Behun Reviewed-by: Stefan Roese --- drivers/phy/marvell/comphy_a3700.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/dri

[U-Boot] [PATCH v2 11/20] phy: marvell: a3700: Fix SGMII cfg and stat register addresses

2018-04-24 Thread Marek Behún
The register addresses on lanes 0 and 1 are switched, first comes 1 and then 0. Signed-off-by: Marek Behun --- drivers/phy/marvell/comphy_a3700.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/marvell/comphy_a3700.h b/drivers/phy/marvell/comphy_a3700.h index

[U-Boot] [PATCH v2 00/20] More support for Armada 37xx boards (for Turris Mox)

2018-04-24 Thread Marek Behún
This is the second version of patches for updating the support of Armada 37xx devices. Here I also send first version of code which adds basic support for the Turris Mox board, a router currently being developed here at CZ.NIC, which is being crowdfunded now on Indiegogo. Changes since v1: - the

[U-Boot] [PATCH v2 05/20] phy: marvell: a3700: Use (!ret) instead of (ret == 0)

2018-04-24 Thread Marek Behún
In U-Boot it is usually written this way. Signed-off-by: Marek Behun Reviewed-by: Stefan Roese --- drivers/phy/marvell/comphy_a3700.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/phy/marvell/comphy_a3700.c b/drivers/phy/marvell/comphy

[U-Boot] [PATCH v2 01/20] phy: marvell: a3700: Change return type of macro MVEBU_REG

2018-04-24 Thread Marek Behún
All the calls to reg_set and friends have to cast the first argument to void __iomem *. Lets change the return type of the MVEBU_REG macro instead. Signed-off-by: Marek Behun --- drivers/phy/marvell/comphy_a3700.c | 206 - drivers/phy/marvell/comphy_a3700.h |

Re: [U-Boot] [RFC PATCH 4/5] arm: v7R: Add support for MPU

2018-04-24 Thread Lokesh Vutla
On Tuesday 24 April 2018 08:38 PM, Tom Rini wrote: > On Tue, Apr 24, 2018 at 08:32:40PM +0530, Lokesh Vutla wrote: >> >> >> On Tuesday 24 April 2018 06:50 PM, Tom Rini wrote: >>> On Tue, Apr 24, 2018 at 06:24:47PM +0530, Lokesh Vutla wrote: >>> The Memory Protection Unit(MPU) allows to parti

Re: [U-Boot] [RFC PATCH 4/5] arm: v7R: Add support for MPU

2018-04-24 Thread Tom Rini
On Tue, Apr 24, 2018 at 08:32:40PM +0530, Lokesh Vutla wrote: > > > On Tuesday 24 April 2018 06:50 PM, Tom Rini wrote: > > On Tue, Apr 24, 2018 at 06:24:47PM +0530, Lokesh Vutla wrote: > > > >> The Memory Protection Unit(MPU) allows to partition memory into regions > >> and set individual protec

Re: [U-Boot] [RFC PATCH 0/5] arm: Introduce v7R support

2018-04-24 Thread Lokesh Vutla
Hi Michal, On Tuesday 24 April 2018 08:06 PM, Michal Simek wrote: > Hi Lokesh, > > On 24.4.2018 14:54, Lokesh Vutla wrote: >> The Cortex-R* processors are a mid-range CPUs for use in deeply-embedded, >> real-time systems. It implements the ARMv7-R architecture, and includes >> Thumb-2 technology

Re: [U-Boot] [RFC PATCH 5/5] arm: v7R: Add support for enabling caches

2018-04-24 Thread Lokesh Vutla
On Tuesday 24 April 2018 06:50 PM, Tom Rini wrote: > On Tue, Apr 24, 2018 at 06:24:48PM +0530, Lokesh Vutla wrote: > >> Cache maintenance procedure is same for v7 and v7R >> processors. So re-use cache-cp15.c file except for >> mmu parts. > > I also don't like CONFIG_MMU as it's too generic of

Re: [U-Boot] [RFC PATCH 4/5] arm: v7R: Add support for MPU

2018-04-24 Thread Lokesh Vutla
On Tuesday 24 April 2018 06:50 PM, Tom Rini wrote: > On Tue, Apr 24, 2018 at 06:24:47PM +0530, Lokesh Vutla wrote: > >> The Memory Protection Unit(MPU) allows to partition memory into regions >> and set individual protection attributes for each region. In absence >> of MPU a default map[1] will

Re: [U-Boot] [RFC PATCH 3/5] arm: Kconfig: Add entry for MMU

2018-04-24 Thread Lokesh Vutla
On Tuesday 24 April 2018 06:50 PM, Tom Rini wrote: > On Tue, Apr 24, 2018 at 06:24:46PM +0530, Lokesh Vutla wrote: > >> Add a Kconfig entry for MMU and imply for all platforms >> using cache-cp15.c. Using imply instead of select so that >> MMU can be disabled by defconfigs when not needed. >> >>

Re: [U-Boot] [RFC PATCH 2/5] arm: v7R: Add initial support

2018-04-24 Thread Lokesh Vutla
On Tuesday 24 April 2018 06:35 PM, Alexander Graf wrote: > On 04/24/2018 02:54 PM, Lokesh Vutla wrote: >> From: Michal Simek >> >> The Cortex-R* processors are a mid-range CPUs for use in deeply-embedded, >> real-time systems. It implements the ARMv7-R architecture, and includes >> Thumb-2 techn

Re: [U-Boot] [RFC PATCH 0/5] arm: Introduce v7R support

2018-04-24 Thread Michal Simek
Hi Lokesh, On 24.4.2018 14:54, Lokesh Vutla wrote: > The Cortex-R* processors are a mid-range CPUs for use in deeply-embedded, > real-time systems. It implements the ARMv7-R architecture, and includes > Thumb-2 technology for optimum code density and processing throughput. > > Except for MPU(Memo

Re: [U-Boot] [PATCH v1 15/19] spi: mvebu_a3700_spi: Use Armada 37xx clk driver for SPI clock frequency

2018-04-24 Thread Marek Behún
On Wed, 21 Mar 2018 10:37:33 +0100 Stefan Roese wrote: > Please add Jagan (on Cc) to Cc for SPI driver related changes. Will do with next version > Wouldn't it be easier to "select" CLK_ARMADA_3720 here instead? No > changes to the config files necessary this way. okay :) > checkpatch will mos

Re: [U-Boot] [RFC PATCH 5/5] arm: v7R: Add support for enabling caches

2018-04-24 Thread Tom Rini
On Tue, Apr 24, 2018 at 06:24:48PM +0530, Lokesh Vutla wrote: > Cache maintenance procedure is same for v7 and v7R > processors. So re-use cache-cp15.c file except for > mmu parts. I also don't like CONFIG_MMU as it's too generic of a name. Since for this part of the series we need a flag for "w

Re: [U-Boot] [RFC PATCH 3/5] arm: Kconfig: Add entry for MMU

2018-04-24 Thread Tom Rini
On Tue, Apr 24, 2018 at 06:24:46PM +0530, Lokesh Vutla wrote: > Add a Kconfig entry for MMU and imply for all platforms > using cache-cp15.c. Using imply instead of select so that > MMU can be disabled by defconfigs when not needed. > > Signed-off-by: Lokesh Vutla > --- > arch/arm/Kconfig

Re: [U-Boot] [RFC PATCH 2/5] arm: v7R: Add initial support

2018-04-24 Thread Tom Rini
On Tue, Apr 24, 2018 at 03:05:46PM +0200, Alexander Graf wrote: > On 04/24/2018 02:54 PM, Lokesh Vutla wrote: > >From: Michal Simek > > > >The Cortex-R* processors are a mid-range CPUs for use in deeply-embedded, > >real-time systems. It implements the ARMv7-R architecture, and includes > >Thumb-

  1   2   >