[U-Boot] [PATCH 12/24] dtoc: Update fdt_util for Python 3

2019-05-17 Thread Simon Glass
Since we are now using the bytes type in Python 3, the conversion in fdt32_to_cpu() is not necessary, so drop it. Also use 'int' instead of 'long' to convert the integer value, since 'long' is not present in Python 3. With this, test_fdt passes with both Python 2 and 3:

[U-Boot] [PATCH 20/24] binman: Fix up a format string in AssertInList()

2019-05-17 Thread Simon Glass
Add the missing 's' to the required '%s' here. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 48fec501790..d0a8b751a2c 100644 --- a/tools/binman/ftest.py +++

[U-Boot] [PATCH 16/24] binman: Convert to use bytes type

2019-05-17 Thread Simon Glass
With Python 3 we want to use the 'bytes' type instead of 'str'. Adjust the code accordingly so that it works on both Python 2 and Python 3. Signed-off-by: Simon Glass --- tools/binman/elf_test.py| 5 +- tools/binman/etype/_testing.py | 2 +-

[U-Boot] [PATCH 21/24] binman: Read map files as text

2019-05-17 Thread Simon Glass
These files are text files so should be read as such, so that string-equality assertions work as expected. With this binman tests work correctly on Python 2 and Python 3: PYTHONPATH=/tmp/b/sandbox_spl/scripts/dtc/pylibfdt \ python ./tools/binman/binman -t Change first line of binman.py

[U-Boot] [PATCH 15/24] binman: Avoid changing a dict during iteration

2019-05-17 Thread Simon Glass
This code works OK in Python 2 but Python 3 complains. Adjust it to avoid deleting elements from a dict while iterating through it. Signed-off-by: Simon Glass --- tools/binman/control.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/binman/control.py

[U-Boot] [PATCH 19/24] binman: Update 'text' entry for Python 3

2019-05-17 Thread Simon Glass
This code reads a binary value and then uses it as a string to look up another value. Add conversions to make this work as expected on Python 3. Signed-off-by: Simon Glass --- tools/binman/etype/text.py | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 22/24] binman: Document parallel tests

2019-05-17 Thread Simon Glass
Since binman can run tests in parallel, document this. Signed-off-by: Simon Glass --- tools/binman/README | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tools/binman/README b/tools/binman/README index 927fa856acf..ac193f16cf7 100644 --- a/tools/binman/README +++

[U-Boot] [PATCH 10/24] dtoc: Test full 64-bit properties with FdtCellsToCpu()

2019-05-17 Thread Simon Glass
At present this test does not check the upper 32 bits of the returned value. Add some additional tests to cover this. Signed-off-by: Simon Glass --- tools/dtoc/test_fdt.py | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/dtoc/test_fdt.py

[U-Boot] [PATCH 23/24] binman: Update the README.entries file

2019-05-17 Thread Simon Glass
A few minor changes have been made including one new entry. Update the documentation with: $ binman -E >tools/binman/README.entries Signed-off-by: Simon Glass --- tools/binman/README.entries | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tools/binman/README.entries

[U-Boot] [PATCH 13/24] dtoc: Update dtb_platdata to support Python 3

2019-05-17 Thread Simon Glass
The only change needed is to update get_value() to support the 'bytes' type correctly with Python 3. With this the dtoc unit tests pass with both Python 2 and 3: PYTHONPATH=/tmp/b/sandbox_spl/scripts/dtc/pylibfdt python \ ./tools/dtoc/dtoc -t

[U-Boot] [PATCH 18/24] patman: Update fmap code for Python 3

2019-05-17 Thread Simon Glass
This needs special care to ensure that the bytes type is used for binary data. Add conversion code to deal with strings and bytes correctly. Signed-off-by: Simon Glass --- tools/binman/etype/fmap.py | 3 ++- tools/binman/fmap_util.py | 12 +--- 2 files changed, 11 insertions(+), 4

[U-Boot] [PATCH 14/24] patman: Allow reading files in text mode

2019-05-17 Thread Simon Glass
While reading files in binary mode is the norm, sometimes we want to use text mode. Add an optional parameter to handle this. Signed-off-by: Simon Glass --- tools/patman/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/patman/tools.py

[U-Boot] [PATCH 24/24] patman: Update cover-coverage tests for Python 3

2019-05-17 Thread Simon Glass
We need slightly different commands to run code coverage with Python 3. Update the RunTestCoverage() function to handle this. Signed-off-by: Simon Glass --- tools/patman/test_util.py | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tools/patman/test_util.py

[U-Boot] [PATCH 11/24] dtoc: Add a unit test for BytesToValue()

2019-05-17 Thread Simon Glass
Add a simple unit test for one of the cases of this function, so that any fault can be seen directly, rather than appearing through the failure of another test. Signed-off-by: Simon Glass --- tools/dtoc/test_fdt.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 17/24] binman: Update entry_test to support Python 3

2019-05-17 Thread Simon Glass
The reload() function is in a different place in Python 3. Update the code to handle this. Signed-off-by: Simon Glass --- tools/binman/entry_test.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/binman/entry_test.py b/tools/binman/entry_test.py index

