[U-Boot] [PATCH] initcall.h: initcall_run_list(): Improve debug output

2019-09-25 Thread Ovidiu Panait
From: Ovidiu Panait Existing debug output is mixed with the function name: initcall_run_list() initcall: 25263initcall_run_list() (relocated to 425263) Turn it to: initcall_run_list() initcall: 25263 (relocated to 425263) Signed-off-by: Ovidiu Panait --- include/initcall.h | 8 +--- 1

[PATCH] board_f: Make clear_bss generic

2020-02-04 Thread Ovidiu Panait
clear_bss is already used by 3 arches (x86, arc, xtensa), so make it generic and provide a weak nop stub for it. This also removes arch-specific ifdef duplications around clear_bss. Signed-off-by: Ovidiu Panait --- common/board_f.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions

[PATCH] common/board_f.c: Remove arch-specific checks for cpucheck

2020-01-22 Thread Ovidiu Panait
This removes the arch-specific checks for "checkcpu" function from the init sequence. Make "checkcpu" generic and provide a weak nop stub instead. Signed-off-by: Ovidiu Panait --- common/board_f.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH 2/3] cmd/bedbug.c: Make bedbug_init have a return value

2020-04-18 Thread Ovidiu Panait
Do this as a preparation for removing initr_bedbug wrapper from common/board_r.c. Signed-off-by: Ovidiu Panait --- cmd/bedbug.c | 4 ++-- include/bedbug/type.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/bedbug.c b/cmd/bedbug.c index 9fee528830

[PATCH 3/3] common/board_r: Drop initr_bedbug wrapper

2020-04-18 Thread Ovidiu Panait
Drop initr_bedbug wrapper and call bedbug_init directly during the init sequence. Signed-off-by: Ovidiu Panait --- common/board_r.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index bdb0389e31..d9015cd057 100644

[PATCH 1/3] common/board_r: arm: Merge initr_enable_interrupts into interrupts_init

2020-04-18 Thread Ovidiu Panait
initr_enable_interrupts() is an ARM-specific wrapper over enable_interrupts(), which is run during the common init sequence. It can be eliminated by moving the enable_interrupts() call to the end of interrupt_init() function, in arch/arm/lib/interrupts*.c. Signed-off-by: Ovidiu Panait --- arch

[PATCH v2 3/3] common/board_r: Drop initr_bedbug wrapper

2020-04-20 Thread Ovidiu Panait
Drop initr_bedbug wrapper and call bedbug_init directly during the init sequence. Signed-off-by: Ovidiu Panait Reviewed-by: Simon Glass --- v2 updates: - add reviewed-by tag common/board_r.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/common/board_r.c b

[PATCH v2 2/3] cmd/bedbug.c: Make bedbug_init have a return value

2020-04-20 Thread Ovidiu Panait
Do this as a preparation for removing initr_bedbug wrapper from common/board_r.c. Signed-off-by: Ovidiu Panait Reviewed-by: Simon Glass --- v2 updates: - fix checkpatch warnings - add reviewed-by tag cmd/bedbug.c | 4 ++-- include/bedbug/type.h | 2 +- 2 files changed, 3

[PATCH v2 1/3] common/board_r: arm: Merge initr_enable_interrupts into interrupts_init

2020-04-20 Thread Ovidiu Panait
initr_enable_interrupts() is an ARM-specific wrapper over enable_interrupts(), which is run during the common init sequence. It can be eliminated by moving the enable_interrupts() call to the end of interrupt_init() function, in arch/arm/lib/interrupts*.c. Signed-off-by: Ovidiu Panait Reviewed

Re: [PATCH 1/2] dm: dump.c: Fix segfault when entry->of_match is NULL

2020-04-05 Thread Ovidiu Panait
On 05.04.2020 19:53, Sean Anderson wrote: On 4/5/20 12:47 PM, Ovidiu Panait wrote: Currently, dm drivers command produces a segfault: => dm drivers DriverCompatible Segmentation fault (core dumped) This is caused by a NULL pointer derefere

[PATCH 1/2] dm: dump.c: Fix segfault when entry->of_match is NULL

2020-04-05 Thread Ovidiu Panait
Currently, dm drivers command produces a segfault: => dm drivers DriverCompatible Segmentation fault (core dumped) This is caused by a NULL pointer dereference of entry->of_match. Add a check to prevent this. Signed-off-by: Ovidiu Panait Cc

[PATCH 2/2] dm: dump.c: Refactor dm_dump_drivers prints

2020-04-05 Thread Ovidiu Panait
Refactor the printing sequence in dm_dump_drivers to make it more clear. Signed-off-by: Ovidiu Panait Cc: Sean Anderson Cc: Simon Glass --- drivers/core/dump.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/core/dump.c b/drivers/core/dump.c

[PATCH] common/board_f: Make reserve_mmu generic

2020-03-28 Thread Ovidiu Panait
). Signed-off-by: Ovidiu Panait --- arch/arm/include/asm/cache.h | 2 ++ arch/arm/lib/cache.c | 33 + arch/arm/mach-versal/cpu.c | 6 +- arch/arm/mach-zynqmp/cpu.c | 6 +- common/board_f.c | 32

