[PATCH] arm: sunxi: dram: restore previous value in DRAM

2022-02-13 Thread Andrei Lalaev
It's better to restore previous value at offset because otherwise the function can corrupt memory reserved by Linux (e.g. ramoops). Signed-off-by: Andrei Lalaev --- arch/arm/mach-sunxi/dram_helpers.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/arch/arm

[PATCH] board: ast2500/ast2600: initialize LEDs

2021-11-23 Thread Andrei Kartashev
Add option to initialize LEDs in board_init stage for aspeed-based boards. Signed-off-by: Andrei Kartashev --- board/aspeed/evb_ast2500/evb_ast2500.c | 8 board/aspeed/evb_ast2600/evb_ast2600.c | 8 2 files changed, 16 insertions(+) diff --git a/board/aspeed/evb_ast2500

Re: [U-Boot] [PATCH] rpi4: enable dram bank initialization

2019-09-09 Thread Andrei Gherzan
;   +#ifdef CONFIG_BCM2711 >>> +int dram_init_banksize(void) >>> +{ >>> +    return fdtdec_decode_ram_size(gd->fdt_blob, NULL, 0, NULL, >> >> This also depends on CONFIG_OF_BOARD, no? >> > I would need to double check if at this point gd->fdt_blob

Re: [U-Boot] [GIT PULL] rpi: updates for v2019.10

2019-09-09 Thread Andrei Gherzan
hias >> >> [1] https://travis-ci.org/mbgg/u-boot/builds/581754574 >> [2] https://travis-ci.org/mbgg/u-boot/builds/581603847 >> > Applied to u-boot/master, thanks! Great news. -- Andrei Gherzan gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 2/8] ARM: bcm283x: Add BCM283x_BASE define

2019-07-26 Thread Andrei Gherzan
Hi, On 26/07/2019 13.04, Alexander Graf wrote: > > > On 26.07.19 13:55, Matthias Brugger wrote: >> >> >> On 26/07/2019 13:16, Alexander Graf wrote: >>> >>> >>> On 24.07.19 16:39, Andrei Gherzan wrote: >>>> From: Matthias Brugger &

[U-Boot] [PATCH v2 7/8] RPI: Add memory map for bcm2838

2019-07-24 Thread Andrei Gherzan
Define the memory map for the BCM2838 based on the dt configuration available in the Raspberry Pi kernel fork. Signed-off-by: Andrei Gherzan --- board/raspberrypi/rpi/rpi.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/board/raspberrypi/rpi

[U-Boot] [PATCH v2 5/8] ARM: bcm283x: Include definition for additional emmc clock

2019-07-24 Thread Andrei Gherzan
This clock has a different mbox ID so have this included in the relevant header file. Signed-off-by: Andrei Gherzan --- arch/arm/mach-bcm283x/include/mach/mbox.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h b/arch/arm/mach-bcm283x/include/mach

[U-Boot] [PATCH v2 3/8] ARM: bcm283x: Define configs for RaspberryPi 4

2019-07-24 Thread Andrei Gherzan
Define two target configs for Raspberry Pi 4 (32 and 64bit) and the corresponding BCM2838* configs. Be aware of the current limitation in firmware which requires an explicit configuration to force the arm in 64bit mode when the respective target is used. Signed-off-by: Andrei Gherzan Signed-off

[U-Boot] [PATCH v2 6/8] mmc: bcm283x: Add support for bcm2711 device in bcm2835_sdhci

2019-07-24 Thread Andrei Gherzan
From: Matthias Brugger The bcm2711 has two emmc controllers. The difference is the clocks they use. Add support for the second emmc controller. Signed-off-by: Matthias Brugger Signed-off-by: Andrei Gherzan --- drivers/mmc/bcm2835_sdhci.c | 12 ++-- 1 file changed, 10 insertions(+), 2

[U-Boot] [PATCH v2 1/8] RPI: Add defconfigs for rpi4 (32/64)