[U-Boot] [PATCH 05/24] dtoc: Updates BytesToValue() for Python 3

2019-05-17 Thread Simon Glass
The difference between the bytes and str types in Python 3 requires a number of minor changes to this function. Update it to handle the input data using the 'bytes' type. Create two useful helper functions which can be used by other modules too. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py

[U-Boot] [PATCH 09/24] dtoc: Use binary mode for reading files

2019-05-17 Thread Simon Glass
The .dtb files are binary so we should open them as binary files. This allows Python 3 to use the correct 'bytes' type. Signed-off-by: Simon Glass --- tools/dtoc/test_fdt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/dtoc/test_fdt.py

[U-Boot] [PATCH 07/24] dtoc: Convert the Fdt.Prop class to Python 3

2019-05-17 Thread Simon Glass
Update this class to work correctly on Python 3 and to pass its unit tests. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index cbd9cbabe31..f051ce67632 100644 ---

[U-Boot] [PATCH 06/24] dtoc: Use byte type instead of str in fdt

2019-05-17 Thread Simon Glass
In Python 3 bytes and str are separate types. Use bytes to ensure that the code functions correctly with Python 3. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 14 +- tools/dtoc/test_fdt.py | 18 +- tools/patman/tools.py | 25 + 3

[U-Boot] [PATCH 03/24] dtoc: Use GetBytes() to obtain repeating bytes

2019-05-17 Thread Simon Glass
Use this helper function which works on both Python 2 and Python 3. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 6 -- tools/dtoc/test_fdt.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index

[U-Boot] [PATCH 04/24] dtoc: Move BytesToValue() out of the Prop class

2019-05-17 Thread Simon Glass
This method does not actually use any members of the Prop class. Move it out of the class so that it is easier to add unit tests. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 104 +++--- 1 file changed, 53 insertions(+), 51 deletions(-) diff --git

[U-Boot] [PATCH 02/24] dtoc: Sort platdata output from dtoc

2019-05-17 Thread Simon Glass
At present the order of struct field emitted by this tool depends on the internal workings of a Python dictionary. Sort the fields to remove this uncertainty, so that tests are deterministic. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 3 ++- tools/dtoc/test_dtoc.py| 12

[U-Boot] [PATCH 08/24] dtoc: Convert the Fdt.Node class to Python 3

2019-05-17 Thread Simon Glass
Update this class to work correctly on Python 3 and to pass its unit tests. The only required change is to deal with a difference in the behaviour of sorting with a None value. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH 01/24] dtoc: Adjust code for Python 3

2019-05-17 Thread Simon Glass
Update a few things in this tool so that they support Python 3: - print statements - iteritems() - xrange() Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 4 ++-- tools/dtoc/dtoc.py | 8 +--- tools/dtoc/test_dtoc.py| 4 +++- tools/dtoc/test_fdt.py | 8 +---

[U-Boot] [PATCH 00/24] binman: dtoc: Convert to Python 3

2019-05-17 Thread Simon Glass
This series updates both binman and dtoc to support Python 3 as well as Python 2. This mostly involves moving the code to use the 'bytes' type on Python 3 (with associated unicode conversions) but there are various other tweaks required as well. Simon Glass (24): dtoc: Adjust code for Python 3

Re: [U-Boot] [linux-sunxi] [PATCH 0/2] sunxi: A64: enable first USB port on Pine64 boards

2019-05-17 Thread André Przywara
On 17/05/2019 19:41, André Przywara wrote: > On 17/05/2019 19:15, Vasily Khoruzhick wrote: >> On Wed, May 15, 2019 at 5:46 PM Andre Przywara >> wrote: >>> >>> Since the beginning the upper USB port on Pine64 boards (Pine64+, SoPine >>> baseboard, Pine64-LTS, Pinebook) was not working under

Re: [U-Boot] [PATCH 5/5] pci: imx: Add DM and DT support

2019-05-17 Thread Bin Meng
On Sat, May 18, 2019 at 2:26 AM Marek Vasut wrote: > > Add DM support and support for probing the iMX PCI driver from DT. > The legacy non-DM support is retained, however shall be removed once > DM PCI is the only option remaining. > > Signed-off-by: Marek Vasut > Cc: Bin Meng > Cc: Fabio

Re: [U-Boot] [PATCH 3/5] pci: imx: Fix potential 64bit memory access clamping

2019-05-17 Thread Bin Meng
On Sat, May 18, 2019 at 2:26 AM Marek Vasut wrote: > > The driver limits the config space base to 32bit, however it can be > 64bit on 64bit iMX hardware too. Remove that limitation. This patch > has no impact on the iMX6, which is the only SoC currently supported > by this driver. > >

Re: [U-Boot] [PATCH 2/5] pci: imx: Factor out hard-coded register base addresses

2019-05-17 Thread Bin Meng
On Sat, May 18, 2019 at 2:26 AM Marek Vasut wrote: > > Pull out hard-coded register base addresses into driver private > structure in preparation for DM conversion. No functional change. > > Signed-off-by: Marek Vasut > Cc: Bin Meng > Cc: Fabio Estevam > Cc: Stefano Babic > --- >

