Skip to contentSkip to conversation

Enable all cache ways and Enable SiFive PWM driver

PATCH New Pragnesh Patel 3 participants 15 messages May 29, 2020 – Jul 20, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Enable all cache ways and Enable SiFive PWM driver

Patch 1: enable all cache ways from U-Boot proper

This patch enables all cache ways from U-Boot proper, earlier this was done by FSBL.
(https://github.com/sifive/freedom-u540-c000-bootloader/blob/master/fsbl/main.c#L428)

L2 cache is of 2 MB (16 cache ways) and 1 cache way is of 128 KB. FSBL is located on the latest way of L2 cache. Therefore, FSBL can only enable the first 15 L2 cache ways to avoid corrupt itself.

U-Boot proper enables all cache ways (16 cache ways) in this patch.

Patch 2: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

This series is rebase on
- [v13] RISC-V SiFive FU540 support SPL

This series depends on:
[1] https://patchwork.ozlabs.org/patch/1275883

All these together is available for testing here
[2] https://github.com/pragnesh26992/u-boot/tree/pwm

Pragnesh Patel (2):
riscv: sifive: fu540: enable all cache ways from U-Boot proper
riscv: sifive: fu540: Enable SiFive PWM driver

 arch/riscv/cpu/fu540/Makefile             |  1 +
 arch/riscv/cpu/fu540/cache.c              | 53 +++++++++++++++++++++++
 arch/riscv/dts/fu540-c000-u-boot.dtsi     |  4 ++
 arch/riscv/include/asm/arch-fu540/cache.h | 14 ++++++
 board/sifive/fu540/Kconfig                |  2 +
 board/sifive/fu540/fu540.c                | 10 ++++-
 6 files changed, 83 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/cpu/fu540/cache.c
 create mode 100644 arch/riscv/include/asm/arch-fu540/cache.h
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/2 riscv: sifive: fu540: enable all cache ways from U-Boot proper

Add L2 cache node to enable all cache ways from U-Boot proper.

---
 arch/riscv/cpu/fu540/Makefile             |  1 +
 arch/riscv/cpu/fu540/cache.c              | 53 +++++++++++++++++++++++
 arch/riscv/dts/fu540-c000-u-boot.dtsi     |  4 ++
 arch/riscv/include/asm/arch-fu540/cache.h | 14 ++++++
 board/sifive/fu540/fu540.c                | 10 ++++-
 5 files changed, 81 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/cpu/fu540/cache.c
 create mode 100644 arch/riscv/include/asm/arch-fu540/cache.h
arch/riscv/cpu/fu540/Makefile +1 -0
index 043fb961a5..088205ef57 100644
@@ -8,4 +8,5 @@ obj-y += spl.o
 else
 obj-y += dram.o
 obj-y += cpu.o
+obj-y += cache.o
 endif
arch/riscv/cpu/fu540/cache.c new file +53 -0

53 lines not on this page · raw message

arch/riscv/dts/fu540-c000-u-boot.dtsi +4 -0
index 9bba554f9d..6e07c09f9f 100644
@@ -87,3 +87,7 @@
 	assigned-clocks = <&prci PRCI_CLK_GEMGXLPLL>;
 	assigned-clock-rates = <125000000>;
 };
+
+&l2cache {
+	status = "okay";
+};
arch/riscv/include/asm/arch-fu540/cache.h new file +14 -0
new file mode 100644
index 0000000000..135a17c679
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2020 SiFive, Inc.
+ *
+ * Authors:
+ *   Pragnesh Patel <[email protected]>
+ */
+
+#ifndef _CACHE_SIFIVE_H
+#define _CACHE_SIFIVE_H
+
+int cache_enable_ways(void);
+
+#endif /* _CACHE_SIFIVE_H */
board/sifive/fu540/fu540.c +9 -1
index fa705dea71..27ff52f903 100644
@@ -15,6 +15,7 @@
 #include <linux/io.h>
 #include <misc.h>
 #include <spl.h>
+#include <asm/arch/cache.h>
 
 /*
  * This define is a value used for error/unknown serial.
@@ -114,7 +115,14 @@ int misc_init_r(void)
 
 int board_init(void)
 {
-	/* For now nothing to do here. */
+	int ret;
+
+	/* enable all cache ways */
+	ret = cache_enable_ways();
+	if (ret) {
+		debug("%s: could not enable cache ways\n", __func__);
+		return ret;
+	}
 
 	return 0;
 }
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/2 riscv: sifive: fu540: enable all cache ways from U-Boot proper

Quoted 5 lines · Pragnesh Patel

Add L2 cache node to enable all cache ways from U-Boot proper.

