[U-Boot] [PATCH 08/12] ARM: tegra: Unify Tegra186 builds

2019-03-08 Thread Thierry Reding
From: Thierry Reding Tegra186 build are currently dealt with in very special ways, which is because Tegra186 is fundamentally different in many respects. It is no longer necessary to do many of the low-level programming because early boot firmware will already have taken care of it

[U-Boot] [PATCH 10/12] ARM: tegra: Implement cboot_save_boot_params() in C

2019-03-08 Thread Thierry Reding
From: Thierry Reding This is easier to deal with and works just as well for this simple function. Signed-off-by: Thierry Reding --- arch/arm/mach-tegra/Makefile | 2 +- arch/arm/mach-tegra/cboot.c| 12 arch/arm/mach-tegra/cboot_ll.S | 20 3 files

[U-Boot] [PATCH 12/12] ARM: tegra: Implement cboot_get_ethaddr()

2019-03-08 Thread Thierry Reding
From: Thierry Reding This function will attempt to look up an ethernet address in the DTB that was passed in from cboot. It does so by first trying to locate the primary ethernet device for the board (identified by the "ethernet" alias) and if found, reads the "local-mac-addres

[U-Boot] [PATCH 1/3] net: eth-uclass: Write MAC address to hardware after probe

2019-03-08 Thread Thierry Reding
From: Thierry Reding In order for the device to use the proper MAC address, which can have been configured in the environment prior to the device being registered, ensure that the MAC address is written after the device has been probed. For devices that are registered before the network stack is

[U-Boot] [PATCH 2/3] net: rtl8169: Implement ->hwaddr_write() callback

2019-03-08 Thread Thierry Reding
From: Thierry Reding Implement this callback that allows the MAC address to be set for the Ethernet card. This is necessary in order for the device to be able to receive packets for the MAC address that U-Boot advertises. Signed-off-by: Thierry Reding --- drivers/net/rtl8169.c | 18

[U-Boot] [PATCH 3/3] net: rtl8169: Support RTL-8168h/8111h

2019-03-08 Thread Thierry Reding
From: Thierry Reding This version of the RTL-8168 is present on some development boards and is compatible with this driver. Add support for identifying this version of the chip so that U-Boot won't complain about it being unknown. Signed-off-by: Thierry Reding --- drivers/net/rtl8169.

[U-Boot] [PATCH] p2371-2180: Build position independent binary

2019-03-08 Thread Thierry Reding
From: Thierry Reding In order to support chainloading of U-Boot by an earlier bootloader, make sure the binary is position independent, so that the earlier boot- loader can relocate it if necessary. Signed-off-by: Thierry Reding --- configs/p2371-2180_defconfig | 1 + 1 file changed, 1

[U-Boot] [PATCH 1/6] fdtdec: Add cpu_to_fdt_{addr,size}() macros

2019-03-08 Thread Thierry Reding
From: Thierry Reding These macros are useful for converting the endianness of variables of type fdt_addr_t and fdt_size_t. Signed-off-by: Thierry Reding --- include/fdtdec.h | 4 1 file changed, 4 insertions(+) diff --git a/include/fdtdec.h b/include/fdtdec.h index b7e35cd87c55

[U-Boot] [PATCH 4/6] fdtdec: Implement fdtdec_add_reserved_memory()

2019-03-08 Thread Thierry Reding
From: Thierry Reding This function can be used to add subnodes in the /reserved-memory node. Signed-off-by: Thierry Reding --- include/fdtdec.h | 17 + lib/fdtdec.c | 158 +++ 2 files changed, 175 insertions(+) diff --git a/include

[U-Boot] [PATCH 2/6] fdtdec: Implement fdtdec_get_max_phandle()

2019-03-08 Thread Thierry Reding
From: Thierry Reding This function allows looking up the highest phandle value stored in a device tree, which is useful to determine the next best phandle value for new nodes. Signed-off-by: Thierry Reding --- include/fdtdec.h | 12 lib/fdtdec.c | 28

[U-Boot] [PATCH 6/6] p2371-2180: Add support for framebuffer carveouts

2019-03-08 Thread Thierry Reding
From: Thierry Reding If early firmware initialized the display hardware and the display controllers are scanning out a framebuffer (e.g. a splash screen), make sure to pass information about the memory location of that framebuffer to the kernel before booting to avoid the kernel from using that

[U-Boot] [PATCH 3/6] fdtdec: Implement fdtdec_set_phandle()

