RE: [PATCH 06/13] clk: exynos: Move pll code into clk-exynos7420

2023-12-19 Thread Chanho Park
3] clk: exynos: Move pll code into clk-exynos7420 > > PLL utilities code is only used by clk-exynos7420 driver at the moment. > Move it into clk-exynos7420 to make clk-pll.c file available for CCF PLL > clocks implementation, which is coming in the next patches. > > Signed-off-by: Sam Protsenko Reviewed-by: Chanho Park

RE: [PATCH 04/13] soc: samsung: Add Exynos USI driver

2023-12-19 Thread Chanho Park
hough no > misc operations are implemented, it makes it easier to probe the driver > this way (as compared to UCLASS_NOP) and keep the code compact. > > [1] drivers/soc/samsung/exynos-usi.c > > Signed-off-by: Sam Protsenko Reviewed-by: Chanho Park

RE: [PATCH 05/13] soc: samsung: Add Exynos PMU driver

2023-12-19 Thread Chanho Park
probe function must be always called > for this driver. > > Signed-off-by: Sam Protsenko Reviewed-by: Chanho Park

RE: [PATCH 07/13] clk: exynos: Add Samsung clock framework

2023-12-19 Thread Chanho Park
d, clk); > + } > +} > + > +U_BOOT_DRIVER(samsung_pll0822x_clk) = { > + .name = UBOOT_DM_CLK_SAMSUNG_PLL0822X, > + .id = UCLASS_CLK, > + .ops= _pll0822x_clk_min_ops, > + .flags = DM_FLAG_PRE_RELOC, > +}; > + > +U_BOOT_DRIVER(samsung_pll0831x_clk) = { > + .name = UBOOT_DM_CLK_SAMSUNG_PLL0831X, > + .id = UCLASS_CLK, > + .ops= _pll0831x_clk_min_ops, > + .flags = DM_FLAG_PRE_RELOC, > +}; > diff --git a/drivers/clk/exynos/clk-pll.h b/drivers/clk/exynos/clk-pll.h > new file mode 100644 > index ..3b477369aeb8 > --- /dev/null > +++ b/drivers/clk/exynos/clk-pll.h > @@ -0,0 +1,23 @@ > +/* SPDX-License-Identifier: GPL-2.0+ */ > +/* > + * Copyright (C) 2016 Samsung Electronics > + * Copyright (C) 2023 Linaro Ltd. > + * > + * Authors: > + * Thomas Abraham Ditto. Othewise, Reviewed-by: Chanho Park

RE: [PATCH 08/13] clk: exynos: Add Exynos850 clock driver

2023-12-19 Thread Chanho Park
U_PERI. The UART baud clock is required in the serial driver, to > get its rate for the consequent baud rate calculation. > > Signed-off-by: Sam Protsenko Reviewed-by: Chanho Park

RE: [PATCH 09/13] pinctrl: exynos: Add pinctrl support for Exynos850

2023-12-19 Thread Chanho Park
ew file mode 100644 > index ..2445dd752ea8 > --- /dev/null > +++ b/drivers/pinctrl/exynos/pinctrl-exynos850.c > @@ -0,0 +1,125 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2023 Linaro Ltd. > + * Author: Sam Protsenko > + * > + * Samsung Exynos USI driver (Universal Serial Interface). Typo. It should be a subject for the pinctrl driver. Otherwise, Reviewed-by: Chanho Park

RE: [PATCH v2 05/21] riscv: Add a reset_cpu() function

2023-12-14 Thread Chanho Park
> -Original Message- > From: Simon Glass > Sent: Friday, December 15, 2023 1:50 AM > To: U-Boot Mailing List > Cc: Tom Rini ; Simon Glass ; Chanho > Park ; Heinrich Schuchardt ; > Leo ; Nikita Shubin ; Rick Chen > > Subject: [PATCH v2 05/21] riscv:

[PATCH v2] watchdog: Correct watchdog timeout print message

2023-12-03 Thread Chanho Park
000 WDT: Started watchdog@1307 without servicing (60s timeout) After --> StarFive # wdt start 3000 WDT: Started watchdog@1307 without servicing (3s timeout) Fixes: c2fd0ca1a822 ("watchdog: Integrate watchdog triggering into the cyclic framework") Signed-off-by: Chanho

RE: [PATCH] watchdog: Correct watchdog timeout print message

2023-12-03 Thread Chanho Park
> -Original Message- > From: Stefan Roese > Sent: Friday, December 1, 2023 7:39 PM > To: Chanho Park ; u-boot@lists.denx.de > Subject: Re: [PATCH] watchdog: Correct watchdog timeout print message > > On 12/1/23 08:37, Stefan Roese wrote: > > On 11/27/

[PATCH] watchdog: Correct watchdog timeout print message

2023-11-26 Thread Chanho Park
000 WDT: Started watchdog@1307 without servicing (60s timeout) After --> StarFive # wdt start 3000 WDT: Started watchdog@1307 without servicing (3s timeout) Fixes: c2fd0ca1a822 ("watchdog: Integrate watchdog triggering into the cyclic framework") Signed-off

[PATCH 0/4] Support StarFive Watchdog driver

2023-11-05 Thread Chanho Park
tries to keep the variant coding style for future work of JH7100 and have a consistency with the Linux driver. Chanho Park (4): clk: starfive: jh7110: Add watchdog clocks watchdog: Add StarFive Watchdog driver riscv: dts: jh7110: Add watchdog device tree node configs: visionfive2: Enable

[PATCH 3/4] riscv: dts: jh7110: Add watchdog device tree node

2023-11-05 Thread Chanho Park
Adds jh7110 watchdog device tree node. Signed-off-by: Chanho Park --- arch/riscv/dts/jh7110.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index 13c47f7caa36..6d2675d6ceac 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b

[PATCH 2/4] watchdog: Add StarFive Watchdog driver

2023-11-05 Thread Chanho Park
a consistency with the linux driver. Signed-off-by: Chanho Park --- drivers/watchdog/Kconfig| 7 + drivers/watchdog/Makefile | 1 + drivers/watchdog/starfive_wdt.c | 329 3 files changed, 337 insertions(+) create mode 100644 drivers/watchdog

[PATCH 4/4] configs: visionfive2: Enable watchdog driver

2023-11-05 Thread Chanho Park
Enables StarFive Watchdog driver and WDT command. Signed-off-by: Chanho Park --- configs/starfive_visionfive2_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index b15e7d24db19..7b39a63359dc

[PATCH 1/4] clk: starfive: jh7110: Add watchdog clocks

2023-11-05 Thread Chanho Park
Add JH7110_SYSCLK_WDT_APB and JH7110_SYSCLK_WDT_CORE clocks for JH7110 watchdog device. Signed-off-by: Chanho Park --- drivers/clk/starfive/clk-jh7110.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index

[PATCH v4 1/5] riscv: import read/write_relaxed functions

2023-11-01 Thread Chanho Park
This imports mmio functions from Linux's arch/riscv/include/asm/mmio.h to use read/write[b|w|l|q]_relaxed functions. Signed-off-by: Chanho Park --- arch/riscv/include/asm/io.h | 45 + 1 file changed, 45 insertions(+) diff --git a/arch/riscv/include/asm/io.h

[PATCH v4 3/5] rng: Add StarFive JH7110 RNG driver

2023-11-01 Thread Chanho Park
Adds to support JH7110 TRNG driver which is based on linux kernel's jh7110-trng.c. This can support to generate 256-bit random numbers and 128-bit but this makes 256-bit default for convenience. Signed-off-by: Chanho Park --- drivers/rng/Kconfig | 6 + drivers/rng/Makefile | 1

[PATCH v4 5/5] configs: visionfive2: Enable JH7110 RNG driver

2023-11-01 Thread Chanho Park
Enables JH7110 RNG driver to visionfive2 board. Signed-off-by: Chanho Park Reviewed-by: Heinrich Schuchardt --- configs/starfive_visionfive2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index

[PATCH v4 2/5] clk: starfive: jh7110: Add security clocks

2023-11-01 Thread Chanho Park
Add STGCLK_SEC_HCLK and STGCLK_SEC_MISCAHB clocks for JH7110 TRNG device. Signed-off-by: Chanho Park --- drivers/clk/starfive/clk-jh7110.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index 31aaf3340f94

[PATCH v4 4/5] riscv: dts: jh7110: Add rng device tree node

2023-11-01 Thread Chanho Park
Adds jh7110 trng device tree node. Signed-off-by: Chanho Park --- arch/riscv/dts/jh7110.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index ec237a46ffba..13c47f7caa36 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b

[PATCH v4 0/5] Add support for StarFive JH7110 TRNG driver

2023-11-01 Thread Chanho Park
of probe() which are suggested by Jaehoon Changes from v1: - Patch #3: Apply Heinrich's reviews and his codes - Patch #5: Add Heinrich's R-b tag Chanho Park (5): riscv: import read/write_relaxed functions clk: starfive: jh7110: Add security clocks rng: Add StarFive JH7110 RNG driver riscv

RE: [PATCH v3 3/5] rng: Add StarFive JH7110 RNG driver

2023-11-01 Thread Chanho Park
Hi, > -Original Message- > From: Heinrich Schuchardt > Sent: Wednesday, November 1, 2023 9:00 PM > To: Chanho Park > Cc: Sughosh Ganu ; u-boot@lists.denx.de; Rick > Chen ; Leo ; Jaehoon Chung > > Subject: Re: [PATCH v3 3/5] rng: Add StarFive JH7110 RNG driv

[PATCH v3 3/5] rng: Add StarFive JH7110 RNG driver

2023-11-01 Thread Chanho Park
Adds to support JH7110 TRNG driver which is based on linux kernel's jh7110-trng.c. This can support to generate 256-bit random numbers and 128-bit but this makes 256-bit default for convenience. Signed-off-by: Chanho Park --- drivers/rng/Kconfig | 6 + drivers/rng/Makefile | 1

[PATCH v3 0/5] Add support for StarFive JH7110 TRNG driver

2023-11-01 Thread Chanho Park
tag Chanho Park (5): riscv: import read/write_relaxed functions clk: starfive: jh7110: Add security clocks rng: Add StarFive JH7110 RNG driver riscv: dts: jh7110: Add rng device tree node configs: visionfive2: Enable JH7110 RNG driver arch/riscv/dts/jh7110.dtsi | 10 + arch

[PATCH v3 2/5] clk: starfive: jh7110: Add security clocks

2023-11-01 Thread Chanho Park
Add STGCLK_SEC_HCLK and STGCLK_SEC_MISCAHB clocks for JH7110 TRNG device. Signed-off-by: Chanho Park --- drivers/clk/starfive/clk-jh7110.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index 31aaf3340f94

[PATCH v3 4/5] riscv: dts: jh7110: Add rng device tree node

2023-11-01 Thread Chanho Park
Adds jh7110 trng device tree node. Signed-off-by: Chanho Park --- arch/riscv/dts/jh7110.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index ec237a46ffba..13c47f7caa36 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b

[PATCH v3 5/5] configs: visionfive2: Enable JH7110 RNG driver

2023-11-01 Thread Chanho Park
Enables JH7110 RNG driver to visionfive2 board. Signed-off-by: Chanho Park Reviewed-by: Heinrich Schuchardt --- configs/starfive_visionfive2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index

[PATCH v3 1/5] riscv: import read/write_relaxed functions

2023-11-01 Thread Chanho Park
This imports mmio functions from Linux's arch/riscv/include/asm/mmio.h to use read/write[b|w|l|q]_relaxed functions. Signed-off-by: Chanho Park --- arch/riscv/include/asm/io.h | 45 + 1 file changed, 45 insertions(+) diff --git a/arch/riscv/include/asm/io.h

RE: [PATCH v2 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-31 Thread Chanho Park
> -Original Message- > From: Jaehoon Chung > Sent: Wednesday, November 1, 2023 9:52 AM > To: 'Chanho Park' ; 'Sughosh Ganu' > ; 'Heinrich Schuchardt' ; > 'Rick Chen' ; 'Leo' ; u- > b...@lists.denx.de > Subject: RE: [PATCH v2 3/5] rng: Add St

[PATCH v2 1/5] riscv: import read/write_relaxed functions

2023-10-31 Thread Chanho Park
This imports mmio functions from Linux's arch/riscv/include/asm/mmio.h to use read/write[b|w|l|q]_relaxed functions. Signed-off-by: Chanho Park --- arch/riscv/include/asm/io.h | 45 + 1 file changed, 45 insertions(+) diff --git a/arch/riscv/include/asm/io.h

[PATCH v2 5/5] configs: visionfive2: Enable JH7110 RNG driver

2023-10-31 Thread Chanho Park
Enables JH7110 RNG driver to visionfive2 board. Signed-off-by: Chanho Park Reviewed-by: Heinrich Schuchardt --- configs/starfive_visionfive2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index

[PATCH v2 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-31 Thread Chanho Park
Adds to support JH7110 TRNG driver which is based on linux kernel's jh7110-trng.c. This can support to generate 256-bit random numbers and 128-bit but this makes 256-bit default for convenience. Signed-off-by: Chanho Park --- drivers/rng/Kconfig | 6 + drivers/rng/Makefile | 1

[PATCH v2 4/5] riscv: dts: jh7110: Add rng device tree node

2023-10-31 Thread Chanho Park
Adds jh7110 trng device tree node. Signed-off-by: Chanho Park --- arch/riscv/dts/jh7110.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index ec237a46ffba..13c47f7caa36 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b

[PATCH v2 2/5] clk: starfive: jh7110: Add security clocks

2023-10-31 Thread Chanho Park
Add STGCLK_SEC_HCLK and STGCLK_SEC_MISCAHB clocks for JH7110 TRNG device. Signed-off-by: Chanho Park --- drivers/clk/starfive/clk-jh7110.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index 31aaf3340f94

[PATCH v2 0/5] Add support for StarFive JH7110 TRNG driver

2023-10-31 Thread Chanho Park
128-bit and 256-bit random number generation but this patch makes 256-bit default mode for convenience. Changes from v1: - Patch #3: Apply Heinrich's reviews and his codes - Patch #5: Add Heinrich's R-b tag Chanho Park (5): riscv: import read/write_relaxed functions clk: starfive: jh7110: Add

RE: [PATCH 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-31 Thread Chanho Park
> -Original Message- > From: Heinrich Schuchardt > Sent: Wednesday, November 1, 2023 6:18 AM > To: Chanho Park > Cc: Sughosh Ganu ; Rick Chen ; > Leo ; u-boot@lists.denx.de > Subject: Re: [PATCH 3/5] rng: Add StarFive JH7110 RNG driver > > On 10/30/23 09:32,

[PATCH 0/2] Support JTAG for VisionFive2 board

2023-10-31 Thread Chanho Park
To support JTAG for VisionFive2 board, we need to control JTAG pins by S/W. spl_board_init_f function seems to be proper place to initialize these pins. Chanho Park (2): riscv: cpu: jh7110: Add gpio helper macros board: starfive: spl: Support jtag for VisionFive2 board arch/riscv/include

[PATCH 2/2] board: starfive: spl: Support jtag for VisionFive2 board

2023-10-31 Thread Chanho Park
/ Output Signed-off-by: Chanho Park --- board/starfive/visionfive2/spl.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c index ad5f71a20180..336f0cdfc90f 100644 --- a/board/starfive/visionfive2/spl.c +++ b

[PATCH 1/2] riscv: cpu: jh7110: Add gpio helper macros

2023-10-31 Thread Chanho Park
Add gpio.h header file that includes JH7110 helper macros. The file is imported from StarFive github[1] with small changes such as alignment. [1]: https://github.com/starfive-tech/u-boot Signed-off-by: Chanho Park --- arch/riscv/include/asm/arch-jh7110/gpio.h | 85 +++ 1

[PATCH 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-30 Thread Chanho Park
Adds to support JH7110 TRNG driver which is based on linux kernel's jh7110-trng.c. This can support to generate 256-bit random numbers and 128-bit but this makes 256-bit default for convenience. Signed-off-by: Chanho Park --- drivers/rng/Kconfig | 6 + drivers/rng/Makefile | 1

[PATCH 1/5] riscv: import read/write_relaxed functions

2023-10-30 Thread Chanho Park
This imports mmio functions from Linux's arch/riscv/include/asm/mmio.h to use read/write[b|w|l|q]_relaxed functions. Signed-off-by: Chanho Park --- arch/riscv/include/asm/io.h | 45 + 1 file changed, 45 insertions(+) diff --git a/arch/riscv/include/asm/io.h

[PATCH 5/5] configs: visionfive2: Enable JH7110 RNG driver

2023-10-30 Thread Chanho Park
Enables JH7110 RNG driver to visionfive2 board. Signed-off-by: Chanho Park --- configs/starfive_visionfive2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index b21754feafce..b15e7d24db19 100644

[PATCH 0/5] Add support for StarFive JH7110 TRNG driver

2023-10-30 Thread Chanho Park
128-bit and 256-bit random number generation but this patch makes 256-bit default mode for convenience. Chanho Park (5): riscv: import read/write_relaxed functions clk: starfive: jh7110: Add security clocks rng: Add StarFive JH7110 RNG driver riscv: dts: jh7110: Add rng device tree node

[PATCH 4/5] riscv: dts: jh7110: Add rng device tree node

2023-10-30 Thread Chanho Park
Adds jh7110 trng device tree node. Signed-off-by: Chanho Park --- arch/riscv/dts/jh7110.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index ec237a46ffba..13c47f7caa36 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b

[PATCH 2/5] clk: starfive: jh7110: Add security clocks

2023-10-30 Thread Chanho Park
Add STGCLK_SEC_HCLK and STGCLK_SEC_MISCAHB clocks for JH7110 TRNG device. Signed-off-by: Chanho Park --- drivers/clk/starfive/clk-jh7110.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index 31aaf3340f94

RE: [RFC 1/1] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-28 Thread Chanho Park
igned-off-by: Heinrich Schuchardt This works fine on my qemu risv with your opensbi patch and KASLR has been tested as well. Feel free to add my reviewed/tested-by tag. Reviewed-by: Chanho Park Tested-by: Chanho Park Best Regards, Chanho Park > --- > drivers/rng/Kconfig | 11 +

[PATCH] configs: visionfive2: enable bootstage configs

2023-10-10 Thread Chanho Park
Accumulated time: 10,093 dm_f 15,867 dm_r Signed-off-by: Chanho Park --- configs/starfive_visionfive2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index 6590727fe750

[PATCH] spl: add __noreturn attribute to spl_invoke_atf function

2023-09-08 Thread Chanho Park
spl_invoke_atf function will not be returned to SPL. Thus, we need to set __noreturn function attribute to the function. Signed-off-by: Chanho Park --- common/spl/spl_atf.c | 8 include/spl.h| 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/spl

RE: [PATCH v3 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-09-07 Thread Chanho Park
Hi, > -Original Message- > From: Heinrich Schuchardt > Sent: Thursday, September 7, 2023 2:27 AM > To: Chanho Park ; Simon Glass > > Cc: u-boot@lists.denx.de; Rick Chen ; Leo > > Subject: Re: [PATCH v3 3/3] timer: riscv_aclint_timer: add > time

RE: [PATCH 2/2] riscv: dts: starfive: generate u-boot-spl.bin.normal.out

2023-09-06 Thread Chanho Park
> -Original Message- > From: Heinrich Schuchardt > Sent: Wednesday, September 6, 2023 7:08 PM > To: Rick Chen ; Leo ; Yanhong > Wang > Cc: Simon Glass ; Marc Kleine-Budde ; > Chanho Park ; u-boot@lists.denx.de; Heinrich > Schuchardt > Subject: [PATCH 2/2] ris

RE: [PATCH 1/2] tools: mkimage: Add StarFive SPL image support

2023-09-06 Thread Chanho Park
Hi, > -Original Message- > From: Heinrich Schuchardt > Sent: Wednesday, September 6, 2023 7:08 PM > To: Rick Chen ; Leo ; Yanhong > Wang > Cc: Simon Glass ; Marc Kleine-Budde ; > Chanho Park ; u-boot@lists.denx.de; Heinrich > Schuchardt > Subject: [PAT

[PATCH v3 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-09-05 Thread Chanho Park
/ 1000) Signed-off-by: Chanho Park --- drivers/timer/riscv_aclint_timer.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/timer/riscv_aclint_timer.c b/drivers/timer/riscv_aclint_timer.c index e29d527c8d77..73fb87912851 100644 --- a/drivers/timer

[PATCH v3 2/3] riscv: timer: add timer_get_boot_us for BOOTSTAGE

2023-09-05 Thread Chanho Park
/ 1000) Signed-off-by: Chanho Park --- drivers/timer/riscv_timer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/timer/riscv_timer.c b/drivers/timer/riscv_timer.c index 28a6a6870b81..169c03dcb5c1 100644 --- a/drivers/timer/riscv_timer.c +++ b/drivers/timer

[PATCH v3 1/3] riscv: bootstage: correct bootstage_report guard

2023-09-05 Thread Chanho Park
(); | ^~~~ | bootstage_error Signed-off-by: Chanho Park Reviewed-by: Leo Yu-Chi Liang --- arch/riscv/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index 276677a5e2f9..cc30efc90498 100644 --- a/arch/riscv/lib

[PATCH v3 0/3] bootstage support for risc-v

2023-09-05 Thread Chanho Park
This adds to support bootstage for risc-v. timer_get_boot_us function is required to record each boot stages with microsecond timestamp. Changes from v2: - Add a Leo's RB tag of 1/3 patch - Add a description of the calculation formula - Correct the divisor value typo of 3/3 patch Chanho Park (3

RE: [PATCH v2 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-09-04 Thread Chanho Park
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Tuesday, September 5, 2023 1:49 AM > To: Chanho Park > Cc: Rick Chen ; Leo ; u- > b...@lists.denx.de > Subject: Re: [PATCH v2 3/3] timer: riscv_aclint_timer: add > timer_get_boot_us for BOOTSTAGE > &

RE: [PATCH v2 0/2] risc-v: implement DBCN based debug console

2023-09-04 Thread Chanho Park
Hi, > -Original Message- > From: Heinrich Schuchardt > Sent: Monday, September 4, 2023 8:24 PM > To: Rick Chen ; Leo > Cc: Bin Meng ; Anup Patel ; > Chanho Park ; u-boot@lists.denx.de; Heinrich > Schuchardt > Subject: [PATCH v2 0/2] risc-v: implement

RE: [PATCH 2/2] risc-v: implement DBCN based debug console

2023-09-04 Thread Chanho Park
reference to `sbi_dbcn_write_byte' riscv64-unknown-linux-gnu-ld.bfd: drivers/serial/serial_sbi.o: in function `_debug_uart_init': /data/risc-v/vf2/mainline/u-boot/drivers/serial/serial_sbi.c:24: undefined reference to `sbi_probe_extension' make[2]: *** [/data/risc-v/vf2/mainline/u-boot/scripts/Makefile.spl:527: spl/u-boot-spl] Error 1 Best Regards, Chanho Park

RE: [PATCH v2 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-09-04 Thread Chanho Park
Hi, > -Original Message- > From: Leo Liang > Sent: Monday, September 4, 2023 4:02 PM > To: Chanho Park > Cc: Rick Chen ; Simon Glass ; u- > b...@lists.denx.de > Subject: Re: [PATCH v2 3/3] timer: riscv_aclint_timer: add > timer_get_boot_us for BOOTSTAGE > &g

RE: [PATCH v2 2/3] riscv: timer: add timer_get_boot_us for BOOTSTAGE

2023-09-04 Thread Chanho Park
Hi, > -Original Message- > From: Leo Liang > Sent: Monday, September 4, 2023 4:01 PM > To: Chanho Park > Cc: Rick Chen ; Simon Glass ; u- > b...@lists.denx.de > Subject: Re: [PATCH v2 2/3] riscv: timer: add timer_get_boot_us for > BOOTSTAGE > > Hi Cha

[PATCH v2] fpga: define dummy fpga_load function for debug build

2023-08-31 Thread Chanho Park
/spl_fit.c:591: undefined reference to `fpga_load' collect2: error: ld returned 1 exit status Signed-off-by: Chanho Park --- Change from v1: - Rewrite the commit message to include a CONFIG_FPGA include/fpga.h | 8 1 file changed, 8 insertions(+) diff --git a/include/fpga.h b/include

RE: [PATCH] fpga: define dummy fpga_load function for debug build

2023-08-30 Thread Chanho Park
> On 8/16/23 08:54, Chanho Park wrote: > > This fixes below build error when CC_OPTIMIZE_FOR_DEBUG is enabled and > > CONFIG_SPL_FPGA is not enabled. > > I would rewrite this because the connection to SPL_FPGA is just one part > of it. > It is also taken when CONFIG

RE: [PATCH v2] spl: bootstage: move bootstage_stash before jumping to image

2023-08-29 Thread Chanho Park
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Wednesday, August 30, 2023 1:38 AM > To: Chanho Park > Cc: Nikhil M Jain ; Marek Vasut ; u- > b...@lists.denx.de > Subject: Re: [PATCH v2] spl: bootstage: move bootstage_stash before > jumping

[PATCH v2] spl: bootstage: move bootstage_stash before jumping to image

2023-08-28 Thread Chanho Park
. Signed-off-by: Chanho Park --- Changes from v1 - Separate the final stage bootstage code into spl_bootstage_finish. - As Simon suggests, call the function before jumping to the image. common/spl/spl.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git

RE: [PATCH] spl: bootstage: move bootstage_stash before jumping to image

2023-08-28 Thread Chanho Park
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Tuesday, August 29, 2023 2:55 AM > To: Chanho Park > Cc: Nikhil M Jain ; Marek Vasut ; u- > b...@lists.denx.de > Subject: Re: [PATCH] spl: bootstage: move bootstage_stash before jumping > to image > &

[PATCH] spl: add __noreturn attribute to spl_invoke_opensbi function

2023-08-28 Thread Chanho Park
spl_invoke_opensbi function is not returned to SPL. Thus, we need to set __noreturn function attribute. Signed-off-by: Chanho Park --- common/spl/spl_opensbi.c | 7 --- include/spl.h| 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/spl/spl_opensbi.c b

RE: [PATCH RESEND v3] fpga: add inline stub for fpga_load

2023-08-28 Thread Chanho Park
Hi Eugen, > -Original Message- > From: Eugen Hristev > Sent: Monday, August 28, 2023 8:47 PM > To: Michal Simek ; u-boot@lists.denx.de; > s...@chromium.org; Chanho Park > Subject: Re: [PATCH RESEND v3] fpga: add inline stub for fpga_load > > On 8/28/23 13:53, Mi

RE: [PATCH] fpga: define dummy fpga_load function for debug build

2023-08-28 Thread Chanho Park
Hi, > -Original Message- > From: Eugen Hristev > Sent: Monday, August 28, 2023 5:47 PM > To: Chanho Park ; 'Michal Simek' > ; u-boot@lists.denx.de > Cc: Simon Glass > Subject: Re: [PATCH] fpga: define dummy fpga_load function for debug build > > On 8/28/

[PATCH v2 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-08-28 Thread Chanho Park
timer_get_boot_us function is required to record the boot stages as us-based timestamp. Signed-off-by: Chanho Park --- drivers/timer/riscv_aclint_timer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/timer/riscv_aclint_timer.c b/drivers/timer

[PATCH v2 2/3] riscv: timer: add timer_get_boot_us for BOOTSTAGE

2023-08-28 Thread Chanho Park
timer_get_boot_us function is required to record the boot stages as us-based timestamp. Signed-off-by: Chanho Park --- drivers/timer/riscv_timer.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/timer/riscv_timer.c b/drivers/timer/riscv_timer.c index

[PATCH v2 0/3] bootstage support for risc-v

2023-08-28 Thread Chanho Park
This adds to support bootstage for risc-v. timer_get_boot_us function is required to record each boot stages with microsecond timestamp. Changes from v1: - Correct #ifdef guard for riscv_aclint_timer and riscv_timer Chanho Park (3): riscv: bootstage: correct bootstage_report guard riscv

[PATCH v2 1/3] riscv: bootstage: correct bootstage_report guard

2023-08-28 Thread Chanho Park
(); | ^~~~ | bootstage_error Signed-off-by: Chanho Park --- arch/riscv/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index 276677a5e2f9..cc30efc90498 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib

[PATCH] spl: bootstage: move bootstage_stash before jumping to image

2023-08-28 Thread Chanho Park
For IH_OS_OPENSBI and IH_OS_LINUX, there is no chance to stash bootstare record because it will not return after jumping to the image. Hence, this patch moves the location of bootstage_stash before jumping to image. Signed-off-by: Chanho Park --- common/spl/spl.c | 15 --- 1 file

RE: [PATCH] fpga: define dummy fpga_load function for debug build

2023-08-27 Thread Chanho Park
Hi, > -Original Message- > From: Michal Simek > Sent: Friday, August 25, 2023 4:23 PM > To: Chanho Park ; u-boot@lists.denx.de > Subject: Re: [PATCH] fpga: define dummy fpga_load function for debug build > > Hi, > > On 8/16/23 08:54, Chanho Park wrote: >

[PATCH 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-08-20 Thread Chanho Park
timer_get_boot_us function is required to record the boot stages as us-based timestamp. Signed-off-by: Chanho Park --- drivers/timer/riscv_aclint_timer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/timer/riscv_aclint_timer.c b/drivers/timer

[PATCH 0/3] bootstage support for risc-v

2023-08-20 Thread Chanho Park
This adds to support bootstage for risc-v. timer_get_boot_us function is required to record each boot stages with microsecond timestamp. Chanho Park (3): riscv: bootstage: correct bootstage_report guard riscv: timer: add timer_get_boot_us for BOOTSTAGE timer: riscv_aclint_timer: add

[PATCH 1/3] riscv: bootstage: correct bootstage_report guard

2023-08-20 Thread Chanho Park
(); | ^~~~ | bootstage_error Signed-off-by: Chanho Park --- arch/riscv/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index 276677a5e2f9..cc30efc90498 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib

[PATCH 2/3] riscv: timer: add timer_get_boot_us for BOOTSTAGE

2023-08-20 Thread Chanho Park
timer_get_boot_us function is required to record the boot stages as us-based timestamp. Signed-off-by: Chanho Park --- drivers/timer/riscv_timer.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/timer/riscv_timer.c b/drivers/timer/riscv_timer.c index

[PATCH v2 2/2] riscv: cpu: make riscv_cpu_probe to EVT_DM_POST_INIT_R callback

2023-08-17 Thread Chanho Park
) Thus, we need to move riscv_cpu_probe function in order to register the timer earlier than initr_dm_devices. Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Cc: Simon Glass Cc: Bin Meng Signed-off-by: Chanho Park --- arch/riscv/cpu/cpu.c | 11 +++ 1 fi

[PATCH v2 0/2] introduce EVT_DM_POST_INIT_R to fix VF2 boot fail

2023-08-17 Thread Chanho Park
+...@mail.gmail.com/ Chanho Park (2): dm: event: add EVT_DM_POST_INIT_R event type riscv: cpu: make riscv_cpu_probe to EVT_DM_POST_INIT_R callback arch/riscv/cpu/cpu.c | 11 +++ drivers/core/root.c | 6 -- include/event.h | 1 + 3 files changed, 8 insertions(+), 10 deletions

[PATCH v2 1/2] dm: event: add EVT_DM_POST_INIT_R event type

2023-08-17 Thread Chanho Park
This patch introduces EVT_DM_POST_INIT_R event type for handling hooks after relocation. Fixes: 55171aedda88 ("dm: Emit the arch_cpu_init_dm() even only before relocation") Suggested-by: Simon Glass Cc: Bin Meng Signed-off-by: Chanho Park --- drivers/core/root.c | 6 -- inclu

RE: [PATCH] dm: core: allow DM_POST_INIT_F notification for TIMER_EARLY

2023-08-17 Thread Chanho Park
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Wednesday, August 9, 2023 2:54 AM > To: Chanho Park > Cc: u-boot@lists.denx.de; Bin Meng > Subject: Re: [PATCH] dm: core: allow DM_POST_INIT_F notification for > TIMER_EARLY > > Hi Chanho, >

[PATCH] fpga: define dummy fpga_load function for debug build

2023-08-16 Thread Chanho Park
This fixes below build error when CC_OPTIMIZE_FOR_DEBUG is enabled and CONFIG_SPL_FPGA is not enabled. ../common/spl/spl_fit.c:591: undefined reference to `fpga_load' collect2: error: ld returned 1 exit status Signed-off-by: Chanho Park --- include/fpga.h | 8 1 file changed, 8

[PATCH] dm: core: allow DM_POST_INIT_F notification for TIMER_EARLY

2023-08-08 Thread Chanho Park
Emit the arch_cpu_init_dm() even only before relocation") Cc: Simon Glass Cc: Bin Meng Signed-off-by: Chanho Park --- drivers/core/root.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/core/root.c b/drivers/core/root.c index 6775fb0b6575..e939da484b2a 100644 --- a/dr

[PATCH 1/2] configs: visionfive2: add a trailing space to prompt

2023-07-14 Thread Chanho Park
Adds a trailing space to SYS_PROMPT to make it easier to distinguish between commands and the prompt. Signed-off-by: Chanho Park --- configs/starfive_visionfive2_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/starfive_visionfive2_defconfig b/configs

[PATCH 2/2] doc: visionfive2: apply a trailing space to the prompt

2023-07-14 Thread Chanho Park
Apply the trailing space changes in the guide document. Signed-off-by: Chanho Park --- doc/board/starfive/visionfive2.rst | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/board/starfive/visionfive2.rst b/doc/board/starfive/visionfive2.rst index

[PATCH 0/2] add a trailing space to prompt for visionfive2 board

2023-07-14 Thread Chanho Park
Adds a trailing space to SYS_PROMPT to make it easier to distinguish between commands and the prompt. Chanho Park (2): configs: visionfive2: add a trailing space to prompt doc: visionfive2: apply a trailing space to the prompt configs/starfive_visionfive2_defconfig | 2 +- doc/board