Quoted 10 lines
---
 arch/riscv/cpu/fu540/Makefile             |  1 +
 arch/riscv/cpu/fu540/cache.c              | 53 +++++++++++++++++++++++
 arch/riscv/dts/fu540-c000-u-boot.dtsi     |  4 ++
 arch/riscv/include/asm/arch-fu540/cache.h | 14 ++++++
 board/sifive/fu540/fu540.c                | 10 ++++-
 5 files changed, 81 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/cpu/fu540/cache.c
 create mode 100644 arch/riscv/include/asm/arch-fu540/cache.h
#3 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

In reply to Pragnesh Patel

This patch enables SiFive PWM driver for the SiFive Unleashed board.

---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
board/sifive/fu540/Kconfig +2 -0
index 86193d7668..683668d059 100644
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	imply SMP
 	imply MISC
 	imply SIFIVE_OTP
+	imply DM_PWM
+	imply PWM_SIFIVE
 
 endif
Signature · 1 line
2.17.1

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Pragnesh

Quoted 17 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com; bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt
Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 6 lines
board/sifive/fu540/Kconfig +2 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
        imply MISC
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another patch.

Thanks,
Rick

Quoted 3 lines
board/sifive/fu540/Kconfig +0 -1
 endif
--

2.17.1

#7 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Rick,

Quoted 36 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

board/sifive/fu540/Kconfig index

Quoted 10 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
board/sifive/fu540/Kconfig index renamed from board/sifive/fu540/Kconfig +0 -0

86193d7668..683668d059 100644

Quoted 12 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 9 lines
board/sifive/fu540/Kconfig +2 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
        imply MISC
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another patch.

Do you want me to send this 2 patches separately independent of each other ?

Quoted 7 lines

Thanks,
Rick

Quoted 3 lines
board/sifive/fu540/Kconfig +0 -1
 endif
--

2.17.1

#8 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Pragnesh

Quoted 51 lines

Hi Rick,

Quoted 36 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

board/sifive/fu540/Kconfig index

Quoted 10 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
board/sifive/fu540/Kconfig index renamed from board/sifive/fu540/Kconfig +0 -0

86193d7668..683668d059 100644

Quoted 12 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 9 lines
board/sifive/fu540/Kconfig +2 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
        imply MISC
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another patch.

Quoted 1 line

Do you want me to send this 2 patches separately independent of each other ?

