[PATCH v5 14/14] MAINTAINERS: MediaTek: add USB related files

2020-04-09 Thread Chunfeng Yun
Add dt-binding files of xhci-mtk and phys, C files of phys. Signed-off-by: Chunfeng Yun --- v5: new patch --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 37ff21a037..4fe3bf949e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -243,9 +243,12 @@

[PATCH v5 11/14] arm: dts: mt7629: add usb related nodes

2020-04-09 Thread Chunfeng Yun
Add usb, phy and clock nodes Signed-off-by: Chunfeng Yun --- v3~v5: no changes v2: 1. remove fixed clock clk20m --- arch/arm/dts/mt7629-rfb.dts | 8 arch/arm/dts/mt7629.dtsi| 41 + 2 files changed, 49 insertions(+) diff --git

[PATCH v5 10/14] xhci: mediatek: Add support for MTK xHCI host controller

2020-04-09 Thread Chunfeng Yun
This patch is used to support the on-chip xHCI controller on MediaTek SoCs, currently control/bulk/interrupt transfers are supported. Signed-off-by: Chunfeng Yun --- v5: 1. print error number suggested by Marek 2. support interrupt transfer v4: 1. use phy_bulk API v3: 1. use

[PATCH v5 12/14] dt-bindings: phy-mtk-tphy: add properties of address mapping and clocks

2020-04-09 Thread Chunfeng Yun
1. add the address mapping related properties; 2. make "ref" clock optional, and add optional clock "da_ref"; 3. add the banks layout of TPHY V1 and V2; Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 78 --- 1 file changed,

[PATCH v5 08/14] phy: phy-mtk-tphy: add support new version

2020-04-09 Thread Chunfeng Yun
The new version removes all shared banks between multi-phys Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- drivers/phy/phy-mtk-tphy.c | 68 +++--- 1 file changed, 63 insertions(+), 5 deletions(-) diff --git a/drivers/phy/phy-mtk-tphy.c

[PATCH v5 13/14] dt-bindings: usb: mtk-xhci: Add binding for MediaTek xHCI host controller

2020-04-09 Thread Chunfeng Yun
Add dt-binding for MediaTek xHCI host controller Signed-off-by: Chunfeng Yun --- v2~v5: no changes --- .../usb/mediatek,mtk-xhci.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt diff --git

[PATCH v5 09/14] phy: phy-mtk-tphy: add a new reference clock

2020-04-09 Thread Chunfeng Yun
Usually the digital and analog phys use the same reference clock, but some platforms have two separate reference clocks for each of them, so add another optional clock to support them. In order to keep the clock names consistent with PHY IP's, change the da_ref for analog phy and ref clock for

[PATCH v5 03/14] phy: Add get/enable/disable for a bulk of phys

2020-04-09 Thread Chunfeng Yun
This patch adds a "bulk" API to the phy API in order to get/enable/disable a group of phys associated with a device. The bulk API will avoid adding a copy of the same code to manage a group of phys in drivers. Signed-off-by: Chunfeng Yun --- v5: no changes v4: new patch ---

[PATCH v5 07/14] phy: phy-mtk-tphy: add support USB phys

2020-04-09 Thread Chunfeng Yun
Support USB2 and USB3 PHY with shared banks when support multi-phys Signed-off-by: Chunfeng Yun --- v3~v5: no changes v2: 1. get the count of phys by dev_get_child_count() --- drivers/phy/phy-mtk-tphy.c | 227 +++-- 1 file changed, 218 insertions(+), 9

[PATCH v5 02/14] test: dm: add test item for ofnode_get_child_count()

2020-04-09 Thread Chunfeng Yun
Add a test item for ofnode_get_child_count() Signed-off-by: Chunfeng Yun Reviewed-by: Simon Glass --- v4~v5: no changes v3: 1. squash dts patch into this one suggested by Simon 2. add reviewed-by Simon v2: a new patch to test ofnode_get_child_count() suggested by Simon ---

[PATCH v5 00/14] Add support for MediaTek xHCI host controller

2020-04-09 Thread Chunfeng Yun
The series of patches are used to support xHCI host controller on MediaTek SoCs which has a glue layer IPPC (IP Port Control), and add USB function on T-PHY including T-PHY V1 and V2; Finally add USB related nodes for MT7629 platform. The files of xhci-mtk.* and phy-mtk-tphy.* are ported from

[PATCH v5 06/14] usb: dwc2_udc_otg: use the phy bulk API to get phys

2020-04-09 Thread Chunfeng Yun
Use the phy bulk API to get a group of phys Signed-off-by: Chunfeng Yun --- v5: no changes v4: new patch --- drivers/usb/gadget/dwc2_udc_otg.c | 90 +-- 1 file changed, 12 insertions(+), 78 deletions(-) diff --git a/drivers/usb/gadget/dwc2_udc_otg.c

[PATCH v5 01/14] dm: core: Add function to get child count of ofnode or device