2019-03-08 Thread Thierry Reding
From: Thierry Reding This function can be used to set a phandle for a given node. Signed-off-by: Thierry Reding --- include/fdtdec.h | 11 +++ lib/fdtdec.c | 16 2 files changed, 27 insertions(+) diff --git a/include/fdtdec.h b/include/fdtdec.h index 5eb3c0c237a9

[U-Boot] [PATCH 5/6] fdtdec: Implement carveout support functions

2019-03-08 Thread Thierry Reding
From: Thierry Reding The fdtdec_get_carveout() and fdtdec_set_carveout() function can be used to read a carveout from a given node or add a carveout to a given node using the standard device tree bindings (involving reserved-memory nodes and the memory-region property). Signed-off-by: Thierry

Re: [U-Boot] [PATCH 2/6] fdtdec: Implement fdtdec_get_max_phandle()

2019-03-11 Thread Thierry Reding
On Sun, Mar 10, 2019 at 03:51:31PM -0600, Simon Glass wrote: > Hi Thierry, > > On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > > > From: Thierry Reding > > > > This function allows looking up the highest phandle value stored in a > > device tree

Re: [U-Boot] [PATCH 3/6] fdtdec: Implement fdtdec_set_phandle()

2019-03-11 Thread Thierry Reding
On Sun, Mar 10, 2019 at 03:51:40PM -0600, Simon Glass wrote: > Hi Thierry, > > On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > > > From: Thierry Reding > > > > This function can be used to set a phandle for a given node. > > > > Signed

Re: [U-Boot] [PATCH 4/6] fdtdec: Implement fdtdec_add_reserved_memory()

2019-03-11 Thread Thierry Reding
On Sun, Mar 10, 2019 at 03:51:42PM -0600, Simon Glass wrote: > On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > > > From: Thierry Reding > > > > This function can be used to add subnodes in the /reserved-memory node. > > > > Signed-off-by: Thierr

[U-Boot] [PATCH 1/3] vsprintf: Support phys_addr_t specifier unconditionally

2019-03-12 Thread Thierry Reding
From: Thierry Reding When phys_addr_t printf specifier support was first introduced in commit 1eebd14b7902 ("vsprintf: Add modifier for phys_addr_t"), it was enabled only if CONFIG_CMD_NET was selected. Since physical addresses are not unique to networking support it doesn'

[U-Boot] [PATCH 2/3] sandbox: Use correct phys_{addr, size}_t for PHYS_64BIT=y

2019-03-12 Thread Thierry Reding
From: Thierry Reding If 64-bit physical addresses support is enabled, make sure the sandox defines the correct types for phys_addr_t and phys_size_t. Signed-off-by: Thierry Reding --- arch/sandbox/include/asm/types.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff

[U-Boot] [PATCH 3/3] sandbox: Properly print physical addresses

2019-03-12 Thread Thierry Reding
From: Thierry Reding Use the %pap printf specifier to print physical addresses. The physical address is passed by reference and hence avoids the need to play tricks with the preprocessor to use the correct specifier. Signed-off-by: Thierry Reding --- arch/sandbox/lib/pci_io.c | 2 +- 1 file

[U-Boot] [PATCH v2 01/11] fdtdec: Add cpu_to_fdt_{addr, size}() macros

2019-03-12 Thread Thierry Reding
From: Thierry Reding These macros are useful for converting the endianness of variables of type fdt_addr_t and fdt_size_t. Reviewed-by: Simon Glass Signed-off-by: Thierry Reding --- Changes in v2: - add Reviewed-by from Simon include/fdtdec.h | 4 1 file changed, 4 insertions(+) diff

[U-Boot] [PATCH v2 02/11] fdtdec: Add fdt_{addr, size}_unpack() helpers

2019-03-12 Thread Thierry Reding
From: Thierry Reding These helpers can be used to unpack variables of type fdt_addr_t and fdt_size_t into a pair of 32-bit variables. This is useful in cases where such variables need to be written to properties (such as "reg") of a device tree node where they need to be split

[U-Boot] [PATCH v2 03/11] fdtdec: Implement fdtdec_generate_phandle()

2019-03-12 Thread Thierry Reding
From: Thierry Reding This function generates a new, unused phandle by looking up the highest phandle value stored in a device tree and adding one. Signed-off-by: Thierry Reding --- Changes in v2: - rename to fdtdec_generate_phandle() include/fdtdec.h | 12 lib/fdtdec.c | 28

[U-Boot] [PATCH v2 04/11] fdtdec: Implement fdtdec_set_phandle()

