Re: [PATCH RFC] sunxi: pinephone: detect existed magnetometer and fixup dtb

2024-02-11 Thread Andrey Skvortsov
Hi Andre, thank you for the valuable feedback! On 24-02-11 13:13, Andre Przywara wrote: > On Sun, 11 Feb 2024 12:28:24 +0300 > Andrey Skvortsov wrote: > > Hi Andrey, > > thanks for taking care of this upstream! > > > In newer 1.2 PinePhone board revisions LIS3MD

Re: [PATCH] sunxi: defconfig: Add pstore support for pinephone

2024-02-11 Thread Andrey Skvortsov
Hi Peter, On 24-02-11 16:11, Peter Robinson wrote: > On Sun, 11 Feb 2024 at 16:02, Andrey Skvortsov > wrote: > > > > In general any DRAM address, that isn't overwritten during a boot is > > suitable for pstore. > > What's this functionality providing? The deta

[PATCH] sunxi: defconfig: Add pstore support for pinephone

2024-02-11 Thread Andrey Skvortsov
, initramfs for kernel with some hacking features and debug info enabled can take more than 100Mb and final address will be around 0x5800. Address 0x6100 will most likely not overlap with that. Signed-off-by: Andrey Skvortsov --- configs/pinephone_defconfig | 2 ++ 1 file changed, 2 insertions

[PATCH RFC] sunxi: pinephone: detect existed magnetometer and fixup dtb

2024-02-11 Thread Andrey Skvortsov
much space. Therefore fdt fixup is done in U-Boot proper without introducing new board revision and new dts. Signed-off-by: Andrey Skvortsov --- AF8133J's driver isn't upstreamed yet, but it will be soon. Therefore this is RFC patch. I'd like to know whether selected approach will be accepted in u

[PATCH v3 2/2] sunxi: restore modified memory

2023-12-27 Thread Andrey Skvortsov
and restoring the content of the DRAM cells that is used for the test writes. Signed-off-by: Andrey Skvortsov --- arch/arm/mach-sunxi/dram_helpers.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-sunxi/dram_helpers.c b/arch/arm/mach-sunxi

[PATCH v3 1/2] sunxi: reorganize mctl_mem_matches_* functions

2023-12-27 Thread Andrey Skvortsov
mctl_mem_matches and mctl_mem_matches_base identical functions. To avoid code duplication move them to dram_helpers and make mctl_mem_matches use generic mctl_mem_matches_base. Signed-off-by: Andrey Skvortsov --- arch/arm/include/asm/arch-sunxi/dram.h | 1 + arch/arm/mach-sunxi/dram_helpers.c

[PATCH v3 0/2] sunxi: restore modified memory

2023-12-27 Thread Andrey Skvortsov
Changes in v3: - reorder patches - remove casts - change commit message for 'sunxi: restore modified memory' patch Changes in v2: - rename temporary variables - fix types for temporary variables Andrey Skvortsov (2): sunxi: reorganize mctl_mem_matches_* functions sunxi: restore modified

[PATCH v2 2/2] sunxi: reorganize mctl_mem_matches_* functions

2023-12-06 Thread Andrey Skvortsov
mctl_mem_matches and mctl_mem_matches_base identical functions. To avoid code duplication move them to dram_helpers and make mctl_mem_matches use generic mctl_mem_matches_base. Signed-off-by: Andrey Skvortsov --- arch/arm/include/asm/arch-sunxi/dram.h | 1 + arch/arm/mach-sunxi/dram_helpers.c

[PATCH v2 1/2] sunxi: restore modified memory

2023-12-06 Thread Andrey Skvortsov
On A64 with 2G of RAM words at following addresses were modified with 'aa55aa55' value: - 5000 - 6000 - 8400 - 8800 - 9000 - A000 - A200 That made harder to pick memory range for persistent storage in RAM. Signed-off-by: Andrey Skvortsov --- arch/arm/mach

[PATCH v2 0/2] sunxi: restore modified memory

2023-12-06 Thread Andrey Skvortsov
Changes in v2: - rename temporary variables - fix types for temporary variables Andrey Skvortsov (2): sunxi: restore modified memory sunxi: reorganize mctl_mem_matches_* functions arch/arm/include/asm/arch-sunxi/dram.h | 1 + arch/arm/mach-sunxi/dram_helpers.c | 32

Re: [PATCH] sunxi: restore modified memory