2020-04-09 Thread Chunfeng Yun
This patch add function used to get the child count of a ofnode or a device Signed-off-by: Chunfeng Yun --- v4~v5: no changes v3: 1. add non/inline function dev_get_child_count() instead of macro suggested by Simon v2: 1. move ofnode_get_child_count() into ofnode.c suggested by Simon

[PATCH v5 04/14] test: dm: phy: add a test item for the phy_bulk API

2020-04-09 Thread Chunfeng Yun
Add a test item for the phy_bulk API Signed-off-by: Chunfeng Yun --- v5: no changes v4: new patch --- arch/sandbox/dts/test.dts | 11 +++ test/dm/phy.c | 29 + 2 files changed, 40 insertions(+) diff --git a/arch/sandbox/dts/test.dts

[PATCH v5 05/14] usb: dwc3: use the phy bulk API to get phys

2020-04-09 Thread Chunfeng Yun
Get a group of phys by the phy bulk API Signed-off-by: Chunfeng Yun --- v5: no changes v4: new patch --- drivers/usb/dwc3/core.c | 83 - drivers/usb/dwc3/dwc3-generic.c | 7 ++- include/dwc3-uboot.h| 11 ++--- 3 files changed, 17

Re: Calling i2c set speed twice for i2c_mux_bus

2020-04-09 Thread Heiko Schocher
Hello Michal, Am 09.04.2020 um 16:03 schrieb Michal Simek: Hi Heiko and Simon, I have find out one bug in i2c class. I am using zcu104 revC board which has dts in mainline where i2c1 has i2c mux with some channels. In DT clock-frequency = <40>; is specified and it is read in

Re: [PATCH v5 6/6] dm: mmc: Update mmc_get_mmc_dev() to use const *

2020-04-09 Thread Jaehoon Chung
On 4/8/20 11:33 PM, Simon Glass wrote: > This function does not modify the device to change it to use const *, so > that callers with a const udevice * can call it without a cast. > > Signed-off-by: Simon Glass Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > Changes in v5:

Re: [RFC PATCH v2 05/13] mmc: add nexell driver

2020-04-09 Thread Jaehoon Chung
Hi, On 4/10/20 2:33 AM, Stefan B. wrote: > Hi, > > see below my answers to your questions. > > Regards > Stefan Bosch > > > Hi, > > thanks a lot for your reply. As you already guessed I have ported the > outdated U-Boot from FriendlyARM, see: >

Re: [PATCH] usb: Keep async schedule running only across mass storage xfers

2020-04-09 Thread Tom Rini
On Mon, Apr 06, 2020 at 02:29:44PM +0200, Marek Vasut wrote: > Rather than keeping the asynchronous schedule running always, keep it > running only across USB mass storage transfers for now, as it seems > that keeping it running all the time interferes with certain control > transfers during

[PATCH] board: add InnoComm i.MX8MM WB15EVK