2019-03-12 Thread Thierry Reding
From: Thierry Reding This function can be used to set a phandle for a given node. Signed-off-by: Thierry Reding --- Changes in v2: - don't emit deprecated linux,phandle property include/fdtdec.h | 11 +++ lib/fdtdec.c | 7 +++ 2 files changed, 18 insertions(+) diff --

[U-Boot] [PATCH v2 05/11] fdtdec: Implement fdtdec_add_reserved_memory()

2019-03-12 Thread Thierry Reding
From: Thierry Reding This function can be used to add subnodes in the /reserved-memory node. Reviewed-by: Simon Glass Signed-off-by: Thierry Reding --- Changes in v2: - split fdt_{addr,size}_unpack() helpers into separate patch - use name@x,y notation only if the upper cell is > 0 - use de

[U-Boot] [PATCH v2 07/11] fdtdec: Add Kconfig symbol for tests

2019-03-12 Thread Thierry Reding
From: Thierry Reding Runtime tests are provided as a test_fdtdec command implementation. Add a Kconfig symbol that allows this command to be built so that the tests can be used. Signed-off-by: Thierry Reding --- Changes in v2: - new patch lib/Kconfig | 4 1 file changed, 4 insertions

[U-Boot] [PATCH v2 08/11] fdtdec: test: Fix build warning

2019-03-12 Thread Thierry Reding
From: Thierry Reding Hide the declaration of the "fd" variable When not building a DEBUG configuration, to avoid the variable being unused. Signed-off-by: Thierry Reding --- Changes in v2: - new patch lib/fdtdec_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fdtde

[U-Boot] [PATCH v2 11/11] sandbox: Enable fdtdec tests

2019-03-12 Thread Thierry Reding
From: Thierry Reding Enable fdtdec tests on sandbox configurations so that they can be run to validate the fdtdec implementation. Signed-off-by: Thierry Reding --- Changes in v2: - new patch configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + 2 files changed, 2 insertions

[U-Boot] [PATCH v2 06/11] fdtdec: Implement carveout support functions

2019-03-12 Thread Thierry Reding
From: Thierry Reding The fdtdec_get_carveout() and fdtdec_set_carveout() function can be used to read a carveout from a given node or add a carveout to a given node using the standard device tree bindings (involving reserved-memory nodes and the memory-region property). Reviewed-by: Simon Glass

[U-Boot] [PATCH v2 10/11] fdtdec: test: Add carveout tests

2019-03-12 Thread Thierry Reding
From: Thierry Reding Implement carveout tests for 32-bit and 64-bit builds. Signed-off-by: Thierry Reding --- Changes in v2: - new patch lib/fdtdec_test.c | 152 ++ 1 file changed, 152 insertions(+) diff --git a/lib/fdtdec_test.c b/lib

[U-Boot] [PATCH v2 09/11] fdtdec: test: Use compound statement macros

2019-03-12 Thread Thierry Reding
From: Thierry Reding This eliminates the need for intermediate helper functions and allow the macros to return a value so that it can be used subsequently. Signed-off-by: Thierry Reding --- Changes in v2: - new patch lib/fdtdec_test.c | 64 --- 1

[U-Boot] [PATCH] net: rtl8169: Support RTL-8168c/8111c

2019-09-11 Thread Thierry Reding
From: Thierry Reding This version of the RTL-8168 chip can be found on some add-in cards sold by CSL-Computer GmbH & Co. KG. The chip isn't special in any way, but it needs to have the ChipCmd register programmed after the DMA descriptors have been set up, so make sure that happens by

Re: [PATCH v6 0/3] Timer support for ARM Tegra

2023-01-25 Thread Thierry Reding
On Tue, Jan 24, 2023 at 08:57:48AM +0200, Svyatoslav Ryhel wrote: > - ARM: tegra: remap clock_osc_freq for all Tegra family > Enum clock_osc_freq was designed to use only with T20. > This patch remaps it to use additional frequencies, added in > T30+ SoC while maintaining backwards compatibility wi

Re: [PATCH v6 0/3] Timer support for ARM Tegra

2023-01-26 Thread Thierry Reding
On Wed, Jan 25, 2023 at 05:41:08PM +0100, Thierry Reding wrote: > On Tue, Jan 24, 2023 at 08:57:48AM +0200, Svyatoslav Ryhel wrote: > > - ARM: tegra: remap clock_osc_freq for all Tegra family > > Enum clock_osc_freq was designed to use only with T20. > > This patch remaps

Re: [PATCH v6 0/3] Timer support for ARM Tegra