[PATCH v2 1/3] common/board_f: Move arm-specific reserve_mmu to arch/arm/lib/cache.c

2020-03-29 Thread Ovidiu Panait
Move the ARM-specific reserve_mmu definition from common/board_f.c to arch/arm/lib/cache.c. Signed-off-by: Ovidiu Panait --- arch/arm/lib/cache.c | 28 common/board_f.c | 28 2 files changed, 28 insertions(+), 28 deletions(-) diff

[PATCH v2 2/3] arm: asm/cache.c: Introduce arm_reserve_mmu

2020-03-29 Thread Ovidiu Panait
arch_reserve_mmu, there would be two weak definitions for it, one in common/board_f.c and one in arch/arm/lib/cache.c. Signed-off-by: Ovidiu Panait --- arch/arm/include/asm/cache.h | 11 +++ arch/arm/lib/cache.c | 5 + arch/arm/mach-versal/cpu.c | 3 ++- arch/arm/mach-zynqmp

[PATCH v2 3/3] common/board_f: Make reserve_mmu generic

2020-03-29 Thread Ovidiu Panait
Introduce arch_reserve_mmu to allow for architecture-specific reserve_mmu routines. Also, define a weak nop stub for it. Signed-off-by: Ovidiu Panait --- arch/arm/lib/cache.c | 2 +- common/board_f.c | 9 ++--- include/init.h | 13 - 3 files changed, 19 insertions

[PATCH v2 0/3] common/board_f: Make reserve_mmu generic

2020-03-29 Thread Ovidiu Panait
e.c:9: arch/arm/lib/cache.c:141:52: error: 'volatile struct arch_global_data' has no member named 'tlb_addr' ... Ovidiu Panait (3): common/board_f: Move arm-specific reserve_mmu to arch/arm/lib/cache.c arm: asm/cache.c: Introduce arm_reserve_mmu common/board_f: Make reserve_mmu ge

[PATCH] buildman: Remove _of_#_ from results directory paths

2020-05-15 Thread Ovidiu Panait
ved when the number of commits change. By removing the _of_#_ part of the directory path, the commits will be rebuilt only if the commit sha or the position in the patchset changes. Also, update the testcase to reflect this change. Signed-off-by: Ovidiu Panait --- tools/buildman/builder.py |

[PATCH 1/6] env: Convert CONFIG_DELAY_ENVIRONMENT to Kconfig

2020-05-06 Thread Ovidiu Panait
This converts ad-hoc CONFIG_DELAY_ENVIRONMENT to Kconfig. Signed-off-by: Ovidiu Panait --- env/Kconfig | 12 scripts/config_whitelist.txt | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/env/Kconfig b/env/Kconfig index af63ac52f7..ed94e83ec1

[PATCH 5/6] qemu_arm_defconfig: Enable CONFIG_PCI_INIT_R

2020-05-06 Thread Ovidiu Panait
Replace the "pci enum" preboot sequence with CONFIG_PCI_INIT_R=y. Signed-off-by: Ovidiu Panait --- configs/qemu_arm_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/qemu_arm_defconfig b/configs/qemu_arm_defconfig index f807dfc10e..a847398

[PATCH 6/6] qemu-x86*_defconfig: Enable CONFIG_PCI_INIT_R

2020-05-06 Thread Ovidiu Panait
Enable CONFIG_PCI_INIT_R for qemux86 and qemux86-64 pci enumeration during boot in order to eliminate the custom preboot commands in include/configs/qemu-x86.h. Signed-off-by: Ovidiu Panait --- configs/qemu-x86_64_defconfig | 1 + configs/qemu-x86_defconfig| 1 + include/configs/qemu-x86.h

[PATCH 3/6] board_r: Introduce CONFIG_PCI_INIT_R Kconfig option

2020-05-06 Thread Ovidiu Panait
preserves the current behavior in the !DM_PCI case (pci_init is run unconditionally at boot). Signed-off-by: Ovidiu Panait --- common/Kconfig | 10 ++ common/board_r.c | 5 ++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index

[PATCH 2/6] board_r: env: Use IS_ENABLED() instead of #ifdefs

2020-05-06 Thread Ovidiu Panait
Use IS_ENABLED() instead of #ifdef in should_load_env and initr_env functions. No functional change intended. Signed-off-by: Ovidiu Panait --- common/board_r.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index

[PATCH 4/6] qemu_arm64_defconfig: Enable CONFIG_PCI_INIT_R

2020-05-06 Thread Ovidiu Panait
Replace the "pci enum" preboot sequence with CONFIG_PCI_INIT_R=y. Signed-off-by: Ovidiu Panait --- configs/qemu_arm64_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/qemu_arm64_defconfig b/configs/qemu_arm64_defconfig index 80e0ad55e0..53c653d

[PATCH 2/2] sandbox: u-boot.lds: Remove bogus __bss_start symbol

