Re: [U-Boot] [PATCH] image-fdt: reserve lmb for fdt

2018-08-24 Thread Andy Yan
ping Andy Yan 于2018年8月7日周二 下午7:43写道: > Memory region for fdt should be reserved, or they > may be allocated by other module via lmb_alloc. > Then the fdt data will be destroy. > > We found a case on a board with 64MB DRAM like bellow: > > No ethernet found. > Hit any key to stop autoboot: 0 > A

Re: [U-Boot] [PATCH] driver: net: fsl-mc: Memset MC reserve red memory before usage

2018-08-24 Thread Prabhakar Kushwaha
Thanks York, > -Original Message- > From: York Sun > Sent: Friday, August 24, 2018 8:24 PM > To: Prabhakar Kushwaha ; u- > b...@lists.denx.de > Cc: joe.hershber...@ni.com; Ashish Kumar ; > cristian.sovai...@nxp.co > Subject: Re: [PATCH] driver: net: fsl-mc: Memset MC reserve red memory bef

[U-Boot] [PATCH 2/2] board: advantech: dms-ba16:: add the Q7 DualLite support

2018-08-24 Thread Ken Lin
Change the dms-ba16 configurations to support both Q7 Dual/Quad and DualLite modules Add the DDR3L parameters support for the DualLite Signed-off-by: Ken Lin --- arch/arm/mach-imx/mx6/Kconfig | 1 - board/advantech/dms-ba16/Kconfig| 7 +++ board/advantech/dms-ba16/dd

[U-Boot] [PATCH 1/2] board: advantech: dms-ba16: GBE MAC addr support in kernel bootargs

2018-08-24 Thread Ken Lin
Add configurable support for loading the GBE MAC from the Q7 SPI-NOR and add it to the kernel bootargs. Signed-off-by: Ken Lin --- board/advantech/dms-ba16/Kconfig | 3 +++ board/advantech/dms-ba16/dms-ba16.c | 19 +++ include/configs/advantech_dms-ba16.h | 13 +++--

[U-Boot] [PATCH] ftgmac100: Add DM support to the current driver

2018-08-24 Thread Cédric Le Goater
The conversion is inspired by the FTMAC100 driver and the driver was tested on QEMU with an Aspeed SoC machine. Some extra changes required by the Aspeed SoCs will be proposed in a subsequent patch. Signed-off-by: Cédric Le Goater --- drivers/net/ftgmac100.c | 351 +++

Re: [U-Boot] env: ubi: Add missing ENV_NAME

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 03:53:33PM +0200, Marek Vasut wrote: > Add missing environment name for UBI, to prevent this NULL in output: > Loading Environment from ... > and rather have a valid UBI there: > Loading Environment from UBI... > > Signed-off-by: Marek Vasut Applied to u-boot/master, tha

Re: [U-Boot] board: arm: bcmstb: Declare get_ticks in timer.h

2018-08-24 Thread Tom Rini
On Wed, Aug 15, 2018 at 09:33:49PM -0400, Thomas Fitzsimmons wrote: > In an earlier proposed patch, bcmstb.c implemented timer_read_counter, > but it was updated to implement get_ticks instead. This patch updates > the declaration in timer.h accordingly. > > Signed-off-by: Thomas Fitzsimmons A

Re: [U-Boot] [U-Boot, v1] malloc_simple: calloc: don't call memset if malloc failed

2018-08-24 Thread Tom Rini
On Thu, Aug 16, 2018 at 09:50:32AM +0200, Simon Goldschmidt wrote: > malloc_simple() can return 0 if out of memory. Don't call memset > from calloc() in this case but rely on the caller checking > the return value. > > Signed-off-by: Simon Goldschmidt > Reviewed-by: Marek Vasut Applied to u-bo

Re: [U-Boot] ARM: dts: am33xx: fix SLEWCTRL_FAST pinctrl binding

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 05:04:09PM +0200, christian.am...@de.bosch.com wrote: > From: Christian Amann > > Copy missing Kernel patch to make SLEWCTRL_SLOW available in device tree > and to correct the value of SLEWCTRL_FAST. > After this patch, the Kernel and U-boot device tree settings for > SLE

Re: [U-Boot] ARM: display5: Remove "factory procedure" from display5 board config

2018-08-24 Thread Tom Rini
On Mon, Aug 20, 2018 at 04:23:58PM +0200, Lukasz Majewski wrote: > This code now is regarded as dead one and hence shall be removed. > > Signed-off-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, 7/7] common: avb_verify: Fix division by zero in mmc_byte_io()

2018-08-24 Thread Tom Rini
On Tue, Aug 14, 2018 at 02:43:09AM +0200, Eugeniu Rosca wrote: > Compiling U-Boot with ubsan/asan libraries and running it in sandbox > may lead to below backtrace: > > => avb init 0 > => avb verify > ## Android Verified Boot 2.0 version 1.1.0 > read_is_device_unlocked not supported yet > comm