Re: [U-Boot] [PATCH 4/5] pci: imx: Pass driver private data around

2019-05-17 Thread Bin Meng
On Sat, May 18, 2019 at 2:26 AM Marek Vasut wrote: > > Pass the driver private data around the driver as much as possible, instead > of having it as a static global variable. This is done in preparation for > the DM conversion, no functional change. > > Signed-off-by: Marek Vasut > Cc: Bin Meng

Re: [U-Boot] [PATCH 1/5] ARM: imx: Call imx_pcie_remove() only for non-DM PCI driver

2019-05-17 Thread Bin Meng
On Sat, May 18, 2019 at 2:26 AM Marek Vasut wrote: > > The DM iMX PCI driver has DM_FLAG_OS_PREPARE set and will call > imx_pcie_remove() from the .remove callback. Do not call it from > the architecture code again. > > Signed-off-by: Marek Vasut > Cc: Bin Meng > Cc: Fabio Estevam > Cc:

Re: [U-Boot] [PATCH V3 05/10] fat: ff: read max contiguous file data

2019-05-17 Thread Stephen Warren
On 10/20/15 1:10 PM, Tom Rini wrote: On Tue, Oct 20, 2015 at 12:57:32PM -0600, Stephen Warren wrote: On 10/02/2015 12:06 AM, Stephen Warren wrote: Enhance f_read() to find the maximum contiguous set of clusters to read, and read it all at once (which is fast) rather one by one (which is slow).

Re: [U-Boot] [PATCH v2 0/2] Add 'bcb' command to read/modify/write Android BCB

2019-05-17 Thread Stephen Finucane
On Fri, 2019-05-17 at 17:24 +0200, Eugeniu Rosca wrote: > Hi All, > > cc: Stephen, Jeremy > > FWIW/jFYI, the patchwork frontend appears to mangle/skip spaces > in the patch subjects. Examples: > - https://patchwork.ozlabs.org/cover/1101106/ > - https://patchwork.ozlabs.org/patch/1101108/ > -

[U-Boot] [PATCH 8/8] ARM: imx: vining2000: Enable DM Serial

2019-05-17 Thread Marek Vasut
Enable DM Serial support on iMX6SX VINING|2000. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- board/softing/vining_2000/vining_2000.c | 12 configs/vining_2000_defconfig | 3 +++ include/configs/vining_2000.h | 3 ---

[U-Boot] [PATCH 2/8] ARM: dts: imx: vining2000: Import VINING|2000 DT from Linux

2019-05-17 Thread Marek Vasut
Import iMX6SX VINING|2000 device tree from Linux 5.1.1 b724e9356404 . Enable DT control in full U-Boot . Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6sx-softing-vining-2000.dts |

[U-Boot] [PATCH 7/8] ARM: imx: vining2000: Enable DM PCI

2019-05-17 Thread Marek Vasut
Enable DM PCI support on iMX6SX VINING|2000. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- configs/vining_2000_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/vining_2000_defconfig b/configs/vining_2000_defconfig index

[U-Boot] [PATCH 5/8] ARM: imx: vining2000: Enable DM USB

2019-05-17 Thread Marek Vasut
Enable DM USB support on iMX6SX VINING|2000. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- configs/vining_2000_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/vining_2000_defconfig b/configs/vining_2000_defconfig index

[U-Boot] [PATCH 4/8] ARM: imx: vining2000: Convert MMC and block to DM

2019-05-17 Thread Marek Vasut
Enable DM block and DM MMC support on iMX6SX VINING|2000 . Convert board code to match the DM support. This disables USB mass storage support due to missing DM USB, however that will be re-enabled in subsequent patch. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano

[U-Boot] [PATCH 6/8] ARM: imx: vining2000: Enable DM GPIO

2019-05-17 Thread Marek Vasut
Enable DM GPIO support on iMX6SX VINING|2000 and fix up board code where applicable. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- board/softing/vining_2000/vining_2000.c | 1 + configs/vining_2000_defconfig | 1 + 2 files changed, 2

[U-Boot] [PATCH 3/8] ARM: imx: vining2000: Enable DM pin control

2019-05-17 Thread Marek Vasut
Enable DM pin control support on iMX6SX VINING|2000. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- configs/vining_2000_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/vining_2000_defconfig b/configs/vining_2000_defconfig index

[U-Boot] [PATCH 1/8] ARM: imx: Rename VINING|2000