2019-07-24 Thread Andrei Gherzan
reported size is 1G. The fw patches the dt with the right memory configuration and uboot uses it as it is. We avoid u-boot touching this configuration by making sure CONFIG_ARCH_FIXUP_FDT_MEMORY is deactivated. Signed-off-by: Andrei Gherzan --- configs/rpi_4_32b_defconfig | 33

[U-Boot] [PATCH v2 2/8] ARM: bcm283x: Add BCM283x_BASE define

2019-07-24 Thread Andrei Gherzan
From: Matthias Brugger Devices of bcm283x have different base address, depending if they are on bcm2835 or bcm2836/7. Use BCM283x_BASE depending on the SoC you want to build and only add the offset in the header files. Signed-off-by: Matthias Brugger Signed-off-by: Andrei Gherzan --- arch

[U-Boot] [PATCH v2 8/8] git-mailrc: Add rpi and bcm283x maintainer

2019-07-24 Thread Andrei Gherzan
Signed-off-by: Andrei Gherzan --- doc/git-mailrc | 4 1 file changed, 4 insertions(+) diff --git a/doc/git-mailrc b/doc/git-mailrc index a63b76befc..68110e1963 100644 --- a/doc/git-mailrc +++ b/doc/git-mailrc @@ -35,6 +35,7 @@ alias mariosix Mario Six alias masahiro Masahiro

[U-Boot] [PATCH v2 4/8] RPI: Add entry for Raspberry Pi 4 model B

2019-07-24 Thread Andrei Gherzan
The Raspebrry Pi 4 uses the new revision code scheme as documented by the foundation. This change adds an entry for this board as well. Signed-off-by: Andrei Gherzan --- board/raspberrypi/rpi/rpi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/raspberrypi/rpi/rpi.c b/board

[U-Boot] [PATCH v2 0/8] Raspberry Pi 32/64 support

2019-07-24 Thread Andrei Gherzan
/reg is left untouched as configured by the firmware Andrei Gherzan (6): RPI: Add defconfigs for rpi4 (32/64) ARM: bcm283x: Define configs for RaspberryPi 4 RPI: Add entry for Raspberry Pi 4 model B ARM: bcm283x: Include definition for additional emmc clock RPI: Add memory map

Re: [U-Boot] [PATCH 00/16] Raspberry Pi 32/64 support

2019-07-16 Thread Andrei Gherzan
Hi, On 16 July 2019 15:17:46 BST, Matthias Brugger wrote: > > >On 16/07/2019 15:37, and...@gherzan.ro wrote: >> From: Andrei Gherzan >> >> This PR consolidates the work we've done to support the new Raspberry >Pi > >I don't understand why you posted thes

[U-Boot] [PATCH 15/16] configs: rpi4: Remove DWC2 and USB_ETHER configs

2019-07-16 Thread andrei
From: Andrei Gherzan dwc2 is only connected to the usb-c port so we don't have any real benefit in having it enabled in uboot. Also, the GENET interface is connected directly to the SoC so we can drop the USB_ETHER configs. Signed-off-by: Andrei Gherzan --- configs/rpi_4_32b_defconfig | 3

[U-Boot] [PATCH 09/16] arm: bcm283x: Define device base addresses for bcm2835

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- arch/arm/mach-bcm283x/include/mach/sdhci.h | 4 arch/arm/mach-bcm283x/include/mach/timer.h | 4 arch/arm/mach-bcm283x/include/mach/wdog.h | 4 3 files changed, 12 insertions(+) diff --git a/arch/arm/mach-bcm283x/include

[U-Boot] [PATCH 07/16] arm: bcm283x: Include definition for additional emmc clock

2019-07-16 Thread andrei
From: Andrei Gherzan This clock has a different mbox ID[1] so have this included in the relevant header file. [1] https://github.com/raspberrypi/firmware/issues/1179 Signed-off-by: Andrei Gherzan --- arch/arm/mach-bcm283x/include/mach/mbox.h | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 11/16] bcm283x mbox: Correctly wait for space to send

2019-07-16 Thread andrei
From: Fabian Vogt For sending, the second mailbox is used, but previously the status register of the first one was read. --- arch/arm/mach-bcm283x/include/mach/mbox.h | 7 +-- arch/arm/mach-bcm283x/mbox.c | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH 10/16] bcm2835 video: Bail out early if querying video information fails

