Commit 5c9668cf authored by Gatien Chevallier's avatar Gatien Chevallier Committed by Alexandre Torgue
Browse files

firewall: introduce stm32_firewall framework



Introduce a STM32 firewall framework that offers to firewall consumers
different firewall services such as the ability to check their access
rights against their firewall controller(s).

The STM32 firewall framework offers a generic API for STM32 firewall
controllers that is defined in their drivers to best fit the
specificity of each firewall.

There are various types of firewalls:
-Peripheral firewalls that filter accesses to peripherals
-Memory firewalls that filter accesses to memories or memory regions
-No type for undefined type of firewall

Signed-off-by: default avatarGatien Chevallier <gatien.chevallier@foss.st.com>
Signed-off-by: default avatarAlexandre Torgue <alexandre.torgue@foss.st.com>
parent c1c67654
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -20811,6 +20811,11 @@ T: git git://linuxtv.org/media_tree.git
F:	Documentation/devicetree/bindings/media/i2c/st,st-mipid02.yaml
F:	drivers/media/i2c/st-mipid02.c
ST STM32 FIREWALL
M:	Gatien Chevallier <gatien.chevallier@foss.st.com>
S:	Maintained
F:	drivers/bus/stm32_firewall.c
ST STM32 I2C/SMBUS DRIVER
M:	Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
M:	Alain Volmat <alain.volmat@foss.st.com>
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ menuconfig ARCH_STM32
	select PINCTRL
	select RESET_CONTROLLER
	select STM32_EXTI
	select STM32_FIREWALL
	help
	  Support for STMicroelectronics STM32 processors.

+1 −0
Original line number Diff line number Diff line
@@ -305,6 +305,7 @@ config ARCH_STM32
	select ARM_SMC_MBOX
	select ARM_SCMI_PROTOCOL
	select COMMON_CLK_SCMI
	select STM32_FIREWALL
	help
	  This enables support for ARMv8 based STMicroelectronics
	  STM32 family, including:
+10 −0
Original line number Diff line number Diff line
@@ -163,6 +163,16 @@ config QCOM_SSC_BLOCK_BUS
	  i2c/spi/uart controllers, a hexagon core, and a clock controller
	  which provides clocks for the above.

config STM32_FIREWALL
	bool "STM32 Firewall framework"
	depends on (ARCH_STM32 || COMPILE_TEST) && OF
	select OF_DYNAMIC
	help
	  Say y to enable STM32 firewall framework and its services. Firewall
	  controllers will be able to register to the framework. Access for
	  hardware resources linked to a firewall controller can be requested
	  through this STM32 framework.

config SUN50I_DE2_BUS
	bool "Allwinner A64 DE2 Bus Driver"
	  default ARM64
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ obj-$(CONFIG_OMAP_INTERCONNECT) += omap_l3_smx.o omap_l3_noc.o
obj-$(CONFIG_OMAP_OCP2SCP)	+= omap-ocp2scp.o
obj-$(CONFIG_QCOM_EBI2)		+= qcom-ebi2.o
obj-$(CONFIG_QCOM_SSC_BLOCK_BUS)	+= qcom-ssc-block-bus.o
obj-$(CONFIG_STM32_FIREWALL)	+= stm32_firewall.o
obj-$(CONFIG_SUN50I_DE2_BUS)	+= sun50i-de2.o
obj-$(CONFIG_SUNXI_RSB)		+= sunxi-rsb.o
obj-$(CONFIG_OF)		+= simple-pm-bus.o
Loading