2020-04-09 Thread Matt Porter
Add support for the InnoComm i.MX8MM WB15EVK board (https://www.innocomm.com/product_inner.aspx?num=2233). The following functionality is supported: - eMMC - MMC/SD - GPIO - I2C - Ethernet Signed-off-by: Matt Porter --- arch/arm/dts/Makefile |1 +

Re: iMX8MM USB support?

2020-04-09 Thread Tim Harvey
On Thu, Apr 9, 2020 at 3:02 AM Schrempf Frieder wrote: > > On 08.04.20 17:31, Tim Harvey wrote: > [...] > >> > >> In my case I'm loading a FIT image, so things are a bit different. > >> Where are you loading the image to? > >> > >> I have the following line in mx8mm_usb_sdp_spl.conf to load my

[PULL] MIPS fixes for v2020.04

2020-04-09 Thread Daniel Schwierzeck
Hi Tom, actually I've prepared this pull reuqest some weeks ago but was quite busy since then to finally send it. This is just small stuff whcih can't break anything. It would be great if you could sqeeze it in the release, thanks. Gitlab:

[PATCH v2 27/28] buildman: Update the TODO items

2020-04-09 Thread Simon Glass
A few of these have been done. Drop those and add some new ideas. Signed-off-by: Simon Glass --- Changes in v2: - Add patch to udpate TODO items tools/buildman/README | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tools/buildman/README

[PATCH v2 26/28] buildman: Add an option to ignore migration warnings

2020-04-09 Thread Simon Glass
These are becoming more common now. They cause boards to show warnings which can be mistaking for compiler warnings. Add a buildman option to ignore them. This option works only with the summary option (-s). It does not affect the build process. Signed-off-by: Simon Glass --- Changes in v2: -

[PATCH v2 24/28] buildman: Make -I the default

2020-04-09 Thread Simon Glass
At present buildman defaults to running 'mrproper' on every thread before it starts building commits for each board. This can add a delay of about 5 seconds to the start of the process, since the tools and other invariants must be rebuilt. In particular, a build without '-b', to build current

[PATCH v2 25/28] buildman: Add an option to ignore device-tree warnings

2020-04-09 Thread Simon Glass
Unfortunately the plague of device-tree warnings has not lifted. These warnings infiltrate almost every build, adding noise and confusion. Add a buildman option to ignore them. This option works only with the summary option (-s). It does not affect the build process. Signed-off-by: Simon Glass

[PATCH v2 28/28] buildman: Change the exit codes

2020-04-09 Thread Simon Glass
The current exit codes of 128 and 129 are useful in that they do not conflict with those returned by tools, but they are not actually valid. It seems better to pick some codes which work with 'bit bisect run'. Update them to 100 (for errors) and 101 (for warnings). Signed-off-by: Simon Glass

[PATCH v2 22/28] buildman: Add the abbreviation for --boards

2020-04-09 Thread Simon Glass
This option may be frequency used, so mention that it can be abbreviated to --bo Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/README | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/buildman/README b/tools/buildman/README index

[PATCH v2 23/28] buildman: Update workflow documentation with more detail

2020-04-09 Thread Simon Glass
Make a few additions and change some wording in the workflow documentation. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/README | 53 +-- 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/tools/buildman/README

[PATCH v2 21/28] buildman: Update the 'theory of operation' a little

2020-04-09 Thread Simon Glass
Make a few updates to this important section of the documentation, to make things clearer. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/README | 69 --- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git

[PATCH v2 20/28] buildman: Show a summary of the build result

2020-04-09 Thread Simon Glass
When buildman finishes it leaves the last summary line visible, which shows the number of successful builds, builds with warnings and builds with errors. It is useful also to see how many builds were done in total along with the time taken. Show these on a separate line before buildman finishes.

[PATCH v2 17/28] buildman: Drop unused output code

2020-04-09 Thread Simon Glass
The commit counter is a hangover from when buildman processed each board for a commit. Now buildman processes each commit for a board, so this output is never triggered. Delete it. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/builder.py | 5 - 1 file changed, 5

[PATCH v2 18/28] buildman: Show the number of builds remaining

2020-04-09 Thread Simon Glass
It is nice to see the actual number of builds remaining to complete. Add this in the progress message, using a different colour. Drop the unnecessary 'name' variable while we are here. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/builder.py | 13 + 1 file

[PATCH v2 19/28] buildman: Limit the length of progress messages

2020-04-09 Thread Simon Glass
If a progress message is longer than the terminal line it will scroll the terminal. Limit the messages to the terminal width. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 15/28] buildman: Drop the line-clearing code in Builder

2020-04-09 Thread Simon Glass
The new feature in terminal can be used by buildman. Update the Builder class accordingly. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/builder.py | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/tools/buildman/builder.py

[PATCH v2 16/28] buildman: Show a message when fetching a repo

2020-04-09 Thread Simon Glass
Fetching updated versions of a repo can take time. At present buildman gives no indication that it is doing this. Add a message to explain the delay. Tidy up a few other messages while we are here. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/builder.py | 5 - 1

[PATCH v2 11/28] buildman: Use spaces in the board list

2020-04-09 Thread Simon Glass
At present the board names shown with -l are separated by commas. This makes it hard to double-click to select a particular board. Also it is not possible to select all boards and paste them as arguments to a subsequent buildman run, since buildman requires spaces to separate the list on the

[PATCH v2 14/28] patman: Support limiting output to a single line

2020-04-09 Thread Simon Glass
When outputing a progress line we don't want it to go past the end of the current terminal line, or it will not be possible to erase it. Add an option to Print() which allows limiting the output to the terminal width. Since ANSI sequences do not take up space on the terminal, these are removed.

[PATCH v2 13/28] patman: Support erasing a previously unfinished text line

2020-04-09 Thread Simon Glass
When printing progress it is useful to print a message and leave the cursor at the end of the line until the operation is finished. When it is finished, the line needs to be erased so a new line can start in its place. Add a function to handle clearing a line previously written by

[PATCH v2 12/28] patman: Update flushing Print() for Python 3

2020-04-09 Thread Simon Glass
This does not seem to work on Python 3. Update the code to use the built-in support. Signed-off-by: Simon Glass --- Changes in v2: None tools/patman/terminal.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/patman/terminal.py b/tools/patman/terminal.py index

[PATCH v2 07/28] buildman: Test the output with --list-error-boards

2020-04-09 Thread Simon Glass
Add a test to cover this flag, which adds the name of each board to each error/warning line. Signed-off-by: Simon Glass --- Changes in v2: - Move the 'boards' variables to the start of _CheckOutput() tools/buildman/test.py | 46 +- 1 file changed, 32

[PATCH v2 09/28] buildman: Use an object to hold error lines