2019-07-16 Thread andrei
From: Fabian Vogt Otherwise there is a crash with newer RPi firmware, see https://github.com/raspberrypi/firmware/issues/1157 --- drivers/video/bcm2835.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index

[U-Boot] [PATCH 16/16] dts: bcm2838-rpi-4-b: Use the emmc2/2811 compatible string for SDHCI

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- arch/arm/dts/bcm2838-rpi-4-b.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/bcm2838-rpi-4-b.dts b/arch/arm/dts/bcm2838-rpi-4-b.dts index 168179c17c..b7241be3fd 100644 --- a/arch/arm/dts/bcm2838-rpi-4

[U-Boot] [PATCH 12/16] config: rpi4: Add defconfig for rpi4-32

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- configs/rpi_4_32b_defconfig | 43 + 1 file changed, 43 insertions(+) create mode 100644 configs/rpi_4_32b_defconfig diff --git a/configs/rpi_4_32b_defconfig b/configs/rpi_4_32b_defconfig new file mode

[U-Boot] [PATCH 06/16] dt-bindings: Define BCM2838_CLOCK_EMMC2 needed for RaspberryPi 4

2019-07-16 Thread andrei
From: Andrei Gherzan On BCM2838 there is an additional clock. This clock was added in the same bcm2835-cprman driver and is used by the emmc2 dt node. Signed-off-by: Andrei Gherzan --- include/dt-bindings/clock/bcm2835.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt

[U-Boot] [PATCH 02/16] dts: Add initial support for bcm2838

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- arch/arm/dts/Makefile| 4 +- arch/arm/dts/bcm2838-rpi-4-b.dts | 56 arch/arm/dts/bcm2838.dtsi| 237 +++ 3 files changed, 296 insertions(+), 1 deletion(-) create mode 100644 arch

[U-Boot] [PATCH 08/16] mmc: bcm2835_sdhci: Add support for bcm2711 device

2019-07-16 Thread andrei
From: Matthias Brugger The bcm2711 has two emmc controller. The difference is the clocks they use. Add support for the second emmc contoller. Signed-off-by: Matthias Brugger --- drivers/mmc/bcm2835_sdhci.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 14/16] rpi: Add memory map for bcm2838

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- board/raspberrypi/rpi/rpi.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 6d6f1ef39a..4242ef35a4 100644 --- a/board

[U-Boot] [PATCH 13/16] dts: bcm2838-rpi-4-b: Use the emmc2 interface for sdhci

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- arch/arm/dts/bcm2838-rpi-4-b.dts | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/arm/dts/bcm2838-rpi-4-b.dts b/arch/arm/dts/bcm2838-rpi-4-b.dts index 07e9a78e8d..168179c17c 100644 --- a/arch/arm

[U-Boot] [PATCH 04/16] arm: mach-bcm283x: Define mbox address for BCM2838

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- arch/arm/mach-bcm283x/include/mach/mbox.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h b/arch/arm/mach-bcm283x/include/mach/mbox.h index e3a893e49c..2d711daaa8 100644 --- a/arch/arm

[U-Boot] [PATCH 05/16] rpi: Add rpi_model entry for RaspberryPi 4

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- board/raspberrypi/rpi/rpi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 617c892dde..6d6f1ef39a 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi

[U-Boot] [PATCH 03/16] arm: mach-bcm283x: Define configs for RaspberryPi 4

2019-07-16 Thread andrei
From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- arch/arm/mach-bcm283x/Kconfig | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig index 3eb5a9a897..d5069fe688 100644 --- a/arch/arm/mach

[U-Boot] [PATCH 00/16] Raspberry Pi 32/64 support

2019-07-16 Thread andrei
From: Andrei Gherzan This PR consolidates the work we've done to support the new Raspberry Pi 4 board. It also includes commits from https://github.com/mbgg/u-boot.git (credits to Matthias Brugger). Andrei Gherzan (13): dts: Create a dtsi for BCM2835/6/7 specific configuration dts: Add