2023-12-06 Thread Andrey Skvortsov
Hi Andre, On 23-11-01 09:50, Andre Przywara wrote: > On Fri, 21 Jul 2023 17:57:21 +0300 > Andrey Skvortsov wrote: > > Hi Andrey, > > sorry for the late reply! > > > On A64 with 2G of RAM words at following addresses were modified with > > 'aa55aa55' value

Re: [PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-10-16 Thread Andrey Skvortsov
Hi, On 23-08-26 19:41, Andre Przywara wrote: > On Sat, 26 Aug 2023 15:10:10 +0200 > Heinrich Schuchardt wrote: > > Hi, > > > On 8/26/23 14:16, Andrey Skvortsov wrote: > > > u-boot adds reserve-memory node, if it's missing, with following > > > properti

Re: [PATCH] sunxi: board: provide CPU idle states to loaded OS

2023-09-14 Thread Andrey Skvortsov
Hi Andre, On 23-09-11 23:15, Andre Przywara wrote: > On Wed, 6 Sep 2023 23:53:51 +0300 > Andrey Skvortsov wrote: > > > > > > > When using SCPI as the PSCI backend, firmware can wake up the CPUs > > > > > > and > > > > > > clu

Re: [PATCH] sunxi: board: provide CPU idle states to loaded OS

2023-09-06 Thread Andrey Skvortsov
Hi Andre, On 23-09-06 01:12, Andre Przywara wrote: > On Tue, 5 Sep 2023 11:37:31 +0300 > Andrey Skvortsov wrote: > > Hi, > > > On 23-09-05 09:27, Andre Przywara wrote: > > > On Mon, 4 Sep 2023 23:54:30 +0300 > > > Andrey Skvortsov wrote: > > &g

Re: [PATCH] sunxi: board: provide CPU idle states to loaded OS

2023-09-05 Thread Andrey Skvortsov
Hi Andrey, On 23-09-05 09:27, Andre Przywara wrote: > On Mon, 4 Sep 2023 23:54:30 +0300 > Andrey Skvortsov wrote: > > Hi Andrey, > > > When using SCPI as the PSCI backend, firmware can wake up the CPUs and > > cluster from sleep, so CPU idle states are available f

[PATCH] sunxi: board: provide CPU idle states to loaded OS

2023-09-04 Thread Andrey Skvortsov
for loaded OS. Signed-off-by: Andrey Skvortsov --- board/sunxi/board.c | 120 1 file changed, 120 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index f321cd58a6..e88bd11a99 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c

Re: [PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-08-26 Thread Andrey Skvortsov
Hi Heinrich, On 23-08-26 15:10, Heinrich Schuchardt wrote: > On 8/26/23 14:16, Andrey Skvortsov wrote: > > u-boot adds reserve-memory node, if it's missing, with following > > properties: > > > > ``` > > reserved-memory { > > #address-cell

[PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-08-26 Thread Andrey Skvortsov
tch takes into account address-cells and size-cells of the root node and uses them as values for new reserved-memory node. Signed-off-by: Andrey Skvortsov --- cmd/pstore.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/pstore.c b/cmd/pstore.c index cd6f6feb2f..9795e

[PATCH] sunxi: restore modified memory

2023-07-21 Thread Andrey Skvortsov
On A64 with 2G of RAM words at following addresses were modified with 'aa55aa55' value: - 5000 - 6000 - 8400 - 8800 - 9000 - A000 - A200 That made harder to pick memory range for persistent storage in RAM. Signed-off-by: Andrey Skvortsov --- arch/arm/mach

[PATCH] distro_bootcmd: Always check for custom boot scripts first

2022-09-02 Thread Andrey Skvortsov
), then environment are not saved/loaded at boot time from boot partition and it's not possible to persistently change boot environment without recompiling u-boot. Signed-off-by: Andrey Skvortsov --- include/config_distro_bootcmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[U-Boot] [PATCH] imx_watchdog: always set minimal timeout in reset_cpu

2015-12-20 Thread Andrey Skvortsov
The problem is that timeout bits in WCR register were leaved unchanged. So previously set timeout value was applied and therefore 'reset' command takes any value up to two minutes, depending on previous watchdog settings, instead of minimal 0.5 seconds. Signed-off-by: Andrey Skvortsov

[U-Boot] [PATCH] kconfig: remove duplicated CMD_DNS option

2015-04-19 Thread Andrey Skvortsov
two CMD_DNS options were added by commit 60296a835cb17 (commands: add more command entries in Kconfig) Signed-off-by: Andrey Skvortsov andrej.skvort...@gmail.com Cc: Masahiro Yamada yamad...@jp.panasonic.com --- common/Kconfig | 5 - 1 file changed, 5 deletions(-) diff --git a/common