2019-05-17 Thread Marek Vasut
The company Samtec was merged into Softing, migrate the board over to the new name and update copyright headers. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- arch/arm/mach-imx/mx6/Kconfig | 6 +++--- board/{samtec =>

[U-Boot] [PATCH 0/8] ARM: imx: Update VINING|2000 to DM/DT

2019-05-17 Thread Marek Vasut
Update Softing VINING|2000 to DM / DT and remove the warnings. This depends on the following patches / series: http://patchwork.ozlabs.org/patch/1101222/ http://patchwork.ozlabs.org/patch/1101230/ https://patchwork.ozlabs.org/project/uboot/list/?series=108463 Marek Vasut (8): ARM: imx:

[U-Boot] [RFC] spl: imx6: Let spl_boot_device return USDHC1 or USDHC2

2019-05-17 Thread Adam Ford
Currently, when the spl_boot_device checks the boot device, it will only return MMC1 when it's either sd or eMMC regardless of whether or not it's MMC1 or MMC2. This is a problem when booting from MMC2 if MMC isn't being manually configured like in the DM_SPL case with SPL_OF_CONTROL. This patch

[U-Boot] [PATCH] serial: mxc: Add iMX6SX compatible string

2019-05-17 Thread Marek Vasut
Add compatible string for iMX6SX. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- drivers/serial/serial_mxc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index 476df25805..a435e68005 100644

Re: [U-Boot] [PATCH] video: Factor out vidconsole_put_string()

2019-05-17 Thread Anatolij Gustschin
On Fri, 17 May 2019 20:22:31 +0200 Marek Vasut ma...@denx.de wrote: > Pull the vidconsole_put_string() function from DM tests, make it > available to e.g. boards that want to display information on the > LCD on boot. > > Signed-off-by: Marek Vasut > Cc: Anatolij Gustschin Reviewed-by:

[U-Boot] [PATCH 2/2] mx6sx: vining2000: pinmux usdhc4 reset

2019-05-17 Thread Marek Vasut
From: Christoph Fritz This patch configures pinmux for pin usdhc4 reset. Signed-off-by: Christoph Fritz --- board/softing/vining_2000/vining_2000.c | 4 1 file changed, 4 insertions(+) diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c index

Re: [U-Boot] [linux-sunxi] [PATCH 0/2] sunxi: A64: enable first USB port on Pine64 boards

2019-05-17 Thread André Przywara
On 17/05/2019 19:15, Vasily Khoruzhick wrote: > On Wed, May 15, 2019 at 5:46 PM Andre Przywara wrote: >> >> Since the beginning the upper USB port on Pine64 boards (Pine64+, SoPine >> baseboard, Pine64-LTS, Pinebook) was not working under U-Boot. >> This is due to the PHY for those pins being

[U-Boot] [PATCH V2 6/7] ARM: imx: novena: Enable DM PCI

2019-05-17 Thread Marek Vasut
Enable DM PCI support on iMX6Q Novena. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Stefano Babic Cc: Vagrant Cascadian --- V2: New patch --- configs/novena_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/novena_defconfig b/configs/novena_defconfig index

[U-Boot] [PATCH V2 5/7] ARM: imx: novena: Enable DM USB

2019-05-17 Thread Marek Vasut
Enable DM USB support on iMX6Q Novena. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Stefano Babic Cc: Vagrant Cascadian --- V2: No change --- configs/novena_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/novena_defconfig b/configs/novena_defconfig index

[U-Boot] [PATCH V2 4/7] ARM: imx: novena: Convert block devices to DM

2019-05-17 Thread Marek Vasut
Enable DM block, DM MMC and DM SATA support on iMX6Q Novena convert board code to match the DM support. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Stefano Babic Cc: Vagrant Cascadian --- V2: - Drop the ad-hoc sata binding, this is superseded by CONFIG_DWC_AHSATA_AHCI=y resp.

[U-Boot] [PATCH V2 7/7] ARM: imx: novena: Convert to DM VIDEO

2019-05-17 Thread Marek Vasut
Enable DM Video support on iMX6Q Novena and fix minor details to restore previous behavior of the system. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Stefano Babic Cc: Vagrant Cascadian --- V2: Print U-Boot version information on the LCD --- board/kosagi/novena/novena.c | 13

[U-Boot] [PATCH V2 3/7] ARM: imx: novena: Enable DM GPIO

2019-05-17 Thread Marek Vasut
Enable DM GPIO support on iMX6Q Novena and fix up board code where applicable. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Stefano Babic Cc: Vagrant Cascadian --- V2: No change --- board/kosagi/novena/novena.c | 2 ++ board/kosagi/novena/video.c | 3 +++ configs/novena_defconfig |

[U-Boot] [PATCH V2 1/7] ARM: dts: imx: novena: Import Novena DT from Linux

2019-05-17 Thread Marek Vasut
Import iMX6Q Novena device tree from Linux 5.1-rc7 37624b58542f . Enable DT control in full U-Boot . Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Stefano Babic Cc: Vagrant Cascadian --- V2: No change --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6q-novena.dts | 792

[U-Boot] [PATCH V2 0/7] ARM: imx: Update Novena to DM/DT

2019-05-17 Thread Marek Vasut
Update Kosagi Novena to DM / DT and remove the warnings. This depends on the following patches / series: https://patchwork.ozlabs.org/patch/1095618/ https://patchwork.ozlabs.org/patch/1101171/ https://patchwork.ozlabs.org/project/uboot/list/?series=108463 Marek Vasut (7): ARM: dts: imx:

[U-Boot] [PATCH V2 2/7] ARM: imx: novena: Enable DM pin control

2019-05-17 Thread Marek Vasut
Enable DM pin control support on iMX6Q Novena. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Stefano Babic Cc: Vagrant Cascadian --- V2: No change --- configs/novena_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/novena_defconfig b/configs/novena_defconfig

[U-Boot] [PATCH 5/5] pci: imx: Add DM and DT support

2019-05-17 Thread Marek Vasut
Add DM support and support for probing the iMX PCI driver from DT. The legacy non-DM support is retained, however shall be removed once DM PCI is the only option remaining. Signed-off-by: Marek Vasut Cc: Bin Meng Cc: Fabio Estevam Cc: Stefano Babic --- drivers/pci/pcie_imx.c | 111

[U-Boot] [PATCH 3/5] pci: imx: Fix potential 64bit memory access clamping

2019-05-17 Thread Marek Vasut
The driver limits the config space base to 32bit, however it can be 64bit on 64bit iMX hardware too. Remove that limitation. This patch has no impact on the iMX6, which is the only SoC currently supported by this driver. Signed-off-by: Marek Vasut Cc: Bin Meng Cc: Fabio Estevam Cc: Stefano

[U-Boot] [PATCH 4/5] pci: imx: Pass driver private data around

2019-05-17 Thread Marek Vasut
Pass the driver private data around the driver as much as possible, instead of having it as a static global variable. This is done in preparation for the DM conversion, no functional change. Signed-off-by: Marek Vasut Cc: Bin Meng Cc: Fabio Estevam Cc: Stefano Babic ---

[U-Boot] [PATCH 1/5] ARM: imx: Call imx_pcie_remove() only for non-DM PCI driver

2019-05-17 Thread Marek Vasut
The DM iMX PCI driver has DM_FLAG_OS_PREPARE set and will call imx_pcie_remove() from the .remove callback. Do not call it from the architecture code again. Signed-off-by: Marek Vasut Cc: Bin Meng Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/mach-imx/cpu.c | 2 +- 1 file changed, 1

[U-Boot] [PATCH 2/5] pci: imx: Factor out hard-coded register base addresses

2019-05-17 Thread Marek Vasut
Pull out hard-coded register base addresses into driver private structure in preparation for DM conversion. No functional change. Signed-off-by: Marek Vasut Cc: Bin Meng Cc: Fabio Estevam Cc: Stefano Babic --- drivers/pci/pcie_imx.c | 75 +- 1 file

[U-Boot] [PATCH] video: Factor out vidconsole_put_string()

2019-05-17 Thread Marek Vasut
Pull the vidconsole_put_string() function from DM tests, make it available to e.g. boards that want to display information on the LCD on boot. Signed-off-by: Marek Vasut Cc: Anatolij Gustschin --- drivers/video/vidconsole-uclass.c | 17 +++-- include/video_console.h | 16

Re: [U-Boot] [linux-sunxi] [PATCH 0/2] sunxi: A64: enable first USB port on Pine64 boards

2019-05-17 Thread Vasily Khoruzhick
On Wed, May 15, 2019 at 5:46 PM Andre Przywara wrote: > > Since the beginning the upper USB port on Pine64 boards (Pine64+, SoPine > baseboard, Pine64-LTS, Pinebook) was not working under U-Boot. > This is due to the PHY for those pins being shared with the OTG > controller, which we didn't even

Re: [U-Boot] [PATCH v2 0/2] Add 'bcb' command to read/modify/write Android BCB

2019-05-17 Thread Eugeniu Rosca
On Fri, May 17, 2019 at 04:26:23PM +0100, Stephen Finucane wrote: [..] > http://patchwork.ozlabs.org/patch/1099264/ > > We're just waiting for ozlabs to apply that patch. > > Stephen Thanks! -- Best Regards, Eugeniu. ___ U-Boot mailing list

Re: [U-Boot] [PATCH v2 0/2] Add 'bcb' command to read/modify/write Android BCB

2019-05-17 Thread Eugeniu Rosca
Hi All, cc: Stephen, Jeremy FWIW/jFYI, the patchwork frontend appears to mangle/skip spaces in the patch subjects. Examples: - https://patchwork.ozlabs.org/cover/1101106/ - https://patchwork.ozlabs.org/patch/1101108/ - https://patchwork.ozlabs.org/patch/1101107/ The same patches look fine on

Re: [U-Boot] [PATCH 0/2] Add 'bcb' command to read/modify/write Android BCB

2019-05-17 Thread Eugeniu Rosca
Superseded by https://patchwork.ozlabs.org/cover/1101106/ ("[PATCH v2 0/2] Add 'bcb' command to read/modify/write Android BCB") -- Best Regards, Eugeniu. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/1] toradex apalis/colibri: extend CONFIG_SYS_MALLOC_F_LEN

2019-05-17 Thread Marcel Ziswiler
On Fri, 2019-05-17 at 11:52 -0300, Fabio Estevam wrote: > Hi Igor, > > On Fri, May 17, 2019 at 11:49 AM Igor Opaniuk < > igor.opan...@toradex.com> wrote: > > Extend size of the malloc() pool for use before relocation, from > > 0x400 > > (default one) to 0x2000 (CONFIG_SYS_MALLOC_F_LEN=0x2000), >

Re: [U-Boot] [PATCH 1/1] toradex apalis/colibri: extend CONFIG_SYS_MALLOC_F_LEN

2019-05-17 Thread Marcel Ziswiler
On Fri, 2019-05-17 at 11:52 -0300, Fabio Estevam wrote: > Hi Igor, > > On Fri, May 17, 2019 at 11:49 AM Igor Opaniuk < > igor.opan...@toradex.com> wrote: > > Extend size of the malloc() pool for use before relocation, from > > 0x400 > > (default one) to 0x2000 (CONFIG_SYS_MALLOC_F_LEN=0x2000), >

[U-Boot] [PATCH V2 5/8] ARM: imx: dh-imx6: Convert SD/MMC support to DM

2019-05-17 Thread Marek Vasut
Enable DM block and DM MMC support on DHCOM iMX6 PDK2. Convert board code to match the DM support. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- V2: No change --- board/dhelectronics/dh_imx6/dh_imx6.c | 59 +--

[U-Boot] [PATCH V2 4/8] ARM: imx: dh-imx6: Enable DM GPIO

2019-05-17 Thread Marek Vasut
Enable DM GPIO support on DHCOM iMX6 PDK2 and fix up board code where applicable. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- V2: No change --- board/dhelectronics/dh_imx6/dh_imx6.c | 10 ++ configs/dh_imx6_defconfig | 1 + 2 files

[U-Boot] [PATCH V2 2/8] ARM: dts: imx: dh-imx6: Fix SPI CS polarity on DHCOM iMX6 PDK2

2019-05-17 Thread Marek Vasut
The SPI nCS signal is active low, make it so. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- V2: No change --- arch/arm/dts/imx6q-dhcom-som.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imx6q-dhcom-som.dtsi

[U-Boot] [PATCH V2 8/8] ARM: imx: dh-imx6: Convert SPI support to DM

2019-05-17 Thread Marek Vasut
Enable DM SPI and SF support on DHCOM iMX6 PDK2. Convert board code to match the DM support. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- V2: No change --- board/dhelectronics/dh_imx6/dh_imx6.c | 10 -- configs/dh_imx6_defconfig | 4

[U-Boot] [PATCH V2 1/8] ARM: dts: imx: dh-imx6: Import DHCOM iMX6 PDK2 DTs from Linux

2019-05-17 Thread Marek Vasut
Import DHCOM iMX6 PDK2 device tree from Linux 5.1.1 b724e9356404 . Enable DT control in full U-Boot . Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- V2: No change --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6q-dhcom-pdk2.dts | 151

[U-Boot] [PATCH V2 7/8] ARM: imx: dh-imx6: Convert USB support to DM

2019-05-17 Thread Marek Vasut
Enable DM USB host support on DHCOM iMX6 PDK2. Convert board code to match the DM support. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- V2: No change --- configs/dh_imx6_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH V2 6/8] ARM: imx: dh-imx6: Convert SATA support to DM