2020-04-09 Thread Simon Glass
At present the string for each error line is created in _CalcErrorDelta() and used to create the summary output. This is inflexible since all the information (error/warning character, error line, list of boards with that error line) is munged together in a string. Create an object to hold this

[PATCH v2 10/28] buildman: Show the list of boards in magenta

2020-04-09 Thread Simon Glass
It is quite hard to see the list of board for each error line since the colour is the same as the actual error line. Show the board list in magenta so that it is easier to distinguish them. There is no point in checking the colour of the overall line, since there are now multiple colours. So drop

[PATCH v2 06/28] buildman: Add a test helper for creating a line prefix

2020-04-09 Thread Simon Glass
The split/join code is repeated in a lot of places. Add a function to handle this. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/test.py | 51 +- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/tools/buildman/test.py

[PATCH v2 03/28] buildman: Use an iterator to check test output

2020-04-09 Thread Simon Glass
Rather than using the absolute array index, use an interator to work through the expected output lines. This is easier to follow. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/test.py | 94 +++--- 1 file changed, 52 insertions(+), 42

[PATCH v2 05/28] buildman: Split out testOutput() into separate functions

2020-04-09 Thread Simon Glass
We want to add a few more tests similar to testOutput(). Split its logic into a function which runs buildman to get the output and another which checks the output. This will make it easier to reuse the code. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/test.py | 34

[PATCH v2 02/28] buildman: Add test coverage for error/warning colour

2020-04-09 Thread Simon Glass
Buildman should output the right colours for each error/warning line. Some of these checks are missing. Add them. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/test.py | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/buildman/test.py

[PATCH v2 08/28] buildman: Use yellow consistently for warning lines

2020-04-09 Thread Simon Glass
At present warnings are shown in yellow in the summary (-s) but magenta in the detail listing (-e). Use yellow in both. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/builder.py | 2 +- tools/buildman/test.py| 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)

[PATCH v2 04/28] buildman: Create temp directory in test setup

2020-04-09 Thread Simon Glass
Rather than having a few tests handle this themselves, create the temporary directory in the setUp() method and remove it in tearDown(). This will make it easier to add more tests. Only testOutput and testGit() actually need it, but it doesn't add to the test time noticeably to do this for all

[PATCH v2 01/28] buildman: Refactor error-line output int a function

2020-04-09 Thread Simon Glass
Reduce the amount of repeated code by creating an _OutputErrLines() function to hold this code. Signed-off-by: Simon Glass --- Changes in v2: None tools/buildman/builder.py | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git

[PATCH v2 00/28] buildman: Improve summary output

2020-04-09 Thread Simon Glass
This series makes the output produced by buildman a little more useful and easier to read: - when using -l to see which errors relate to which board, it shows the boards in a different colour so they can be distinguished from the errors - uses yellow consistently for warning lines - shows

[PATCH v2 17/22] common: Drop linux/bug.h from common header

2020-04-09 Thread Simon Glass
Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-bcm283x/include/mach/timer.h | 1 + arch/arm/mach-imx/cmd_nandbcb.c | 1 + arch/arm/mach-tegra/ivc.c| 1 +

[PATCH v2 21/22] Use __ASSEMBLY__ as the assembly macros

2020-04-09 Thread Simon Glass
Some places use __ASSEMBLER__ instead which does not work since the Makefile does not define it. Fix them. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to fix occurances of __ASSEMBLER__ arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 2 +-

Re: [PATCH] Series-to: u-boot Cover-letter: Fix Typo error in Makefile

2020-04-09 Thread Sicris Rey Embay
On Thu, Apr 9, 2020 at 8:49 PM Heinrich Schuchardt wrote: > > On 2020-04-08 17:39, Sicris wrote: > > This patch fixes the typo error in Makefile where > > -I$(srctree)/arch/$(ARCH)/thumb1/include is not picked up > > in the compiler flag when compiling for thumb2. > > END > > > > Signed-off-by:

[PATCH v2 18/22] common: Drop linux/stringify.h from common header

2020-04-09 Thread Simon Glass
Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/armv7/bcm235xx/clk-core.h | 1 + arch/arm/cpu/armv7/bcm281xx/clk-core.h | 1 + board/Arcturus/ucp1020/cmd_arc.c | 1 +

[PATCH v2 19/22] Fix some checkpatch warnings in calls to udelay()

2020-04-09 Thread Simon Glass
Fix up some incorrect code style in calls to functions in the linux/time.h header, mostly udelay(). Signed-off-by: Simon Glass --- Changes in v2: - Split out code-style changes for time functions into a new patch arch/arm/cpu/sa1100/timer.c | 2 +- board/sbc8641d/sbc8641d.c

[PATCH v2 10/22] common: Drop image.h from common header

2020-04-09 Thread Simon Glass
Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- Changes in v2: None arch/arc/lib/bootm.c | 2 ++ arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids.c | 1 + arch/arm/cpu/armv8/fsl-layerscape/mp.c | 1 +