How about merged [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver into [PATCH v2 0/2] Add support for PWM SiFive ?

Thanks,
Rick

Quoted 8 lines
Quoted 8 lines

Thanks,
Rick

Quoted 3 lines
board/sifive/fu540/Kconfig +0 -1
 endif
--

2.17.1

#9 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Rick,

Quoted 71 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 10:44
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 11 lines

Hi Rick,

Quoted 9 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 29 lines
Quoted 29 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

Quoted 11 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/sifive/fu540/Kconfig index

86193d7668..683668d059 100644

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
board/sifive/fu540/Kconfig +0 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
Quoted 8 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 5 lines
board/sifive/fu540/Kconfig +2 -0
        imply MISC
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another

Quoted 7 lines

patch.

Quoted 2 lines

Do you want me to send this 2 patches separately independent of each

other ?

How about merged [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver into [PATCH v2 0/2] Add support for PWM SiFive ?

I am okay with it, you can go ahead and merge this patch into PWM series of Yash.

Quoted 12 lines

Thanks,
Rick

Quoted 8 lines
Quoted 8 lines

Thanks,
Rick

Quoted 3 lines
board/sifive/fu540/Kconfig +0 -1
 endif
--

2.17.1

#10 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Rick,

Quoted 76 lines · Pragnesh Patel

Hi Rick,

Quoted 73 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 10:44
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 11 lines

Hi Rick,

Quoted 9 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 29 lines
Quoted 29 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

Quoted 11 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/sifive/fu540/Kconfig index

86193d7668..683668d059 100644

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
board/sifive/fu540/Kconfig +0 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
Quoted 8 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 5 lines
board/sifive/fu540/Kconfig +2 -0
        imply MISC
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another

patch.

Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Do you want me to send this 2 patches separately independent of each

other ?

How about merged [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver into [PATCH v2 0/2] Add support for PWM SiFive ?

I am okay with it, you can go ahead and merge this patch into PWM series of Yash.

They are separate patches and should keep separate. I am not sure what's the issue we want to resolve?

Regards,
Bin

#11 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Bin

Quoted 83 lines

Hi Rick,

Quoted 79 lines · Pragnesh Patel

Hi Rick,

Quoted 76 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 10:44
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 11 lines

Hi Rick,

Quoted 9 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 29 lines
Quoted 29 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

Quoted 11 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/sifive/fu540/Kconfig index

86193d7668..683668d059 100644

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
board/sifive/fu540/Kconfig +0 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
Quoted 8 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 5 lines
board/sifive/fu540/Kconfig +2 -0
        imply MISC
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another

patch.

Quoted 2 lines

Do you want me to send this 2 patches separately independent of each

other ?

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

How about merged [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver into [PATCH v2 0/2] Add support for PWM SiFive ?

I am okay with it, you can go ahead and merge this patch into PWM series of Yash.

They are separate patches and should keep separate. I am not sure what's the issue we want to resolve?

Nothing about resolve.
Logically if they can be put together, it will be more reasonable.

Thanks,
Rick

Quoted 3 lines

Regards,
Bin

#12 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Rick,

Quoted 89 lines · Rick Chen

Hi Bin

Quoted 86 lines

Hi Rick,

Quoted 82 lines · Pragnesh Patel

Hi Rick,

Quoted 78 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 10:44
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 11 lines

Hi Rick,

Quoted 9 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 29 lines
Quoted 29 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

Quoted 11 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/sifive/fu540/Kconfig index

86193d7668..683668d059 100644

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
board/sifive/fu540/Kconfig +0 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
Quoted 8 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 5 lines
board/sifive/fu540/Kconfig +2 -0
        imply MISC
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another

patch.

Quoted 2 lines

Do you want me to send this 2 patches separately independent of each

other ?

How about merged [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver into [PATCH v2 0/2] Add support for PWM SiFive ?

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

I am okay with it, you can go ahead and merge this patch into PWM series of Yash.

They are separate patches and should keep separate. I am not sure what's the issue we want to resolve?

Nothing about resolve.
Logically if they can be put together, it will be more reasonable.

Agree. Thanks for the clarification.

That's why I recommend developers submit all related patch sets in a series to help maintainers' work :)

Regards,
Bin

#13 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Rick,

Quoted 120 lines

-----Original Message-----
From: Bin Meng <[email protected]>
Sent: 24 June 2020 13:04
To: Rick Chen <[email protected]>
Cc: Pragnesh Patel <[email protected]>; U-Boot Mailing List <u- boot at lists.denx.de>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Rick,

Quoted 62 lines · Rick Chen

Hi Bin

Quoted 59 lines

Hi Rick,

Quoted 55 lines · Pragnesh Patel

Hi Rick,

Quoted 52 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 10:44
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 11 lines

Hi Rick,

Quoted 9 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 21 lines
Quoted 21 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

Quoted 4 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed

board.

Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/sifive/fu540/Kconfig index

86193d7668..683668d059 100644

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
board/sifive/fu540/Kconfig +0 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
        imply MISC
Quoted 8 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 4 lines
board/sifive/fu540/Kconfig +2 -0
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another

patch.

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Do you want me to send this 2 patches separately independent of each

other ?

How about merged [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver into [PATCH v2 0/2] Add support for PWM SiFive ?

I am okay with it, you can go ahead and merge this patch into PWM

series of Yash.

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

They are separate patches and should keep separate. I am not sure what's the issue we want to resolve?

Quoted 7 lines
Quoted 2 lines

Nothing about resolve.
Logically if they can be put together, it will be more reasonable.

Agree. Thanks for the clarification.

That's why I recommend developers submit all related patch sets in a series to help maintainers' work :)

Just to clarify, you are going to merge this patch into [PATCH v2 0/2] Add support for PWM SiFive, right ? Let me know if I am wrong and you want to resubmit anything from me.

Quoted 3 lines

Regards,
Bin

#14 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Rick,

Any comments on this patch ?

Quoted 152 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Pragnesh Patel
Sent: 24 June 2020 13:14
To: Bin Meng <[email protected]>; Rick Chen <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: RE: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

Hi Rick,

Quoted 9 lines

-----Original Message-----
From: Bin Meng <[email protected]>
Sent: 24 June 2020 13:04
To: Rick Chen <[email protected]>
Cc: Pragnesh Patel <[email protected]>; U-Boot Mailing List <u- boot at lists.denx.de>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 4 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

Quoted 45 lines

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Rick,

Quoted 39 lines · Rick Chen

Hi Bin

Quoted 36 lines

Hi Rick,

Quoted 32 lines · Pragnesh Patel

Hi Rick,

Quoted 29 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 10:44
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 10 lines

Hi Rick,

Quoted 8 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel

<[email protected]>;

Quoted 63 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
Quoted 1 line

Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 14 lines
Quoted 14 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

Quoted 5 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed

board.

Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/sifive/fu540/Kconfig index

86193d7668..683668d059 100644

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
board/sifive/fu540/Kconfig +0 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
        imply MISC
Quoted 8 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 4 lines
board/sifive/fu540/Kconfig +2 -0
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another

patch.

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Do you want me to send this 2 patches separately independent of each

other ?

How about merged [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver into [PATCH v2 0/2] Add support for PWM SiFive ?

I am okay with it, you can go ahead and merge this patch into PWM

series of Yash.

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

They are separate patches and should keep separate. I am not sure what's the issue we want to resolve?

Quoted 7 lines
Quoted 2 lines

Nothing about resolve.
Logically if they can be put together, it will be more reasonable.

Agree. Thanks for the clarification.

That's why I recommend developers submit all related patch sets in a series to help maintainers' work :)

Just to clarify, you are going to merge this patch into [PATCH v2 0/2] Add support for PWM SiFive, right ?
Let me know if I am wrong and you want to resubmit anything from me.

Quoted 3 lines

Regards,
Bin

#15 lore raw

PATCH 2/2 riscv: sifive: fu540: Enable SiFive PWM driver

Hi Pragnesh

Quoted 3 lines

Hi Rick,

Any comments on this patch ?

Applied to u-boot-riscv/master !

Thanks,
Rick

Quoted 151 lines
Quoted 151 lines

From: U-Boot <[email protected]> On Behalf Of Pragnesh Patel
Sent: 24 June 2020 13:14
To: Bin Meng <[email protected]>; Rick Chen <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: RE: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

Hi Rick,

Quoted 9 lines

-----Original Message-----
From: Bin Meng <[email protected]>
Sent: 24 June 2020 13:04
To: Rick Chen <[email protected]>
Cc: Pragnesh Patel <[email protected]>; U-Boot Mailing List <u- boot at lists.denx.de>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 4 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

Quoted 45 lines

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Rick,

Quoted 39 lines · Rick Chen

Hi Bin

Quoted 36 lines

Hi Rick,

Quoted 32 lines · Pragnesh Patel

Hi Rick,

Quoted 29 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 10:44
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel <[email protected]>; Sagar Kadam <[email protected]>; Palmer Dabbelt <[email protected]>; Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 10 lines

Hi Rick,

Quoted 8 lines

-----Original Message-----
From: Rick Chen <[email protected]>
Sent: 24 June 2020 06:30
To: Pragnesh Patel <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Atish Patra <[email protected]>; palmerdabbelt at google.com; Bin Meng <[email protected]>; Paul Walmsley ( Sifive) <[email protected]>; Anup Patel

<[email protected]>;

Quoted 63 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
Quoted 1 line

Sagar Kadam <[email protected]>; Palmer Dabbelt

<[email protected]>;

Quoted 14 lines
Quoted 14 lines

Jagan Teki <[email protected]>; rick <[email protected]>; Alan Kao <[email protected]>
Subject: Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

[External Email] Do not click links or attachments unless you recognize the sender and know the content is safe

Hi Pragnesh

Quoted 4 lines

From: Pragnesh Patel [mailto:pragnesh.patel at sifive.com]
Sent: Friday, May 29, 2020 2:45 PM
To: u-boot at lists.denx.de
Cc: atish.patra at wdc.com; palmerdabbelt at google.com;

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

bmeng.cn at gmail.com; paul.walmsley at sifive.com; anup.patel at wdc.com; sagar.kadam at sifive.com; Rick Jian-Zhi Chen(???); Pragnesh Patel; Palmer Dabbelt

Quoted 5 lines

Subject: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed

board.

Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
---
 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/sifive/fu540/Kconfig index

86193d7668..683668d059 100644

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
board/sifive/fu540/Kconfig +0 -0
@@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SMP
        imply MISC
Quoted 8 lines

board/sifive/fu540/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 70

Quoted 4 lines
board/sifive/fu540/Kconfig +2 -0
        imply SIFIVE_OTP
+       imply DM_PWM
+       imply PWM_SIFIVE
 

This patch shall follow [PATCH v2 0/2] Add support for PWM SiFive. It is weird to introduce here and not appropriate to depend on another

patch.

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Do you want me to send this 2 patches separately independent of each

other ?

How about merged [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver into [PATCH v2 0/2] Add support for PWM SiFive ?

I am okay with it, you can go ahead and merge this patch into PWM

series of Yash.

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

They are separate patches and should keep separate. I am not sure what's the issue we want to resolve?

Quoted 7 lines
Quoted 2 lines

Nothing about resolve.
Logically if they can be put together, it will be more reasonable.

Agree. Thanks for the clarification.

That's why I recommend developers submit all related patch sets in a series to help maintainers' work :)

Just to clarify, you are going to merge this patch into [PATCH v2 0/2] Add support for PWM SiFive, right ?
Let me know if I am wrong and you want to resubmit anything from me.

Quoted 3 lines

Regards,
Bin