* [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY
@ 2021-10-28 17:13 Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 2/5] clk: " Patrick Delaunay
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Patrick Delaunay @ 2021-10-28 17:13 UTC (permalink / raw)
To: u-boot; +Cc: Etienne Carriere, Etienne Carriere, Patrick Delaunay, U-Boot STM32
Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
---
(no changes since v1)
drivers/reset/reset-scmi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c
index 1bff8075ee..ca0135a420 100644
--- a/drivers/reset/reset-scmi.c
+++ b/drivers/reset/reset-scmi.c
@@ -2,6 +2,9 @@
/*
* Copyright (C) 2019-2020 Linaro Limited
*/
+
+#define LOG_CATEGORY UCLASS_RESET
+
#include <common.h>
#include <dm.h>
#include <errno.h>
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 2/5] clk: scmi: define LOG_CATEGORY
2021-10-28 17:13 [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Patrick Delaunay
@ 2021-10-28 17:13 ` Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 3/5] power: regulator: " Patrick Delaunay
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Patrick Delaunay @ 2021-10-28 17:13 UTC (permalink / raw)
To: u-boot
Cc: Etienne Carriere, Etienne Carriere, Patrick Delaunay,
Lukasz Majewski, U-Boot STM32
Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
---
(no changes since v1)
drivers/clk/clk_scmi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c
index 93a4819501..9a0a6f6643 100644
--- a/drivers/clk/clk_scmi.c
+++ b/drivers/clk/clk_scmi.c
@@ -2,6 +2,9 @@
/*
* Copyright (C) 2019-2020 Linaro Limited
*/
+
+#define LOG_CATEGORY UCLASS_CLK
+
#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 3/5] power: regulator: scmi: define LOG_CATEGORY
2021-10-28 17:13 [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 2/5] clk: " Patrick Delaunay
@ 2021-10-28 17:13 ` Patrick Delaunay
2021-10-28 22:47 ` Jaehoon Chung
2021-10-28 17:13 ` [PATCH v3 4/5] firmware: scmi: add configs to select the supported agents Patrick Delaunay
` (2 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Patrick Delaunay @ 2021-10-28 17:13 UTC (permalink / raw)
To: u-boot
Cc: Etienne Carriere, Etienne Carriere, Patrick Delaunay,
Jaehoon Chung, U-Boot STM32
Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
---
(no changes since v1)
drivers/power/regulator/scmi_regulator.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/power/regulator/scmi_regulator.c b/drivers/power/regulator/scmi_regulator.c
index b3142bf4e1..3ddeaf4adc 100644
--- a/drivers/power/regulator/scmi_regulator.c
+++ b/drivers/power/regulator/scmi_regulator.c
@@ -2,6 +2,9 @@
/*
* Copyright (C) 2020-2021 Linaro Limited
*/
+
+#define LOG_CATEGORY UCLASS_REGULATOR
+
#include <common.h>
#include <dm.h>
#include <errno.h>
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 4/5] firmware: scmi: add configs to select the supported agents
2021-10-28 17:13 [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 2/5] clk: " Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 3/5] power: regulator: " Patrick Delaunay
@ 2021-10-28 17:13 ` Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 5/5] stm32mp15: deactivate CONFIG_SCMI_AGENT_MAILBOX Patrick Delaunay
2021-11-23 22:17 ` [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Tom Rini
4 siblings, 0 replies; 7+ messages in thread
From: Patrick Delaunay @ 2021-10-28 17:13 UTC (permalink / raw)
To: u-boot
Cc: Etienne Carriere, Etienne Carriere, Patrick Delaunay,
Wolfgang Denk, U-Boot STM32
Add two configs CONFIG_SCMI_AGENT_MAILBOX and CONFIG_SCMI_AGENT_SMCCC
to select the supported agents as all the agents are not supported.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
---
Changes in v3:
- add missing CONFIG_ header in makefile variable
Changes in v2:
- fix typo s/compatibble/compatible/
- add acked by Etienne Carriere for the series
drivers/firmware/scmi/Kconfig | 16 ++++++++++++++++
drivers/firmware/scmi/Makefile | 4 ++--
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/drivers/firmware/scmi/Kconfig b/drivers/firmware/scmi/Kconfig
index c3a109beac..c33de87cd0 100644
--- a/drivers/firmware/scmi/Kconfig
+++ b/drivers/firmware/scmi/Kconfig
@@ -17,3 +17,19 @@ config SCMI_FIRMWARE
based on message exchange. Messages can be exchange over tranport
channels as a mailbox device or an Arm SMCCC service with some
piece of identified shared memory.
+
+config SCMI_AGENT_MAILBOX
+ bool "Enable SCMI agent mailbox"
+ depends on SCMI_FIRMWARE && DM_MAILBOX
+ default y
+ help
+ Enable the SCMI communication channel based on mailbox
+ for compatible "arm,scmi".
+
+config SCMI_AGENT_SMCCC
+ bool "Enable SCMI agent SMCCC"
+ depends on SCMI_FIRMWARE && ARM_SMCCC
+ default y
+ help
+ Enable the SCMI communication channel based on Arm SMCCC service for
+ compatible "arm,scmi-smc".
diff --git a/drivers/firmware/scmi/Makefile b/drivers/firmware/scmi/Makefile
index 966475ec10..7d6f4df1de 100644
--- a/drivers/firmware/scmi/Makefile
+++ b/drivers/firmware/scmi/Makefile
@@ -1,5 +1,5 @@
obj-y += scmi_agent-uclass.o
obj-y += smt.o
-obj-$(CONFIG_ARM_SMCCC) += smccc_agent.o
-obj-$(CONFIG_DM_MAILBOX) += mailbox_agent.o
+obj-$(CONFIG_SCMI_AGENT_SMCCC) += smccc_agent.o
+obj-$(CONFIG_SCMI_AGENT_MAILBOX) += mailbox_agent.o
obj-$(CONFIG_SANDBOX) += sandbox-scmi_agent.o sandbox-scmi_devices.o
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 5/5] stm32mp15: deactivate CONFIG_SCMI_AGENT_MAILBOX
2021-10-28 17:13 [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Patrick Delaunay
` (2 preceding siblings ...)
2021-10-28 17:13 ` [PATCH v3 4/5] firmware: scmi: add configs to select the supported agents Patrick Delaunay
@ 2021-10-28 17:13 ` Patrick Delaunay
2021-11-23 22:17 ` [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Tom Rini
4 siblings, 0 replies; 7+ messages in thread
From: Patrick Delaunay @ 2021-10-28 17:13 UTC (permalink / raw)
To: u-boot
Cc: Etienne Carriere, Etienne Carriere, Patrick Delaunay,
Ilias Apalodimas, Jean-Philippe ROMAIN, Patrice Chotard,
uboot-stm32
Deactivate the SCMI agent mailbox which is not used on STM32MP15
platforms.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
---
(no changes since v1)
configs/stm32mp15_defconfig | 1 +
configs/stm32mp15_trusted_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/configs/stm32mp15_defconfig b/configs/stm32mp15_defconfig
index 701b1510c5..e4989efad1 100644
--- a/configs/stm32mp15_defconfig
+++ b/configs/stm32mp15_defconfig
@@ -75,6 +75,7 @@ CONFIG_FASTBOOT_MMC_USER_NAME="mmc1"
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
CONFIG_FASTBOOT_CMD_OEM_PARTCONF=y
CONFIG_FASTBOOT_CMD_OEM_BOOTBUS=y
+# CONFIG_SCMI_AGENT_MAILBOX is not set
CONFIG_GPIO_HOG=y
CONFIG_DM_HWSPINLOCK=y
CONFIG_HWSPINLOCK_STM32=y
diff --git a/configs/stm32mp15_trusted_defconfig b/configs/stm32mp15_trusted_defconfig
index b4ed090e3f..a3d2a6e1b4 100644
--- a/configs/stm32mp15_trusted_defconfig
+++ b/configs/stm32mp15_trusted_defconfig
@@ -76,6 +76,7 @@ CONFIG_FASTBOOT_MMC_USER_NAME="mmc1"
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
CONFIG_FASTBOOT_CMD_OEM_PARTCONF=y
CONFIG_FASTBOOT_CMD_OEM_BOOTBUS=y
+# CONFIG_SCMI_AGENT_MAILBOX is not set
CONFIG_GPIO_HOG=y
CONFIG_DM_HWSPINLOCK=y
CONFIG_HWSPINLOCK_STM32=y
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 3/5] power: regulator: scmi: define LOG_CATEGORY
2021-10-28 17:13 ` [PATCH v3 3/5] power: regulator: " Patrick Delaunay
@ 2021-10-28 22:47 ` Jaehoon Chung
0 siblings, 0 replies; 7+ messages in thread
From: Jaehoon Chung @ 2021-10-28 22:47 UTC (permalink / raw)
To: Patrick Delaunay, u-boot; +Cc: Etienne Carriere, Etienne Carriere, U-Boot STM32
On 10/29/21 2:13 AM, Patrick Delaunay wrote:
> Define LOG_CATEGORY to allow filtering with log command.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Best Regards,
Jaehoon Chung
> ---
>
> (no changes since v1)
>
> drivers/power/regulator/scmi_regulator.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/power/regulator/scmi_regulator.c b/drivers/power/regulator/scmi_regulator.c
> index b3142bf4e1..3ddeaf4adc 100644
> --- a/drivers/power/regulator/scmi_regulator.c
> +++ b/drivers/power/regulator/scmi_regulator.c
> @@ -2,6 +2,9 @@
> /*
> * Copyright (C) 2020-2021 Linaro Limited
> */
> +
> +#define LOG_CATEGORY UCLASS_REGULATOR
> +
> #include <common.h>
> #include <dm.h>
> #include <errno.h>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY
2021-10-28 17:13 [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Patrick Delaunay
` (3 preceding siblings ...)
2021-10-28 17:13 ` [PATCH v3 5/5] stm32mp15: deactivate CONFIG_SCMI_AGENT_MAILBOX Patrick Delaunay
@ 2021-11-23 22:17 ` Tom Rini
4 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2021-11-23 22:17 UTC (permalink / raw)
To: Patrick Delaunay; +Cc: u-boot, Etienne Carriere, Etienne Carriere, U-Boot STM32
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
On Thu, Oct 28, 2021 at 07:13:12PM +0200, Patrick Delaunay wrote:
> Define LOG_CATEGORY to allow filtering with log command.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
For the series, applied to u-boot/next, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-11-23 22:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 17:13 [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 2/5] clk: " Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 3/5] power: regulator: " Patrick Delaunay
2021-10-28 22:47 ` Jaehoon Chung
2021-10-28 17:13 ` [PATCH v3 4/5] firmware: scmi: add configs to select the supported agents Patrick Delaunay
2021-10-28 17:13 ` [PATCH v3 5/5] stm32mp15: deactivate CONFIG_SCMI_AGENT_MAILBOX Patrick Delaunay
2021-11-23 22:17 ` [PATCH v3 1/5] reset: scmi: define LOG_CATEGORY Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.