2020-08-17 Thread Ovidiu Panait
00 WA 0 0 32 This means that the __bss_start assignment in the linker script is bogus, as the actual bss section start is located elsewhere. Remove this assignment, as the __bss_start symbol is not used on sandbox anyway. Signed-off-by: Ovidiu Panait --- arch/sandbox/

[PATCH 1/2] board_f: Remove dead code from init_func_i2c

2020-08-17 Thread Ovidiu Panait
ifdef CONFIG_SYS_I2C ... #else ... #endif } #endif Remove the dead #else preprocessor code. Fixes: 69153988a6f ("i2c: Finish dropping use of CONFIG_I2C_HARD") Signed-off-by: Ovidiu Panait --- common/board_f.c | 4 1 file changed, 4 deletions(-) diff --g

Re: [PATCH v6 03/10] board_f: Add default values for bi_dram[] in dram_init_banksize()

2020-08-17 Thread Ovidiu Panait
if (IS_ENABLED(CONFIG_SYS_HAS_SRAM)) { bd->bi_sramstart = CONFIG_SYS_SRAM_BASE; /* start of SRAM */ bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE; /* size of SRAM */ Reviewed-by: Ovidiu Panait

Re: [PATCH v6 06/10] xtensa: Remove local no-op dram_init_banksize()

2020-08-17 Thread Ovidiu Panait
9,6 @@ int checkboard(void) return 0; } -int dram_init_banksize(void) -{ - return 0; -} - int board_postclk_init(void) { /* Reviewed-by: Ovidiu Panait

Re: [PATCH v6 09/10] cmd: bdinfo: Remove print of superseeded bi_memstart / bi_memsize values

2020-08-17 Thread Ovidiu Panait
bdinfo_print_num("sramstart", (ulong)bd->bi_sramstart); bdinfo_print_num("sramsize", (ulong)bd->bi_sramsize); Reviewed-by: Ovidiu Panait

Re: [PATCH v6 05/10] xtensa: Remove arch_setup_bdinfo()

2020-08-17 Thread Ovidiu Panait
lude - -DECLARE_GLOBAL_DATA_PTR; - -int arch_setup_bdinfo(void) -{ - struct bd_info *bd = gd->bd; - - bd->bi_memstart = PHYSADDR(CONFIG_SYS_SDRAM_BASE); - bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE; - - return 0; -} Reviewed-by: Ovidiu Panait

[RESEND PATCH 2/3] pinctrl: bcm283x: Read address from DT in ofdata_to_platdata

2020-09-29 Thread Ovidiu Panait
From: Ovidiu Panait Factor out reading IP base address to ofdata_to_platdata function, which is designed for this purpose. Also, drop the dev->priv NULL check, since this is already done by the dm core when allocating space using priv_auto_alloc_size feature. (in drivers/core/devic

[RESEND PATCH 1/3] pinctrl: bcm283x: DM_FLAG_PRE_RELOC: Remove OF_CONTROL check

2020-09-29 Thread Ovidiu Panait
From: Ovidiu Panait Remove CONFIG_IS_ENABLED(OF_CONTROL) check from DM_FLAG_PRE_RELOC, since this driver only supports OF_CONTROL. drivers/pinctrl/broadcom/Kconfig: config PINCTRL_BCM283X depends on ARCH_BCM283X && PINCTRL_FULL && OF_CONTROL Cc: Matthias Brugger Signe

[RESEND PATCH 3/3] pinctrl: bcm283x: Store the return value of dev_read_u32_default to int

2020-09-29 Thread Ovidiu Panait
From: Ovidiu Panait Currently, the return value of dev_read_u32_default is stored in an u32, causing the subsequent "if (function < 0)" to always be false: u32 function; ... function = dev_read_u32_default(config, "brcm,function", -1); if (function < 0) { debu

[PATCH v2 1/2] microblaze: start.S: Factor out exception setup code to __setup_exceptions

2020-09-24 Thread Ovidiu Panait
->reloc_off for post-reloc exception setup. Cc: Michal Simek Signed-off-by: Ovidiu Panait --- v2: - fix coding style - save r2/r3/r6/r7/r8/r10 on the stack when entering __setup_exceptions arch/microblaze/cpu/start.S | 197 +++- 1 file changed, 103 inserti

[PATCH v2 2/2] microblaze: start.S: Use board_init_f_alloc/init in early init

2020-09-24 Thread Ovidiu Panait
Implement early init by calling generic board_init_f_alloc_reserve and board_init_f_init_reserve functions: * drop SYS_MALLOC_F_LEN related code, as allocation and gd->malloc_base assignment are taken care of by the generic functions * drop _gd logic Cc: Michal Simek Signed-off-by: Ovi

[PATCH] Kconfig: Use hex values for CONFIG_{SPL,TPL}_SIZE_LIMIT

2020-09-25 Thread Ovidiu Panait
also fixes the following build error when CONFIG_SPL_SIZE_LIMIT is set by menuconfig to 0x0: ... spl/u-boot-spl.bin exceeds file size limit: limit: 0 bytes actual: 0x80f0 bytes excess: 0x80f0 bytes Signed-off-by: Ovidiu Panait --- Makefile | 4 ++-- common/s

[PATCH 1/5] dm: core: Fix devfdt_get_addr_ptr return value

2020-05-27 Thread Ovidiu Panait
checking (void *)FDT_ADDR_T_NONE to check for NULL. Signed-off-by: Ovidiu Panait --- drivers/clk/aspeed/clk_ast2500.c | 4 ++-- drivers/core/fdtaddr.c| 5 - drivers/i2c/ast_i2c.c | 4 ++-- drivers/pinctrl/mvebu/pinctrl-mvebu.c | 2 +- drivers/timer

[PATCH 2/5] pinctrl: bcm283x: DM_FLAG_PRE_RELOC: Remove OF_CONTROL check

2020-05-27 Thread Ovidiu Panait
Remove CONFIG_IS_ENABLED(OF_CONTROL) check from DM_FLAG_PRE_RELOC, since this driver only supports OF_CONTROL. drivers/pinctrl/broadcom/Kconfig: config PINCTRL_BCM283X depends on ARCH_BCM283X && PINCTRL_FULL && OF_CONTROL Signed-off-by: Ovidiu Panait --- drivers/pinctrl/

[PATCH 3/5] pinctrl: bcm283x: Read address from DT in ofdata_to_platdata

2020-05-27 Thread Ovidiu Panait
atdata). Signed-off-by: Ovidiu Panait --- drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c index 8bf7916627..9ab0baee33

[PATCH 4/5] pinctrl: bcm283x: Fix return value check for dev_read_addr_ptr

2020-05-27 Thread Ovidiu Panait
dev_read_addr_ptr returns NULL on failure, so add the proper check. Signed-off-by: Ovidiu Panait --- drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl

[PATCH 5/5] pinctrl: bcm283x: Store the return value of dev_read_u32_default to int

2020-05-27 Thread Ovidiu Panait
unction for pinconfig %s (%d)\n", config->name, function); return -EINVAL; } Make "function" variable an int to fix this. Signed-off-by: Ovidiu Panait --- drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH 2/2] microblaze: start.S: Use board_init_f_alloc/init in early init

2020-09-20 Thread Ovidiu Panait
Implement early init by calling generic board_init_f_alloc_reserve and board_init_f_init_reserve functions: * drop SYS_MALLOC_F_LEN related code, as allocation and gd->malloc_base assignment are taken care of by the generic functions * drop _gd logic Signed-off-by: Ovidiu Panait --- a

[PATCH 1/2] microblaze: start.S: Factor out exception setup code to __setup_exceptions

2020-09-20 Thread Ovidiu Panait
->reloc_off for post-reloc exception setup. Signed-off-by: Ovidiu Panait --- arch/microblaze/cpu/start.S | 183 +--- 1 file changed, 88 insertions(+), 95 deletions(-) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index cbec299

Re: [PATCH v3 11/17] board_f: ppc: Factor out ppc-specific bdinfo setup

2020-07-21 Thread Ovidiu Panait
Hi Simon, On 21.07.2020 17:17, Simon Glass wrote: On Mon, 20 Jul 2020 at 08:20, Ovidiu Panait wrote: Factor out ppc-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/powerpc/lib/bdinfo.c. Signed-off-by: Ovidiu Panait --- arch/powerpc/lib/bdinfo.c | 25

[PATCH 1/2] dm: core: Fix devfdt_get_addr_ptr return value

2020-08-03 Thread Ovidiu Panait
(void *)FDT_ADDR_T_NONE to check for NULL. Signed-off-by: Ovidiu Panait --- drivers/clk/aspeed/clk_ast2500.c | 4 ++-- drivers/core/fdtaddr.c| 4 +++- drivers/i2c/ast_i2c.c | 4 ++-- drivers/pinctrl/mvebu/pinctrl-mvebu.c | 2 +- drivers/timer/ast_timer.c

[PATCH 2/2] test: dm: Add test case for devfdt_get_addr_ptr

2020-08-03 Thread Ovidiu Panait
Add flat tree test case to cover devfdt_get_addr_ptr function. Signed-off-by: Ovidiu Panait --- test/dm/test-fdt.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/test/dm/test-fdt.c b/test/dm/test-fdt.c index 8ef7c7a88e..fc089684ac 100644 --- a/test/dm/test-fdt.c +++ b

Re: [PATCH v4 5/9] xtensa: Remove arch_setup_bdinfo()

2020-08-13 Thread Ovidiu Panait
Hi Stefan, On 13.08.2020 08:47, Stefan Roese wrote: arch_setup_bdinfo() only configures the deprecated bi_memstart & bi_memsize values, which should not be needed any more. Lets remove this file completely. Signed-off-by: Stefan Roese --- Changes in v4: - New patch

Re: [PATCH v4 5/9] xtensa: Remove arch_setup_bdinfo()

2020-08-13 Thread Ovidiu Panait
Hi Stefan, On 13.08.2020 11:15, Stefan Roese wrote: Hi Ovidiu, On 13.08.20 10:09, Stefan Roese wrote: Hi Ovidiu, On 13.08.20 09:57, Ovidiu Panait wrote: Hi Stefan, On 13.08.2020 08:47, Stefan Roese wrote: arch_setup_bdinfo() only configures the deprecated bi_memstart & bi_memsize va

[PATCH 10/10] common/board_r: Move blkcache_init call earlier in the boot sequence

2020-07-09 Thread Ovidiu Panait
earlier and might call blkcache_invalidate (in mmc_select_hwpart()) when trying to load the environment from mmc via env_load(). To fix this issue, move blkcache_init boot call earlier, before mmc gets initialized. Cc: Angelo Durgehello Signed-off-by: Ovidiu Panait --- common/board_r.c | 6

[PATCH 06/10] dm: blk: Use IS_ENABLED() instead of #ifdefs in blk_post_probe

2020-07-09 Thread Ovidiu Panait
Use IS_ENABLED() instead of #ifdef in blk_post_probe function. No functional change intended. Signed-off-by: Ovidiu Panait --- drivers/block/blk-uclass.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index

[PATCH 03/10] board_f: ppc: Factor out ppc-specific bdinfo setup

2020-07-09 Thread Ovidiu Panait
Factor out ppc-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/powerpc/lib/bdinfo.c. Signed-off-by: Ovidiu Panait --- arch/powerpc/lib/bdinfo.c | 42 +++ common/board_f.c | 39 ++-- 2

[PATCH 02/10] board_f: m68k: Factor out m68k-specific bdinfo setup

2020-07-09 Thread Ovidiu Panait
Factor out m68k-specific bdinfo setup to arch_setup_bdinfo in arch/m68k/lib/bdinfo.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- arch/m68k/lib/bdinfo.c | 32 common/board_f.c | 14 -- 2 files

[PATCH 09/10] blkcache: Extend blkcache_init to cover CONFIG_NEEDS_MANUAL_RELOC

2020-07-09 Thread Ovidiu Panait
Extend manual relocation of block_cache list pointers to all platforms that enable CONFIG_NEEDS_MANUAL_RELOC. Remove m68k-specific checks and provide a single implementation that adds gd->reloc_off to the pre-relocation pointers. Cc: Angelo Durgehello Signed-off-by: Ovidiu Panait --- com

[PATCH 07/10] drivers: serial: Make serial_initialize return int

2020-07-09 Thread Ovidiu Panait
in order to silence the following checkpatch warning: check: extern prototypes should be avoided in .h files Signed-off-by: Ovidiu Panait --- drivers/serial/serial-uclass.c | 4 ++-- drivers/serial/serial.c| 4 +++- include/serial.h | 2 +- 3 files changed, 6 insertions(+), 4

Re: [PATCH 05/10] board_f: mips: Factor out mips-specific bdinfo setup

2020-07-09 Thread Ovidiu Panait
Hi, On 09.07.2020 12:15, Heinrich Schuchardt wrote: On 09.07.20 10:04, Ovidiu Panait wrote: Factor out mips-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/mips/lib/boot.c. Signed-off-by: Ovidiu Panait --- arch/mips/lib/boot.c | 18 ++ common

[PATCH 08/10] common/board_r: Remove initr_serial wrapper

2020-07-09 Thread Ovidiu Panait
Remove the initr_serial->serial_initialize indirection and call serial_initialize directly. Signed-off-by: Ovidiu Panait --- common/board_r.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 5e924322b2..522059c5a5 100

[PATCH 04/10] board_f: sh: Factor out sh-specific bdinfo setup

2020-07-09 Thread Ovidiu Panait
Factor out sh-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/sh/lib/board.c. Signed-off-by: Ovidiu Panait --- arch/sh/lib/board.c | 18 ++ common/board_f.c| 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/arch/sh/lib

[PATCH 01/10] board_f: Introduce arch_setup_bdinfo initcall

2020-07-09 Thread Ovidiu Panait
nit, introduce arch_setup_bdinfo weak initcall so that everyone can define their own bdinfo setup routines. Signed-off-by: Ovidiu Panait --- common/board_f.c | 6 ++ include/init.h | 12 2 files changed, 18 insertions(+) diff --git a/common/board_f.c b/common/board_f.c in

[PATCH 05/10] board_f: mips: Factor out mips-specific bdinfo setup

2020-07-09 Thread Ovidiu Panait
Factor out mips-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/mips/lib/boot.c. Signed-off-by: Ovidiu Panait --- arch/mips/lib/boot.c | 18 ++ common/board_f.c | 25 + 2 files changed, 19 insertions(+), 24 deletions

[PATCH v2 08/14] board_f: sh: Factor out sh-specific bdinfo setup

2020-07-10 Thread Ovidiu Panait
Factor out sh-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/sh/lib/board.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates: - use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of

[PATCH v2 07/14] board_f: ppc: Factor out ppc-specific bdinfo setup

2020-07-10 Thread Ovidiu Panait
Factor out ppc-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/powerpc/lib/bdinfo.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates: - use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of

[PATCH v2 11/14] drivers: serial: Make serial_initialize return int

2020-07-10 Thread Ovidiu Panait
in order to silence the following checkpatch warning: check: extern prototypes should be avoided in .h files Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- v2 updates: - add reviewed-by tag drivers/serial/serial-uclass.c | 4 ++-- drivers/serial/serial.c| 4 +++- include/serial.h

[PATCH v2 13/14] blkcache: Extend blkcache_init to cover CONFIG_NEEDS_MANUAL_RELOC

2020-07-10 Thread Ovidiu Panait
off-by: Ovidiu Panait --- v2 updates: - add reviewed-by tag common/board_r.c | 2 +- drivers/block/blkcache.c | 13 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 522059c5a5..29d831d5eb 100644 --- a/common/board_r.c ++

[PATCH v2 12/14] common/board_r: Remove initr_serial wrapper

2020-07-10 Thread Ovidiu Panait
Remove the initr_serial->serial_initialize indirection and call serial_initialize directly. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- v2 updates: - add reviewed-by tag common/board_r.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/board_

[PATCH v2 14/14] common/board_r: Move blkcache_init call earlier in the boot sequence

2020-07-10 Thread Ovidiu Panait
earlier and might call blkcache_invalidate (in mmc_select_hwpart()) when trying to load the environment from mmc via env_load(). To fix this issue, move blkcache_init boot call earlier, before mmc gets initialized. Cc: Angelo Durgehello Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- v2

[PATCH v2 06/14] board_f: m68k: Factor out m68k-specific bdinfo setup

2020-07-10 Thread Ovidiu Panait
Factor out m68k-specific bdinfo setup to arch_setup_bdinfo in arch/m68k/lib/bdinfo.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates: - use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of "#ifdef CONFIG_SYS_SRAM_BASE&q

[PATCH v2 03/14] Kconfig: Convert CONFIG_SYS_SRAM_SIZE to Kconfig

2020-07-10 Thread Ovidiu Panait
This converts ad-hoc CONFIG_SYS_SRAM_SIZE to Kconfig. Signed-off-by: Ovidiu Panait --- Kconfig | 7 +++ include/configs/devkit8000.h | 1 - include/configs/pic32mzdask.h | 2 -- include/configs/tricorder.h | 1 - scripts/config_whitelist.txt | 1 - 5 files changed

[PATCH v2 04/14] Kconfig: Remove CONFIG_SYS_SRAM_START

2020-07-10 Thread Ovidiu Panait
Remove ad-hoc CONFIG_SYS_SRAM_START and use CONFIG_SYS_SRAM_BASE instead. Signed-off-by: Ovidiu Panait --- Kconfig | 2 ++ include/configs/devkit8000.h | 3 --- include/configs/tricorder.h | 3 --- scripts/config_whitelist.txt | 1 - 4 files changed, 2 insertions(+), 7

[PATCH v2 09/14] board_f: mips: Factor out mips-specific bdinfo setup

2020-07-10 Thread Ovidiu Panait
Factor out mips-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/mips/lib/boot.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates: - use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of

[PATCH v2 05/14] board_f: Introduce arch_setup_bdinfo initcall

2020-07-10 Thread Ovidiu Panait
nit, introduce arch_setup_bdinfo weak initcall so that everyone can define their own bdinfo setup routines. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- v2 updates: - add reviewed-by tag common/board_f.c | 6 ++ include/init.h | 12 2 files changed, 18 inserti

[PATCH v2 10/14] dm: blk: Use IS_ENABLED() instead of #ifdefs in blk_post_probe

2020-07-10 Thread Ovidiu Panait
Use IS_ENABLED() instead of #ifdef in blk_post_probe function. No functional change intended. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- v2 updates: - add reviewed-by tag drivers/block/blk-uclass.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH v2 01/14] Kconfig: Introduce CONFIG_SYS_HAS_SRAM

2020-07-10 Thread Ovidiu Panait
In order to be able to replace "#ifdef CONFIG_SYS_SRAM_BASE" sequences with the IS_ENABLED() equivalent, introduce a new boolean Kconfig option that signals whether the platform has SRAM support. Signed-off-by: Ovidiu Panait --- Kconfig | 11 +++ 1 file changed, 11 insertion

[PATCH v2 02/14] Kconfig: Convert CONFIG_SYS_SRAM_BASE to Kconfig

2020-07-10 Thread Ovidiu Panait
This converts ad-hoc CONFIG_SYS_SRAM_BASE to Kconfig. Signed-off-by: Ovidiu Panait --- Kconfig | 5 + include/configs/pic32mzdask.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index

Re: [PATCH v2 06/14] board_f: m68k: Factor out m68k-specific bdinfo setup

2020-07-15 Thread Ovidiu Panait
Hi Simon, On 15.07.2020 04:05, Simon Glass wrote: On Fri, 10 Jul 2020 at 04:25, Ovidiu Panait wrote: Factor out m68k-specific bdinfo setup to arch_setup_bdinfo in arch/m68k/lib/bdinfo.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates

Re: [PATCH 1/5] dm: core: Fix devfdt_get_addr_ptr return value

2020-06-11 Thread Ovidiu Panait
Hi, On 27.05.2020 15:05, Matthias Brugger wrote: On 27/05/2020 08:41, Ovidiu Panait wrote: According to the description of devfdt_get_addr_ptr, this function should return NULL on failure, but currently it returns (void *)FDT_ADDR_T_NONE. This is also a problem because there are two

[PATCH 3/3] pinctrl: bcm283x: Store the return value of dev_read_u32_default to int

2020-06-11 Thread Ovidiu Panait
unction for pinconfig %s (%d)\n", config->name, function); return -EINVAL; } Make "function" variable an int to fix this. Signed-off-by: Ovidiu Panait --- drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH 1/3] pinctrl: bcm283x: DM_FLAG_PRE_RELOC: Remove OF_CONTROL check

2020-06-11 Thread Ovidiu Panait
Remove CONFIG_IS_ENABLED(OF_CONTROL) check from DM_FLAG_PRE_RELOC, since this driver only supports OF_CONTROL. drivers/pinctrl/broadcom/Kconfig: config PINCTRL_BCM283X depends on ARCH_BCM283X && PINCTRL_FULL && OF_CONTROL Signed-off-by: Ovidiu Panait --- drivers/pinctrl/

[PATCH 2/3] pinctrl: bcm283x: Read address from DT in ofdata_to_platdata

2020-06-11 Thread Ovidiu Panait
atdata). Signed-off-by: Ovidiu Panait --- drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c index 8bf7916627..9ab0baee33

[PATCH v4 16/17] blkcache: Extend blkcache_init to cover CONFIG_NEEDS_MANUAL_RELOC

2020-07-24 Thread Ovidiu Panait
wed-by: Simon Glass Reviewed-by: Eric Nelson Signed-off-by: Ovidiu Panait --- common/board_r.c | 2 +- drivers/block/blkcache.c | 13 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 79772135a4..63c53b7b96 100

[PATCH v4 14/17] drivers: serial: Make serial_initialize return int

2020-07-24 Thread Ovidiu Panait
in order to silence the following checkpatch warning: check: extern prototypes should be avoided in .h files Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- drivers/serial/serial-uclass.c | 4 ++-- drivers/serial/serial.c| 4 +++- include/serial.h | 2 +- 3 files

[PATCH v4 03/17] Kconfig: Convert CONFIG_SYS_SRAM_SIZE to Kconfig

2020-07-24 Thread Ovidiu Panait
This converts ad-hoc CONFIG_SYS_SRAM_SIZE to Kconfig. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Kconfig | 7 +++ include/configs/devkit8000.h | 1 - include/configs/pic32mzdask.h | 2 -- include/configs/tricorder.h | 1 - scripts

[PATCH v4 15/17] common/board_r: Remove initr_serial wrapper

2020-07-24 Thread Ovidiu Panait
Remove the initr_serial->serial_initialize indirection and call serial_initialize directly. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- common/board_r.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/board_r.c b/common/board_r.c in

[PATCH v4 10/17] board_f: m68k: Factor out m68k-specific bdinfo setup

2020-07-24 Thread Ovidiu Panait
Factor out m68k-specific bdinfo setup to arch_setup_bdinfo in arch/m68k/lib/bdinfo.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- arch/m68k/lib/bdinfo.c | 21 + common/board_f.c | 19

[PATCH v4 07/17] board_f: Introduce arch_setup_bdinfo initcall

2020-07-24 Thread Ovidiu Panait
nit, introduce arch_setup_bdinfo weak initcall so that everyone can define their own bdinfo setup routines. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- common/board_f.c | 7 ++- include/init.h | 12 2 files changed, 18 insertions(+), 1 deletion(-) diff --

[PATCH v4 06/17] board_f: Introduce setup_bdinfo initcall

2020-07-24 Thread Ovidiu Panait
Introduce setup_bdinfo initcall as a generic routine to populate bdinfo fields. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- common/board_f.c | 6 ++ include/init.h | 10 ++ 2 files changed, 16 insertions(+) diff --git a/common/board_f.c b/common/board_f.c index

[PATCH v4 05/17] cmd: bdinfo: Move sram info prints to generic code

2020-07-24 Thread Ovidiu Panait
bi_sramstart and bi_sramsize are generic members of the bd_info structure, so move the m68k/powerpc-specific prints to generic code. Also, print them only if SRAM support is enabled via CONFIG_SYS_HAS_SRAM. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- arch/m68k/lib/bdinfo.c

[PATCH v4 12/17] board_f: Remove setup_board_part1

2020-07-24 Thread Ovidiu Panait
Now that all arch specific code was converted to setup_bdinfo, we can remove setup_board_part1. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- common/board_f.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index

[PATCH v4 11/17] board_f: ppc: Factor out ppc-specific bdinfo setup

2020-07-24 Thread Ovidiu Panait
Factor out ppc-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/powerpc/lib/bdinfo.c. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- arch/powerpc/lib/bdinfo.c | 25 + common/board_f.c | 36

[PATCH v4 09/17] board_f: Move sram bdinfo assignments to generic code

2020-07-24 Thread Ovidiu Panait
Move sram related bdinfo from arch-specific setup_board_part1 to generic code in setup_bdinfo. Also use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of "#ifdef CONFIG_SYS_SRAM_BASE". Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- common/board_f.c | 10 +-

[PATCH v4 04/17] Kconfig: Remove CONFIG_SYS_SRAM_START

2020-07-24 Thread Ovidiu Panait
Remove ad-hoc CONFIG_SYS_SRAM_START and use CONFIG_SYS_SRAM_BASE instead. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Kconfig | 2 ++ include/configs/devkit8000.h | 3 --- include/configs/tricorder.h | 3 --- scripts/config_whitelist.txt | 1 - 4 files

[PATCH v4 08/17] board_f: Factor out bdinfo bi_mem{start, size} to setup_bdinfo

2020-07-24 Thread Ovidiu Panait
the generic flags. For ARC architecture, remove ARCH_EARLY_INIT_R from Kconfig since it is not needed anymore. Also, use gd->ram_base to populate bi_memstart to avoid an ifdef. Signed-off-by: Ovidiu Panait --- arch/Kconfig | 1 - arch/arc/lib/cpu.c| 7 ---

[PATCH v4 02/17] Kconfig: Convert CONFIG_SYS_SRAM_BASE to Kconfig

2020-07-24 Thread Ovidiu Panait
This converts ad-hoc CONFIG_SYS_SRAM_BASE to Kconfig. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Kconfig | 5 + include/configs/pic32mzdask.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v4 01/17] Kconfig: Introduce CONFIG_SYS_HAS_SRAM

2020-07-24 Thread Ovidiu Panait
In order to be able to replace "#ifdef CONFIG_SYS_SRAM_BASE" sequences with the IS_ENABLED() equivalent, introduce a new boolean Kconfig option that signals whether the platform has SRAM support. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Kconfig | 11 +

[PATCH v4 17/17] common/board_r: Move blkcache_init call earlier in the boot sequence

2020-07-24 Thread Ovidiu Panait
Signed-off-by: Ovidiu Panait --- common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 63c53b7b96..1c307383d5 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -705,6 +705,9 @@ static init_fnc_t init_sequence_r

[PATCH v4 13/17] dm: blk: Use IS_ENABLED() instead of #ifdefs in blk_post_probe

2020-07-24 Thread Ovidiu Panait
Use IS_ENABLED() instead of #ifdef in blk_post_probe function. No functional change intended. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- drivers/block/blk-uclass.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/block/blk-uclass.c b/drivers

Re: [PATCH v3 08/17] board_f: Introduce board_setup_bdinfo_mem initcall

2020-07-23 Thread Ovidiu Panait
On 21.07.2020 10:05, Alexey Brodkin wrote: Hi Ovidiu, [snip] diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c index 27b5832a0c..ccb7e1b265 100644 --- a/arch/arc/lib/cpu.c +++ b/arch/arc/lib/cpu.c @@ -27,8 +27,6 @@ int arch_cpu_init(void) int arch_early_init_r(void) { -

Re: [PATCH v3 11/17] board_f: ppc: Factor out ppc-specific bdinfo setup

2020-07-29 Thread Ovidiu Panait
Hi Simon, On 28.07.2020 21:58, Simon Glass wrote: Hi Ovidiu, On Tue, 21 Jul 2020 at 10:43, Ovidiu Panait wrote: Hi Simon, On 21.07.2020 17:17, Simon Glass wrote: On Mon, 20 Jul 2020 at 08:20, Ovidiu Panait wrote: Factor out ppc-specific bdinfo setup from generic init sequence

[PATCH v3 17/17] common/board_r: Move blkcache_init call earlier in the boot sequence

2020-07-20 Thread Ovidiu Panait
Signed-off-by: Ovidiu Panait --- common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 63c53b7b96..1c307383d5 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -705,6 +705,9 @@ static init_fnc_t init_sequence_r

[PATCH v3 11/17] board_f: ppc: Factor out ppc-specific bdinfo setup

2020-07-20 Thread Ovidiu Panait
Factor out ppc-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/powerpc/lib/bdinfo.c. Signed-off-by: Ovidiu Panait --- arch/powerpc/lib/bdinfo.c | 25 + common/board_f.c | 36 ++-- 2 files changed, 27

[PATCH v3 15/17] common/board_r: Remove initr_serial wrapper

2020-07-20 Thread Ovidiu Panait
Remove the initr_serial->serial_initialize indirection and call serial_initialize directly. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- common/board_r.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/board_r.c b/common/board_r.c in

  1   2   3   4   >