2023-01-26 Thread Thierry Reding
On Thu, Jan 26, 2023 at 11:34:59AM +0100, Thierry Reding wrote: > On Wed, Jan 25, 2023 at 05:41:08PM +0100, Thierry Reding wrote: > > On Tue, Jan 24, 2023 at 08:57:48AM +0200, Svyatoslav Ryhel wrote: > > > - ARM: tegra: remap clock_osc_freq for all Tegra family > > &

Re: [PATCH v6 0/3] Timer support for ARM Tegra

2023-01-26 Thread Thierry Reding
On Thu, Jan 26, 2023 at 07:08:54PM +0200, Svyatoslav Ryhel wrote: > чт, 26 січ. 2023 р. о 12:35 Thierry Reding пише: > > > > On Wed, Jan 25, 2023 at 05:41:08PM +0100, Thierry Reding wrote: > > > On Tue, Jan 24, 2023 at 08:57:48AM +0200, Svyatoslav Ryhel wrote: >

Re: [PATCH v6 0/3] Timer support for ARM Tegra

2023-01-26 Thread Thierry Reding
On Thu, Jan 26, 2023 at 07:12:34PM +0200, Svyatoslav Ryhel wrote: > I may implement changes of Thierry Reding in a proper form as a > separate patch or include in existing (depends on his choice). I think it's ultimately better if this is properly integrated into the series because

Re: [PATCH v7 0/3] Timer support for ARM Tegra

2023-01-27 Thread Thierry Reding
On Fri, Jan 27, 2023 at 09:13:09AM +0200, Svyatoslav Ryhel wrote: > - ARM: tegra: remap clock_osc_freq for all Tegra family > Enum clock_osc_freq was designed to use only with T20. > This patch remaps it to use additional frequencies, added in > T30+ SoC while maintaining backwards compatibility wi

[PATCH 1/2] ARM: tegra: Enable poweroff command on Jetson TX1 and Jetson Nano

2023-01-31 Thread Thierry Reding
From: Thierry Reding This command is useful to power off the system from within U-Boot. Signed-off-by: Thierry Reding --- configs/p2371-2180_defconfig | 1 + configs/p3450-_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/p2371-2180_defconfig b/configs/p2371

[PATCH 2/2] ARM: tegra: Enable poweroff command on Jetson TX2

2023-01-31 Thread Thierry Reding
From: Thierry Reding This command is useful to power off the system from within U-Boot. Signed-off-by: Thierry Reding --- configs/p2771--000_defconfig | 1 + configs/p2771--500_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/p2771--000_defconfig b/configs

Re: [PATCH v7 0/3] Timer support for ARM Tegra

2023-01-31 Thread Thierry Reding
On Fri, Jan 27, 2023 at 10:27:57PM +0200, Svyatoslav R. wrote: > On 1/27/23 19:15, Thierry Reding wrote: > > On Fri, Jan 27, 2023 at 09:13:09AM +0200, Svyatoslav Ryhel wrote: > > > - ARM: tegra: remap clock_osc_freq for all Tegra family > > > Enum clock_osc_freq was de

[PATCH 0/9] ARM: tegra: Support EMC frequency tables on Tegra210

2021-09-03 Thread Thierry Reding
From: Thierry Reding Hi, The first handful of patches are preparatory work to make the fdtdec carveout helpers a bit more flexible and clean them up a little bit while the final 4 patches make use of the improved helpers to copy the EMC frequency tables that can be passed to U-Boot from earlier

[PATCH 1/9] fdtdec: Allow using fdtdec_get_carveout() in loops

2021-09-03 Thread Thierry Reding
From: Thierry Reding In order make it possible to use fdtdec_get_carveout() in loops, return FDT_ERR_NOTFOUND when the passed-in index exceeds the number of phandles present in the given property. Signed-off-by: Thierry Reding --- lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/9] fdtdec: Support retrieving the name of a carveout

2021-09-03 Thread Thierry Reding
From: Thierry Reding When retrieving a given carveout for a device, allow callers to query the name. This helps differentiating between carveouts when there are more than one. This is also useful when copying carveouts to help assign a meaningful name that cannot always be guessed. Signed-off

[PATCH 4/9] fdtdec: Reorder fdtdec_set_carveout() parameters for consistency

2021-09-03 Thread Thierry Reding
From: Thierry Reding The fdtdec_set_carveout() function's parameters are inconsistent with the parameters passed to fdtdec_add_reserved_memory(). Fix up the order to make it more consistent. Signed-off-by: Thierry Reding --- board/nvidia/p2371-2180/p2371-2180.c | 4 ++-- board/nvidia/