2019-05-17 Thread Marek Vasut
Enable DM SATA support on DHCOM iMX6 PDK2. Convert board code to match the DM support. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- V2: Drop the ad-hoc sata binding, this is superseded by CONFIG_DWC_AHSATA_AHCI=y resp. drivers/ata/dwc_ahsata.c ---

[U-Boot] [PATCH V2 3/8] ARM: imx: dh-imx6: Enable DM pin control

2019-05-17 Thread Marek Vasut
Enable DM pin control support on DHCOM iMX6 PDK2. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Ludwig Zenz Cc: Stefano Babic --- V2: No change --- configs/dh_imx6_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/dh_imx6_defconfig b/configs/dh_imx6_defconfig index

Re: [U-Boot] [PATCH 1/2] mtd: mxs_nand_spl: fix nand_command protocol violation

2019-05-17 Thread Michael Nazzareno Trimarchi
Hi Stefano On Fri, May 17, 2019 at 4:52 PM Stefano Babic wrote: > > On 14/05/19 22:56, Andrea Scian - DAVE Embedded Systems wrote: > > > > Hi Michael, > > On 14/05/19 20:44, Michael Nazzareno Trimarchi wrote: > >> Hi all > >> > >> On Tue, Jan 29, 2019 at 3:40 PM Andrea Scian > >> wrote: > >>> >