[U-Boot] [PATCH 01/16] dts: Create a dtsi for BCM2835/6/7 specific configuration

2019-07-16 Thread andrei
From: Andrei Gherzan This follows a similar change in kernel[1]. The change moves configuration that was not applicable for all bcm2835/6/7/8 out of bcm283x.dtsi. The new file is bcm2835-common.dtsi and contains conifguration that is common for bcm2835/6/7 (not bcm2838). [1] https://github.com

Re: [U-Boot] T1040RDB u-boot chain load u-boot

2018-06-13 Thread Radu-andrei Bulie
From: Chris Packham [mailto:judge.pack...@gmail.com] Sent: Friday, June 8, 2018 12:20 AM To: nicolae.rosia@gmail.com Cc: u-boot ; Priyanka Jain ; Radu-andrei Bulie Subject: Re: [U-Boot] T1040RDB u-boot chain load u-boot On Thu, Jun 7, 2018 at 10:46 PM Nicolae Rosia wrote: > Scenario

[U-Boot] [PATCH v3] drivers/net/vsc9953: Initialize action RAM in VCAP complex

2018-06-06 Thread radu-andrei . bulie
Hi Joe, As a reminder, is there anything else that should be done to push the patch forward? Thanks, Radu ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v3] drivers/net/vsc9953: Initialize action RAM in VCAP complex

2018-05-21 Thread radu-andrei . bulie
From: Radu Bulie VCAP tables must be initialized even if no advanced classification is used. If no initialization is performed, then ECC error will be observed by the user when the first packet enters the l2switch. The error is marked in MPIC_EISR0 -bit 29 which means

[U-Boot] [PATCH v2] drivers/net/vsc9953: Initialize action RAM in VCAP complex

2018-05-21 Thread radu-andrei . bulie
From: Radu Bulie VCAP tables must be initialized even if no advanced classification is used. If no initialization is performed, then ECC error will be observed by the user when the first packet enters the l2switch. The error is marked in MPIC_EISR0 -bit 29 which means

Re: [U-Boot] Broken support for hummingboard i2

2015-05-29 Thread Andrei Gherzan
Hello Otavio, Same results with: $ sudo dd if=SPL of=/dev/mmcblk0 conv=notrunc seek=2 bs=512 ; sync [sudo] password for agherzan: $ sudo dd if=u-boot.img of=/dev/mmcblk0 conv=notrunc seek=69 bs=1K ; sync Regards, Andrei On Fri, May 29, 2015 at 1:53 PM, Otavio Salvador ota...@ossystems.com.br

Re: [U-Boot] Broken support for hummingboard i2

2015-05-29 Thread Andrei Gherzan
Hi Fabio, On Fri, May 29, 2015 at 4:36 PM, Fabio Estevam feste...@gmail.com wrote: Hi Andrei, On Fri, May 29, 2015 at 8:57 AM, Andrei Gherzan and...@gherzan.ro wrote: Hello Otavio, Same results with: $ sudo dd if=SPL of=/dev/mmcblk0 conv=notrunc seek=2 bs=512 ; sync [sudo] password

Re: [U-Boot] [PATCH] mx6cuboxi: Fix boot of hummingboard dual-lite

2015-05-29 Thread Andrei Gherzan
Hi, On Fri, May 29, 2015 at 6:00 PM, Fabio Estevam fabio.este...@freescale.com wrote: Hummingboard dual-lite is picking the incorrect calibration structure. Fix it so that it can boot. While at it, also fix p1_mpdgctrl1 register to match Solid-run's setting. Reported-by: Andrei Gherzan

[U-Boot] Broken support for hummingboard i2