Re: [U-Boot] [U-Boot, 6/7] common: avb_verify: Fix never-occurring avb_free(ops_data)

2018-08-24 Thread Tom Rini
On Tue, Aug 14, 2018 at 02:43:08AM +0200, Eugeniu Rosca wrote: > Cppcheck (v1.85) reports w/o this patch: > > [common/avb_verify.c:738] -> [common/avb_verify.c:741]: (warning) \ > Either the condition 'ops' is redundant or there is possible null \ > pointer dereference: ops. > > Signed-off-b

Re: [U-Boot] dm: test: Fix typo in test-main comment

2018-08-24 Thread Tom Rini
On Mon, Aug 20, 2018 at 08:03:22AM +0200, Michal Simek wrote: > Trivial fix. > > Signed-off-by: Michal Simek > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Bo

Re: [U-Boot] u-boot: align cache flushes in load_elf_image_shdr to line boundaries

2018-08-24 Thread Tom Rini
On Mon, Aug 20, 2018 at 03:46:19PM +, Neil Stainton wrote: > Prevent cache warning messages when using the 'bootelf' command on an Arm > target. Round down each section start address and round up the respective > section end to the nearest cache line. Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot, 3/7] common: kconfig: Mark AVB_VERIFY as dependent on PARTITION_UUIDS

2018-08-24 Thread Tom Rini
On Tue, Aug 14, 2018 at 02:43:05AM +0200, Eugeniu Rosca wrote: > Avoid below compiler [1] errors, reproduced with configuration [2]: > > common/avb_verify.c: In function ‘get_unique_guid_for_partition’: > common/avb_verify.c:692:31: error: ‘disk_partition_t {aka struct > disk_partition}’ has no

Re: [U-Boot] [U-Boot, 4/7] common: avb_verify: Make local data static

2018-08-24 Thread Tom Rini
On Tue, Aug 14, 2018 at 02:43:06AM +0200, Eugeniu Rosca wrote: > Fix sparse complaint: > > common/avb_verify.c:14:21: warning: \ > symbol 'avb_root_pub' was not declared. Should it be static? > > Signed-off-by: Eugeniu Rosca > Reviewed-by: Igor Opaniuk Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot, u-boot, 1/3] boards: amlogic: remove ethernet gpio reset code from boards

2018-08-24 Thread Tom Rini
On Tue, Aug 14, 2018 at 03:07:52PM +0200, Beniamino Galvani wrote: > The reset is already handled by the designware driver using > information from device tree. > > Signed-off-by: Beniamino Galvani > Acked-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Descriptio

Re: [U-Boot] [U-Boot,5/7] common: avb_verify: Fix memory leaks