[PATCH v2 15/22] common: Drop asm/ptrace.h from common header

2020-04-09 Thread Simon Glass
Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm1136/mx35/timer.c | 1 + arch/arm/cpu/arm926ejs/mx25/timer.c | 1 + arch/arm/cpu/arm926ejs/mx27/timer.c | 1 + arch/arm/cpu/arm926ejs/spear/spl.c | 1 +

[PATCH v2 13/22] Fix some checkpatch warnings in calls to debug()

2020-04-09 Thread Simon Glass
Fix up some incorrect code style in calls to functions in the log.h header, mostly debug(). Signed-off-by: Simon Glass --- Changes in v2: - Split out code-style changes for log functions into a new patch arch/powerpc/lib/bootm.c| 10 +-

[PATCH v2 16/22] common: Drop asm_offsets.h from common header

2020-04-09 Thread Simon Glass
Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc83xx/cpu_init.c | 1 + arch/powerpc/cpu/mpc83xx/spl_minimal.c| 1 + arch/powerpc/cpu/mpc85xx/commproc.c | 1 + arch/powerpc/cpu/mpc85xx/cpu_init_early.c |

[PATCH v2 04/22] arm: Don't include common.h in header files

2020-04-09 Thread Simon Glass
It is bad practice to include common.h in other header files since it can bring in any number of superfluous definitions. It implies that some C files don't include it and thus may be missing CONFIG options that are set up by that file. The C files should include these themselves. Update some

[PATCH v2 09/22] common: Drop bootstage.h from common header

2020-04-09 Thread Simon Glass
Move this fairly uncommon header out of the common header. Signed-off-by: Simon Glass --- Changes in v2: None arch/arc/lib/bootm.c| 3 ++- arch/arm/cpu/armv8/generic_timer.c | 1 + arch/arm/lib/bootm.c| 1 + arch/m68k/lib/bootm.c

[PATCH v2 08/22] bootstage: Use BOOTSTAGE instead of BOOTSTATE

2020-04-09 Thread Simon Glass
Some of the enum members are wrong. Fix them. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/lib/fsp2/fsp_meminit.c | 4 ++-- arch/x86/lib/fsp2/fsp_silicon_init.c | 4 ++-- common/board_f.c | 4 ++-- common/board_r.c | 4 ++--

[PATCH v2 02/22] flash: Tidy up coding style for flash functions

2020-04-09 Thread Simon Glass
Some functions use the wrong code style and generate checkpatch errors. Fix these. Signed-off-by: Simon Glass --- Changes in v2: - Split out code-style changes for flash functions into a new patch arch/arm/mach-at91/arm926ejs/eflash.c | 8 board/cobra5272/flash.c | 16

[PATCH v2 07/22] common: Drop part.h from common header

2020-04-09 Thread Simon Glass
Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- Changes in v2: None api/api_storage.c| 1 + arch/arm/mach-omap2/utils.c | 1 + arch/arm/mach-snapdragon/dram.c | 1 + arch/x86/include/asm/fsp/fsp_api.h | 2

[PATCH v2 06/22] part: Drop disk_partition_t typedef

2020-04-09 Thread Simon Glass
We should not be using typedefs and these make it harder to use forward declarations (to reduce header file inclusions). Drop the typedef. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-omap2/utils.c | 2 +- arch/x86/cpu/quark/quark.c | 1 + cmd/ab_select.c

[PATCH v2 03/22] common: Drop flash.h from common header

2020-04-09 Thread Simon Glass
Move this uncommon header out of the common header. Fix up some style problems in flash.h while we are here. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-at91/arm926ejs/eflash.c | 1 + board/AndesTech/adp-ae3xx/adp-ae3xx.c | 1 +

[PATCH v2 01/22] common: Drop uuid.h from common header

2020-04-09 Thread Simon Glass
Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- Changes in v2: None cmd/gpt.c | 1 + cmd/nvedit_efi.c | 1 + cmd/x86/hob.c | 1 + disk/part_efi.c | 1 + fs/btrfs/btrfs.c | 1 +

Re: [RFC 1/7] mmc: fsl_esdhc_imx: add OF_PLATDATA support

2020-04-09 Thread Walter Lozano
On 9/4/20 16:50, Simon Glass wrote: Hi Walter, On Thu, 9 Apr 2020 at 13:44, Walter Lozano wrote: Hi Simon, On 9/4/20 16:36, Simon Glass wrote: Hi Walter, On Thu, 9 Apr 2020 at 13:07, Walter Lozano wrote: Hi Simon, On 8/4/20 00:14, Simon Glass wrote: Hi Walter, On Tue, 7 Apr 2020 at

Re: [RFC] dm: uclass: add functions to get device by platdata

