Re: [U-Boot] [PATCH v2] rockchip: rk3288-evb: dts: remove 'vmmc' from emmc node

2018-12-07 Thread Kever Yang
Hi Tom, On 12/07/2018 10:13 PM, Tom Rini wrote: > On Fri, Dec 07, 2018 at 02:24:22PM +0100, Philipp Tomsich wrote: >> Kever, >> >>> On 07.12.2018, at 02:39, Kever Yang wrote: >>> >>> Hi Philipp, >>> >>> On 12/06/2018 09:50 PM, Philipp Tomsich wrote: +Tom > On 05.12.2018, at 03:25,

Re: [U-Boot] boot.bin on SD Card for SAMA5D3 Xplained

2018-12-07 Thread Derald D. Woods
On Thu, Dec 06, 2018 at 08:02:19AM +, eugen.hris...@microchip.com wrote: > > > On 05.12.2018 22:38, Robert Nelson wrote: > > On Wed, Dec 5, 2018 at 8:37 AM wrote: > >> > >> > >> > >> On 05.12.2018 02:15, Daniel Evans wrote: > >>> Trying to get uboot SPL boot.bin to run on an SD card for the

[U-Boot] [PATCHv2 2/3] test: Only descend into test/ when CONFIG_UNIT_TEST is enabled

2018-12-07 Thread Tom Rini
The contents of the test subdirectories only make sense when we have CONFIG_UNIT_TEST set. We will otherwise attempt to build code on for example sandbox that needs CONFIG_UNIT_TEST otherwise and rather than complicate the Makefiles simply leave them out when we can. Signed-off-by: Tom Rini ---

[U-Boot] [PATCHv2 3/3] tools: add a generic config for native tools building

2018-12-07 Thread Tom Rini
From: Otavio Salvador The motivation for this is to allow distributions to distribute all possible tools in a generic way, avoiding the need of specific tools building for each machine. Especially on OpenEmbedded / Yocto Project ecosystem, it is very common each BSP to end providing their specif

[U-Boot] [PATCHv2 1/3] cmd: Move the "dm" command from test/dm/ to cmd/

2018-12-07 Thread Tom Rini
The "dm" command under CONFIG_CMD_DM should live under cmd/ rather than test/dm/ so move it. Signed-off-by: Tom Rini --- cmd/Makefile | 1 + cmd/dm.c | 88 test/dm/Makefile | 1 - test/dm/cmd_dm.c | 88 ---

[U-Boot] [PATCH] ARM: omap3logic: Remove legacy USB code in favor of DM_USB

2018-12-07 Thread Adam Ford
With the defconfig options enabling DM_USB, the legacy code can be removed. Signed-off-by: Adam Ford diff --git a/board/logicpd/omap3som/omap3logic.c b/board/logicpd/omap3som/omap3logic.c index 691d38fdf2..144e6f68a4 100644 --- a/board/logicpd/omap3som/omap3logic.c +++ b/board/logicpd/omap3som/

[U-Boot] [PATCH] imx: hab: Convert non-NULL IVT DCD pointer warning to an error

2018-12-07 Thread Breno Matheus Lima
The following NXP application notes and manual recommend to ensure the IVT DCD pointer is Null prior to calling HAB API authenticate_image() function: - AN12263: HABv4 RVT Guidelines and Recommendations - AN4581: Secure Boot on i.MX50, i.MX53, i.MX 6 and i.MX7 Series using HABv4 - CST docs: High

Re: [U-Boot] [PATCH v2] pcm058: fix NAND flash not using badblock table

2018-12-07 Thread Harald Seiler
Hello Stefano, On Fri, 2018-12-07 at 19:55 +0100, Stefano Babic wrote: > Hi Harald, > > On 07/12/18 13:18, Marek Vasut wrote: > > On 12/07/2018 01:15 PM, Harald Seiler wrote: > > > Hello Marek, > > > > Hi, > > > > > On Fri, 2018-12-07 at 12:48 +0100, Marek Vasut wrote: > > > > On 12/07/2018 10:

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

2018-12-07 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit 57dbc151437b36cc1105857d222df28b095236d7: rockchip: rk3399: Add MAINTAINERS entry (2018-12-06 10:24:12 -0500) are available in the Git repository at: git://git.denx.de/u-boot-sunxi.git master for you to fetch

Re: [U-Boot] ARM: DTS: Resync am3517-evm.dts with Linux 4.20

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 08:06:28AM -0600, Adam Ford wrote: > The DTS file for the AM3517 had the incorrect CD polarity. Resync with > the fixed DTS file from Linux. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/am3517-evm-ui.dtsi b/arch/arm/dts/am3517-evm-ui.dtsi > new file mode 1

[U-Boot] [PATCH] ARM: omap3_logic/omap35_logic: Move to DM_USB

2018-12-07 Thread Adam Ford
The existing config is setup as a gadget but it doesn't use DM_USB. This patch converts all boards to DM_USB, but as host. As host, it is able to mount USB drives and browse them. Signed-off-by: Adam Ford diff --git a/configs/omap35_logic_defconfig b/configs/omap35_logic_defconfig index 80219e

