Skip to content

Commit 4184554

Browse files
MrVansudeep-holla
authored andcommitted
firmware: arm_scmi: Add initial support for i.MX BBM protocol
i.MX95 has a battery-backed module(BBM), which has persistent storage (GPR), an RTC, and the ON/OFF button. The System Manager(SM) firmware use SCMI vendor protocol(SCMI BBM) to let agent be able to use GPR, RTC and ON/OFF button. Reviewed-by: Cristian Marussi <[email protected]> Signed-off-by: Peng Fan <[email protected]> Message-Id: <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent c66beea commit 4184554

File tree

6 files changed

+444
-0
lines changed

6 files changed

+444
-0
lines changed

drivers/firmware/arm_scmi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ config ARM_SCMI_DEBUG_COUNTERS
7070
SCMI monitoring.
7171

7272
source "drivers/firmware/arm_scmi/transports/Kconfig"
73+
source "drivers/firmware/arm_scmi/vendors/imx/Kconfig"
7374

7475
endif #ARM_SCMI_PROTOCOL
7576

drivers/firmware/arm_scmi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ scmi-protocols-y += pinctrl.o
1111
scmi-module-objs := $(scmi-driver-y) $(scmi-protocols-y) $(scmi-transport-y)
1212

1313
obj-$(CONFIG_ARM_SCMI_PROTOCOL) += transports/
14+
obj-$(CONFIG_ARM_SCMI_PROTOCOL) += vendors/imx/
1415

1516
obj-$(CONFIG_ARM_SCMI_PROTOCOL) += scmi-core.o
1617
obj-$(CONFIG_ARM_SCMI_PROTOCOL) += scmi-module.o
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
menu "ARM SCMI NXP i.MX Vendor Protocols"
3+
4+
config IMX_SCMI_BBM_EXT
5+
tristate "i.MX SCMI BBM EXTENSION"
6+
depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
7+
default y if ARCH_MXC
8+
help
9+
This enables i.MX System BBM control logic which supports RTC
10+
and BUTTON.
11+
12+
To compile this driver as a module, choose M here: the
13+
module will be called imx-sm-bbm.
14+
15+
endmenu
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
obj-$(CONFIG_IMX_SCMI_BBM_EXT) += imx-sm-bbm.o

0 commit comments

Comments
 (0)