2020-04-09 Thread Walter Lozano
On 9/4/20 16:36, Simon Glass wrote: HI Walter, On Thu, 9 Apr 2020 at 12:57, Walter Lozano wrote: Hi Simon, On 8/4/20 00:14, Simon Glass wrote: Hi Walter, On Tue, 7 Apr 2020 at 14:05, Walter Lozano wrote: Hi Simon, On 6/4/20 00:43, Simon Glass wrote: Hi Walter, On Mon, 9 Mar 2020 at

Re: [RFC 1/7] mmc: fsl_esdhc_imx: add OF_PLATDATA support

2020-04-09 Thread Simon Glass
Hi Walter, On Thu, 9 Apr 2020 at 13:44, Walter Lozano wrote: > > Hi Simon, > > On 9/4/20 16:36, Simon Glass wrote: > > Hi Walter, > > > > On Thu, 9 Apr 2020 at 13:07, Walter Lozano > > wrote: > >> Hi Simon, > >> > >> On 8/4/20 00:14, Simon Glass wrote: > >>> Hi Walter, > >>> > >>> On Tue, 7

Re: [RFC 1/7] mmc: fsl_esdhc_imx: add OF_PLATDATA support

2020-04-09 Thread Walter Lozano
Hi Simon, On 9/4/20 16:36, Simon Glass wrote: Hi Walter, On Thu, 9 Apr 2020 at 13:07, Walter Lozano wrote: Hi Simon, On 8/4/20 00:14, Simon Glass wrote: Hi Walter, On Tue, 7 Apr 2020 at 14:05, Walter Lozano wrote: Hi Simon, Thank you for taking the time to review this series. On

Re: [RFC 1/7] mmc: fsl_esdhc_imx: add OF_PLATDATA support

2020-04-09 Thread Simon Glass
Hi Walter, On Thu, 9 Apr 2020 at 13:07, Walter Lozano wrote: > > Hi Simon, > > On 8/4/20 00:14, Simon Glass wrote: > > Hi Walter, > > > > On Tue, 7 Apr 2020 at 14:05, Walter Lozano > > wrote: > >> Hi Simon, > >> > >> Thank you for taking the time to review this series. > >> > >> On 6/4/20

Re: [PATCH v6 12/29] dm: core: Add basic ACPI support

2020-04-09 Thread Simon Glass
On Thu, 9 Apr 2020 at 11:40, Andy Shevchenko wrote: > > On Thu, Apr 09, 2020 at 10:27:38AM -0600, Simon Glass wrote: > > ACPI (Advanced Configuration and Power Interface) is a standard for > > specifying information about a platform. It is a little like device > > tree but the bindings are part

Re: [RFC] dm: uclass: add functions to get device by platdata

2020-04-09 Thread Simon Glass
HI Walter, On Thu, 9 Apr 2020 at 12:57, Walter Lozano wrote: > > Hi Simon, > > On 8/4/20 00:14, Simon Glass wrote: > > Hi Walter, > > > > On Tue, 7 Apr 2020 at 14:05, Walter Lozano > > wrote: > >> Hi Simon, > >> > >> On 6/4/20 00:43, Simon Glass wrote: > >>> Hi Walter, > >>> > >>> On Mon, 9

Re: [PATCH v6 10/29] pci: Adjust dm_pci_read_bar32() to return errors correctly

2020-04-09 Thread Simon Glass
On Thu, 9 Apr 2020 at 10:28, Simon Glass wrote: > > At present if reading a BAR returns 0x then the value is masked > and a different value is returned. This makes it harder to detect the > problem when debugging. > > Update the function to avoid masking in this case. > > Signed-off-by:

Re: [RFC 1/7] mmc: fsl_esdhc_imx: add OF_PLATDATA support

2020-04-09 Thread Walter Lozano
Hi Simon, On 8/4/20 00:14, Simon Glass wrote: Hi Walter, On Tue, 7 Apr 2020 at 14:05, Walter Lozano wrote: Hi Simon, Thank you for taking the time to review this series. On 6/4/20 00:42, Simon Glass wrote: Hi Walter, On Sun, 29 Mar 2020 at 21:32, Walter Lozano wrote: Signed-off-by:

Re: [RFC] dm: uclass: add functions to get device by platdata

2020-04-09 Thread Walter Lozano
Hi Simon, On 8/4/20 00:14, Simon Glass wrote: Hi Walter, On Tue, 7 Apr 2020 at 14:05, Walter Lozano wrote: Hi Simon, On 6/4/20 00:43, Simon Glass wrote: Hi Walter, On Mon, 9 Mar 2020 at 12:27, Walter Lozano wrote: Hi Simon On 6/3/20 17:32, Simon Glass wrote: Hi Walter, On Fri, 6 Mar

Re: [PATCH 20/26 v6] spl: spl_nor: Move legacy image loading into spl_legacy.c

2020-04-09 Thread Daniel Schwierzeck
Am 08.04.20 um 10:09 schrieb Stefan Roese: > Move the legacy image loading into spl_legacy.c. This makes it easier > to extend the legacy image handling with new features that other > SPL loaders might use (e.g. spl_spi.c etc). > > No functional change indended. > > Signed-off-by: Stefan