Re: [U-Boot] [PATCH 1/1] toradex apalis/colibri: extend CONFIG_SYS_MALLOC_F_LEN

2019-05-17 Thread Fabio Estevam
Hi Igor, On Fri, May 17, 2019 at 11:49 AM Igor Opaniuk wrote: > > Extend size of the malloc() pool for use before relocation, from 0x400 > (default one) to 0x2000 (CONFIG_SYS_MALLOC_F_LEN=0x2000), > as adding of DM_FLAG_PRE_RELOC flag to simple-bus driver introduced a > regression on multiple

Re: [U-Boot] [PATCH 1/1] toradex apalis/colibri: extend CONFIG_SYS_MALLOC_F_LEN

2019-05-17 Thread Bin Meng
On Fri, May 17, 2019 at 10:49 PM Igor Opaniuk wrote: > > Extend size of the malloc() pool for use before relocation, from 0x400 > (default one) to 0x2000 (CONFIG_SYS_MALLOC_F_LEN=0x2000), > as adding of DM_FLAG_PRE_RELOC flag to simple-bus driver introduced a > regression on multiple boards,

Re: [U-Boot] [PATCH 1/2] mtd: mxs_nand_spl: fix nand_command protocol violation

2019-05-17 Thread Stefano Babic
On 14/05/19 22:56, Andrea Scian - DAVE Embedded Systems wrote: > > Hi Michael, > On 14/05/19 20:44, Michael Nazzareno Trimarchi wrote: >> Hi all >> >> On Tue, Jan 29, 2019 at 3:40 PM Andrea Scian >> wrote: >>> >>> mxs_nand_command() implementation assume that it's working with a >>> LP NAND,