Re: [U-Boot] travis: Bump ARC tools to arc-2018.09

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 05:09:13PM +0300, Alexey Brodkin wrote: > Build tested in Travis, see: > https://travis-ci.org/abrodkin/u-boot/jobs/462808237 > > Signed-off-by: Alexey Brodkin Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] ARM: DTS: Resync LogicPD SOM-LV with Linux 4.20

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 08:15:59AM -0600, Adam Ford wrote: > There have been a few fixes to the device trees, so this > re-syncs the dts/dtsi files with Linux > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/logicpd-som-lv-35xx-devkit.dts > b/arch/arm/dts/logicpd-som-lv-35xx-devkit.d

Re: [U-Boot] ensure active menuitem is inside menu

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 11:23:41AM +0100, Frank Wunderlich wrote: > Hi, > > setting active menuitem currently can be outside of menu which results in > invisible selection > > attached Patch fixes this > > regards Frank > > >From 1d9c4cb8b3e2dd9b0a7a6a2d4a21684d0a099dbf Mon Sep 17 00:00:00 20

Re: [U-Boot] [U-Boot, 3/5] gpio: stm32f7: Move STM32_GPIOS_PER_BANK into gpio.h

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 10:52:52AM +0100, Patrice Chotard wrote: > To allow access to this define by other driver, move > it into gpio.h > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] arm: dts: am33xx: Sync dts with Linux 4.20.0

2018-12-07 Thread Tom Rini
On Wed, Dec 05, 2018 at 02:53:42PM +0100, Felix Brack wrote: > This patch synchronizes the am33xx SoC specific files with those from > Linux 4.20.0. Hence all board maintainers of am33xx based boards are > on the cc list. > The main purpose of this patch is to prevent further diverging of the > dt

Re: [U-Boot] arm: am335x-pdu001: Enable CONFIG_BLK and CONFIG_DM_MMC

2018-12-07 Thread Tom Rini
On Fri, Nov 30, 2018 at 10:23:36AM +0100, Felix Brack wrote: > This patch enables CONFIG_BLK as well as CONFIG_DM_MMC for the PDU001 > board. It depends on Patrice Chotard's patch 'power: regulator: denied > disable on always-on regulator' which prevents power cycling the vmmc > supply. Without th

Re: [U-Boot] [U-Boot,RFC] spl/tpl: change banner into upper case

2018-12-07 Thread Tom Rini
On Wed, Dec 05, 2018 at 11:29:54AM +0100, Heiko Schocher wrote: > commit d6330064634a ("spl: Add a define for SPL_TPL_PROMPT") > > changes the SPL/TPL banner from upper case into lower > case. As SPL and TPL are three-letter acronyms and they > are written in upper case, change it back to upper c

Re: [U-Boot] serial: omap: Add code for early debugging

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 03:12:25PM +0100, Felix Brack wrote: > This patch adds code missing when CONFIG_DEBUG_UART_OMAP is enabled as > early debugging UART. The code is basically copied from the ns16550 > driver. > > Signed-off-by: Felix Brack Applied to u-boot/master, thanks! -- Tom signa

Re: [U-Boot] [U-Boot, 5/5] pinctrl: stm32: Update stm32_pinctrl_get_gpio_dev()

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 10:52:54AM +0100, Patrice Chotard wrote: > Due to gpio holes management, stm32_pinctrl_get_gpio_dev() must > be updated. > > stm32_pinctrl_get_gpio_dev() returns from a given pin selectors > the corresponding bank gpio device and the gpio_offset inside this > gpio bank. >

Re: [U-Boot] [U-Boot, 2/5] gpio: stm32f7: Add gpio bank holes management

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 10:52:51AM +0100, Patrice Chotard wrote: > In some STM32 SoC packages, GPIO bank has not always 16 gpios. > Several cases can occur, gpio hole can be located at the beginning, > middle or end of the gpio bank or a combination of these 3 > configurations. > > For that, gpio

Re: [U-Boot] [U-Boot, v2, 3/3] serial: bcm6858: remove driver and switch to bcm6345

2018-12-07 Thread Tom Rini
On Sat, Dec 01, 2018 at 06:42:09PM +0100, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://l

Re: [U-Boot] [U-Boot, 3/3] ARM: DTS: da850-evm: Re-sync da850-evm.dts from Linux 4.20

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 08:29:44AM -0600, Adam Ford wrote: > There has been some natural evolution of the device tree, so > resync with 4.20 > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/da850-evm.dts b/arch/arm/dts/da850-evm.dts > index 0e82bb988f..a3c9b34672 100644 Applied to u-

Re: [U-Boot] ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit with Linux 4.20

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 08:17:29AM -0600, Adam Ford wrote: > Migrate some small device tree fixes from Linux 4.20. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts > b/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts > index 9d5d53fbe9..c39cf2ca54 100644

Re: [U-Boot] [U-Boot, v5, 4/4] pinctrl: stm32: make pinctrl use hwspinlock

2018-12-07 Thread Tom Rini
On Tue, Nov 27, 2018 at 01:49:53PM +0100, Benjamin Gaignard wrote: > Protect configuration registers with a hardware spinlock. > > If a hwspinlock is defined in the device-tree node used it > to be sure that none of the others processors on the SoC could > change the configuration at the same tim

Re: [U-Boot] [U-Boot, v5, 2/4] clk: stm32: add hardware spinlock clock