RE: [PATCH v2 1/2] arm: stm32mp: activate data cache in SPL and before relocation

2020-04-09 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: vendredi 3 avril 2020 23:32 > > On 4/3/20 11:25 AM, Patrick Delaunay wrote: > [...] > > diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c > > index 36a9205819..c22c1a9bbc 100644 > > --- a/arch/arm/mach-stm32mp/cpu.c > > +++

Re: [PATCH 22/26 v6] spl: spl_legacy: Add cache flush after reading U-Boot image

2020-04-09 Thread Simon Goldschmidt
Am 09.04.2020 um 09:43 schrieb Stefan Roese: > On 09.04.20 09:29, Simon Goldschmidt wrote: >> Am 08.04.2020 um 10:09 schrieb Stefan Roese: >>> From: Weijie Gao >>> >>> Flush the cache after reading of the U-Boot proper into SDRAM so that >>> it can be started. >>> >>> This is needed on some

RE: [PATCH v2 2/2] arm: stm32mp: activate data cache on DDR in SPL

2020-04-09 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: vendredi 3 avril 2020 23:33 > > On 4/3/20 11:25 AM, Patrick Delaunay wrote: > > Activate cache on DDR to improves the accesses to DDR used by SPL: > > - CONFIG_SPL_BSS_START_ADDR > > - CONFIG_SYS_SPL_MALLOC_START > > > > Cache is configured only when DDR

RE: [PATCH 2/3] arm: caches: add DCACHE_DEFAULT_OPTION

2020-04-09 Thread Patrick DELAUNAY
Dear Marek, > Sent: jeudi 9 avril 2020 12:21 > To: Patrick DELAUNAY ; u-boot@lists.denx.de > > On 4/9/20 12:01 PM, Patrick DELAUNAY wrote: > > Dear Marek, > > Hi, > > >> From: Uboot-stm32 > >> On Behalf Of Patrick DELAUNAY > >> > >> Dear Marek, > >> > >>> From: Marek Vasut > >>> Sent:

Re: [PATCH v6 12/29] dm: core: Add basic ACPI support

2020-04-09 Thread Andy Shevchenko
On Thu, Apr 09, 2020 at 10:27:38AM -0600, Simon Glass wrote: > ACPI (Advanced Configuration and Power Interface) is a standard for > specifying information about a platform. It is a little like device > tree but the bindings are part of the specification and it supports an > interpreted bytecode

RE: [PATCH V3] ARM: dts: stm32: Add KS8851-16MLL ethernet on FMC2