2018-08-24 Thread Tom Rini
On Tue, Aug 14, 2018 at 02:43:07AM +0200, Eugeniu Rosca wrote: > Cppcheck (v1.85) reports w/o this patch: > > [common/avb_verify.c:351]: (error) Memory leak: part > [common/avb_verify.c:356]: (error) Memory leak: part > [common/avb_verify.c:361]: (error) Memory leak: part > [common/avb_verify.c:3

Re: [U-Boot] [U-Boot, 2/7] common: avb_verify: Fix invalid 'for' loop condition

2018-08-24 Thread Tom Rini
On Tue, Aug 14, 2018 at 02:43:04AM +0200, Eugeniu Rosca wrote: > Fix below compiler [1] warning: > > common/avb_verify.c: In function ‘avb_find_dm_args’: > common/avb_verify.c:179:30: warning: left-hand operand of comma expression > has no effect [-Wunused-value] > for (i = 0; i < AVB_MAX_ARGS

Re: [U-Boot] [U-Boot, 1/7] libavb: Handle wrong hashtree_error_mode in avb_append_options()

2018-08-24 Thread Tom Rini
On Tue, Aug 14, 2018 at 02:43:03AM +0200, Eugeniu Rosca wrote: > From: Ievgen Maliarenko > > Exit with AVB_SLOT_VERIFY_RESULT_ERROR_INVALID_ARGUMENT > when hashtree_error_mode value passed to avb_append_options() > is unknown (not from AvbHashtreeErrorMode enum). > > Otherwise, default value is

[U-Boot] [PATCH] usb: ohci: Add OHCI PCI driver

2018-08-24 Thread Marek Vasut
Add small OHCI PCI driver for USB 1.1 OHCI controllers on PCI bus. This driver matches only on PCI class (serial-ohci) and requires DM-USB ; any sort of deprecated legacy usage is not supported. Signed-off-by: Marek Vasut --- drivers/usb/host/Kconfig| 6 + drivers/usb/host/Makefile |

[U-Boot] [PATCH] pci: rmobile: Filter out device 1 and 2

2018-08-24 Thread Marek Vasut
Only PCI device 1 and 2 is populated on the R-Car Gen2 internal PCIe controller. Ignore all other devices. This fix prevents a duplication of OHCI controller response on slot 0 and 1. Signed-off-by: Marek Vasut --- drivers/pci/pci-rcar-gen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-08-24 Thread Marek Vasut
The PCI controller can have DT subnodes describing extra properties of particular PCI devices, ie. a PHY attached to an EHCI controller on a PCI bus. This patch parses those DT subnodes and assigns a node to the PCI device instance, so that the driver can extract details from that node and ie. conf

[U-Boot] [PATCH V2 2/2] pci: Update documentation to make 'compatible' string optional

2018-08-24 Thread Marek Vasut
Reword the documentation to make it clear the compatible string is now optional, yet still matching on it takes precedence over PCI IDs and PCI classes. Signed-off-by: Marek Vasut Cc: Simon Glass Cc: Tom Rini --- V2: New patch --- doc/driver-model/pci-info.txt | 14 +- 1 file chang

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

2018-08-24 Thread Marek Vasut
The following changes since commit 2418734ed429058b396d2aeb6b91f875cdc8e4ce: Merge branch 'master' of git://git.denx.de/u-boot-tegra (2018-08-22 22:36:08 -0400) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to a029f540c54c398

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

2018-08-24 Thread Marek Vasut
The following changes since commit 9f8cf76be256a83643ee05de6cffaeb452ed0931: Convert CONFIG_SYS_I2C_DAVINCI to Kconfig (2018-08-17 15:43:38 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to 49c752c93a785b9bad9d3fbbd52a76bec

Re: [U-Boot] [PATCH v1] arm: at91: wdt: Convert watchdog driver to dm

2018-08-24 Thread Prasanthi . Chellakumar
On 08/10/2018 07:53 AM, Tom Rini wrote: On Thu, Jul 26, 2018 at 02:56:27PM -0700, Prasanthi Chellakumar wrote: Convert the Watchdog driver for AT91SAM9x processors to support the driver model and device tree Signed-off-by: Prasanthi Chellakumar --- arch/arm/mach-at91/include/mach/at91_wdt

Re: [U-Boot] [PATCH] MMC: davinici_mmc: Enable CD and WP with DM and OF_CONTROL

2018-08-24 Thread Adam Ford
On Thu, Aug 23, 2018 at 7:19 AM Peter Howard wrote: > > On Thu, 2018-08-16 at 23:26 -0500, Adam Ford wrote: > > When used with a device tree, this will extract the card detect > > and write protect pins from the device tree and configure them > > accordingly. This assumes the GPIO_ACTIVE_LOW/HIGH

Re: [U-Boot] [PATCH 0/3] Fix for rare beaglebone ethernet failures

2018-08-24 Thread Grygorii Strashko
On 08/23/2018 06:41 AM, Sekhar Nori wrote: There have been reports of ethernet network failures on beagle bone black. These have been root caused to ethernet PHY latching to a different address on boot than what is programmed in DT. See: https://groups.google.com/d/msg/beagleboard/9mctrG26Mc8/

Re: [U-Boot] [PATCH 11/25] clk: Allow clock defaults to be set also during re-reloc state

2018-08-24 Thread Andreas Dannenberg
Hi Philipp, On Fri, Aug 24, 2018 at 06:00:31PM +0200, Dr. Philipp Tomsich wrote: > >> If I remember correctly, David had a concern regarding an increase in > >> boottime if we ran this twice… adding Kever, as he was also involved > >> in the discussion. > >> > >> I settled on skipping it for p

Re: [U-Boot] [PATCH 11/25] clk: Allow clock defaults to be set also during re-reloc state

2018-08-24 Thread Dr. Philipp Tomsich
> On 24 Aug 2018, at 17:54, Andreas Dannenberg wrote: > > Philipp, > > On Fri, Aug 24, 2018 at 04:42:15PM +0200, Dr. Philipp Tomsich wrote: >> +Kever >> >>> On 24 Aug 2018, at 16:12, Tom Rini wrote: >>> >>> On Tue, Aug 21, 2018 at 08:01:49PM +0530, Lokesh Vutla wrote: >>> From: Andreas

Re: [U-Boot] [PATCH 11/25] clk: Allow clock defaults to be set also during re-reloc state

2018-08-24 Thread Andreas Dannenberg
Philipp, On Fri, Aug 24, 2018 at 04:42:15PM +0200, Dr. Philipp Tomsich wrote: > +Kever > > > On 24 Aug 2018, at 16:12, Tom Rini wrote: > > > > On Tue, Aug 21, 2018 at 08:01:49PM +0530, Lokesh Vutla wrote: > > > >> From: Andreas Dannenberg > >> > >> The earlier commit f4fcba5c5ba ("clk: imple

Re: [U-Boot] [PATCH 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-08-24 Thread Tom Rini
On Fri, Aug 24, 2018 at 08:44:50PM +0530, Lokesh Vutla wrote: > > > On Friday 24 August 2018 08:25 PM, Tom Rini wrote: > > On Fri, Aug 24, 2018 at 08:21:19PM +0530, Lokesh Vutla wrote: > >> > >> > >> On Friday 24 August 2018 07:40 PM, Tom Rini wrote: > >>> On Tue, Aug 21, 2018 at 08:00:48PM +0530

Re: [U-Boot] [PATCH 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-08-24 Thread Lokesh Vutla
On Friday 24 August 2018 08:25 PM, Tom Rini wrote: > On Fri, Aug 24, 2018 at 08:21:19PM +0530, Lokesh Vutla wrote: >> >> >> On Friday 24 August 2018 07:40 PM, Tom Rini wrote: >>> On Tue, Aug 21, 2018 at 08:00:48PM +0530, Lokesh Vutla wrote: >>> Add support for Texas Instruments' K3 Generatio

Re: [U-Boot] [PATCH 21/25] remoteproc: Introduce K3 system controller

2018-08-24 Thread Lokesh Vutla
On Friday 24 August 2018 07:42 PM, Tom Rini wrote: > On Tue, Aug 21, 2018 at 08:01:59PM +0530, Lokesh Vutla wrote: > >> K3 specific SoCs have a dedicated microcontroller for doing >> resource management. Any HLOS/firmware on compute clusters should >> load a firmware to this microcontroller befo

Re: [U-Boot] [PATCH 01/25] firmware: Add basic support for TI System Control Interface (TI SCI) protocol

2018-08-24 Thread Lokesh Vutla
On Friday 24 August 2018 07:41 PM, Tom Rini wrote: > On Tue, Aug 21, 2018 at 08:01:39PM +0530, Lokesh Vutla wrote: > >> Texas Instrument's System Control Interface (TI SCI) message protocol is >> used in Texas Instrument's System on Chip (SoC) such as those in the K3 >> family AM654 SoC to commu

Re: [U-Boot] [PATCH 2/8] arm: K3: Add support for AM654 SoC definition

2018-08-24 Thread Tom Rini
On Fri, Aug 24, 2018 at 08:28:17PM +0530, Lokesh Vutla wrote: > > > On Friday 24 August 2018 07:41 PM, Tom Rini wrote: > > On Tue, Aug 21, 2018 at 08:00:49PM +0530, Lokesh Vutla wrote: > > > >> The AM654 device is designed for industrial automation and PLC > >> controller class platforms among o

Re: [U-Boot] [PATCH 7/8] armv8: K3: am654: Introduce FIT generator script

2018-08-24 Thread Lokesh Vutla
On Friday 24 August 2018 07:41 PM, Tom Rini wrote: > On Tue, Aug 21, 2018 at 08:00:54PM +0530, Lokesh Vutla wrote: > >> Add a script that is capable of generating a FIT image >> source file that combines ATF, SPL(64 bit) and DT. >> This combined image is used by R5 SPL and start ATF >> on ARMv8

Re: [U-Boot] [PATCH 4/8] arm: K3: am654: Add support for boot device detection

2018-08-24 Thread Lokesh Vutla
On Friday 24 August 2018 07:41 PM, Tom Rini wrote: > On Tue, Aug 21, 2018 at 08:00:51PM +0530, Lokesh Vutla wrote: > >> AM654 allows for booting from primary or backup boot media. >> Both media can be chosen individually based on switch settings. >> ROM looks for a valid image in primary boot me

Re: [U-Boot] [PATCH v3.3 14/58] musb-new: sunxi: Use CLK and RESET support

2018-08-24 Thread Maxime Ripard
On Fri, Aug 24, 2018 at 01:53:40PM +0530, Jagan Teki wrote: > Now clock and reset drivers are available for respective > SoC's so use clk and reset ops on musb driver. > > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel eng

Re: [U-Boot] [PATCH 2/8] arm: K3: Add support for AM654 SoC definition

2018-08-24 Thread Lokesh Vutla
On Friday 24 August 2018 07:41 PM, Tom Rini wrote: > On Tue, Aug 21, 2018 at 08:00:49PM +0530, Lokesh Vutla wrote: > >> The AM654 device is designed for industrial automation and PLC >> controller class platforms among other applications. Introduce >> base support for AM654 SoC. > [snip] >> +con

Re: [U-Boot] [PATCH 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-08-24 Thread Tom Rini
On Fri, Aug 24, 2018 at 08:21:19PM +0530, Lokesh Vutla wrote: > > > On Friday 24 August 2018 07:40 PM, Tom Rini wrote: > > On Tue, Aug 21, 2018 at 08:00:48PM +0530, Lokesh Vutla wrote: > > > >> Add support for Texas Instruments' K3 Generation Processor > >> families. > > [snip] > >> diff --git a

Re: [U-Boot] [PATCH] driver: net: fsl-mc: Memset MC reserve red memory before usage

2018-08-24 Thread York Sun
On 08/23/2018 08:13 PM, Prabhakar Kushwaha wrote: > Hi York > >> -Original Message- >> From: York Sun >> Sent: Thursday, August 23, 2018 8:41 PM >> To: Prabhakar Kushwaha ; u- >> b...@lists.denx.de >> Cc: joe.hershber...@ni.com; Ashish Kumar ; >> cristian.sovai...@nxp.co >> Subject: Re: [P

Re: [U-Boot] Unaligned memory accesses exception

2018-08-24 Thread Tom Rini
On Wed, Aug 22, 2018 at 09:44:16AM +0200, Fernando AE wrote: > Hello all, > > I'm bringing up U-Boot for an iMX6UL board, and I've encountered > unaligned memory accesses exceptions while I was trying to test the > ETH commands (e.g., 'ping'). > > After investigation, I found out that the iMX6UL

Re: [U-Boot] [PATCH 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-08-24 Thread Lokesh Vutla
On Friday 24 August 2018 07:40 PM, Tom Rini wrote: > On Tue, Aug 21, 2018 at 08:00:48PM +0530, Lokesh Vutla wrote: > >> Add support for Texas Instruments' K3 Generation Processor >> families. > [snip] >> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c >> index 9c80090aa7..f48d82

Re: [U-Boot] [PATCH 11/25] clk: Allow clock defaults to be set also during re-reloc state

2018-08-24 Thread Dr. Philipp Tomsich
+Kever > On 24 Aug 2018, at 16:12, Tom Rini wrote: > > On Tue, Aug 21, 2018 at 08:01:49PM +0530, Lokesh Vutla wrote: > >> From: Andreas Dannenberg >> >> The earlier commit f4fcba5c5ba ("clk: implement clk_set_defaults()") >> which introduced the functionality for setting clock defaults such a

Re: [U-Boot] [PATCH 1/3] drivers: net: cpsw: add support to update phy address

2018-08-24 Thread Tom Rini
On Thu, Aug 23, 2018 at 05:11:29PM +0530, Sekhar Nori wrote: > On some boards using TI CPSW, it may be possible that > PHY address was not latched correctly, and the actual > address that the phy responds on is different from that > set in device-tree. For example, see this problem report > on bea

Re: [U-Boot] [PATCH 23/25] spl: Allow remoteproc drivers to be used within SPL

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:02:01PM +0530, Lokesh Vutla wrote: > Add an option for building remoteproc drivers within SPL. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing lis

Re: [U-Boot] [PATCH 25/25] gpio: do not include for ARCH_K3

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:02:03PM +0530, Lokesh Vutla wrote: > As no gpio.h is defined in arch/arm/mach-k3/include/, > to avoid compilation failure, do not include asm/arch/gpio.h. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [PATCH 5/6] arm64: dts: k3: Add u-boot specific nodes

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:03:15PM +0530, Lokesh Vutla wrote: > Add the minimum dt nodes required to boot. These nodes > will get deleted as kernel gets these nodes added in the > main dts files. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP si

Re: [U-Boot] [PATCH 22/25] remoteproc: Introduce K3 remoteproc driver

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:02:00PM +0530, Lokesh Vutla wrote: > Add support for K3 based remoteproc driver that > communicates with TISCI to start start a remote processor. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH 6/6] configs: am65x_evm_a53: Add initial support

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:03:16PM +0530, Lokesh Vutla wrote: > Add initial defconfig support for AM65x that runs on A53. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Andreas Dannenberg Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 4/6] arm64: dts: k3: Add Support for AM654 SoC

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:03:14PM +0530, Lokesh Vutla wrote: > Add initial DT support for AM654 EVM that runs on A53. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U

Re: [U-Boot] [PATCH 09/25] reset: Extend reset control with an optional data field

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:47PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Some systems require more than a single ID to identify and configure any > reset provider. For those scenarios add an optional data field to the > reset control structure. > > Signed-off-by: Andreas Dan

Re: [U-Boot] [PATCH 15/25] power domain: Introduce TI System Control Interface (TI SCI) power domain driver

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:53PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Some TI Keystone 2 and K3 family of SoCs contain a system controller > (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and > the Device Management and Security Controller on AM65x SoCs)

Re: [U-Boot] [PATCH 08/25] dm: reset: Update uclass to allow querying reset status

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:46PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Add a reset operations function pointer to support querying the current > status of a reset control. > > Signed-off-by: Andreas Dannenberg > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- To

Re: [U-Boot] [PATCH 07/25] dm: firmware: Automatically bind child devices

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:45PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > To support scenarios where a firmware device node has subnodes that > have their own drivers automatically scan the DT and bind those when > the firmware device gets bound. > > Signed-off-by: Andreas Da

Re: [U-Boot] [PATCH 19/25] spl: Allow mailbox drivers to be used within SPL

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:57PM +0530, Lokesh Vutla wrote: > Add an option for building mailbox drivers within SPL. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U

Re: [U-Boot] [PATCH 3/6] include: am654_evm: Establish initial environment for SD card boot

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:03:13PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Create a basic U-Boot environment that allows the automatic loading > of a Linux Kernel located at /boot/Image and an associated device tree > blob located at /boot/k3-am654-base-board.dtb from the secon

Re: [U-Boot] [PATCH 3/3] configs: am335x_evm: enable OF_BOARD_SETUP

2018-08-24 Thread Tom Rini
On Thu, Aug 23, 2018 at 05:11:31PM +0530, Sekhar Nori wrote: > Enable CONFIG_OF_BOARD_SETUP as it is needed for Beaglebone > black to overwrite the Ethernet phy address present in DT > in case the phy latches on to a different address. > > Signed-off-by: Sekhar Nori Reviewed-by: Tom Rini --

Re: [U-Boot] [PATCH 13/25] clk: Introduce TI System Control Interface (TI SCI) clock driver

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:51PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Some TI Keystone 2 and K3 family of SoCs contain a system controller > (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and > the Device Management and Security Controller on AM65x SoCs)

Re: [U-Boot] [PATCH 2/3] board: ti: am335x: add support to fixup phy address

2018-08-24 Thread Tom Rini
On Thu, Aug 23, 2018 at 05:11:30PM +0530, Sekhar Nori wrote: > On beaglebone black, it can so happen that PHY address > is not latched correctly on reset and board boots with > PHY responding to a different address than that > programmed in device-tree. For example, see this report: > > https://g

Re: [U-Boot] [PATCH 04/25] firmware: ti_sci: Add support for clock control

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:42PM +0530, Lokesh Vutla wrote: > In general, we expect to function at a device level of abstraction, > however, for proper operation of hardware blocks, many clocks directly > supplying the hardware block needs to be queried or configured. > > Introduce support for

Re: [U-Boot] [PATCH 12/25] clk: Extend clock control with an optional data field

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:50PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Some systems require more than a single ID to identify and configure any > clock provider. For those scenarios add an optional data field to the > clock control structure. > > Signed-off-by: Andreas Dan

Re: [U-Boot] [PATCH 01/25] firmware: Add basic support for TI System Control Interface (TI SCI) protocol

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:39PM +0530, Lokesh Vutla wrote: > Texas Instrument's System Control Interface (TI SCI) message protocol is > used in Texas Instrument's System on Chip (SoC) such as those in the K3 > family AM654 SoC to communicate between various compute processors with > a central s

Re: [U-Boot] [PATCH 1/6] board: ti: am654: a53: Add initial support for am654

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:03:11PM +0530, Lokesh Vutla wrote: > Add initial support for AM654 based EVM running on A53. Enable > 4GB of DDR available on the EVM so that kernel DTB file > can be updated accordingly. > > Signed-off-by: Lokesh Vutla > [Andreas: Added 4GB ddr support] > Signed-off-b

Re: [U-Boot] [PATCH 14/25] power domain: Add support for multiple powerdomains per device

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:52PM +0530, Lokesh Vutla wrote: > There are cases where there are more than one power domain > attached to the device inorder to get the device functional. > So add support for enabling power domain based on the index. > > Signed-off-by: Lokesh Vutla Reviewed-by: T

Re: [U-Boot] [PATCH 24/25] mmc: k3_arasan: Add sdhci driver support for K3 family SoCs

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:02:02PM +0530, Lokesh Vutla wrote: > AM654 has an arasan sdhci controller and a mmc phy attached to it. > Add basic support for K3 specific arasan sdhci controller. > > Cc: Jaehoon Chung > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc De

Re: [U-Boot] [PATCH 06/25] firmware: ti_sci: Add support for processor control services

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:44PM +0530, Lokesh Vutla wrote: > TI-SCI message protocol provides support for controlling of various > physical cores available in SoC. In order to control which host is > capable of controlling a physical processor core, there is a processor > access control list th

Re: [U-Boot] [PATCH 6/8] armv8: K3: am654: Add custom MMU support

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:00:53PM +0530, Lokesh Vutla wrote: > Add MMU mappings for AM654 SoC. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de htt

Re: [U-Boot] [PATCH 10/25] reset: Introduce TI System Control Interface (TI SCI) reset driver

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:48PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Some TI Keystone 2 and K3 family of SoCs contain a system controller > (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and > the Device Management and Security Controller on AM65x SoCs)

Re: [U-Boot] [PATCH 16/25] sysreset: Add TI System Control Interface (TI SCI) sysreset driver

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:54PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Devices from the TI K3 family of SoCs like the AM654x contain a Device > Management and Security Controller (SYSFW) that manages the low-level > device control (like clocks, resets etc) for the various h

Re: [U-Boot] [PATCH 17/25] mailbox: Allow attaching private data for mbox_chan

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:55PM +0530, Lokesh Vutla wrote: > Sometimes mbox controllers wants to store private data in > mbox_chan so that it can be used at a later point of time. > Adding support for hooking private data. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom sig

Re: [U-Boot] [PATCH 05/25] firmware: ti_sci: Add support for reboot core service

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:43PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > Since system controller now has control over SoC power management, it > needs to be explicitly requested to reboot the SoC. Add support for > it. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Nishan

Re: [U-Boot] [PATCH 20/25] remoteproc: Allow for individual remoteproc initialization

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:58PM +0530, Lokesh Vutla wrote: > Existing rproc_init() api tries to initialize all available > remoteproc devices. This will fail when there is dependency > among available remoteprocs. So introduce a separate api > that allows to initialize remoteprocs individually

Re: [U-Boot] [PATCH 2/6] board: ti: am65x: Add README

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:03:12PM +0530, Lokesh Vutla wrote: > Add README file that describes the building and booting procedure. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini But please just fold this into the first patch. -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 18/25] mailbox: Introduce K3 Secure Proxy Driver

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:56PM +0530, Lokesh Vutla wrote: > Secure Proxy module manages hardware threads that are meant > for communication between the processor entities. Adding > support for this driver. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Andreas Dannenberg Reviewed-by: Tom

Re: [U-Boot] [PATCH 21/25] remoteproc: Introduce K3 system controller

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:59PM +0530, Lokesh Vutla wrote: > K3 specific SoCs have a dedicated microcontroller for doing > resource management. Any HLOS/firmware on compute clusters should > load a firmware to this microcontroller before accessing any resource. > Adding support for loading this

Re: [U-Boot] [PATCH 03/25] firmware: ti_sci: Add support for device control

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:41PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > TI-SCI message protocol provides support for management of various > hardware entitites within the SoC. Introduce the fundamental > device management capability support to the driver protocol > as part o

Re: [U-Boot] [PATCH 02/25] firmware: ti_sci: Add support for board configuration

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:40PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > TI-SCI message protocol provides support for board configuration > to assign resources and other board related operations. > Introduce the board configuration capability support to the driver protocol >

Re: [U-Boot] [PATCH 11/25] clk: Allow clock defaults to be set also during re-reloc state

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:01:49PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > The earlier commit f4fcba5c5ba ("clk: implement clk_set_defaults()") > which introduced the functionality for setting clock defaults such as > rates and parents will skip the processing when executing in

Re: [U-Boot] [PATCH 7/8] armv8: K3: am654: Introduce FIT generator script

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:00:54PM +0530, Lokesh Vutla wrote: > Add a script that is capable of generating a FIT image > source file that combines ATF, SPL(64 bit) and DT. > This combined image is used by R5 SPL and start ATF > on ARMv8 core. > > Signed-off-by: Lokesh Vutla > --- > tools/k3/k3_

Re: [U-Boot] [PATCH 8/8] armv8: K3: am654: Add support for generating build targets

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:00:55PM +0530, Lokesh Vutla wrote: > Update Makefile to generate > - tispl.bin: First stage bootloader on ARMv8 core > - u-boot.img: Second stage bootloader on ARMv8 core. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

Re: [U-Boot] [PATCH 5/8] arm: K3: am654: Unlock control module registers during init

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:00:52PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > By default the device control module registers are locked, > preventing any writes to its registers. > Unlock those registers as part of the init flow. > > Signed-off-by: Andreas Dannenberg > Signed-of

Re: [U-Boot] [PATCH 4/8] arm: K3: am654: Add support for boot device detection

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:00:51PM +0530, Lokesh Vutla wrote: > AM654 allows for booting from primary or backup boot media. > Both media can be chosen individually based on switch settings. > ROM looks for a valid image in primary boot media, if not found > then looks in backup boot media. In orde

Re: [U-Boot] [PATCH 2/8] arm: K3: Add support for AM654 SoC definition

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:00:49PM +0530, Lokesh Vutla wrote: > The AM654 device is designed for industrial automation and PLC > controller class platforms among other applications. Introduce > base support for AM654 SoC. [snip] > +config NON_SECURE_MSRAM_SIZE > + hex "Size of the MCU OC-MSRAM

Re: [U-Boot] [PATCH 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:00:48PM +0530, Lokesh Vutla wrote: > Add support for Texas Instruments' K3 Generation Processor > families. [snip] > diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c > index 9c80090aa7..f48d82f051 100644 > --- a/drivers/serial/ns16550.c > +++ b/drivers/se

Re: [U-Boot] [PATCH] mtd: nand: denali_dt: Add reset support

2018-08-24 Thread Marek Vasut
On 08/24/2018 03:05 PM, Masahiro Yamada wrote: > Hi Marek, Hi, > 2018-08-21 22:57 GMT+09:00 Marek Vasut : >> Add optional reset support into the Denali NAND driver. In case there is >> a valid reset entry in the DT, the reset gets deasserted before the NAND >> controller gets used. >> >> Signed-o

Re: [U-Boot] [PATCH] mtd: nand: denali_dt: Add reset support

2018-08-24 Thread Masahiro Yamada
Hi Marek, 2018-08-21 22:57 GMT+09:00 Marek Vasut : > Add optional reset support into the Denali NAND driver. In case there is > a valid reset entry in the DT, the reset gets deasserted before the NAND > controller gets used. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > drivers/

[U-Boot] [PATCH 4/4] board: topic-miamiplus: Run IO PLL at 1000 MHz

2018-08-24 Thread Mike Looijmans
The miamiplus can use GEM0 through MIO pins, which requires a 125 MHz TX clock to be generated. With the IO PLL at 1200 MHz this isn't possible, so change it to run at 1000 and adjust the divisors accordingly. Also set the GEM0 clock source to MIO instead of EMIO. Signed-off-by: Mike Looijmans --

[U-Boot] [PATCH 2/4] board: topic_miamilite: Support cost-reduced version

2018-08-24 Thread Mike Looijmans
To reduce board cost, the topic-miamilite board hardware was adapted. It now only has single QSPI NOR flash and a single DDR RAM chip. This reduces the memory interface to 16-bit and halves the available RAM and flash. Signed-off-by: Mike Looijmans --- arch/arm/dts/zynq-topic-miamilite.dts

[U-Boot] [PATCH 1/4] topic-miamiplus: Run CPU at 800MHz for speedgrade-2

2018-08-24 Thread Mike Looijmans
The miamiplus contains a speedgrade-2 device, which may run the CPU at 800MHz. Change the PLL setting to 800MHz, and adapt the setpoints in the devicetree. Signed-off-by: Mike Looijmans --- arch/arm/dts/zynq-topic-miamiplus.dts| 9 + board/topic/zynq/zynq-topic-miamiplus/

[U-Boot] [PATCH 3/4] configs/topic_miami.h: Use same partitioning for USB boot as for SD

2018-08-24 Thread Mike Looijmans
Use the same partitioning as the SD card by default. This allows to insert an SD card into a USB reader or use an USB drive with the same partitioning and boot using that instead of requiring a ramdisk image. Signed-off-by: Mike Looijmans --- include/configs/topic_miami.h | 12 ++-- 1 fi

[U-Boot] [PATCH 0/4] Topic board support updates

2018-08-24 Thread Mike Looijmans
There have been hardware changes to a few topic-miami boards, these are included in these commits (the production version of the "lite" became cheaper, the "plus" was made faster). Also improvements for usability. @Michal: These also apply cleanly to u-boot-xlnx, it'd be great if they could be in

Re: [U-Boot] [RFC] cmd: add bootslot command to select/boot slot based on boot counts

2018-08-24 Thread Sean Nyekjær
With RAUC bootslot's is specified with uppercase letters, uppercase is not preserved. We end up with BOOT_b_LEFT=2... botocmd_* is with lowercase, just to make things easier. I cannot reproduce the lowercase issue. Can you send me your (def)config and environment? % grep BOOTSLOT .config CON

[U-Boot] [PATCH] Make kmalloc'ed memory really DMA-safe

2018-08-24 Thread Masahiro Yamada
In Linux, the memory returned by kmalloc() is DMA-capable. However, it is not true in U-Boot. At a glance, kmalloc() in U-Boot returns address aligned with ARCH_DMA_MINALIGN. However, it never pads the allocated memory. This half-way house is completely useless because calling kmalloc() and mallo

Re: [U-Boot] [PATCH] x86: zimage: Remove acpi_rsdp_addr propagation to kernel boot parameters

2018-08-24 Thread Andy Shevchenko
On Thu, 2018-08-23 at 21:28 -0700, Bin Meng wrote: > As of today, the proposal of adding "acpi_rsdp_addr" to the kernel > boot protocol does not make its way to the kernel mainline. This > creates some confusion if we leave it in the U-Boot code base. > Remove it for now until we have a clear pictu

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

2018-08-24 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit b71d9e8b3805305ea4116733f515061710ad7081: Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2018-08-20 13:41:56 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sunxi.git master

[U-Boot] [PATCH v3.3 14/58] musb-new: sunxi: Use CLK and RESET support

2018-08-24 Thread Jagan Teki
Now clock and reset drivers are available for respective SoC's so use clk and reset ops on musb driver. Signed-off-by: Jagan Teki --- Changes for v3.3: - drop flags, use has_reset Changes for v3.2: - add has_reset bool in existing driver data Changes for v3.1: - droped unused variables - add flag