2018-12-07 Thread Tom Rini
On Tue, Nov 27, 2018 at 01:49:51PM +0100, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > Add hardware spinlock in the list of the clocks. > > Signed-off-by: Benjamin Gaignard > Reviewed-by: Simon Glass > Reviewed-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signa

Re: [U-Boot] [U-Boot,1/3] ARM: DTS: da850: Sync from Linux 4.20

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 08:29:42AM -0600, Adam Ford wrote: > Re-sync with 4.20 due some some natural evolution. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/da850.dtsi b/arch/arm/dts/da850.dtsi > index c66cf78953..47aa53ba6b 100644 Applied to u-boot/master, thanks! -- Tom sig

Re: [U-Boot] configs: am335x_hs_evm_uart: Add YMODEM SPL support for UART boot

2018-12-07 Thread Tom Rini
On Wed, Nov 28, 2018 at 10:56:06AM -0600, Andrew F. Davis wrote: > UART booting requires YMODEM support. Add this here. > > Signed-off-by: Andrew F. Davis > Reviewed-by: Lokesh Vutla > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2] ARM: at91: lds: add test for SPL binary size and bss size

2018-12-07 Thread Tom Rini
On Wed, Nov 28, 2018 at 09:33:43AM +, eugen.hris...@microchip.com wrote: > Add test for the SPL binary size and the bss section size. > This will throw an error at build time if the SPL sections > do not fit in the designated RAM area, thus avoiding oversizing the SPL. > > Based on original w

Re: [U-Boot] [U-Boot, 2/3] ARM: dts: da850-lcdk: Sync from Linux 4.20

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 08:29:43AM -0600, Adam Ford wrote: > Re-synce the device tree files from Linux 4.20 > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/da850-lcdk.dts b/arch/arm/dts/da850-lcdk.dts > index a1f4d6d5a5..0177e3ed20 100644 Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot,4/5] gpio: stm32f7: Remove CONFIG_CLK flag.

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 10:52:53AM +0100, Patrice Chotard wrote: > As all STM32 SoCs supports CONFIG_CLK flag, > it becomes useless in this driver, remove it. > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot, v2, 2/3] arm: implement {in, out}_{16, 32} and {clr, set, clrset}bits_{16, 32}

2018-12-07 Thread Tom Rini
On Sat, Dec 01, 2018 at 06:42:08PM +0100, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://l

Re: [U-Boot] [U-Boot,v9,3/3] test: dma: add dma-uclass test

2018-12-07 Thread Tom Rini
On Wed, Nov 28, 2018 at 07:17:51PM +0100, Álvaro Fernández Rojas wrote: > From: Grygorii Strashko > > Add a sandbox DMA driver implementation (provider) and corresponding DM > test. > > Reviewed-by: Tom Rini > Signed-off-by: Grygorii Strashko > Reviewed-by: Simon Glass > Acked-by: Álvaro Fer

Re: [U-Boot] [U-Boot, 1/5] pinctrl: stm32: Move gpio_dev list filling outside probe()

2018-12-07 Thread Tom Rini
On Mon, Dec 03, 2018 at 10:52:50AM +0100, Patrice Chotard wrote: > Move gpio_dev list filling outside probe() to speed-up U-boot > boot sequence execution. This list is populated only when needed. > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Desc

Re: [U-Boot] [U-Boot,v9,2/3] dma: add channels support

2018-12-07 Thread Tom Rini
On Wed, Nov 28, 2018 at 07:17:50PM +0100, Álvaro Fernández Rojas wrote: > This adds channels support for dma controllers that have multiple channels > which can transfer data to/from different devices (enet, usb...). > > DMA channle API: > dma_get_by_index() > dma_get_by_name() > dma_request()

Re: [U-Boot] dts: am335x-pdu001: Fix polarity of card detection input

2018-12-07 Thread Tom Rini
On Thu, Nov 29, 2018 at 01:45:06PM +0100, Felix Brack wrote: > When a micro SD card is inserted in the PDU001 card cage, the card > detection switch is opened and the corresponding GPIO input is driven > by a pull-up. Hence change the active level of the card detection > input from low to high. >

Re: [U-Boot] [U-Boot, v2, 1/3] serial: bcm6345: switch to raw I/O functions

2018-12-07 Thread Tom Rini
On Sat, Dec 01, 2018 at 06:42:07PM +0100, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://l

Re: [U-Boot] [U-Boot,v5,1/4] dm: Add Hardware Spinlock class

2018-12-07 Thread Tom Rini
On Tue, Nov 27, 2018 at 01:49:50PM +0100, Benjamin Gaignard wrote: > This is uclass for Hardware Spinlocks. > It implements two mandatory operations: lock and unlock > and one optional relax operation. > > Signed-off-by: Benjamin Gaignard > Reviewed-by: Simon Glass > Reviewed-by: Patrice Chotar

Re: [U-Boot] [U-Boot, v5, 3/4] hwspinlock: add stm32 hardware spinlock support

2018-12-07 Thread Tom Rini
On Tue, Nov 27, 2018 at 01:49:52PM +0100, Benjamin Gaignard wrote: > Implement hardware spinlock support for STM32MP1. > > Signed-off-by: Benjamin Gaignard > Reviewed-by: Simon Glass > Reviewed-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP sig