2015-05-28 Thread Andrei Gherzan
$ make $ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 $ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=42 It seems like SPL can't load the uboot image. The cuboxi uboot fork works just fine: git:// github.com/SolidRun/u-boot-imx6.git;branch=imx6. Is this a known issue? Regards, Andrei

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
I will make a patch with 1536. Where should I send linux patch? They have bunch of mail lists for different subsystems. Andrei On Wed, 2015-05-20 at 17:25 -0500, Scott Wood wrote: On Tue, 2015-05-19 at 16:42 -0700, Andrei Yakimov wrote: On Tue, 2015-05-19 at 17:38 -0500, Scott Wood wrote

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 20:37 -0500, Scott Wood wrote: On Wed, 2015-05-20 at 18:27 -0700, Andrei Yakimov wrote: I will make a patch with 1536. Where should I send linux patch? They have bunch of mail lists for different subsystems. Andrei The MAINTAINERS file shows where to send

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 22:11 -0500, Scott Wood wrote: On Wed, 2015-05-20 at 20:03 -0700, Andrei Yakimov wrote: On Wed, 2015-05-20 at 21:46 -0500, Scott Wood wrote: On Wed, 2015-05-20 at 19:42 -0700, Andrei Yakimov wrote: For now lets stick with 1536 in u-boot. I will send a patch

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
is working. Perhaps we do not need extra read_param(), and use only NAND_CMD_RNDOUT to get next block inside page loop. Andrei On Wed, 2015-05-20 at 21:27 -0500, Scott Wood wrote: On Wed, 2015-05-20 at 18:55 -0700, Andrei Yakimov wrote: On Wed, 2015-05-20 at 20:37 -0500, Scott Wood wrote

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 21:46 -0500, Scott Wood wrote: On Wed, 2015-05-20 at 19:42 -0700, Andrei Yakimov wrote: For now lets stick with 1536 in u-boot. I will send a patch. At least it will not loosing flash over time as nand ages. I understand what you wish, and will take a look

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-19 Thread Andrei Yakimov
On Tue, 2015-05-19 at 17:38 -0500, Scott Wood wrote: On Tue, 2015-05-19 at 15:29 -0700, Andrei Yakimov wrote: I did not compiling latest, I still in 2011.9 and 2.6.38. I have go over latest kernel and can see they using NAND_CMD_PARAM with sub command 0x40 - to get JEDEC information

Re: [U-Boot] fsl_elbc_nand bug

2015-05-18 Thread Andrei Yakimov
if they exist. I will update only fsl_elbc_nand driver. This is least invasive patch. Should I get just master for generation of this patch? Andrei. On Mon, 2015-05-18 at 16:17 -0500, Scott Wood wrote: On Fri, 2015-05-15 at 14:48 -0700, Andrei Yakimov wrote: Hi, I just found, if NAND ONFI

[U-Boot] Fix fsl_elbc_nand driver

2015-05-18 Thread Andrei Yakimov
This is my best try. I have test it with my old u-boot, but not with master. Do not have a bench for it. This is not very important patch. I do not find any other ONFI user in u-boot. Andrei From d76b4ae8e866affa15dd9da860574d0600969d57 Mon Sep 17 00:00:00 2001 From: Andrei Yakimov ayaki

[U-Boot] fsl_elbc_nand bug

2015-05-16 Thread Andrei Yakimov
am also not expert for other NAND controllers drivers. But first copy of ONFI parameter page CAN GO BAD. I seen it my self. Andrei ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] fw_(printenv/setenv) and serial console have different env variables

2014-04-12 Thread Andrei Mihut
Greetings everyone, I stumbled over something worth telling. It started as the bad crc using defaults issue when I tried to use fw_printenv on my debian iconnect box. I tought it was the fw_env.config. it wasn't. After hours of researching and compiling from source and the whole lot of trouble

Re: [U-Boot] NOR NAND Interference question

2013-01-08 Thread Andrei
Hi Scott, Thanks for you replay and sorry for my not speedy answer comments below. On Mon, 2013-01-07 at 18:37 -0600, Scott Wood wrote: On 01/04/2013 05:47:06 PM, Andrei wrote: Hi, Recently I am start getting strange problem with u-boot-2011.09. MPC8313ERDB like configuration ( main

[U-Boot] NOR NAND Interference question

2013-01-04 Thread Andrei
chaprt nor0,2 mount NAND, read NAND, boot And I did increase malloc size to 1M.( ubifs does not like 128K). There is no option for stack size - it is PPC, so it should grow down as needed. As long I am not mixing NOR and NAND evithing working perfect. Any idea? Thanks, Andrei