[U-Boot] [PATCH 1/1] toradex apalis/colibri: extend CONFIG_SYS_MALLOC_F_LEN

2019-05-17 Thread Igor Opaniuk
Extend size of the malloc() pool for use before relocation, from 0x400 (default one) to 0x2000 (CONFIG_SYS_MALLOC_F_LEN=0x2000), as adding of DM_FLAG_PRE_RELOC flag to simple-bus driver introduced a regression on multiple boards, because of more intensive usage of malloc() pool and therefore a

Re: [U-Boot] U-Boot PXA support

2019-05-17 Thread Marcel Ziswiler
On Thu, 2019-05-16 at 13:49 -0400, Tom Rini wrote: > On Thu, May 16, 2019 at 02:53:55PM +, Marcel Ziswiler wrote: > > Hi Tom > > > > On Mon, 2019-05-06 at 09:26 -0400, Tom Rini wrote: > > > Hey folks, > ... > > > So, what should we do about this? Is there still active interest > > > in > > >

[U-Boot] [PATCH v2 1/2] include: android_bootloader_message.h: Minimize the diff to AOSP

2019-05-17 Thread Eugeniu Rosca
Perform the following updates: - Relocate the commit id from the file to the description of U-Boot commit. The AOSP commit is c784ce50e8c10eaf70e1f97e24e8324aef45faf5. This is done to avoid stale references in the file itself. The reasoning is in

[U-Boot] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields

2019-05-17 Thread Eugeniu Rosca
'Bootloader Control Block' (BCB) is a well established term/acronym in the Android namespace which refers to a location in a dedicated raw (i.e. FS-unaware) flash (e.g. eMMC) partition, usually called "misc", which is used as media for exchanging messages between Android userspace (particularly

[U-Boot] [PATCH v2 0/2] Add 'bcb' command to read/modify/write Android BCB

2019-05-17 Thread Eugeniu Rosca
The motivation behind the 'bcb' command is largely explained in the second patch. The other patch performs polishing of https://patchwork.ozlabs.org/patch/1099689/, which is a hard prerequisite for this series. v2: - [Heinrich Schuchardt] Implement sub-commands via U_BOOT_CMD_MKENT. - Polished

Re: [U-Boot] [EXT] Re: [PATCH v2] mtd: spi: Improve spi_nor_write_data() implementation

2019-05-17 Thread Vignesh Raghavendra
Hi Ashish, > Hi Vignesh > > Is this taken care now, plain text version was posted here > http://patchwork.ozlabs.org/patch/1090121/ > A similar patch[1] was proposed in meantime which has been merged to mainline U-Boot. So this issue must now be resolved. Let me know if the issue still

[U-Boot] [PATCH] dm: arm: bcmstb: Enable driver model MMC support

2019-05-17 Thread Thomas Fitzsimmons
For bcm7445 and bcm7260, this patch enables CONFIG_DM_MMC and updates the bcmstb SDHCI driver to use the new driver model. This allows removal of SDHCI configuration handling from bcmstb.c, and eliminates a board removal compile warning. Signed-off-by: Thomas Fitzsimmons ---

Re: [U-Boot] [PATCH] dm: arm: bcmstb: Enable driver model MMC support

2019-05-17 Thread Stefan Roese
On 17.05.19 14:17, Thomas Fitzsimmons wrote: For bcm7445 and bcm7260, this patch enables CONFIG_DM_MMC and updates the bcmstb SDHCI driver to use the new driver model. This allows removal of SDHCI configuration handling from bcmstb.c, and eliminates a board removal compile warning.

[U-Boot] [PATCH v2 6/6] configs: stm32mp15: Enable Ethernet feature

2019-05-17 Thread Christophe Roullier
This allows to enable Ethernet and use driver for Synopsys Ethernet QoS device Signed-off-by: Christophe Roullier --- Changes in v2: -remark from Joe Hershberger to replace "int interface" with "phy_interface_t interface" and manage return values "-1", "0" with PHY_INTERFACE_MODE_NONE and

[U-Boot] [PATCH v2 5/6] stm32mp1: Add Ethernet support for stm32mp1 board

2019-05-17 Thread Christophe Roullier
Add default SERVERIP address Enable noncached memory region required by ethernet driver Add PXE support Signed-off-by: Christophe Roullier --- Changes in v2: None include/configs/stm32mp1.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH v4 12/13] clk: Port Linux common clock framework [CCF] for imx6q to U-boot (tag: 5.0-rc3)