Re: [U-Boot] [U-Boot,v9,1/3] dma: move dma_ops to dma-uclass.h

2018-12-07 Thread Tom Rini
On Wed, Nov 28, 2018 at 07:17:49PM +0100, Álvaro Fernández Rojas wrote: > Move dma_ops to a separate header file, following other uclass > implementations. While doing so, this patch also improves dma_ops > documentation. > > Reviewed-by: Tom Rini > Reviewed-by: Simon Glass > Signed-off-by: Álv

Re: [U-Boot] clk: Allow clock defaults to be set during re-reloc state for SPL only

2018-12-07 Thread Tom Rini
On Mon, Nov 26, 2018 at 08:20:19PM +0100, Philipp Tomsich wrote: > In commit e5e06b65ad65 ("clk: Allow clock defaults to be set also > during re-reloc state") the earlier guard against setting clock > defaults in pre-reloc state was removed. While it is easy to filter > 'assigned-clocks' properti

Re: [U-Boot] board: ti: ks2_evm: Over ride spl_get_load_buffer function

2018-12-07 Thread Tom Rini
On Tue, Nov 27, 2018 at 05:52:41PM +0530, Keerthy wrote: > Currently k2 spi boot is broken as the image header > is getting copied to an invalid memory location > > CONFIG_SYS_TEXT_BASE - sizeof (struct image_size) > which maps to 0xc00 - 0x40 = 0xbc0 being a reserved > location. > > We

Re: [U-Boot] fs: fix FAT name extraction

2018-12-07 Thread Tom Rini
On Mon, Nov 26, 2018 at 03:58:13PM +0100, Patrick Wildt wrote: > The long name apparently can be accumulated using multiple > 13-byte slots. Unfortunately we never checked how many we > can actually fit in the buffer we are reading to. > > Signed-off-by: Patrick Wildt Applied to u-boot/master,

Re: [U-Boot] fs: check FAT cluster size

2018-12-07 Thread Tom Rini
On Mon, Nov 26, 2018 at 03:56:57PM +0100, Patrick Wildt wrote: > The cluster size specifies how many sectors make up a cluster. A > cluster size of zero makes no sense, as it would mean that the > cluster is made up of no sectors. This will later lead into a > division by zero in sect_to_clust()

Re: [U-Boot] configs: stm32f746-disco: Fix stm32f746-disco boot

2018-12-07 Thread Tom Rini
On Mon, Nov 26, 2018 at 01:42:32PM +0100, Patrice Chotard wrote: > Since commit 8f651ca60ba1 ("pinctrl: stm32: Add get_pins_count() ops") > stm32f746-disco can't boot. > > This is due to new memory allocation into STM32 pinctrl driver, > increase SYS_MALLOC_F_LEN from 0xC00 to 0xE00. > > Signed-

Re: [U-Boot] main: Drop more #ifdefs

2018-12-07 Thread Tom Rini
On Sun, Nov 25, 2018 at 08:05:54PM -0700, Simon Glass wrote: > Now that many things are converted to Kconfig we can drop most of the > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] w1: fix occasional enumeration failure

2018-12-07 Thread Tom Rini
On Fri, Nov 23, 2018 at 10:53:06AM +0100, Martin Fuzzey wrote: > Sometimes enumeration fails (about 1 in 50 times on my custom board). > > The underlying reason is probably electrical but Linux does not have > the problem. > > Comparing the Linux / u-boot implementations shows that Linux > retri

Re: [U-Boot] [PATCH] Enable expression support for CONFIG_BOARD_SIZE_LIMIT

2018-12-07 Thread Wolfgang Denk
Dear Fabio, In message you wrote: > > I replaced it on the main Makefile and also in the imx one and it > works as expected now. Thanks. > When you send the v2, you can add: > > Tested-by: Fabio Estevam Done. Thanks for your patience. Best regards, Wolfgang Denk -- DENX Software Enginee

[U-Boot] [PATCH v2] Enable expression support for CONFIG_BOARD_SIZE_LIMIT

2018-12-07 Thread Wolfgang Denk
So far, the use of CONFIG_BOARD_SIZE_LIMIT would only work with plain numeric constants. Extend it to allow for expressions, so one can for example use #define CONFIG_BOARD_SIZE_LIMIT (768 << 10) in the board configuration. Signed-off-by: Wolfgang Denk Tested-by: Fabio Estevam Cc: Fa

Re: [U-Boot] [PATCH v2] pcm058: fix NAND flash not using badblock table

2018-12-07 Thread Stefano Babic
Hi Harald, On 07/12/18 13:18, Marek Vasut wrote: > On 12/07/2018 01:15 PM, Harald Seiler wrote: >> Hello Marek, > > Hi, > >> On Fri, 2018-12-07 at 12:48 +0100, Marek Vasut wrote: >>> On 12/07/2018 10:19 AM, Harald Seiler wrote: Currently, U-Boot ignores the BBT stored in the last 4 blocks o

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-07 Thread Simon Goldschmidt
On Fri, Dec 7, 2018 at 6:58 AM Vignesh R wrote: > > On 07/12/18 12:47 AM, Simon Goldschmidt wrote: > > Am 06.12.2018 um 18:39 schrieb Vignesh R: > >> On 06/12/18 10:06 PM, Simon Goldschmidt wrote: > >>> Am 06.12.2018 um 14:54 schrieb Simon Goldschmidt: > On Thu, Dec 6, 2018 at 2:45 PM Vignesh