[PATCH 3/9] fdtdec: Support compatible string list for reserved memory

2021-09-03 Thread Thierry Reding
From: Thierry Reding Reserved memory nodes can have a compatible string list to identify the type of reserved memory that they represent. Support specifying an optional compatible string list when creating these nodes. Signed-off-by: Thierry Reding --- arch/arm/cpu/armv8/fsl-layerscape/soc.c

[PATCH 7/9] ARM: tegra: Support EMC frequency tables on Tegra210

2021-09-03 Thread Thierry Reding
From: Thierry Reding The EMC frequency tables are created from a training sequence performed during early boot and passed in via a reserved memory region by nvtboot. Copy this table to the kernel DTB so that the kernel can use it to scale the EMC frequency at runtime. Note that early

[PATCH 9/9] ARM: tegra: Copy memory-region-names property

2021-09-03 Thread Thierry Reding
From: Thierry Reding If multiple entries are present in the memory-region property, this new memory-region-names property can be used to specify names for each of them so that they can be more easily distinguished. Signed-off-by: Thierry Reding --- arch/arm/mach-tegra/dt-setup.c | 31

[PATCH 6/9] ARM: tegra: Support multiple reserved memory regions

2021-09-03 Thread Thierry Reding
From: Thierry Reding Support multiple reserved memory regions per device to support platforms that use both a framebuffer and color conversion lookup table for early boot display splash. While at it, also pass along the name, compatible strings and flags of the carveouts. Signed-off-by

[PATCH 5/9] fdtdec: Support reserved-memory flags

2021-09-03 Thread Thierry Reding
From: Thierry Reding Reserved memory nodes can have additional flags. Support reading and writing these flags to ensure that reserved memory nodes can be properly parsed and emitted. This converts support for the existing "no-map" flag to avoid extending the argumen

[PATCH 8/9] ARM: tegra: Refactor DT update helpers

2021-09-03 Thread Thierry Reding
From: Thierry Reding Rather than duplicate the Ethernet MAC address and carveout updating code for each board, move it to a common location and make it more reusable. Signed-off-by: Thierry Reding --- arch/arm/include/asm/arch-tegra/board.h | 10 ++ arch/arm/mach-tegra/dt-setup.c

Re: [PATCH v7 3/7] ARM: tegra: add SoC UID calculation function

2023-06-23 Thread Thierry Reding
On Fri, Jun 23, 2023 at 08:55:56AM +0300, Svyatoslav Ryhel wrote: > This is a small tool for calculation of SoC UID based on the same > Linux function. It can be further used for generation of device > unique data like mac address or exposing it as serial number. It's a very bad idea to use the So

Re: [PATCH v7 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-23 Thread Thierry Reding
On Fri, Jun 23, 2023 at 08:55:57AM +0300, Svyatoslav Ryhel wrote: [...] > diff --git a/board/asus/transformer-t30/pinmux-config-transformer.h > b/board/asus/transformer-t30/pinmux-config-transformer.h > new file mode 100644 > index 00..96ff45d375 > --- /dev/null > +++ b/board/asus/transfor

Re: [PATCH v7 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-23 Thread Thierry Reding
On Fri, Jun 23, 2023 at 02:51:54PM +0300, Svyatoslav Ryhel wrote: > > > 23 червня 2023 р. 14:32:30 GMT+03:00, Thierry Reding > написав(-ла): > >On Fri, Jun 23, 2023 at 08:55:57AM +0300, Svyatoslav Ryhel wrote: > >[...] > >> diff --git a/board/asus/transforme

Re: [PATCH v7 3/7] ARM: tegra: add SoC UID calculation function

2023-06-23 Thread Thierry Reding
On Fri, Jun 23, 2023 at 02:46:54PM +0300, Svyatoslav Ryhel wrote: > > > 23 червня 2023 р. 14:24:37 GMT+03:00, Thierry Reding > написав(-ла): > >On Fri, Jun 23, 2023 at 08:55:56AM +0300, Svyatoslav Ryhel wrote: > >> This is a small tool for calculation of SoC UID b

Re: [PATCH v7 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-23 Thread Thierry Reding
On Fri, Jun 23, 2023 at 05:19:09PM +0300, Svyatoslav Ryhel wrote: > > > 23 червня 2023 р. 17:11:35 GMT+03:00, Thierry Reding > написав(-ла): > >On Fri, Jun 23, 2023 at 02:51:54PM +0300, Svyatoslav Ryhel wrote: > >> > >> > >> 23 червня 2023 р. 14:3

<    3   4   5   6   7   8