2020-04-09 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: jeudi 9 avril 2020 13:27 > > On 4/1/20 3:30 PM, Patrick DELAUNAY wrote: > > Hi Marek, > > Hi, > > [...] > > >> + { > >> + /* These should bound to FMC2 bus driver, but we do not have one */ > > > > As temporarily solution (waiting final solution and

Re: [PATCH] imx: Fix imx8m FIT script issue

2020-04-09 Thread Tom Rini
On Thu, Apr 09, 2020 at 01:44:43AM -0700, Ye Li wrote: > The FIT config node has reversed ATF and u-boot: ATF is set to 'firmware' but > u-boot is set to 'loadables'. > This script can work previously because spl fit driver wrongly appends fdt to > all loadable images. With the issue fixed in

Re: [RFC PATCH v2 05/13] mmc: add nexell driver

2020-04-09 Thread Stefan B.
Hi, see below my answers to your questions. Regards Stefan Bosch Hi, thanks a lot for your reply. As you already guessed I have ported the outdated U-Boot from FriendlyARM, see: https://github.com/friendlyarm/u-boot/tree/nanopi2-v2016.01 The original MMC-driver has been nexell_dw_mmc.c,

Re: [PATCH] cmd: Add test and fix bugs for dm drivers

2020-04-09 Thread Tom Rini
On Mon, Apr 06, 2020 at 10:23:09AM -0400, Sean Anderson wrote: > Add a test for the dm drivers command. Also fix a null pointer dereference > revealed by said test. > > Signed-off-by: Sean Anderson > Reviewed-by: Bin Meng > Tested-by: Bin Meng > Reviewed-by: Simon Glass Applied to

RE: [PATCH] ARM: dts: stm32: Define FMC2 base address

2020-04-09 Thread Patrick DELAUNAY
Dear, > From: Marek Vasut > Sent: jeudi 9 avril 2020 13:23 > > On 4/1/20 3:45 PM, Patrick DELAUNAY wrote: > > Hi Marek, > > Hi, > > >> From: Marek Vasut > >> Sent: jeudi 26 mars 2020 16:57 > >> > >> Define FMC2 base address, for use in board files, until there is an > >> actual FMC2 bus

Re: [PATCH] Series-to: u-boot Cover-letter: Fix Typo error in Makefile

2020-04-09 Thread Heinrich Schuchardt
On 2020-04-09 16:25, Sicris Rey Embay wrote: > On Thu, Apr 9, 2020 at 8:49 PM Heinrich Schuchardt wrote: >> >> On 2020-04-08 17:39, Sicris wrote: >>> This patch fixes the typo error in Makefile where >>> -I$(srctree)/arch/$(ARCH)/thumb1/include is not picked up >>> in the compiler flag when

Re: [PATCH v3] mips: cmd: go: Flush cache before jumping to app/image

2020-04-09 Thread Daniel Schwierzeck
Am 13.02.20 um 07:04 schrieb Stefan Roese: > It has been noticed on MT7628/88 platforms, that booting the RAM image > does not work reliably. Sometimes it works and sometimes not. Debugging > showed that this "might" be a cache related issue as very strange > errors occurred (e.g. output

RE: [PATCH 3/4] [RFC] ARM: dts: stm32: Rework DDR DT inclusion

2020-04-09 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mercredi 8 avril 2020 15:54 > > On 4/8/20 12:09 PM, Patrick DELAUNAY wrote: > > Hi, > > Hi, > > >> From: Marek Vasut > >> Sent: mardi 7 avril 2020 22:01 > >> > >> On 4/7/20 3:00 PM, Patrick DELAUNAY wrote: > >>> Dear Marek, > >> > >> Hi, > >> [...] >

Re: [PATCH 22/26 v6] spl: spl_legacy: Add cache flush after reading U-Boot image

2020-04-09 Thread Daniel Schwierzeck
Am 09.04.20 um 09:43 schrieb Stefan Roese: > On 09.04.20 09:29, Simon Goldschmidt wrote: >> Am 08.04.2020 um 10:09 schrieb Stefan Roese: >>> From: Weijie Gao >>> >>> Flush the cache after reading of the U-Boot proper into SDRAM so that >>> it can be started. >>> >>> This is needed on some

[PATCH v6 10/29] pci: Adjust dm_pci_read_bar32() to return errors correctly

2020-04-09 Thread Simon Glass
At present if reading a BAR returns 0x then the value is masked and a different value is returned. This makes it harder to detect the problem when debugging. Update the function to avoid masking in this case. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Reviewed-by: Wolfgang

[PATCH v6 12/29] dm: core: Add basic ACPI support

2020-04-09 Thread Simon Glass
ACPI (Advanced Configuration and Power Interface) is a standard for specifying information about a platform. It is a little like device tree but the bindings are part of the specification and it supports an interpreted bytecode language. Driver model does not use ACPI for U-Boot's configuration,

Re: Calling i2c set speed twice for i2c_mux_bus

2020-04-09 Thread Simon Glass
Hi Michal, On Thu, 9 Apr 2020 at 08:03, Michal Simek wrote: > > Hi Heiko and Simon, > > I have find out one bug in i2c class. I am using zcu104 revC board which > has dts in mainline where i2c1 has i2c mux with some channels. > In DT clock-frequency = <40>; is specified and it is read in >

Re: [PATCH 1/2] libfdt: Make fdt_cells function accessible

2020-04-09 Thread Simon Glass
Hi Matthias, On Wed, 8 Apr 2020 at 03:35, wrote: > > From: Matthias Brugger > > For reading address-cells and size-cells, the libfdt only provides > functions which do not return in case the node does not provide the > property. For traversing the DT to find the parent node which provides >

Re: [PATCH 2/2] dm: core: Walk the tree to find address- and size-cells properties

2020-04-09 Thread Simon Glass
Hi Matthias, On Wed, 8 Apr 2020 at 03:35, wrote: > > From: Matthias Brugger > > Walk the tree when reading size-cells or address-cells properties. > > Reported-by: Robin Randhawa > Signed-off-by: Matthias Brugger > > --- > > drivers/core/ofnode.c | 8 > include/dm/ofnode.h | 36

Re: [PATCH v5 10/29] pci: Adjust dm_pci_read_bar32() to return errors correctly

2020-04-09 Thread Simon Glass
Hi, On Thu, 9 Apr 2020 at 03:39, Mark Kettenis wrote: > > > From: Andy Shevchenko > > Date: Thu, 9 Apr 2020 12:06:11 +0300 > > > > On Thu, Apr 9, 2020 at 2:00 AM Simon Glass wrote: > > > > > > At present if reading a BAR returns 0x (e.g. the device is not > > > present) then the value

Re: [PATCH v5 12/29] dm: core: Add basic ACPI support

2020-04-09 Thread Simon Glass
Hi Andy, On Thu, 9 Apr 2020 at 03:02, Andy Shevchenko wrote: > > On Thu, Apr 9, 2020 at 2:01 AM Simon Glass wrote: > > > > ACPI (Advanced Configuration and Power Interface) is a standard for > > specifying information about a platform. It is a little like device > > tree but the bindings are

  1   2   >