Re: [U-Boot] [PATCH] mpc85xx: Add support for -msingle-pic-base

2018-12-07 Thread York Sun
On 12/6/18 8:20 AM, Joakim Tjernlund wrote: > -msingle-pic-base is a new gcc(from 4.6) option for ppc and > it reduces the size of my u-boot with about 4-5 KB. > While at it, add -fno-jump-tables too to save a > few more bytes. > > e5500 core: > size u-boot.bef >text data bss d

Re: [U-Boot] [PATCH] sunxi: update README.sunxi64

2018-12-07 Thread Jagan Teki
On Thu, Dec 6, 2018 at 2:11 PM Maxime Ripard wrote: > > On Thu, Dec 06, 2018 at 01:25:57AM +, Andre Przywara wrote: > > Now that the Allwinner port in the official mainline ARM Trusted > > Firmware repository has reached feature parity with the "legacy" ATF > > port, let's use the opportunity

Re: [U-Boot] [linux-sunxi] [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-12-07 Thread Jagan Teki
On Wed, Nov 21, 2018 at 11:35 PM Priit Laes wrote: > > This is a resend/v2 of a "Stop AXP from crashing when enabling LDO3" series, > posted by Olliver Schinagl in March 2017. Unfortunately it never got past > initial discussion [1], but most Olimex Lime2 boards are still running > into this bug.

Re: [U-Boot] [PATCH] Enable expression support for CONFIG_BOARD_SIZE_LIMIT

2018-12-07 Thread Fabio Estevam
Hi Wolfgang, On Fri, Dec 7, 2018 at 1:21 PM Wolfgang Denk wrote: > This should also work - replace the line > > @(echo $$(($(CONFIG_BOARD_SIZE_LIMIT))); wc -c $@ ) | \ > > by > > @(awk "END { print $$(echo $(CONFIG_BOARD_SIZE_LIMIT)) }" /dev/null; > wc -c $@ ) | \ > > > Can you

Re: [U-Boot] [PATCH] Enable expression support for CONFIG_BOARD_SIZE_LIMIT

2018-12-07 Thread Wolfgang Denk
Dear Fabio, In message you wrote: > > > /bin/sh: 1: arithmetic expression: expecting primary: ""(1 * 1024)"" D*mn. I really thought I had tried this in a dash based environment, too. Sorry for causing such confusion. > SHELL = /bin/bash" Yes, if this is really a bash only feature that would

[U-Boot] [PATCH 3/3] ARM: rmobile: Fix to enable icache early in Gen3

2018-12-07 Thread Marek Vasut
From: Takeshi Kihara This patch fixes the problem that u-boot will not start unless icache is enabled early. Signed-off-by: Takeshi Kihara Signed-off-by: Hiroyuki Yokoyama Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/cpu_info.c| 4 ++-- arch/arm/mach-rmobile/memmap-gen3.c | 4 +++

[U-Boot] [PATCH 2/3] ARM: rcar_gen3: fix protection area access error

2018-12-07 Thread Marek Vasut
From: Takeshi Kihara This patch fixes the problem that "main memory domain AXI secure access protection error" occurs. Exclude the area (0x43f0 to 0x47DF) set by DBSC from the map area. Signed-off-by: Takeshi Kihara Signed-off-by: Hiroyuki Yokoyama Signed-off-by: Marek Vasut --- arch

[U-Boot] [PATCH 1/3] ARM: rcar_gen3: fix protection area access error at Cortex-A53

2018-12-07 Thread Marek Vasut
From: Hiroyuki Yokoyama This patch fixes the problem that "main memory domain AXI secure access protection error" occurs when booting Cortex-A53. Exclude the area (0x43f0 to 0x47DF) set by DBSC from the map area. Signed-off-by: Hiroyuki Yokoyama Signed-off-by: Marek Vasut --- arch/arm

Re: [U-Boot] [RESEND PATCH v3 00/19] DM_I2C_COMPAT removal for all ti platforms

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:36PM +0100, Jean-Jacques Hiblot wrote: > This series remove the usage of the DM_I2C_COMPAT option for all the ti > platforms. It also takes this opportunity to not disable DM_I2C in the SPL. > > There are a couples of issues to fix: > - CMD_EEPROM does not support th

Re: [U-Boot] [PATCH] usb: musb-new: Add CONFIG_USB_MUSB_INIT_TIMEOUT

2018-12-07 Thread Marek Vasut
On 12/07/2018 01:59 PM, Alex Kiernan wrote: > On Fri, Dec 7, 2018 at 12:30 PM Marek Vasut wrote: >> >> On 12/07/2018 01:29 PM, Alex Kiernan wrote: >>> On Fri, Dec 7, 2018 at 11:54 AM Marek Vasut wrote: On 12/07/2018 09:56 AM, Alex Kiernan wrote: [...] > +++ b/drivers/usb/musb-n

Re: [U-Boot] [RESEND PATCH v3 14/19] am57xx: remove non-DM I2C code

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:50PM +0100, Jean-Jacques Hiblot wrote: > am57xx configs uses DM_I2C both in SPL and u-boot. > Remove code for non-DM I2C support. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [RESEND PATCH v3 13/19] ti: remove usage of DM_I2C_COMPAT and don't disable DM_I2C in SPL

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:49PM +0100, Jean-Jacques Hiblot wrote: > DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C > API when DM_I2C is used. The goal is to eventually remove DM_I2C_COMPAT > when all I2C "clients" have been migrated to use the DM API. > This a step in t

Re: [U-Boot] [RESEND PATCH v3 11/19] ti: common: board_detect: Allow DM I2C without CONFIG_DM_I2C_COMPAT

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:47PM +0100, Jean-Jacques Hiblot wrote: > From: Andreas Dannenberg > > The EEPROM reading in the board detection code is done through legacy > I2C functions which on platforms using DM_I2C this functionality is > provided via the CONFIG_DM_I2C_COMPAT layer. To allow

Re: [U-Boot] [RESEND PATCH v3 10/19] power: make most tps drivers and the twl4030 driver compatible with DM_I2C

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:46PM +0100, Jean-Jacques Hiblot wrote: > Those driver are not DM drivers per se (not using the PMIC/regulator > framework) and are using the legacy I2C API. Make them compatible with > the DM_I2C API. > > This impacts the following drivers: > - palmas (used by am57xx

Re: [U-Boot] [RESEND PATCH v3 07/19] am335x: Register the I2C controllers if DM_I2C is used.

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:43PM +0100, Jean-Jacques Hiblot wrote: > If DM_I2C is used , the I2C controllers must be registered as U_BOOT_DEVICE > because OF_CONTROL is not used in the SPL. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

Re: [U-Boot] [RESEND PATCH v3 09/19] omap: detect the board after DM is available

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:45PM +0100, Jean-Jacques Hiblot wrote: > In order to use DM_I2C, we need to move the board detection after the > early SPL initialization. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [RESEND PATCH v3 19/19] dra7: Allow selecting a new dtb after board detection.

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:55PM +0100, Jean-Jacques Hiblot wrote: > The DRA7 platforms requires that the dtb used in the SPL really matches the > platform to have the best MMC performances. > To detect the board type/version an I2C EEPROM is read. This requires that > DM is initialized before

Re: [U-Boot] [RESEND PATCH v3 17/19] drivers: core: Add the option SPL_DM_DEVICE_REMOVE to the Kconfig

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:53PM +0100, Jean-Jacques Hiblot wrote: > It is currently not possible to include the support to remove devices in > the SPL. This is however needed by platforms that re-select their dtb after > DM is initialized; they need to remove all the previously bound devices >

Re: [U-Boot] [RESEND PATCH v3 06/19] i2c: omap24xx_i2c: Use platdata to probe the device

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:42PM +0100, Jean-Jacques Hiblot wrote: > This allows the driver to be used without OF_CONTROL. > AM335x support DM_SPL but does not use SPL_OF_CONTROL. Enabling DM_I2C in > SPL thus requires that the omap I2C can be passed platdata. > > Signed-off-by: Jean-Jacques Hi

Re: [U-Boot] [PATCH] sunxi: H6: DRAM: avoid memcpy() on MMIO registers

2018-12-07 Thread Andre Przywara
On 06/12/2018 07:42, Maxime Ripard wrote: Hi, > On Thu, Dec 06, 2018 at 12:02:20AM +, Andre Przywara wrote: >> Using memcpy() for MMIO operations is, however tempting, not a good >> idea: It depends on the specific implementation of memcpy, also >> lacks barriers. In this particular case the

Re: [U-Boot] [RESEND PATCH v3 15/19] configs: dra7xx-evm: increase the size of the malloc's pool before relocation

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:51PM +0100, Jean-Jacques Hiblot wrote: > This is required to take advantage of MULTI_DTB_FIT before relocation. > If it is too low, DM will be initialized only after relocation has > taken place. That is too late for the DRA7 because I2C DM is used before > the reloca

Re: [U-Boot] [RESEND PATCH v3 04/19] configs: am335x: am57x: dra7x: Enable CONFIG_SPL_DM_SEQ_ALIAS

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:40PM +0100, Jean-Jacques Hiblot wrote: > Those platforms need CONFIG_SPL_DM_SEQ_ALIAS because they enable both > DM_I2C and SPL_DM. Without CONFIG_SPL_DM_SEQ_ALIAS, it is not possible to > get the I2C bus with i2c_get_chip_for_busnum(). > > Signed-off-by: Jean-Jacque

Re: [U-Boot] [RESEND PATCH v3 08/19] dts: am43x: omap5: Add node for I2C in SPL

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:44PM +0100, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot > Reviewed-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.d

Re: [U-Boot] [RESEND PATCH v3 01/19] cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:37PM +0100, Jean-Jacques Hiblot wrote: > The implementation of the EEPROM commands does not support the DM I2C API. > Prevent compilation breakage by not enabling it if the non-DM API is not > available (if DM_I2C is used without DM_I2C_COMPAT) > > Signed-off-by: Jea

Re: [U-Boot] [RESEND PATCH v3 05/19] i2c: omap24xx_i2c: Move away from SoC specific headers for reg offset

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:50:41PM +0100, Jean-Jacques Hiblot wrote: > From: Vignesh R > > Move away from SoC specific headers to handle different register layout. > Instead use driver data to get appropriate register layouts like in the > kernel. While at it, perform some mostly cosmetic alignm

[U-Boot] [PATCH v2 17/20] riscv: Move trap handler codes to mtrap.S

2018-12-07 Thread Bin Meng
Currently the M-mode trap handler codes are in start.S. For future extension, move them to a separate file mtrap.S. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: None arch/riscv/cpu/Makefile | 2 +- arch/riscv/cpu/mtrap.S | 111 +

[U-Boot] [PATCH v2 16/20] riscv: Do some basic architecture level cpu initialization

2018-12-07 Thread Bin Meng
Implement arch_cpu_init() to do some basic architecture level cpu initialization, like FPU enable, etc. Signed-off-by: Bin Meng --- Changes in v2: - use csr_set() to set MSTATUS_FS - only enabling the cycle, time, and instret counters - change to use satp arch/riscv/cpu/cpu.c | 19 +++

[U-Boot] [PATCH v2 14/20] riscv: Add exception codes for xcause register

2018-12-07 Thread Bin Meng
This adds all exception codes in encoding.h. Signed-off-by: Bin Meng --- Changes in v2: None arch/riscv/include/asm/encoding.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/riscv/include/asm/encoding.h b/arch/riscv/include/asm/encoding.h index c910d5c..e6d905a 1006

[U-Boot] [PATCH v2 10/20] riscv: qemu: Add platform-specific Kconfig options

2018-12-07 Thread Bin Meng
Add the QEMU RISC-V platform-specific Kconfig options, to include CPU and timer drivers. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: - add CMD_CPU as well arch/riscv/Kconfig | 1 + arch/riscv/cpu/qemu/Kconfig| 11 +++ board/emulation/qe

[U-Boot] [PATCH v2 19/20] riscv: Return to previous privilege level after trap handling

2018-12-07 Thread Bin Meng
At present the trap handler returns to M-mode only. Change to returning to previous privilege level instead. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: None arch/riscv/cpu/mtrap.S | 8 1 file changed, 8 deletions(-) diff --git a/arch/riscv/cpu/mtrap.S b/arch/

[U-Boot] [PATCH v2 11/20] riscv: Enlarge the default SYS_MALLOC_F_LEN

2018-12-07 Thread Bin Meng
Increase the heap size for the pre-relocation stage, so that CPU driver can be loaded. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: None arch/riscv/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 39ca2d8..c45e4

[U-Boot] [PATCH v2 06/20] riscv: ax25: Hide the ax25-specific Kconfig option

2018-12-07 Thread Bin Meng
There is no need to expose RISCV_NDS to the Kconfig menu as it is an ax25-specific option. Signed-off-by: Bin Meng --- Changes in v2: None arch/riscv/cpu/ax25/Kconfig | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/riscv/cpu/ax25/Kconfig b/arch/riscv/cpu/ax25/K

[U-Boot] [PATCH v2 05/20] timer: Add generic driver for RISC-V privileged architecture defined timer

2018-12-07 Thread Bin Meng
RISC-V privileged architecture v1.10 defines a real-time counter, exposed as a memory-mapped machine-mode register - mtime. mtime must run at constant frequency, and the platform must provide a mechanism for determining the timebase of mtime. The mtime register has a 64-bit precision on all RV32, R

[U-Boot] [PATCH v2 09/20] riscv: Implement riscv_get_time() API using rdtime instruction

2018-12-07 Thread Bin Meng
From: Anup Patel This adds an implementation of riscv_get_time() API that is using rdtime instruction. This is the case for S-mode U-Boot, and is useful for processors that support rdtime in M-mode too. Signed-off-by: Anup Patel Signed-off-by: Bin Meng --- Changes in v2: - incorporated and

Re: [U-Boot] [PATCH v2] rockchip: rk3288-evb: dts: remove 'vmmc' from emmc node

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 02:24:22PM +0100, Philipp Tomsich wrote: > Kever, > > > On 07.12.2018, at 02:39, Kever Yang wrote: > > > > Hi Philipp, > > > > On 12/06/2018 09:50 PM, Philipp Tomsich wrote: > >> +Tom > >> > >>> On 05.12.2018, at 03:25, Kever Yang wrote: > >>> > >>> The U-Boot eMMC do

[U-Boot] [PATCH v2 20/20] riscv: Adjust the _exit_trap() position to come before handle_trap()

2018-12-07 Thread Bin Meng
With this change, we can avoid a forward declaration. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: - rebase on u-boot/master - drop the patch "riscv: Pass correct exception code to _exit_trap()" - drop the patch "riscv: Refactor handle_trap() a little for future extension

[U-Boot] [PATCH v2 13/20] riscv: Add CSR numbers

2018-12-07 Thread Bin Meng
The standard RISC-V ISA sets aside a 12-bit encoding space for up to 4096 CSRs. This adds all known CSR numbers as defined in the RISC-V Privileged Architecture Version 1.10. Signed-off-by: Bin Meng --- Changes in v2: None arch/riscv/include/asm/encoding.h | 219 +++

[U-Boot] [PATCH v2 08/20] riscv: Add a SYSCON driver for SiFive's Core Local Interruptor

2018-12-07 Thread Bin Meng
This adds U-Boot syscon driver for SiFive's Core Local Interruptor (CLINT). The CLINT block holds memory-mapped control and status registers associated with software and timer interrupts. This driver implements the riscv_get_time() API as required by the generic RISC-V timer driver, as well as som

[U-Boot] [PATCH v2 01/20] riscv: add Kconfig entries for the code model

2018-12-07 Thread Bin Meng
From: Lukas Auer RISC-V has two code models, medium low (medlow) and medium any (medany). Medlow limits addressable memory to a single 2 GiB range between the absolute addresses -2 GiB and +2 GiB. Medany limits addressable memory to any single 2 GiB address range. By default, medlow is selected

[U-Boot] [PATCH v2 18/20] riscv: Fix context restore before returning from trap handler

2018-12-07 Thread Bin Meng
sp cannot be loaded before restoring other registers. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: None arch/riscv/cpu/mtrap.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/cpu/mtrap.S b/arch/riscv/cpu/mtrap.S index a5ad558..da307e4 10064

[U-Boot] [PATCH v2 07/20] riscv: Introduce a Kconfig option for machine mode

2018-12-07 Thread Bin Meng
From: Anup Patel So far we have a Kconfig option for supervisor mode. This adds an option for the machine mode. Signed-off-by: Anup Patel Signed-off-by: Bin Meng --- Changes in v2: - incorporated and reworked Anup's S-mode timer patch @ http://patchwork.ozlabs.org/patch/1006663/ arch/ris

[U-Boot] [PATCH v2 15/20] riscv: Add indirect stringification to csr_xxx ops

2018-12-07 Thread Bin Meng
With current csr_xxx ops, we cannot pass a macro to parameter 'csr', hence we need add another level to allow the parameter to be a macro itself, aka indirect stringification. Signed-off-by: Bin Meng --- Changes in v2: - new patch to add indirect stringification to csr_xxx ops arch/riscv/incl

[U-Boot] [PATCH v2 12/20] riscv: Probe cpus during boot

2018-12-07 Thread Bin Meng
This calls cpu_probe_all() to probe all available cpus. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: - move to arch/riscv/cpu/cpu.c arch/riscv/cpu/cpu.c| 14 ++ arch/riscv/cpu/qemu/Kconfig | 1 + 2 files changed, 15 insertions(+) diff --git a/arch/

[U-Boot] [PATCH v2 04/20] cpu: Add a RISC-V CPU driver

2018-12-07 Thread Bin Meng
This adds a driver for RISC-V CPU. Note the driver will bind a RISC-V timer driver if "timebase-frequency" property is present in the device tree. Signed-off-by: Bin Meng --- Changes in v2: - pass NULL as the timer device to device_bind_with_driver_data() drivers/cpu/Kconfig | 6 +++ dr

[U-Boot] [PATCH v2 02/20] dm: cpu: Add timebase frequency to the platdata

2018-12-07 Thread Bin Meng
This adds a timebase_freq member to the 'struct cpu_platdata', to hold the "timebase-frequency" value in the cpu or /cpus node. Signed-off-by: Bin Meng Reviewed-by: Simon Glass Reviewed-by: Lukas Auer --- Changes in v2: - Use 'Hz' instead of 'HZ' include/cpu.h | 3 +++ 1 file changed, 3 ins

[U-Boot] [PATCH v2 03/20] riscv: qemu: Create a simple-bus driver for the soc node

2018-12-07 Thread Bin Meng
To enumerate devices on the /soc/ node, create a "simple-bus" driver to match "riscv-virtio-soc". Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: - add DM_FLAG_PRE_RELOC flag to the simple-bus driver arch/riscv/cpu/qemu/cpu.c | 14 ++ 1 file changed, 14 inserti

[U-Boot] [PATCH v2 00/20] riscv: Adding RISC-V CPU and timer driver

2018-12-07 Thread Bin Meng
This adds DM drivers to support RISC-V CPU and timer, plus some bug fixes. This series is available at u-boot-x86/riscv-working for testing. Changes in v2: - Use 'Hz' instead of 'HZ' - add DM_FLAG_PRE_RELOC flag to the simple-bus driver - pass NULL as the timer device to device_bind_with_driver_d

Re: [U-Boot] [PATCH v3 13/28] mtd: ensure MTD is compiled when ENV_IS_IN_FLASH is selected

2018-12-07 Thread Tom Rini
On Fri, Dec 07, 2018 at 12:09:33PM +0100, Miquel Raynal wrote: > Hi Tom, Wolfgang, [snip] > So what's our next move? I think Wolfgang had two points: > * NOR (and everything related to NOR) should not depend on MTD. > * Same for NAND. > > For NAND this is already too late, NAND code already relies

[U-Boot] [PATCH] arm: am335x-pdu001: Move from embedded to separate DTB

2018-12-07 Thread Felix Brack
There is no need for an embedded device tree for this board so let the build process generate a separate u-boot.dtb file instead. Signed-off-by: Felix Brack --- arch/arm/mach-omap2/am33xx/Kconfig | 1 + configs/am335x_pdu001_defconfig| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)

  1   2   >