2019-05-17 Thread Lukasz Majewski
On Fri, 17 May 2019 07:31:38 -0500 Adam Ford wrote: > On Thu, May 16, 2019 at 9:48 PM Bin Meng wrote: > > > > Hi Lukasz, > > > > On Fri, May 17, 2019 at 6:16 AM Lukasz Majewski > > wrote: > > > > > > This commit brings the files from Linux kernel to provide clocks > > > support as it is used

[U-Boot] [PATCH v2 0/6] - Add Ethernet support for stm32mpu

2019-05-17 Thread Christophe Roullier
Support all PHY config: PHY_MODE (MII,GMII, RMII, RGMII) Phy wo crystal (25Mhz and 50 Mhz), No 125Mhz from PHY config Changes in v2: -remark from Joe Hershberger to replace "int interface" with "phy_interface_t interface" and manage return values "-1", "0" with

[U-Boot] [PATCH v2 4/6] ARM: dts: stm32: Add Ethernet support on stm32mp1

2019-05-17 Thread Christophe Roullier
This patch add Ethernet support on stm32mp157 eval board Signed-off-by: Christophe Roullier --- Changes in v2: None arch/arm/dts/stm32mp157-pinctrl.dtsi | 9 +++-- arch/arm/dts/stm32mp157c-ev1.dts | 2 +- arch/arm/dts/stm32mp157c.dtsi| 16 ++-- 3 files changed,

[U-Boot] [PATCH v2 3/6] net: dwc_eth_qos: add Ethernet stm32mp1 support

2019-05-17 Thread Christophe Roullier
Synopsys GMAC 4.20 is used. And Phy mode for eval and disco is RMII with PHY Realtek RTL8211 (RGMII) We also support some other PHY config on stm32mp157c PHY_MODE(MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz and 50Mhz), No 125Mhz from PHY config Signed-off-by: Christophe

[U-Boot] [PATCH v2 1/6] stm32mp1: clk: use the correct identifier for ethck

2019-05-17 Thread Christophe Roullier
From: Patrick Delaunay ETHCK_K is the identifier the kernel clock for ETH in kernel binding, selected by ETHKSELR / gated by ETHCKEN = BIT(7). U-Boot driver need to use the same identifier, so change ETHCK to ETHCK_K. Signed-off-by: Patrick Delaunay Signed-off-by: Christophe Roullier ---

[U-Boot] [PATCH v2 2/6] board: stm32mp1: Add board_interface_eth_init

2019-05-17 Thread Christophe Roullier
Called to configure Ethernet PHY interface selection and configure clock selection in RCC Ethernet clock tree. Signed-off-by: Christophe Roullier --- Changes in v2: None board/st/stm32mp1/stm32mp1.c | 68 ++-- 1 file changed, 65 insertions(+), 3 deletions(-)

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-17 Thread Adam Ford
On Fri, May 17, 2019 at 7:36 AM Sekhar Nori wrote: > > Hi Adam, > > MMC/SD boot is broken on OMAP-L138 LCDK. This is since v2018.11. > v2018.09 is fine. > > The first breakage occurred with commit 21af33ed0319 ("ARM: davinci: > omapl138_lcdk: Enable DM_MMC"). This commit moved to DM_MMC for

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-17 Thread Lukasz Majewski
On Fri, 17 May 2019 09:39:31 -0300 Fabio Estevam wrote: > On Thu, May 16, 2019 at 11:29 PM Peng Fan wrote: > > > You could enable DEBUG in SPL, and disable SPL_SDP because of size > > will exceeds. Then see what happends. > > Even without DEBUG enabled we get useful error messages: > >

Re: [U-Boot] [PATCH v3] spi: Zap sh_spi driver-related code

2019-05-17 Thread Marek Vasut
On 5/17/19 8:39 AM, Jagan Teki wrote: > On Fri, May 17, 2019 at 2:06 AM Marek Vasut wrote: >> >> On 4/19/19 9:00 AM, Jagan Teki wrote: >> >> Hello Jagan, >> >>> Dropped >>> - sh_spi driver >>> - CONFIG_SH_SPI,SH_SPI_BASE >>> >>> Dropped due to: >>> - no active updates >>> - no dm conversion >>> -

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-17 Thread Fabio Estevam
On Thu, May 16, 2019 at 11:29 PM Peng Fan wrote: > You could enable DEBUG in SPL, and disable SPL_SDP because of size will > exceeds. > Then see what happends. Even without DEBUG enabled we get useful error messages: U-Boot SPL 2019.07-rc2 (May 17 2019 - 09:30:33 -0300) Trying to boot from

[U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-17 Thread Sekhar Nori
Hi Adam, MMC/SD boot is broken on OMAP-L138 LCDK. This is since v2018.11. v2018.09 is fine. The first breakage occurred with commit 21af33ed0319 ("ARM: davinci: omapl138_lcdk: Enable DM_MMC"). This commit moved to DM_MMC for U-Boot while keeping legacy mode for SPL. The "#ifndef

  1   2   >